function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=_unsupportedIterableToArray(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0,t=(r*=t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)});n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=r(" "),n.s1=r(" "),n.s2=r(" "),n.s0-=r(e),n.s0<0&&(n.s0+=1),n.s1-=r(e),n.s1<0&&(n.s1+=1),n.s2-=r(e),n.s2<0&&(n.s2+=1),r=null}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function l(e,t){var n=new a(e),r=t&&t.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n("B9Yq")&&n("PDX0")?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.alea=l}(0,e,n("B9Yq"))}).call(this,n("YuTi")(e))},HlzF:function(e,t,n){var r;!function(){"use strict";var n=function(){this.init()};n.prototype={init:function(){var e=this||i;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||i;if(e=parseFloat(e),t.ctx||f(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,i.ctx.currentTime);for(var n=0;n=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,f()),e},codecs:function(e){return(this||i)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||i;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(t){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||i,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(a){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),o=r&&parseInt(r[0].split("/")[1],10)<33;return e._codecs={mp3:!(o||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||i;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function t(n){for(var r=0;r0?s._seek:n._sprite[e][0]/1e3),c=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-u),h=1e3*c/Math.abs(s._rate),f=n._sprite[e][0]/1e3,d=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var p=function(){s._paused=!1,s._seek=u,s._start=f,s._stop=d,s._loop=!(!s._loop&&!n._sprite[e][2])};if(!(u>=d)){var v=s._node;if(n._webAudio){var m=function(){n._playLock=!1,p(),n._refreshBuffer(s),v.gain.setValueAtTime(s._muted||n._muted?0:s._volume,i.ctx.currentTime),s._playStart=i.ctx.currentTime,void 0===v.bufferSource.start?v.bufferSource.noteGrainOn(0,u,s._loop?86400:c):v.bufferSource.start(0,u,s._loop?86400:c),h!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),h)),t||setTimeout((function(){n._emit("play",s._id),n._loadQueue()}),0)};"running"===i.state?m():(n._playLock=!0,n.once("resume",m),n._clearTimer(s._id))}else{var g=function(){v.currentTime=u,v.muted=s._muted||n._muted||i._muted||v.muted,v.volume=s._volume*i.volume(),v.playbackRate=s._rate;try{var r=v.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,p(),r.then((function(){n._playLock=!1,v._unlocked=!0,t||(n._emit("play",s._id),n._loadQueue())})).catch((function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0}))):t||(n._playLock=!1,p(),n._emit("play",s._id),n._loadQueue()),v.playbackRate=s._rate,v.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),h):(n._endTimers[s._id]=function(){n._ended(s),v.removeEventListener("ended",n._endTimers[s._id],!1)},v.addEventListener("ended",n._endTimers[s._id],!1))}catch(o){n._emit("playerror",s._id,o)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===v.src&&(v.src=n._src,v.load());var y=window&&window.ejecta||!v.readyState&&i._navigator.isCocoonJS;if(v.readyState>=3||y)g();else{n._playLock=!0;v.addEventListener(i._canPlayEvent,(function e(){g(),v.removeEventListener(i._canPlayEvent,e,!1)}),!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r=0?t=parseInt(o[0],10):e=parseFloat(o[0])}else o.length>=2&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,o)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var l=0;l0?r/u:r),h=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var i=(Date.now()-h)/r;h=Date.now(),s+=l*i,s=Math.max(0,s),s=Math.min(1,s),s=Math.round(100*s)/100,a._webAudio?e._volume=s:a.volume(s,e._id,!0),o&&(a._volume=s),(nt&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),c)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(i.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=r._soundById(parseInt(i[0],10)))&&n._loop;r._loop=e=i[0]}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var o=r._getSoundIds(t),a=0;a=0?t=parseInt(o[0],10):e=parseFloat(o[0])}else 2===o.length&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if("number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,o)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var l=0;l=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return n;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var s=n._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var l=n.playing(t)?i.ctx.currentTime-s._playStart:0,u=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(u+l*Math.abs(s._rate))}return s._node.currentTime}var c=n.playing(t);c&&n.pause(t,!0),s._seek=e,s._ended=!1,n._clearTimer(t),n._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var h=function(){n._emit("seek",t),c&&n.play(t,!0)};if(c&&!n._webAudio){var f=function e(){n._playLock?setTimeout(e,0):h()};setTimeout(f,0)}else h()}return n},playing:function(e){if("number"==typeof e){var t=this._soundById(e);return!!t&&!t._paused}for(var n=0;n=0&&i._howls.splice(r,1);var o=!0;for(n=0;n=0){o=!1;break}return s&&o&&delete s[e._src],i.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){return"function"==typeof t&&this["_on"+e].push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i=0;i--)r[i].id&&r[i].id!==t&&"load"!==e||(setTimeout((function(e){e.call(this,t,n)}).bind(this,r[i].fn),0),r[i].once&&this.off(e,r[i].fn,r[i].id));return this._loadQueue(e),this},_loadQueue:function(e){if(this._queue.length>0){var t=this._queue[0];t.event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()}return this},_ended:function(e){var t=e._sprite;if(!this._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;n--){if(t<=e)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),t--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n=0;if(i._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=i._scratchBuffer}catch(n){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(i._navigator&&i._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var a=function(e){this._parent=e,this.init()};a.prototype={init:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++i._counter,e._sounds.push(this),this.create(),this},create:function(){var e=this._parent,t=i._muted||this._muted||this._parent._muted?0:this._volume;return e._webAudio?(this._node=void 0===i.ctx.createGain?i.ctx.createGainNode():i.ctx.createGain(),this._node.gain.setValueAtTime(t,i.ctx.currentTime),this._node.paused=!0,this._node.connect(i.masterGain)):i.noAudio||(this._node=i._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(i._canPlayEvent,this._loadFn,!1),this._node.src=e._src,this._node.preload="auto",this._node.volume=t*i.volume(),this._node.load()),this},reset:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++i._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(i._canPlayEvent,this._loadFn,!1)}};var s={},l=function(e){var t=e._src;if(s[t])return e._duration=s[t].duration,void h(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),i=0;i0?(s[t._src]=e,h(t,e)):n()};"undefined"!=typeof Promise&&1===i.ctx.decodeAudioData.length?i.ctx.decodeAudioData(e).then(r).catch(n):i.ctx.decodeAudioData(e,r,n)},h=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},f=function(){if(i.usingWebAudio){try{"undefined"!=typeof AudioContext?i.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?i.ctx=new webkitAudioContext:i.usingWebAudio=!1}catch(o){i.usingWebAudio=!1}i.ctx||(i.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(i._navigator&&i._navigator.platform),t=i._navigator&&i._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(i._navigator&&i._navigator.userAgent.toLowerCase());(i._navigator&&i._navigator.standalone&&!r||i._navigator&&!i._navigator.standalone&&!r)&&(i.usingWebAudio=!1)}i.usingWebAudio&&(i.masterGain=void 0===i.ctx.createGain?i.ctx.createGainNode():i.ctx.createGain(),i.masterGain.gain.setValueAtTime(i._muted?0:i._volume,i.ctx.currentTime),i.masterGain.connect(i.ctx.destination)),i._setup()}};void 0===(r=(function(){return{Howler:i,Howl:o}}).apply(t,[]))||(e.exports=r),t.Howler=i,t.Howl=o,"undefined"!=typeof window?(window.HowlerGlobal=n,window.Howler=i,window.Howl=o,window.Sound=a):"undefined"!=typeof global&&(global.HowlerGlobal=n,global.Howler=i,global.Howl=o,global.Sound=a)}(),function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(!this.ctx||!this.ctx.listener)return this;for(var t=this._howls.length-1;t>=0;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){return this.ctx&&this.ctx.listener?"number"!=typeof e?this._pos:(this._pos=[e,t="number"!=typeof t?this._pos[1]:t,n="number"!=typeof n?this._pos[2]:n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this):this},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,o){if(!this.ctx||!this.ctx.listener)return this;var a=this._orientation;return"number"!=typeof e?a:(this._orientation=[e,t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,r="number"!=typeof r?a[3]:r,i="number"!=typeof i?a[4]:i,o="number"!=typeof o?a[5]:o],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(e,t,n,r,i,o),this)},Howl.prototype.init=(e=Howl.prototype.init,function(t){return this._orientation=t.orientation||[1,0,0],this._stereo=t.stereo||null,this._pos=t.pos||null,this._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},this._onstereo=t.onstereo?[{fn:t.onstereo}]:[],this._onpos=t.onpos?[{fn:t.onpos}]:[],this._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var o=r._getSoundIds(n),a=0;a>>15)^(e^=e>>>12),t.i=o,n+(r^r>>>16)|0},function(e,t){var n,r,i,o,a,s=[],l=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,l=Math.max(l,t.length)),i=0,o=-32;o>>15,r^=r<<4,r^=r>>>13,o>=0&&(i=0==(n=s[127&o]^=r+(a=a+1640531527|0))?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,s[i]=(r^=r>>>15)^(n^=n>>>12);e.w=a,e.X=s,e.i=i}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function l(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n("B9Yq")&&n("PDX0")?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.xor4096=l}(0,e,n("B9Yq"))}).call(this,n("YuTi")(e))},ie1u:function(e,t,n){(function(e){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n("B9Yq")&&n("PDX0")?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.tychei=l}(0,e,n("B9Yq"))}).call(this,n("YuTi")(e))},"pJ3+":function(e,t,n){var r;!function(i,o,a){var s,l=a.pow(256,6),u=a.pow(2,52),c=2*u;function h(e,t,n){var r=[],h=p(function e(t,n){var r,i=[],o=typeof t;if(n&&"object"==o)for(r in t)try{i.push(e(t[r],n-1))}catch(a){}return i.length?i:"string"==o?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,v(o)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(256):(e=new Uint8Array(256),(i.crypto||i.msCrypto).getRandomValues(e)),v(e)}catch(r){var t=i.navigator,n=t&&t.plugins;return[+new Date,i,n,i.screen,v(o)]}}():e,3),r),m=new f(r),g=function(){for(var e=m.g(6),t=l,n=0;e=c;)e/=2,t/=2,n>>>=1;return(e+n)/t};return g.int32=function(){return 0|m.g(4)},g.quick=function(){return m.g(4)/4294967296},g.double=g,p(v(m.S),o),(t.pass||n||function(e,t,n,r){return r&&(r.S&&d(r,m),e.state=function(){return d(m,{})}),n?(a.random=e,t):e})(g,h,"global"in t?t.global:this==a,t.state)}function f(e){var t,n=e.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);i<256;)a[i]=i++;for(i=0;i<256;i++)a[i]=a[o=255&o+e[i%n]+(t=a[i])],a[o]=t;(r.g=function(e){for(var t,n=0,i=r.i,o=r.j,a=r.S;e--;)t=a[i=255&i+1],n=256*n+a[255&(a[i]=a[o=255&o+t])+(a[o]=t)];return r.i=i,r.j=o,n})(256)}function d(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){for(var n,r=e+"",i=0;i>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function l(e,t){var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n("B9Yq")&&n("PDX0")?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.xorwow=l}(0,e,n("B9Yq"))}).call(this,n("YuTi")(e))},uDiL:function(e,t,n){(function(e){var r;!function(e,i,o){function a(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n("B9Yq")&&n("PDX0")?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.xor128=l}(0,e,n("B9Yq"))}).call(this,n("YuTi")(e))},yuCN:function(e,t,n){(function(e){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],n=(e^=e>>>7)^e<<24,n^=(e=r[i+1&7])^e>>>10,n^=(e=r[i+3&7])^e>>>3,n^=(e=r[i+4&7])^e<<7,e=r[i+7&7],r[i]=n^=(e^=e<<13)^e<<9,t.i=i+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,n=0;n0;--n)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function l(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=l:n("B9Yq")&&n("PDX0")?void 0===(r=(function(){return l}).call(t,n,t,i))||(i.exports=r):this.xorshift7=l}(0,e,n("B9Yq"))}).call(this,n("YuTi")(e))},zUnb:function(e,t,n){"use strict";n.r(t);var r={};function i(e){return"function"==typeof e}n.r(r),n.d(r,"Util",(function(){return dI})),n.d(r,"CorrelationIdHelper",(function(){return vI})),n.d(r,"UrlHelper",(function(){return pI})),n.d(r,"DateTimeUtils",(function(){return gI})),n.d(r,"ConnectionStringParser",(function(){return wI})),n.d(r,"FieldType",(function(){return $T})),n.d(r,"RequestHeaders",(function(){return lI})),n.d(r,"DisabledPropertyName",(function(){return yI})),n.d(r,"ProcessLegacy",(function(){return bI})),n.d(r,"SampleRate",(function(){return _I})),n.d(r,"HttpMethod",(function(){return kI})),n.d(r,"DEFAULT_BREEZE_ENDPOINT",(function(){return CI})),n.d(r,"AIData",(function(){return AI})),n.d(r,"AIBase",(function(){return II})),n.d(r,"Envelope",(function(){return OI})),n.d(r,"Event",(function(){return DI})),n.d(r,"Exception",(function(){return NI})),n.d(r,"Metric",(function(){return UI})),n.d(r,"PageView",(function(){return zI})),n.d(r,"PageViewData",(function(){return HI})),n.d(r,"RemoteDependencyData",(function(){return BI})),n.d(r,"Trace",(function(){return qI})),n.d(r,"PageViewPerformance",(function(){return WI})),n.d(r,"Data",(function(){return GI})),n.d(r,"SeverityLevel",(function(){return VI})),n.d(r,"ConfigurationManager",(function(){return XI})),n.d(r,"ContextTagKeys",(function(){return KI})),n.d(r,"DataSanitizer",(function(){return uI})),n.d(r,"TelemetryItemCreator",(function(){return YI})),n.d(r,"CtxTagKeys",(function(){return QI})),n.d(r,"Extensions",(function(){return ZI})),n.d(r,"DistributedTracingModes",(function(){return JT})),n.d(r,"PropertiesPluginIdentifier",(function(){return $I})),n.d(r,"BreezeChannelIdentifier",(function(){return JI})),n.d(r,"AnalyticsPluginIdentifier",(function(){return eA}));var o=!1,a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function s(e){setTimeout((function(){throw e}),0)}var l={closed:!0,next:function(e){},error:function(e){if(a.useDeprecatedSynchronousErrorHandling)throw e;s(e)},complete:function(){}},u=Array.isArray||function(e){return e&&"number"==typeof e.length};function c(e){return null!==e&&"object"==typeof e}var h,f=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),d=((h=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a4&&void 0!==arguments[4]?arguments[4]:new P(e,n,r);if(!i.closed)return t instanceof w?t.subscribe(i):F(t)(i)}var j=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(m);function U(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new H(e,t))}}var H=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new z(e,this.project,this.thisArg))}}]),e}(),z=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(m);function B(e,t){return new w((function(n){var r=new d,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function q(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new w((function(n){var r=new d;return r.add(t.schedule((function(){var i=e[y]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(M(e))return function(e,t){return new w((function(n){var r=new d;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(L(e))return B(e,t);if(function(e){return e&&"function"==typeof e[N]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w((function(n){var r,i=new d;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[N](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof w?e:new w(F(e))}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(W((function(n,r){return q(e(n,r)).pipe(U((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new G(e,n))})}var G=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new X(e,this.project,this.concurrent))}}]),e}(),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(j);function K(e){return e}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return W(K,e)}function Z(e,t){return t?B(e,t):new w(D(e))}function Q(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof w?t[0]:Y(r)(Z(t,i))}function $(){return function(e){return e.lift(new ee(e))}}var J,ee=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new te(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(m),ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed&&(this._connection=null,e=d.EMPTY)),e}},{key:"refCount",value:function(){return $()(this)}}]),n}(w).prototype)._subscribe},_isComplete:{value:J._isComplete,writable:!0},getSubject:{value:J.getSubject},connect:{value:J.connect},refCount:{value:J.refCount}},re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(I);function ie(){return new A}function oe(e){return{toString:e}.toString()}function ae(e,t,n){return oe((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:he.Default;if(void 0===Ke)throw new Error("inject() must be called from an injection context");return null===Ke?et(e,void 0,t):Ke.get(e,t&he.Optional?null:void 0,t)}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:he.Default;return(Oe||Qe)(Ie(e),t)}var Je=$e;function et(e,t,n){var r=me(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(Se(e),"]"))}function tt(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:We;if(t===We){var n=new Error("NullInjectorError: No provider for ".concat(Se(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),rt=function e(){_classCallCheck(this,e)},it=function e(){_classCallCheck(this,e)};function ot(e,t){e.forEach((function(e){return Array.isArray(e)?ot(e,t):t(e)}))}function at(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function st(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function lt(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function ct(e,t){var n=ht(e,t);if(n>=0)return e[1|n]}function ht(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var ft=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),dt=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),pt={},vt=[],mt=0;function gt(e){return oe((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===ft.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||vt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||dt.Emulated,id:"c",styles:e.styles||vt,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,s=e.pipes;return i.id+=mt++,i.inputs=Ct(e.inputs,r),i.outputs=Ct(e.outputs),a&&a.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(yt)}:null,i.pipeDefs=s?function(){return("function"==typeof s?s():s).map(_t)}:null,i}))}function yt(e){return xt(e)||function(e){return e[Fe]||null}(e)}function _t(e){return function(e){return e[Ve]||null}(e)}var bt={};function kt(e){var t={type:e.type,bootstrap:e.bootstrap||vt,declarations:e.declarations||vt,imports:e.imports||vt,exports:e.exports||vt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&oe((function(){bt[e.id]=e.type})),t}function Ct(e,t){if(null==e)return pt;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var wt=gt;function St(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function xt(e){return e[Me]||null}function Et(e,t){return e.hasOwnProperty(He)?e[He]:null}function Tt(e,t){var n=e[je]||null;if(!n&&!0===t)throw new Error("Type ".concat(Se(e)," does not have '\u0275mod' property."));return n}function It(e){return Array.isArray(e)&&"object"==typeof e[1]}function At(e){return Array.isArray(e)&&!0===e[1]}function Ot(e){return 0!=(8&e.flags)}function Rt(e){return 2==(2&e.flags)}function Pt(e){return 1==(1&e.flags)}function Dt(e){return null!==e.template}function Nt(e){return 0!=(512&e[2])}var Lt=void 0;function Mt(e){return!!e.listen}var Ft={createRenderer:function(e,t){return void 0!==Lt?Lt:"undefined"!=typeof document?document:void 0}};function Vt(e){for(;Array.isArray(e);)e=e[0];return e}function jt(e,t){return Vt(t[e+19])}function Ut(e,t){return Vt(t[e.index])}function Ht(e,t){return e.data[t+19]}function zt(e,t){return e[t+19]}function Bt(e,t){var n=t[e];return It(n)?n:n[0]}function qt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Wt(e){return 4==(4&e[2])}function Gt(e){return 128==(128&e[2])}function Xt(e,t){return null===e||null==t?null:e[t]}function Kt(e){e[18]=0}var Yt={lFrame:mn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Zt(){return Yt.bindingsEnabled}function Qt(){return Yt.lFrame.lView}function $t(){return Yt.lFrame.tView}function Jt(e){Yt.lFrame.contextLView=e}function en(){return Yt.lFrame.previousOrParentTNode}function tn(e,t){Yt.lFrame.previousOrParentTNode=e,Yt.lFrame.isParent=t}function nn(){return Yt.lFrame.isParent}function rn(){Yt.lFrame.isParent=!1}function on(){return Yt.checkNoChangesMode}function an(e){Yt.checkNoChangesMode=e}function sn(){var e=Yt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ln(){return Yt.lFrame.bindingIndex++}function un(e){var t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function cn(e,t){var n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function hn(){return Yt.lFrame.currentQueryIndex}function fn(e){Yt.lFrame.currentQueryIndex=e}function dn(e,t){var n=vn();Yt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function pn(e,t){var n=vn(),r=e[1];Yt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function vn(){var e=Yt.lFrame,t=null===e?null:e.child;return null===t?mn(e):t}function mn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function gn(){var e=Yt.lFrame;return Yt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var yn=gn;function _n(){var e=gn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bn(){return Yt.lFrame.selectedIndex}function kn(e){Yt.lFrame.selectedIndex=e}function Cn(){var e=Yt.lFrame;return Ht(e.tView,e.selectedIndex)}function wn(){Yt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Sn(){Yt.lFrame.currentNamespace=null}function xn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[a]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(a)):o.call(a)}var Rn=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Pn(e,t,n){for(var r=Mt(e),i=0;it){a=o-1;break}}}for(;o>16}function Un(e,t){for(var n=jn(e),r=t;n>0;)r=r[15],n--;return r}function Hn(e){return"string"==typeof e?e:null==e?"":""+e}function zn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Hn(e)}var Bn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Le);function qn(e){return{name:"body",target:e.ownerDocument.body}}function Wn(e){return e instanceof Function?e():e}var Gn=!0;function Xn(e){var t=Gn;return Gn=e,t}var Kn=0;function Yn(e,t){var n=Qn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Zn(r.data,e),Zn(t,null),Zn(r.blueprint,null));var i=$n(e,t),o=e.injectorIndex;if(Fn(i))for(var a=Vn(i),s=Un(i,t),l=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|l[a+u];return t[o+8]=i,o}function Zn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Qn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function $n(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Jn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[ze]:n.charCodeAt(0)||0;null==r&&(r=n[ze]=Kn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:he.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[ze];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){dn(t,e);try{var a=o();if(null!=a||r&he.Optional)return a;throw new Error("No provider for ".concat(zn(n),"!"))}finally{yn()}}else if("number"==typeof o){if(-1===o)return new sr(e,t);var s=null,l=Qn(e,t),u=-1,c=r&he.Host?t[16][6]:null;for((-1===l||r&he.SkipSelf)&&(u=-1===l?$n(e,t):t[l+8],ar(r,!1)?(s=t[1],l=Vn(u),t=Un(u,t)):l=-1);-1!==l;){u=t[l+8];var h=t[1];if(or(o,l,h.data)){var f=nr(l,t,n,s,r,c);if(f!==tr)return f}ar(r,t[1].data[l+8]===c)&&or(o,l,t)?(s=h,l=Vn(u),t=Un(u,t)):l=-1}}}if(r&he.Optional&&void 0===i&&(i=null),0==(r&(he.Self|he.Host))){var d=t[9],p=Ze(void 0);try{return d?d.get(n,i,r&he.Optional):et(n,i,r&he.Optional)}finally{Ze(p)}}if(r&he.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(zn(n),"]"))}var tr={};function nr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],l=rr(s,a,n,null==r?Rt(s)&&Gn:r!=a&&3===s.type,i&he.Host&&o===s);return null!==l?ir(t,a,l,s):tr}function rr(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=65535&o,l=e.directiveStart,u=o>>16,c=i?s+u:e.directiveEnd,h=r?s:s+u;h=l&&f.type===n)return h}if(i){var d=a[l];if(d&&Dt(d)&&d.type===n)return l}return null}function ir(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Rn){var a=i;if(a.resolving)throw new Error("Circular dep for ".concat(zn(o[n])));var s,l=Xn(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(s=Ze(a.injectImpl)),dn(e,r);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{a.injectImpl&&Ze(s),Xn(l),a.resolving=!1,yn()}}return i}function or(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r',!n.querySelector||n.querySelector("svg")?(n.innerHTML='

',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(e,[{key:"getInertBodyElement_XHR",value:function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Mr.hasOwnProperty(t)&&!Pr.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(qr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),zr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Br=/([^\#-~ |!])/g;function qr(e){return e.replace(/&/g,"&").replace(zr,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Br,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function Wr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Gr=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),Xr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Kr=/^url\(([^)]+)\)$/;function Yr(e){var t,n=(t=Qt())&&t[12];return n?n.sanitize(Gr.URL,e)||"":br(e,"URL")?_r(e):Ir(Hn(e))}function Zr(e,t){e.__ngContext__=t}function Qr(e){throw new Error("Multiple components match node with tagname ".concat(e.tagName))}function $r(){throw new Error("Cannot mix multi providers and regular providers")}function Jr(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function ei(e,t,n){for(var r=0;ro?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==Jr(f,u,0)||2&r&&u!==h){if(ri(r))return!1;a=!0}}}}else{if(!a&&!ri(r)&&!ri(l))return!1;if(a&&ri(l))continue;a=!1,r=l|1&r}}return ri(r)||a}function ri(e){return 0==(1&e)}function ii(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||ri(a)||(t+=si(o,i),i=""),r=a,o=o||!ri(r);n++}return""!==i&&(t+=si(o,i)),t}var ui={};function ci(e){var t=e[3];return At(t)?t[3]:t}function hi(e){fi($t(),Qt(),bn()+e,on())}function fi(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&En(t,i,n)}else{var o=e.preOrderHooks;null!==o&&Tn(t,o,0,n)}kn(n)}function di(e,t){return e<<17|t<<2}function pi(e){return e>>17&32767}function vi(e){return 2|e}function mi(e){return(131068&e)>>2}function gi(e,t){return-131069&e|t<<2}function yi(e){return 1|e}function _i(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r>1==-1){for(var r=9;r19&&fi(e,t,0,on()),n(r,i)}finally{kn(o)}}function Ti(e,t,n){if(Ot(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Ut,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&(e[n-1][4]=r[4]);var o=st(e,9+t);ho(r[1],r,!1,null);var a=o[5];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function vo(e,t){if(!(256&t[2])){var n=t[11];Mt(n)&&n.destroyNode&&To(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return go(e[1],e);for(;t;){var n=null;if(It(t))n=t[13];else{var r=t[9];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)It(t)&&go(t[1],t),t=mo(t,e);null===t&&(t=e),It(t)&&go(t[1],t),n=t&&t[4]}t=n}}(t)}}function mo(e,t){var n;return It(e)&&(n=e[6])&&2===n.type?lo(n,e):e[3]===t?null:e[3]}function go(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[l]():r[-l].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&Mt(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&At(t[3])){r!==t[3]&&fo(r,t);var i=t[5];null!==i&&i.detachView(e)}}}function yo(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?uo(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return Ut(t,n).parentNode;if(2&r.flags){var o=e.data,a=o[o[r.index].directiveStart].encapsulation;if(a!==dt.ShadowDom&&a!==dt.Native)return null}return Ut(r,n)}function _o(e,t,n,r){Mt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function bo(e,t,n){Mt(e)?e.appendChild(t,n):t.appendChild(n)}function ko(e,t,n,r){null!==r?_o(e,t,n,r):bo(e,t,n)}function Co(e,t){return Mt(e)?e.parentNode(t):t.parentNode}function wo(e,t){if(2===e.type){var n=lo(e,t);return null===n?null:xo(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?Ut(e,t):null}function So(e,t,n,r){var i=yo(e,r,t);if(null!=i){var o=t[11],a=wo(r.parent||t[6],t);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}vo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,ro(n=this._lView).push(r),t.firstCreatePass&&io(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){$i(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ji(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){an(!0);try{Ji(e,t,n)}finally{an(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,To(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(Vt(a)),At(a))for(var s=9;s0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(rt,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),At(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],a=new Do(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t);return function(e,t,n,r){var i=9+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Mo(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new sr(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=$n(this._hostTNode,this._hostView),t=Un(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=jn(e),a=t,s=t[6];o>1;)s=(a=a[15])[6],o--;return s}(e,this._hostView,this._hostTNode);return Fn(e)&&null!=n?new sr(n,t):new sr(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),r}(e));var o=r[n.index];if(At(o))(function(e,t){e[2]=-2})(i=o);else{var a;if(4===n.type)a=Vt(o);else if(a=r[11].createComment(""),Nt(r)){var s=r[11],l=Ut(n,r);_o(s,Co(s,l),a,function(e,t){return Mt(e)?e.nextSibling(t):t.nextSibling}(s,l))}else So(r[1],r,a,n);r[n.index]=i=Xi(o,r,a,n),Qi(r,i)}return new Do(i,n,r)}function jo(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Rt(e)){var r=Bt(e.index,t);return new No(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new No(t[16],t):null}(en(),Qt(),e)}var Uo=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Ho()},e}(),Ho=jo,zo=new Be("Set Injector scope."),Bo={},qo={},Wo=[],Go=void 0;function Xo(){return void 0===Go&&(Go=new nt),Go}function Ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Yo(e,n,t||Xo(),r)}var Yo=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&ot(n,(function(e){return i.processProvider(e,t,n)})),ot([t],(function(e){return i.processInjectorType(e,[],a)})),this.records.set(qe,$o(void 0,this));var s=this.records.get(zo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:Se(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:he.Default;this.assertNotDestroyed();var r,i=Ye(this);try{if(!(n&he.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Be)&&me(e);o=a&&this.injectableDefInScope(a)?$o(Zo(e),Bo):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&he.Self?Xo():this.parent).get(e,t=n&he.Optional&&t===We?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Se(e)),i)throw s;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=Se(t);if(Array.isArray(t))i=t.map(Se).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Se(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Ge,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Ye(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(Se(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=Ie(e)))return!1;var i=ye(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=ye(o)),null==i)return!1;if(null!=i.imports&&!s){var l;n.push(a);try{ot(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))}))}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,i=t.providers;ot(i,(function(e){return r.processProvider(e,n,i||Wo)}))},c=0;c0){var n=lt(t,"?");throw new Error("Can't resolve all parameters for ".concat(Se(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[_e]||e[Ce]||e[ke]&&e[ke]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in v10. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Qo(e,t,n){var r,i=void 0;if(ea(e)){var o=Ie(e);return Et(o)||Zo(o)}if(Jo(e))i=function(){return Ie(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(tt(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return $e(Ie(e.useExisting))};else{var a=Ie(e&&(e.useClass||e.provide));if(a||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(Se(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return Et(a)||Zo(a);i=function(){return _construct(a,_toConsumableArray(tt(e.deps)))}}return i}function $o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Jo(e){return null!==e&&"object"==typeof e&&Xe in e}function ea(e){return"function"==typeof e}var ta=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Ko(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},na=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ta(e,t,""):ta(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=We,e.NULL=new nt,e.\u0275prov=pe({token:e,providedIn:"any",factory:function(){return $e(qe)}}),e.__NG_ELEMENT_ID__=-1,e}(),ra=new Be("AnalyzeForEntryComponents"),ia=new Map,oa=new Set;function aa(e){return"string"==typeof e?e:e.text()}function sa(e,t){for(var n=e.styles,r=e.classes,i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:he.Default,n=Qt();return null==n?$e(e,t):er(en(),n,Ie(e),t)}function Ca(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,i=0;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Qt(),o=$t(),a=en();return Ma(o,i,i[11],a,e,t,n,r),Na}function La(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=en(),o=Qt(),a=oo(i,o);return Ma($t(),o,a,i,e,t,n,r),La}function Ma(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=Pt(r),u=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=ro(t),h=!0;if(3===r.type){var f=Ut(r,t),d=s?s(f):pt,p=d.target||f,v=c.length,m=s?function(e){return s(Vt(e[r.index])).target}:r.index;if(Mt(n)){var g=null;if(!s&&l&&(g=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ol?s[l]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,h=!1;else{o=Va(r,t,o,!1);var y=n.listen(d.name||p,i,o);c.push(o,y),u&&u.push(i,m,v,v+1)}}else o=Va(r,t,o,!0),p.addEventListener(i,o,a),c.push(o),u&&u.push(i,m,v,a)}var _,b=r.outputs;if(h&&null!==b&&(_=b[i])){var k=_.length;if(k)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Yt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}(e)}function Ua(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Qt(),i=$t(),o=Ci(i,r[6],e,1,null,n||null);null===o.projection&&(o.projection=t),rn(),function(e,t,n){Io(t[11],0,t,n,yo(e,n,t),wo(n.parent||t[6],t))}(i,r,o)}var Ba=[];function qa(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?pi(o):mi(o),l=!1;0!==s&&(!1===l||a);){var u=e[s+1];Wa(e[s],t)&&(l=!0,e[s+1]=r?yi(u):vi(u)),s=r?pi(u):mi(u)}l&&(e[n+1]=r?vi(o):yi(o))}function Wa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ht(e,t)>=0}var Ga={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Xa(e){return e.substring(Ga.key,Ga.keyEnd)}function Ka(e,t){var n=Ga.textEnd;return n===t?-1:(t=Ga.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ga.key=t,n),Ya(e,t,n))}function Ya(e,t,n){for(;t=0;n=Ka(t,n))ut(e,Xa(t),!0)}function Ja(e,t,n,r){var i,o,a=Qt(),s=$t(),l=un(2);(s.firstUpdatePass&&ts(s,e,l,r),t!==ui&&va(a,l,t))&&(null==n&&(i=null===(o=Yt.lFrame)?null:o.currentSanitizer)&&(n=i),is(s,s.data[bn()+19],a,a[11],e,a[l+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=Se(_r(e)))),e}(t,n),r,l))}function es(e,t){return t>=e.expandoStartIndex}function ts(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[bn()+19],a=es(e,n);ss(o,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=rs(n=ns(null,e,t,n,r),t.attrs,r),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=ns(i,e,t,n,r),null===o){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==mi(r))return e[pi(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[pi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=rs(s=ns(null,e,t,s[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=n;if(i)if(0!==l){var f=pi(e[s+1]);e[r+1]=di(f,s),0!==f&&(e[f+1]=gi(e[f+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=di(s,0),0!==s&&(e[s+1]=gi(e[s+1],r)),s=r;else e[r+1]=di(l,0),0===s?s=r:e[l+1]=gi(e[l+1],r),l=r;c&&(e[r+1]=vi(e[r+1])),qa(e,u,r,!0),qa(e,u,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&ht(o,t)>=0&&(n[r+1]=yi(n[r+1]))}(t,u,e,r,o),a=di(s,l),o?t.classBindings=a:t.styleBindings=a}(i,o,t,n,a,r)}}function ns(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=e[i],u=Array.isArray(l),c=u?l[1]:l,h=null===c,f=n[i+1];f===ui&&(f=h?Ba:void 0);var d=h?ct(f,r):c===r?f:void 0;if(u&&!as(d)&&(d=ct(l,r)),as(d)&&(s=d,a))return s;var p=e[i+1];i=a?pi(p):mi(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=ct(v,r))}return s}function as(e){return void 0!==e}function ss(e,t){return 0!=(e.flags&(t?16:32))}function ls(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Qt(),r=$t(),i=e+19,o=r.firstCreatePass?Ci(r,n[6],e,3,null,null):r.data[i],a=n[i]=function(e,t){return Mt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);So(r,n,a,o),tn(o,!1)}function us(e){return cs("",e,""),us}function cs(e,t,n){var r=Qt(),i=ya(r,e,t,n);return i!==ui&&function(e,t,n){var r=jt(t,e),i=e[11];Mt(i)?i.setValue(r,n):r.textContent=n}(r,bn(),i),cs}function hs(e,t,n){var r=Qt();return va(r,ln(),t)&&Ni($t(),Cn(),r,e,t,r[11],n,!0),hs}function fs(e,t,n){var r=Qt();if(va(r,ln(),t)){var i=$t(),o=Cn();Ni(i,o,r,e,t,oo(o,r),n,!0)}return fs}function ds(e,t){var n=qt(e)[1],r=n.data.length-1;xn(n,{directiveStart:r,directiveEnd:r+1})}function ps(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(Dt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=vs(e.inputs),o.declaredInputs=vs(e.declaredInputs),o.outputs=vs(e.outputs);var a=i.hostBindings;a&&ys(e,a);var s=i.viewQuery,l=i.contentQueries;if(s&&ms(e,s),l&&gs(e,l),de(e.inputs,i.inputs),de(e.declaredInputs,i.declaredInputs),de(e.outputs,i.outputs),Dt(i)&&i.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}o.afterContentChecked=o.afterContentChecked||i.afterContentChecked,o.afterContentInit=e.afterContentInit||i.afterContentInit,o.afterViewChecked=e.afterViewChecked||i.afterViewChecked,o.afterViewInit=e.afterViewInit||i.afterViewInit,o.doCheck=e.doCheck||i.doCheck,o.onDestroy=e.onDestroy||i.onDestroy,o.onInit=e.onInit||i.onInit}var c=i.features;if(c)for(var h=0;h=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ln(i.hostAttrs,n=Ln(n,i.hostAttrs))}}(r)}function vs(e){return e===pt?{}:e===vt?[]:e}function ms(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function gs(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ys(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var _s=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function bs(e){e.type.prototype.ngOnChanges&&(e.setInput=ks,e.onChanges=function(){var e=Cs(this),t=e&&e.current;if(t){var n=e.previous;if(n===pt)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function ks(e,t,n,r){var i=Cs(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:pt,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],l=a[s];o[s]=new _s(l&&l.currentValue,t,a===pt),e[r]=t}function Cs(e){return e.__ngSimpleChanges__||null}function ws(e,t,n,r,i){if(e=Ie(e),Array.isArray(e))for(var o=0;o>16;if(ea(e)||!e.multi){var p=new Rn(u,i,ka),v=Es(l,t,i?h:h+d,f);-1===v?(Jn(Yn(c,s),a,l),Ss(a,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=Es(l,t,h+d,f),g=Es(l,t,h,h+d),y=m>=0&&n[m],_=g>=0&&n[g];if(i&&!_||!i&&!y){Jn(Yn(c,s),a,l);var b=function(e,t,n,r,i){var o=new Rn(e,n,ka);return o.multi=[],o.index=t,o.componentProviders=0,xs(o,i,r&&!n),o}(i?Is:Ts,n.length,i,r,u);!i&&_&&(n[g].providerFactory=b),Ss(a,e,t.length),t.push(l),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(b),s.push(b)}else Ss(a,e,m>-1?m:g),xs(n[i?g:m],u,!i&&r);!i&&r&&_&&n[g].componentProviders++}}}function Ss(e,t,n){if(ea(t)||t.useClass){var r=(t.useClass||t).prototype.ngOnDestroy;r&&(e.destroyHooks||(e.destroyHooks=[])).push(n,r)}}function xs(e,t,n){e.multi.push(t),n&&e.componentProviders++}function Es(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=$t();if(r.firstCreatePass){var i=Dt(e);ws(n,r.data,r.blueprint,i,!0),ws(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}bs.ngInherit=!0;var Rs=function e(){_classCallCheck(this,e)},Ps=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Se(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Ds=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Ps,e}(),Ns=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return Ls(e)},e}(),Ls=function(e){return Mo(e,en(),Qt())},Ms=function e(){_classCallCheck(this,e)},Fs=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Vs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return js()},e}(),js=function(){var e=Qt(),t=Bt(en().index,e);return function(e){var t=e[11];if(Mt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(It(t)?t:e)},Us=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=pe({token:e,providedIn:"root",factory:function(){return null}}),e}(),Hs=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},zs=new Hs("9.0.7"),Bs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return fa(e)}},{key:"create",value:function(e){return new Ws(e)}}]),e}(),qs=function(e,t){return t},Ws=function(){function e(t){_classCallCheck(this,e),this.length=0,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=t||qs}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0&&Oo(u,h,b.join(" "))}o=Ht(m[1],0),t&&(o.projection=t.map((function(e){return Array.from(e)}))),i=function(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=en();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ji(e,r,1),Bi(e,t,n));var i=ir(t,e,t.length-1,r);Zr(i,t);var o=Ut(r,t);return o&&Zr(o,t),i}(o,n,t);r.components.push(a),e[8]=a,i&&i.forEach((function(e){return e(a,t)})),t.contentQueries&&t.contentQueries(1,a,n.length-1);var s=en();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){kn(s.index-19);var l=n[1];Mi(l,t),Fi(l,n,t.hostVars),Vi(t,a)}return a}(g,this.componentDef,m,p,[ds]),wi(v,m,null)}finally{_n()}var k=new dl(this.componentType,i,Mo(Ns,o,m),m,o);return n&&!d||(k.hostView._tViewNode.child=o),k}},{key:"inputs",get:function(){return cl(this.componentDef.inputs)}},{key:"outputs",get:function(){return cl(this.componentDef.outputs)}}]),n}(Rs),dl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a){var s,l,u,c;return _classCallCheck(this,n),(s=t.call(this)).location=i,s._rootLView=o,s._tNode=a,s.destroyCbs=[],s.instance=r,s.hostView=s.changeDetectorRef=new Lo(o),s.hostView._tViewNode=(l=o[1],u=o,null==(c=l.node)&&(l.node=c=Pi(0,null,2,-1,null,null)),u[6]=c),s.componentType=e,s}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new sr(this._tNode,this._rootLView)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),pl=void 0,vl=["en",[["a","p"],["AM","PM"],pl],[["AM","PM"],pl,pl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],pl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],pl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",pl,"{1} 'at' {0}",pl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ml={};function gl(e){return e in ml||(ml[e]=Le.ng&&Le.ng.common&&Le.ng.common.locales&&Le.ng.common.locales[e]),ml[e]}var yl=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();function _l(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined")+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var bl=new Map,kl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new ul(_assertThisInitialized(i));var o=Tt(e),a=e[Ue]||null;return a&&_l(a),i._bootstrapComponents=Wn(o.bootstrap),i._r3Injector=Ko(e,r,[{provide:rt,useValue:_assertThisInitialized(i)},{provide:Ds,useValue:i.componentFactoryResolver}],Se(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:na.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:he.Default;return e===na||e===rt||e===qe?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(rt),Cl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==Tt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Se(t)," vs ").concat(Se(t.name)))})(n,bl.get(n),t),bl.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new kl(this.moduleType,e)}}]),n}(it);function wl(e,t,n){var r=sn()+e,i=Qt();return i[r]===ui?pa(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function Sl(e,t){var n=e[t];return n===ui?void 0:n}function xl(e,t){var n,r=$t(),i=e+19;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Et(n.type)),a=Ze(ka),s=o();return Ze(a),function(e,t,n,r){var i=n+19;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,Qt(),e,s),s}function El(e,t,n){var r=Qt(),i=zt(r,e);return Al(r,Il(r,e)?function(e,t,n,r,i,o){var a=t+n;return va(e,a,i)?pa(e,a+1,o?r.call(o,i):r(i)):Sl(e,a+1)}(r,sn(),t,i.transform,n,i):i.transform(n))}function Tl(e,t,n,r,i,o){var a=Qt(),s=zt(a,e);return Al(a,Il(a,e)?function(e,t,n,r,i,o,a,s,l){var u=t+n;return function(e,t,n,r,i,o){var a=ma(e,t,n,r);return ma(e,t+2,i,o)||a}(e,u,i,o,a,s)?pa(e,u+4,l?r.call(l,i,o,a,s):r(i,o,a,s)):Sl(e,u+4)}(a,sn(),t,s.transform,n,r,i,o,s):s.transform(n,r,i,o))}function Il(e,t){return e[1].data[t+19].pure}function Al(e,t){return ha.isWrapped(t)&&(t=ha.unwrap(t),e[Yt.lFrame.bindingIndex]=ui),t}var Ol=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,o,a);return e instanceof d&&e.add(s),s}}]),n}(A);function Rl(){return this._results[ua()]()}var Pl=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new Ol,this.length=0;var t=ua(),n=e.prototype;n[t]||(n[t]=Rl)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},Ml=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)i.push(s[l/2]);else{for(var c=a[l+1],h=n[-u],f=9;f0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)($e(bu))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}(),Ou=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,Ru.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ru.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}(),Ru=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Pu=function(e,t,n){var r=new Cl(n);if(0===ia.size)return Promise.resolve(r);var i,o,a=(i=e.get(gu,[]).concat(t).map((function(e){return e.providers})),o=[],i.forEach((function(e){return e&&o.push.apply(o,_toConsumableArray(e))})),o);if(0===a.length)return Promise.resolve(r);var s=function(){var e=Le.ng;if(!e||!e.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return e.\u0275compilerFacade}(),l=na.create({providers:a}).get(s.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(l.get(e))}(e);n.set(e,t=r.then(aa))}return t}return ia.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var o=e.styleUrls,a=e.styles||(e.styles=[]),s=e.styles.length;o&&o.forEach((function(t,n){a.push(""),i.push(r(t).then((function(r){a[s+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)})))}));var l=Promise.all(i).then((function(){return function(e){oa.delete(e)}(n)}));t.push(l)})),ia=new Map,Promise.all(t).then((function(){}))}().then((function(){return r}))},Du=new Be("AllowMultipleToken"),Nu=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function Lu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new Be(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Mu();if(!o||o.injector.get(Du,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:zo,useValue:"platform"});!function(e){if(Tu&&!Tu.destroyed&&!Tu.injector.get(Du,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Tu=e.get(Fu);var t=e.get(ru,null);t&&t.forEach((function(e){return e()}))}(na.create({providers:a,name:r}))}return function(e){var t=Mu();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Mu(){return Tu&&!Tu.destroyed?Tu:null}var Fu=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Iu:("zone.js"===n?void 0:n)||new bu({enableLongStackTrace:Sr(),shouldCoalesceEventChangeDetection:r})),a=[{provide:bu,useValue:o}];return o.run((function(){var t=na.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(fr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Hu(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((a=n.injector.get(Jl)).runInitializers(),a.donePromise.then((function(){return _l(n.injector.get(su,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Pa(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(s){throw t.runOutsideAngular((function(){return e.handleError(s)})),s}var a}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Vu({},n);return Pu(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Uu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Se(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)($e(na))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}();function Vu(e,t){return Array.isArray(t)?t.reduce(Vu,e):Object.assign(Object.assign({},e),t)}var ju,Uu=((ju=function(){function e(t,n,r,i,o,a){var s=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Sr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var l=new w((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),u=new w((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){bu.assertNotInAngularZone(),_u((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){bu.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=Q(l,u.pipe((function(e){return $()((t=ie,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ne);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=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.");n=e instanceof Rs?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(rt),o=n.create(na.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Au,null);return a&&o.injector.get(Ou).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Sr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Hu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ou,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Hu(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||ju)($e(bu),$e(au),$e(na),$e(fr),$e(Ds),$e(Jl))},ju.\u0275prov=pe({token:ju,factory:ju.\u0275fac}),ju);function Hu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var zu=function e(){_classCallCheck(this,e)},Bu=function e(){_classCallCheck(this,e)},qu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Wu=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||qu}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=_slicedToArray(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("zn8P")(i).then((function(e){return e[o]})).then((function(e){return Gu(e,i,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(e){return e[i+o]})).then((function(e){return Gu(e,r,i)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)($e(mu),$e(Bu,8))},e.\u0275prov=pe({token:e,factory:e.\u0275fac}),e}();function Gu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Xu=Lu(null,"core",[{provide:iu,useValue:"unknown"},{provide:Fu,deps:[na]},{provide:Ou,deps:[]},{provide:au,deps:[]}]),Ku=[{provide:Uu,useClass:Uu,deps:[bu,au,na,fr,Ds,Jl]},{provide:hl,deps:[bu],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:Jl,useClass:Jl,deps:[[new le,$l]]},{provide:mu,useClass:mu,deps:[]},tu,{provide:Js,useFactory:function(){return nl},deps:[]},{provide:el,useFactory:function(){return rl},deps:[]},{provide:su,useFactory:function(e){return _l(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new se(su),new le,new ce]]},{provide:lu,useValue:"USD"}],Yu=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=kt({type:e}),e.\u0275inj=ve({factory:function(t){return new(t||e)($e(Uu))},providers:Ku}),e}(),Zu=null;function Qu(){return Zu}var $u,Ju=new Be("DocumentToken"),ec=(($u=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||$u)},$u.\u0275prov=pe({factory:tc,token:$u,providedIn:"platform"}),$u);function tc(){return $e(ic)}var nc,rc=new Be("Location Initialized"),ic=((nc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._init(),r}return _createClass(n,[{key:"_init",value:function(){this.location=Qu().getLocation(),this._history=Qu().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Qu().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Qu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Qu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){oc()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){oc()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(ec)).\u0275fac=function(e){return new(e||nc)($e(Ju))},nc.\u0275prov=pe({factory:ac,token:nc,providedIn:"platform"}),nc);function oc(){return!!window.history.pushState}function ac(){return new ic($e(Ju))}function sc(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function lc(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function uc(e){return e&&"?"!==e[0]?"?"+e:e}var cc,hc=((cc=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||cc)},cc.\u0275prov=pe({factory:fc,token:cc,providedIn:"root"}),cc);function fc(e){var t=$e(Ju).location;return new gc($e(ec),t&&t.origin||"")}var dc,pc,vc,mc=new Be("appBaseHref"),gc=((vc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;if(_classCallCheck(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)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 i._baseHref=r,_possibleConstructorReturn(i)}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return sc(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+uc(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+uc(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+uc(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(hc)).\u0275fac=function(e){return new(e||vc)($e(ec),$e(mc,8))},vc.\u0275prov=pe({token:vc,factory:vc.\u0275fac}),vc),yc=((pc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return _createClass(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=sc(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+uc(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+uc(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(hc)).\u0275fac=function(e){return new(e||pc)($e(ec),$e(mc,8))},pc.\u0275prov=pe({token:pc,factory:pc.\u0275fac}),pc),_c=((dc=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new Ol,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=lc(kc(i)),this._platformStrategy.onPopState((function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})}))}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+uc(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,kc(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+uc(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+uc(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||dc)($e(hc),$e(ec))},dc.normalizeQueryParams=uc,dc.joinWithSlash=sc,dc.stripTrailingSlash=lc,dc.\u0275prov=pe({factory:bc,token:dc,providedIn:"root"}),dc);function bc(){return new _c($e(hc),$e(ec))}function kc(e){return e.replace(/\/index.html$/,"")}var Cc,wc=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Sc=function e(){_classCallCheck(this,e)},xc=((Cc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=gl(t);if(n)return n;var r=t.split("-")[0];if(n=gl(r))return n;if("en"===r)return vl;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[yl.PluralCase]}(t||this.locale)(e)){case wc.Zero:return"zero";case wc.One:return"one";case wc.Two:return"two";case wc.Few:return"few";case wc.Many:return"many";default:return"other"}}}]),n}(Sc)).\u0275fac=function(e){return new(e||Cc)($e(su))},Cc.\u0275prov=pe({token:Cc,factory:Cc.\u0275fac}),Cc);function Ec(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),s=a[0],l=a[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(u){r.e(u)}finally{r.f()}return null}var Tc,Ic,Ac,Oc=((Tc=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Se(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(fa(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||Tc)(ka(Js),ka(el),ka(Ns),ka(Vs))},Tc.\u0275dir=wt({type:Tc,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Tc),Rc=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Pc=((Ic=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Rc(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new Dc(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var l=new Dc(e,s);n.push(l)}}));for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:he.Default,t=jo(!0);if(null!=t||e&he.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},zc.\u0275pipe=St({name:"async",type:zc,pure:!1}),zc),th=((Hc=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:Hc}),Hc.\u0275inj=ve({factory:function(e){return new(e||Hc)},providers:[{provide:Sc,useClass:xc}]}),Hc),nh=((Uc=function e(){_classCallCheck(this,e)}).\u0275prov=pe({token:Uc,providedIn:"root",factory:function(){return new rh($e(Ju),window,$e(fr))}}),Uc),rh=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#".concat(e));if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}(),ih=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=oh||(oh=document.querySelector("base"))?oh.getAttribute("href"):null;return null==n?null:(t=n,Bc||(Bc=document.createElement("a")),Bc.setAttribute("href",t),"/"===Bc.pathname.charAt(0)?Bc.pathname:"/"+Bc.pathname)}},{key:"resetBaseElement",value:function(){oh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Ec(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Zu||(Zu=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),oh=null,ah=new Be("TRANSITION_ID"),sh=[{provide:$l,useFactory:function(e,t,n){return function(){n.get(Jl).donePromise.then((function(){var n=Qu();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[ah,Ju,na],multi:!0}],lh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){Le.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Le.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Le.getAllAngularRootElements=function(){return e.getAllRootElements()},Le.frameworkStabilizers||(Le.frameworkStabilizers=[]),Le.frameworkStabilizers.push((function(e){var t=Le.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Qu().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Ru=t}}]),e}(),uh=new Be("EventManagerPlugins"),ch=((qc=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Rh.hasOwnProperty(t)&&(t=Rh[t]))}return Oh[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ah.forEach((function(r){r!=n&&(0,Ph[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(hh)).\u0275fac=function(e){return new(e||Ch)($e(Ju))},Ch.\u0275prov=pe({token:Ch,factory:Ch.\u0275fac}),Ch),Nh=((kh=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||kh)},kh.\u0275prov=pe({factory:function(){return $e(Lh)},token:kh,providedIn:"root"}),kh),Lh=((bh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Gr.NONE:return t;case Gr.HTML:return br(t,"HTML")?_r(t):function(e,t){var n=null;try{Rr=Rr||new xr(e);var r=t?String(t):"";n=Rr.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Rr.getInertBodyElement(r)}while(r!==o);var a=new Hr,s=a.sanitizeChildren(Wr(n)||n);return Sr()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var l=Wr(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(t));case Gr.STYLE:return br(t,"Style")?_r(t):function(e){if(!(e=String(e).trim()))return"";var t=e.match(Kr);return t&&Ir(t[1])===t[1]||e.match(Xr)&&function(e){for(var t=!0,n=!0,r=0;re?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return sf(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return sf(e.value)?null:cf.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){if(sf(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(sf(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(ff);return 0==t.length?null:function(e){return pf(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(ff);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||_f)},_f.\u0275prov=pe({token:_f,factory:_f.\u0275fac}),_f),Tf=((yf=function(){function e(t,n,r,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(of),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value: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 ')}}]),e}()).\u0275fac=function(e){return new(e||yf)(ka(Vs),ka(Ns),ka(Ef),ka(na))},yf.\u0275dir=wt({type:yf,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Na("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Os([xf])]}),yf),If={provide:Xh,useExisting:Te((function(){return Af})),multi:!0},Af=((bf=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||bf)(ka(Vs),ka(Ns))},bf.\u0275dir=wt({type:bf,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Na("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[Os([If])]}),bf),Of='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Rf='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Pf='\n
\n
\n \n
\n
',Df={provide:Xh,useExisting:Te((function(){return Nf})),multi:!0},Nf=((kf=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=ca}return _createClass(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(n))}function Bf(e){return null!=e?hf.compose(e.map(vf)):null}function qf(e){return null!=e?hf.composeAsync(e.map(mf)):null}var Wf=[Yh,Af,Sf,Nf,Mf,Tf];function Gf(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function Xf(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Kf(e){var t=Zf(e)?e.validators:e;return Array.isArray(t)?Bf(t):t||null}function Yf(e,t){var n=Zf(t)?t.asyncValidators:e;return Array.isArray(n)?qf(n):n||null}function Zf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Qf,$f,Jf,ed,td,nd,rd,id,od,ad=function(){function e(t,n){_classCallCheck(this,e),this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(e,[{key:"setValidators",value:function(e){this.validator=Kf(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Yf(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=df(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach((function(e){r=r instanceof ld?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof ud&&r.at(e)||null})),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Ol,this.statusChanges=new Ol}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Zf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),sd=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,Kf(i),Yf(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(ad),ld=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,Kf(r),Yf(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof sd?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){var t=this,n=!1;return this._forEachChild((function(r,i){n=n||t.contains(i)&&e(r)})),n}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},(function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t}))}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild((function(e,r){n=t(n,e,r)})),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(ad),ud=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,Kf(r),Yf(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof sd?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(ad),cd={provide:ef,useExisting:Te((function(){return fd}))},hd=Promise.resolve(null),fd=(($f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new Ol,i.form=new ld({},Bf(e),qf(r)),i}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;hd.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Vf(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;hd.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Xf(t._directives,e)}))}},{key:"addFormGroup",value:function(e){var t=this;hd.then((function(){var n=t._findContainer(e.path),r=new ld({});Uf(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;hd.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;hd.then((function(){n.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Gf(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(ef)).\u0275fac=function(e){return new(e||$f)(ka(lf,10),ka(uf,10))},$f.\u0275dir=wt({type:$f,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Na("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Os([cd]),ps]}),$f),dd=((Qf=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return Ff(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Bf(this._validators)}},{key:"asyncValidator",get:function(){return qf(this._asyncValidators)}}]),n}(ef)).\u0275fac=function(e){return pd(e||Qf)},Qf.\u0275dir=wt({type:Qf,features:[ps]}),Qf),pd=lr(dd),vd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"modelParentException",value: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 '.concat(Of,'\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 \n
\n \n \n
\n '))}},{key:"formGroupNameException",value: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 ".concat(Rf,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(Pf))}},{key:"missingNameException",value: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: ')}},{key:"modelGroupParentException",value: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 ".concat(Rf,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(Pf))}}]),e}(),md={provide:ef,useExisting:Te((function(){return gd}))},gd=((Jf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._parent=e,o._validators=r,o._asyncValidators=i,o}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof fd||vd.modelGroupParentException()}}]),n}(dd)).\u0275fac=function(e){return new(e||Jf)(ka(ef,5),ka(lf,10),ka(uf,10))},Jf.\u0275dir=wt({type:Jf,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Os([md]),ps]}),Jf),yd={provide:of,useExisting:Te((function(){return bd}))},_d=Promise.resolve(null),bd=((ed=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this)).control=new sd,a._registered=!1,a.update=new Ol,a._parent=e,a._rawValidators=r||[],a._rawAsyncValidators=i||[],a.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||zf(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach((function(t){var o;t.constructor===$h?n=t:(o=t,Wf.some((function(e){return o.constructor===e}))?(r&&zf(e,"More than one built-in value accessor matches form control with"),r=t):(i&&zf(e,"More than one custom value accessor matches form control with"),i=t))})),i||r||n||(zf(e,"No valid value accessor for form control with"),null)}(_assertThisInitialized(a),o),a}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!ca(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Vf(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof gd)&&this._parent instanceof dd?vd.formGroupNameException():this._parent instanceof gd||this._parent instanceof fd||vd.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||vd.missingNameException()}},{key:"_updateValue",value:function(e){var t=this;_d.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;_d.then((function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?Ff(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Bf(this._rawValidators)}},{key:"asyncValidator",get:function(){return qf(this._rawAsyncValidators)}}]),n}(of)).\u0275fac=function(e){return new(e||ed)(ka(ef,9),ka(lf,10),ka(uf,10),ka(Xh,10))},ed.\u0275dir=wt({type:ed,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Os([yd]),ps,bs]}),ed),kd=new Be("NgModelWithFormControlWarning"),Cd={provide:ef,useExisting:Te((function(){return wd}))},wd=((od=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._validators=e,i._asyncValidators=r,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new Ol,i}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Vf(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){Xf(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);Uf(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);Uf(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Gf(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange((function(){return Hf(t)})),t.valueAccessor.registerOnTouched((function(){return Hf(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&Vf(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=Bf(this._validators);this.form.validator=hf.compose([this.form.validator,e]);var t=qf(this._asyncValidators);this.form.asyncValidator=hf.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(ef)).\u0275fac=function(e){return new(e||od)(ka(lf,10),ka(uf,10))},od.\u0275dir=wt({type:od,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Na("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Os([Cd]),ps,bs]}),od),Sd=((id=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:id}),id.\u0275inj=ve({factory:function(e){return new(e||id)}}),id),xd=((rd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),r=null,i=null,o=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new ld(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(e,t,n){return new sd(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map((function(e){return r._createControl(e)}));return new ud(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]=t._createControl(e[r])})),n}},{key:"_createControl",value:function(e){return e instanceof sd||e instanceof ld||e instanceof ud?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||rd)},rd.\u0275prov=pe({token:rd,factory:rd.\u0275fac}),rd),Ed=((nd=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:nd}),nd.\u0275inj=ve({factory:function(e){return new(e||nd)},providers:[Ef],imports:[Sd]}),nd),Td=((td=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:kd,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=kt({type:td}),td.\u0275inj=ve({factory:function(e){return new(e||td)},providers:[xd,Ef],imports:[Sd]}),td);function Id(){for(var e=arguments.length,t=new Array(e),n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:Yd;return function(t){return t.lift(new Xd(e))}}var Xd=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Kd(e,this.errorFactory))}}]),e}(),Kd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(m);function Yd(){return new Od}function Zd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new Qd(e))}}var Qd=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new $d(e,this.defaultValue))}}]),e}(),$d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(m);function Jd(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?jd((function(t,n){return e(t,n,r)})):K,Bd(1),n?Zd(t):Gd((function(){return new Od})))}}function ep(e){return function(t){var n=new tp(e),r=t.lift(n);return n.caught=r}}var tp=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new np(e,this.selector,this.caught))}}]),e}(),np=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new P(this,void 0,void 0);this.add(r);var i=V(this,t,void 0,void 0,r);i!==r&&this.add(i)}}}]),n}(j);function rp(e){return function(t){return 0===e?Md():t.lift(new ip(e))}}var ip=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new zd}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new op(e,this.total))}}]),e}(),op=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(m);function ap(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?jd((function(t,n){return e(t,n,r)})):K,rp(1),n?Zd(t):Gd((function(){return new Od})))}}var sp=function(){function e(t,n,r){_classCallCheck(this,e),this.predicate=t,this.thisArg=n,this.source=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new lp(e,this.predicate,this.thisArg,this.source))}}]),e}(),lp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=r,a.thisArg=i,a.source=o,a.index=0,a.thisArg=i||_assertThisInitialized(a),a}return _createClass(n,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(m);function up(e,t){return"function"==typeof t?function(n){return n.pipe(up((function(n,r){return q(e(n,r)).pipe(U((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new cp(e))}}var cp=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new hp(e,this.project))}}]),e}(),hp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new P(this,t,n),o=this.destination;o.add(i),this.innerSubscription=V(this,e,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}}]),n}(j);function fp(){return Vd()(Id.apply(void 0,arguments))}function dp(){for(var e=arguments.length,t=new Array(e),n=0;n=2&&(n=!0),function(r){return r.lift(new vp(e,t,n))}}var vp=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new mp(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),mp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(m);function gp(e,t){return W(e,t,1)}function yp(e,t,n){return function(r){return r.lift(new bp(e,t,n))}}var _p,bp=function(){function e(t,n,r){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new kp(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),kp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e))._tapNext=_,s._tapError=_,s._tapComplete=_,s._tapError=o||_,s._tapComplete=a||_,i(r)?(s._context=_assertThisInitialized(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||_,s._tapError=r.error||_,s._tapComplete=r.complete||_),s}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(m),Cp=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new wp(e,this.callback))}}]),e}(),wp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).add(new d(r)),i}return n}(m),Sp=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},xp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Sp),Ep=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Sp),Tp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).reason=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Sp),Ip=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e,r)).error=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Sp),Ap=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Sp),Op=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Sp),Rp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Sp),Pp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Sp),Dp=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Sp),Np=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Lp=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Mp=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Fp=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Vp=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),jp=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Up=function(){function e(t,n,r){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),Hp=((_p=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||_p)},_p.\u0275cmp=gt({type:_p,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Ia(0,"router-outlet")},directives:function(){return[Wm]},encapsulation:2}),_p),zp=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return this.params.hasOwnProperty(e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Bp(e){return new zp(e)}function qp(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Wp(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length1&&void 0!==arguments[1]?arguments[1]:"",n=0;n-1})):e===t}function Jp(e){return Array.prototype.concat.apply([],e)}function ev(e){return e.length>0?e[e.length-1]:null}function tv(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function nv(e){return Da(e)?e:Pa(e)?q(Promise.resolve(e)):Id(e)}function rv(e,t,n){return n?function(e,t){return Qp(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!sv(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return $p(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!sv(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!sv(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!sv(n.segments,a)&&!!n.children.primary&&t(n.children.primary,r,s)}(t,n,n.segments)}(e.root,t.root)}var iv=function(){function e(t,n,r){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=r}return _createClass(e,[{key:"toString",value:function(){return hv.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Bp(this.queryParams)),this._queryParamMap}}]),e}(),ov=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,tv(n,(function(e,t){return e.parent=r}))}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return fv(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),av=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"toString",value:function(){return yv(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Bp(this.parameters)),this._parameterMap}}]),e}();function sv(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function lv(e,t){var n=[];return tv(e.children,(function(e,r){"primary"===r&&(n=n.concat(t(e,r)))})),tv(e.children,(function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))})),n}var uv=function e(){_classCallCheck(this,e)},cv=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new wv(e);return new iv(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r;return"".concat("/".concat(function e(t,n){if(!t.hasChildren())return fv(t);if(n){var r=t.children.primary?e(t.children.primary,!1):"",i=[];return tv(t.children,(function(t,n){"primary"!==n&&i.push("".concat(n,":").concat(e(t,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=lv(t,(function(n,r){return"primary"===r?[e(t.children.primary,!1)]:["".concat(r,":").concat(e(n,!1))]}));return"".concat(fv(t),"/(").concat(o.join("//"),")")}(e.root,!0)),(n=e.queryParams,r=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.map((function(t){return"".concat(pv(e),"=").concat(pv(t))})).join("&"):"".concat(pv(e),"=").concat(pv(t))})),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),hv=new cv;function fv(e){return e.segments.map((function(e){return yv(e)})).join("/")}function dv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pv(e){return dv(e).replace(/%3B/gi,";")}function vv(e){return dv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function mv(e){return decodeURIComponent(e)}function gv(e){return mv(e.replace(/\+/g,"%20"))}function yv(e){return"".concat(vv(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(vv(e),"=").concat(vv(t[e]))})).join("")));var t}var _v=/^[^\/()?;=#]+/;function bv(e){var t=e.match(_v);return t?t[0]:""}var kv=/^[^=?&#]+/,Cv=/^[^?&#]+/,wv=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ov([],{}):new ov([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new ov(e,t)),n}},{key:"parseSegment",value:function(){var e=bv(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new av(mv(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=bv(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=bv(this.remaining);r&&(n=r,this.capture(n))}e[mv(t)]=mv(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(kv);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(Cv);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=gv(t),o=gv(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=bv(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new ov([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Sv=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=xv(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=xv(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Ev(e,this._root);return t.length<2?[]:t[t.length-2].children.map((function(e){return e.value})).filter((function(t){return t!==e}))}},{key:"pathFromRoot",value:function(e){return Ev(e,this._root).map((function(e){return e.value}))}},{key:"root",get:function(){return this._root.value}}]),e}();function xv(e,t){if(e===t.value)return t;var n,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(n=r.n()).done;){var i=xv(e,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function Ev(e,t){if(e===t.value)return[t];var n,r=_createForOfIteratorHelper(t.children);try{for(r.s();!(n=r.n()).done;){var i=Ev(e,n.value);if(i.length)return i.unshift(t),i}}catch(o){r.e(o)}finally{r.f()}return[]}var Tv=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Iv(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var Av=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).snapshot=r,Lv(_assertThisInitialized(i),e),i}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Sv);function Ov(e,t){var n=function(e,t){var n=new Dv([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Nv("",new Tv(n,[]))}(e,t),r=new Ad([new av("",{})]),i=new Ad({}),o=new Ad({}),a=new Ad({}),s=new Ad(""),l=new Rv(r,i,a,s,o,"primary",t,n.root);return l.snapshot=n.root,new Av(new Tv(l,[]),n)}var Rv=function(){function e(t,n,r,i,o,a,s,l){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=l}return _createClass(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(U((function(e){return Bp(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(U((function(e){return Bp(e)})))),this._queryParamMap}}]),e}();function Pv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce((function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var Dv=function(){function e(t,n,r,i,o,a,s,l,u,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(e){return e.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Bp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Bp(this.queryParams)),this._queryParamMap}}]),e}(),Nv=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,r)).url=e,Lv(_assertThisInitialized(i),r),i}return _createClass(n,[{key:"toString",value:function(){return Mv(this._root)}}]),n}(Sv);function Lv(e,t){t.value._routerState=e,t.children.forEach((function(t){return Lv(e,t)}))}function Mv(e){var t=e.children.length>0?" { ".concat(e.children.map(Mv).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Fv(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qp(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Qp(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&jv(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(i&&i!==ev(r))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),zv=function e(t,n,r){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function Bv(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:"".concat(e)}function qv(e,t,n){if(e||(e=new ov([],{})),0===e.segments.length&&e.hasChildren())return Wv(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=e.segments[i],s=Bv(n[r]),l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Yv(s,l,a))return o;r+=2}else{if(!Yv(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new ov([],{primary:e}):e;return new iv(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(U((function(e){return new ov([],e)}))):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Id({});var o=[],a=[],s={};return tv(n,(function(n,i){var l,u,c=(l=i,u=n,r.expandSegmentGroup(e,t,u,l)).pipe(U((function(e){return s[i]=e})));"primary"===i?o.push(c):a.push(c)})),Id.apply(null,o.concat(a)).pipe(Vd(),Jd(),U((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,r,i,o){var a=this;return Id.apply(void 0,_toConsumableArray(n)).pipe(U((function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(ep((function(e){if(e instanceof em)return Id(null);throw e})))})),Vd(),ap((function(e){return!!e})),ep((function(e,n){if(e instanceof Od||"EmptyError"===e.name){if(a.noLeftoversInUrl(t,r,i))return Id(new ov([],{}));throw new em(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return um(r)!==o?nm(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):nm(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?rm(o):this.lineralizeSegments(n,o).pipe(W((function(n){var o=new ov(n,{});return i.expandSegment(e,o,t,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=am(t,r,i),l=s.matched,u=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!l)return nm(t);var f=this.applyRedirectCommands(u,r.redirectTo,h);return r.redirectTo.startsWith("/")?rm(f):this.lineralizeSegments(r,f).pipe(W((function(r){return a.expandSegment(e,t,n,r.concat(i.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(U((function(e){return n._loadedConfig=e,new ov(r,{})}))):Id(new ov(r,{}));var o=am(t,n,r),a=o.matched,s=o.consumedSegments,l=o.lastChild;if(!a)return nm(t);var u=r.slice(l);return this.getChildConfig(e,n,r).pipe(W((function(e){var n=e.module,r=e.routes,o=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some((function(n){return lm(e,t,n)&&"primary"!==um(n)}))}(e,n,r)?{segmentGroup:sm(new ov(t,function(e,t){var n={};n.primary=t;var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;""===o.path&&"primary"!==um(o)&&(n[um(o)]=new ov([],{}))}}catch(a){i.e(a)}finally{i.f()}return n}(r,new ov(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return lm(e,t,n)}))}(e,n,r)?{segmentGroup:sm(new ov(e.segments,function(e,t,n,r){var i,o={},a=_createForOfIteratorHelper(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;lm(e,t,s)&&!r[um(s)]&&(o[um(s)]=new ov([],{}))}}catch(l){a.e(l)}finally{a.f()}return Object.assign(Object.assign({},r),o)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,u,r),a=o.segmentGroup,l=o.slicedSegments;return 0===l.length&&a.hasChildren()?i.expandChildren(n,r,a).pipe(U((function(e){return new ov(s,e)}))):0===r.length&&0===l.length?Id(new ov(s,{})):i.expandSegment(n,a,r,l,"primary",!0).pipe(U((function(e){return new ov(s.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Id(new Gp(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Id(t._loadedConfig):function(e,t,n){var r,i=t.canLoad;return i&&0!==i.length?q(i).pipe(U((function(r){var i,o=e.get(r);if(function(e){return e&&$v(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!$v(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return nv(i)}))).pipe(Vd(),(r=function(e){return!0===e},function(e){return e.lift(new sp(r,void 0,e))})):Id(!0)}(e.injector,t,n).pipe(W((function(n){return n?r.configLoader.load(e.injector,t).pipe(U((function(e){return t._loadedConfig=e,e}))):function(e){return new w((function(t){return t.error(qp("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Id(new Gp([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Id(n);if(r.numberOfChildren>1||!r.children.primary)return im(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new iv(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return tv(e,(function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return tv(t.children,(function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)})),new ov(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map((function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)}))}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return e}}]),e}();function am(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||Wp)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function sm(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new ov(e.segments.concat(t.segments),t.children)}return e}function lm(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function um(e){return e.outlet||"primary"}var cm=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},hm=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function fm(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function dm(e,t,n){var r=Iv(e),i=e.value;tv(r,(function(e,r){dm(e,i.component?t?t.children.getContext(r):null:t,n)})),n.canDeactivateChecks.push(new hm(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var pm=Symbol("INITIAL_VALUE");function vm(){return up((function(e){return Pd.apply(void 0,_toConsumableArray(e.map((function(e){return e.pipe(rp(1),dp(pm))})))).pipe(pp((function(e,t){var n=!1;return t.reduce((function(e,r,i){if(e!==pm)return e;if(r===pm&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||Jv(r))return r}return e}),e)}),pm),jd((function(e){return e!==pm})),U((function(e){return Jv(e)?e:!0===e})),rp(1))}))}function mm(e,t){return null!==e&&t&&t(new Vp(e)),Id(!0)}function gm(e,t){return null!==e&&t&&t(new Mp(e)),Id(!0)}function ym(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Id(r.map((function(r){return Fd((function(){var i,o=fm(r,t,n);if(function(e){return e&&$v(e.canActivate)}(o))i=nv(o.canActivate(t,e));else{if(!$v(o))throw new Error("Invalid CanActivate guard");i=nv(o(t,e))}return i.pipe(ap())}))}))).pipe(vm()):Id(!0)}function _m(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)})).filter((function(e){return null!==e})).map((function(t){return Fd((function(){return Id(t.guards.map((function(i){var o,a=fm(i,t.node,n);if(function(e){return e&&$v(e.canActivateChild)}(a))o=nv(a.canActivateChild(r,e));else{if(!$v(a))throw new Error("Invalid CanActivateChild guard");o=nv(a(r,e))}return o.pipe(ap())}))).pipe(vm())}))}));return Id(i).pipe(vm())}var bm=function e(){_classCallCheck(this,e)},km=function(){function e(t,n,r,i,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){try{var e=Sm(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new Dv([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Tv(n,t),i=new Nv(this.url,r);return this.inheritParamsAndData(i._root),Id(i)}catch(o){return new w((function(e){return e.error(o)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=Pv(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach((function(e){return t.inheritParamsAndData(e)}))}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){var n,r=this,i=lv(t,(function(t,n){return r.processSegmentGroup(e,t,n)}));return n={},i.forEach((function(e){var t=n[e.value.outlet];if(t){var r=t.url.map((function(e){return e.toString()})).join("/"),i=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[e.value.outlet]=e.value})),i.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),i}},{key:"processSegment",value:function(e,t,n,r){var i,o=_createForOfIteratorHelper(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;try{return this.processSegmentAgainstRoute(a,t,n,r)}catch(s){if(!(s instanceof bm))throw s}}}catch(l){o.e(l)}finally{o.f()}if(this.noLeftoversInUrl(t,n,r))return[];throw new bm}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo)throw new bm;if((e.outlet||"primary")!==r)throw new bm;var i,o=[],a=[];if("**"===e.path){var s=n.length>0?ev(n).parameters:{};i=new Dv(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tm(e),r,e.component,e,Cm(t),wm(t)+n.length,Im(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new bm;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||Wp)(n,e,t);if(!r)throw new bm;var i={};tv(r.posParams,(function(e,t){i[t]=e.path}));var o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(t,e,n);o=l.consumedSegments,a=n.slice(l.lastChild),i=new Dv(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tm(e),r,e.component,e,Cm(t),wm(t)+o.length,Im(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),c=Sm(t,o,a,u,this.relativeLinkResolution),h=c.segmentGroup,f=c.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(u,h);return[new Tv(i,d)]}if(0===u.length&&0===f.length)return[new Tv(i,[])];var p=this.processSegment(u,h,f,"primary");return[new Tv(i,p)]}}]),e}();function Cm(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function wm(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Sm(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some((function(n){return xm(e,t,n)&&"primary"!==Em(n)}))}(e,n,r)){var o=new ov(t,function(e,t,n,r){var i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==Em(s)){var l=new ov([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,i[Em(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return i}(e,t,r,new ov(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return xm(e,t,n)}))}(e,n,r)){var a=new ov(e.segments,function(e,t,n,r,i,o){var a,s={},l=_createForOfIteratorHelper(r);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(xm(e,n,u)&&!i[Em(u)]){var c=new ov([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Em(u)]=c}}}catch(h){l.e(h)}finally{l.f()}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new ov(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function xm(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Em(e){return e.outlet||"primary"}function Tm(e){return e.data||{}}function Im(e){return e.resolve||{}}function Am(e,t,n,r){var i=fm(e,t,r);return nv(i.resolve?i.resolve(t,n):i(t,n))}function Om(e){return function(t){return t.pipe(up((function(t){var n=e(t);return n?q(n).pipe(U((function(){return t}))):q([t])})))}}var Rm=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}(),Pm=new Be("ROUTES"),Dm=function(){function e(t,n,r,i){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return _createClass(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(U((function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Gp(Jp(i.injector.get(Pm)).map(Zp),i)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?q(this.loader.load(e)):nv(e()).pipe(W((function(e){return e instanceof it?Id(e):q(t.compiler.compileModuleAsync(e))})))}}]),e}(),Nm=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Lm(e){throw e}function Mm(e,t,n){return t.parse("/")}function Fm(e,t){return Id(null)}var Vm,jm,Um,Hm,zm=((Vm=function(){function e(t,n,r,i,o,a,s,l){var u=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=Lm,this.malformedUriErrorHandler=Mm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Fm,afterPreactivation:Fm},this.urlHandlingStrategy=new Nm,this.routeReuseStrategy=new Rm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(rt),this.console=o.get(au);var c=o.get(bu);this.isNgZoneEnabled=c instanceof bu,this.resetConfig(l),this.currentUrlTree=new iv(new ov([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Dm(a,s,(function(e){return u.triggerEvent(new Np(e))}),(function(e){return u.triggerEvent(new Lp(e))})),this.routerState=Ov(this.currentUrlTree,this.rootComponentType),this.transitions=new Ad({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(jd((function(e){return 0!==e.id})),U((function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})})),up((function(e){var r,i,o,a,s=!1,l=!1;return Id(e).pipe(yp((function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}})),up((function(e){var r,i,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Id(e).pipe(up((function(e){var r=t.transitions.getValue();return n.next(new xp(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?Ld:[e]})),up((function(e){return Promise.resolve(e)})),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,function(e){return e.pipe(up((function(e){return function(e,t,n,r,i){return new om(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(U((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),yp((function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,n,r,i,o){return function(r){return r.pipe(W((function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new km(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(U((function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})})));var a})))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),yp((function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)})),yp((function(e){var r=new Ap(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)})));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,u=e.extractedUrl,c=e.source,h=e.restoredState,f=e.extras,d=new xp(l,t.serializeUrl(u),c,h);n.next(d);var p=Ov(u,t.rootComponentType).snapshot;return Id(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Ld})),Om((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})})),yp((function(e){var n=new Op(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),U((function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,o=n._root,function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Iv(n);return t.children.forEach((function(t){!function(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!sv(e.url,t.url);case"pathParamsOrQueryParamsChange":return!sv(e.url,t.url)||!Qp(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Vv(e,t)||!Qp(e.queryParams,t.queryParams);case"paramsChange":default:return!Vv(e,t)}}(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new cm(i)):(a.data=s.data,a._resolvedData=s._resolvedData),e(t,n,a.component?l?l.children:null:r,i,o),u&&o.canDeactivateChecks.push(new hm(l&&l.outlet&&l.outlet.component||null,s))}else s&&dm(n,l,o),o.canActivateChecks.push(new cm(i)),e(t,null,a.component?l?l.children:null:r,i,o)}(t,a[t.value.outlet],r,i.concat([t.value]),o),delete a[t.value.outlet]})),tv(a,(function(e,t){return dm(e,r.getContext(t),o)})),o}(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),function(e,t){return function(n){return n.pipe(W((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Id(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return q(e).pipe(W((function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?Id(o.map((function(o){var a,s=fm(o,t,i);if(function(e){return e&&$v(e.canDeactivate)}(s))a=nv(s.canDeactivate(e,t,n,r));else{if(!$v(s))throw new Error("Invalid CanDeactivate guard");a=nv(s(e,t,n,r))}return a.pipe(ap())}))).pipe(vm()):Id(!0)}(e.component,e.route,n,t,r)})),ap((function(e){return!0!==e}),!0))}(s,r,i,e).pipe(W((function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return q(t).pipe(gp((function(t){return q([gm(t.route.parent,r),mm(t.route,r),_m(e,t.path,n),ym(e,t.route,n)]).pipe(Vd(),ap((function(e){return!0!==e}),!0))})),ap((function(e){return!0!==e}),!0))}(r,a,e,t):Id(n)})),U((function(e){return Object.assign(Object.assign({},n),{guardsResult:e})})))})))}}(t.ngModule.injector,(function(e){return t.triggerEvent(e)})),yp((function(e){if(Jv(e.guardsResult)){var n=qp('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}})),yp((function(e){var n=new Rp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)})),jd((function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Tp(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0})),Om((function(e){if(e.guards.canActivateChecks.length)return Id(e).pipe(yp((function(e){var n=new Pp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})),(n=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(W((function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;return i.length?q(i).pipe(gp((function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Id({});if(1===i.length){var o=i[0];return Am(e[o],t,n,r).pipe(U((function(e){return _defineProperty({},o,e)})))}var a={};return q(i).pipe(W((function(i){return Am(e[i],t,n,r).pipe(U((function(e){return a[i]=e,e})))}))).pipe(Jd(),U((function(){return a})))}(e._resolve,e,t,r).pipe(U((function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Pv(e,n).resolve),null})))}(e.route,t,n,r)})),function(e,t){return arguments.length>=2?function(n){return b(pp(e,t),Bd(1),Zd(t))(n)}:function(t){return b(pp((function(t,n,r){return e(t,n,r+1)})),Bd(1))(t)}}((function(e,t){return e})),U((function(t){return e}))):Id(e)})))}),yp((function(e){var n=new Dp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)})));var n,r})),Om((function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,l=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!l})})),U((function(e){var n=function(e,t,n){var r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var o=function(t,n,r){return n.children.map((function(n){var i,o=_createForOfIteratorHelper(r.children);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(t.shouldReuseRoute(a.value.snapshot,n.value))return e(t,n,a)}}catch(s){o.e(s)}finally{o.f()}return e(t,n)}))}(t,n,r);return new Tv(i,o)}var a=t.retrieve(n.value);if(a){var s=a.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,o=t.preserveQueryParams,a=t.queryParamsHandling,s=t.preserveFragment;Sr()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,u=s?this.currentUrlTree.fragment:i,c=null;if(a)switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=o?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return Uv(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Hv(!0,0,e);var t=0,n=!1,r=e.reduce((function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return tv(r.outlets,(function(e,t){o[t]="string"==typeof e?e.split("/"):e})),[].concat(_toConsumableArray(e),[{outlets:o}])}if(r.segmentPath)return[].concat(_toConsumableArray(e),[r.segmentPath])}return"string"!=typeof r?[].concat(_toConsumableArray(e),[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[].concat(_toConsumableArray(e),[r])}),[]);return new Hv(n,t,r)}(n);if(o.toRoot())return Uv(t.root,new ov([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new zv(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new zv(n.snapshot._urlSegment,!0,0);var r=jv(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new zv(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?Wv(a.segmentGroup,a.index,o.commands):qv(a.segmentGroup,a.index,o.commands);return Uv(a.segmentGroup,s,t,r,i)}(l,this.currentUrlTree,e,c,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Sr()&&this.isNgZoneEnabled&&!bu.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Jv(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof xp?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ep&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe((function(t){t instanceof Up&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Up(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){wa()},Um.\u0275dir=wt({type:Um}),Um),Qm=new Be("ROUTER_CONFIGURATION"),$m=new Be("ROUTER_FORROOT_GUARD"),Jm=[_c,{provide:uv,useClass:cv},{provide:zm,useFactory:function(e,t,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new zm(null,e,t,n,r,i,o,Jp(a));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),s.errorHandler&&(c.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(c.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=Qu();c.events.subscribe((function(e){h.logGroup("Router Event: ".concat(e.constructor.name)),h.log(e.toString()),h.log(e),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(c.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(c.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(c.relativeLinkResolution=s.relativeLinkResolution),c},deps:[uv,qm,_c,na,zu,mu,Pm,Qm,[function(){return function e(){_classCallCheck(this,e)}}(),new le],[function(){return function e(){_classCallCheck(this,e)}}(),new le]]},qm,{provide:Rv,useFactory:function(e){return e.routerState.root},deps:[zm]},{provide:zu,useClass:Wu},Ym,Km,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(ep((function(){return Id(null)})))}}]),e}(),{provide:Qm,useValue:{enableTracing:!1}}];function eg(){return new Nu("Router",zm)}var tg,ng=((tg=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Jm,ag(t),{provide:$m,useFactory:og,deps:[[zm,new le,new ce]]},{provide:Qm,useValue:n||{}},{provide:hc,useFactory:ig,deps:[ec,[new se(mc),new le],Qm]},{provide:Zm,useFactory:rg,deps:[zm,nh,Qm]},{provide:Xm,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Km},{provide:Nu,multi:!0,useFactory:eg},[lg,{provide:$l,multi:!0,useFactory:ug,deps:[lg]},{provide:dg,useFactory:cg,deps:[lg]},{provide:ou,multi:!0,useExisting:dg}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[ag(t)]}}}]),e}()).\u0275mod=kt({type:tg}),tg.\u0275inj=ve({factory:function(e){return new(e||tg)($e($m,8),$e(zm,8))}}),tg);function rg(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Zm(e,t,n)}function ig(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new yc(e,t):new gc(e,t)}function og(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function ag(e){return[{provide:ra,multi:!0,useValue:e},{provide:Pm,multi:!0,useValue:e}]}var sg,lg=((sg=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new A}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(rc,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),r=e.injector.get(zm),i=e.injector.get(Qm);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return e.initNavigation?Id(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Qm),n=this.injector.get(Ym),r=this.injector.get(Zm),i=this.injector.get(zm),o=this.injector.get(Uu);e===o.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}]),e}()).\u0275fac=function(e){return new(e||sg)($e(na))},sg.\u0275prov=pe({token:sg,factory:sg.\u0275fac}),sg);function ug(e){return e.appInitializer.bind(e)}function cg(e){return e.bootstrapListener.bind(e)}var hg,fg,dg=new Be("Router Initializer"),pg=[],vg=((fg=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:fg}),fg.\u0275inj=ve({factory:function(e){return new(e||fg)},imports:[[ng.forRoot(pg)],ng]}),fg),mg=((hg=function(){function e(){_classCallCheck(this,e),this.title="jakija-bingo"}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||hg)},hg.\u0275cmp=gt({type:hg,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&Ia(0,"router-outlet")},directives:[Wm],styles:["mat-grid-tile[_ngcontent-%COMP%]{background:#add8e6}tr[_ngcontent-%COMP%]{text-align:center}"]}),hg),gg=function e(){_classCallCheck(this,e)};function yg(e,t){return{type:7,name:e,definitions:t,options:{}}}function _g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function bg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function kg(e){return{type:6,styles:e,offset:null}}function Cg(e,t,n){return{type:0,name:e,styles:t,options:n}}function wg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Sg(e){Promise.resolve(null).then(e)}var xg=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;Sg((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),Eg=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,o=0,a=this.players.length;0==a?Sg((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++r==a&&n._onFinish()})),e.onDestroy((function(){++i==a&&n._onDestroy()})),e.onStart((function(){++o==a&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function Tg(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ig(e){switch(e.length){case 0:return new xg;case 1:return e[0];default:return new Eg(e)}}function Ag(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(r.forEach((function(e){var n=e.offset,r=n==l,c=r&&u||{};Object.keys(e).forEach((function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,a),s){case"!":s=i[n];break;case"*":s=o[n];break;default:s=t.normalizeStyleValue(n,r,s,a)}c[r]=s})),r||s.push(c),u=c,l=n})),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function Og(e,t,n,r){switch(t){case"start":e.onStart((function(){return r(n&&Rg(n,"start",e))}));break;case"done":e.onDone((function(){return r(n&&Rg(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return r(n&&Rg(n,"destroy",e))}))}}function Rg(e,t,n){var r=n.totalTime,i=Pg(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function Pg(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function Dg(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function Ng(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Lg=function(e,t){return!1},Mg=function(e,t){return!1},Fg=function(e,t,n){return[]},Vg=Tg();(Vg||"undefined"!=typeof Element)&&(Lg=function(e,t){return e.contains(t)},Mg=function(){if(Vg||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Mg}(),Fg=function(e,t,n){var r=[];if(n)r.push.apply(r,_toConsumableArray(e.querySelectorAll(t)));else{var i=e.querySelector(t);i&&r.push(i)}return r});var jg=null,Ug=!1;function Hg(e){jg||(jg=("undefined"!=typeof document?document.body:null)||{},Ug=!!jg.style&&"WebkitAppearance"in jg.style);var t=!0;return jg.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in jg.style)&&Ug)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in jg.style),t}var zg=Mg,Bg=Lg,qg=Fg;function Wg(e){var t={};return Object.keys(e).forEach((function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]})),t}var Gg,Xg=((Gg=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Hg(e)}},{key:"matchesElement",value:function(e,t){return zg(e,t)}},{key:"containsElement",value:function(e,t){return Bg(e,t)}},{key:"query",value:function(e,t,n){return qg(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,r,i){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new xg(n,r)}}]),e}()).\u0275fac=function(e){return new(e||Gg)},Gg.\u0275prov=pe({token:Gg,factory:Gg.\u0275fac}),Gg),Kg=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new Xg,e}();function Yg(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Zg(parseFloat(t[1]),t[2])}function Zg(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Qg(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};r=Zg(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=Zg(parseFloat(s),a[4]));var l=a[5];l&&(o=l)}else r=e;if(!n){var u=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:r,delay:i,easing:o}}(e,t,n)}function $g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function Jg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else $g(e,n);return n}function ey(e,t,n){return n?t+":"+n+";":""}function ty(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],a=i[2],s=i[3];t.push(gy(o,s)),"<"!=a[0]||"*"==o&&"*"==s||t.push(gy(s,o))}(e,i,r)})):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:wy(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return dy(n,e,t)})),options:wy(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map((function(e){t.currentTime=r;var o=dy(n,e,t);return i=Math.max(i,t.currentTime),o}));return t.currentTime=i,{type:3,steps:o,options:wy(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Sy(Qg(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var i=Sy(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Sy((n=n||Qg(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:kg({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=kg(s)}t.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)})):n.push(e.styles);var r=!1,i=null;return n.forEach((function(e){if(Cy(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(r){if(n._driver.validateStyleProperty(r)){var a,s,l,u,c,h=t.collectedStyles[t.currentQuerySelector],f=h[r],d=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),d=!1),o=f.startTime),d&&(h[r]={startTime:o,endTime:i}),t.options&&(a=e[r],s=t.options,l=t.errors,u=s.params||{},(c=ay(a)).length&&c.forEach((function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,l=0,u=e.steps.map((function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(Cy(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(Cy(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),s=s||c<0||c>1,a=a||c0&&i0?i==f?1:h*i:o[i],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,r.styles.push(e)})),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:dy(this,iy(e.animation),t),options:wy(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:wy(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:wy(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(yy,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],a=i[1];t.currentQuerySelector=n.length?n+" "+o:o,Dg(t.collectedStyles,t.currentQuerySelector,{});var s=dy(this,iy(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:wy(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Qg(e.timings,t.errors,!0);return{type:12,animation:dy(this,iy(e.animation),t),timings:n,options:null}}}]),e}(),ky=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Cy(e){return!Array.isArray(e)&&"object"==typeof e}function wy(e){var t;return e?(e=$g(e)).params&&(e.params=(t=e.params)?$g(t):null):e={},e}function Sy(e,t,n){return{duration:e,delay:t,easing:n}}function xy(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var Ey=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Ty=new RegExp(":enter","g"),Iy=new RegExp(":leave","g");function Ay(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Oy).buildKeyframes(e,t,n,r,i,o,a,s,l,u)}var Oy=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Ey;var c=new Py(e,t,l,r,i,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),dy(this,n,c);var h=c.timelines.filter((function(e){return e.containsAnimation()}));if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map((function(e){return e.buildKeyframes()})):[xy(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?Yg(n.duration):null,o=null!=n.delay?Yg(n.delay):null;return 0!==i&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)})),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),dy(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ry);var a=Yg(o.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach((function(e){return dy(n,e,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Yg(e.options.delay):0;e.steps.forEach((function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),dy(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)})),r.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Qg(t.params?sy(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?Yg(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ry);var a=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach((function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);o&&s.delayNextStep(o),r===t.element&&(l=s.currentTimeline),dy(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;dy(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}]),e}(),Ry={},Py=function(){function e(t,n,r,i,o,a,s,l){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ry,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Dy(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=Yg(r.duration)),null!=r.delay&&(i.delay=Yg(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(e){t&&a.hasOwnProperty(e)||(a[e]=sy(o[e],a,n.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach((function(e){n[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Ry,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Ny(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,o){var a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(Ty,"."+this._enterClassName)).replace(Iy,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return i||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}},{key:"params",get:function(){return this.options.params}}]),e}(),Dy=function(){function e(t,n,r,i){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value: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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},a=function(e,t){var n,r={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){r[e]="*"})):Jg(e,!1,r)})),r}(e,this._globalTimelineStyles);Object.keys(a).forEach((function(e){var t=sy(a[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:"*"),i._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){e._currentKeyframe[n]=t[n]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,a){var s=Jg(o,!0);Object.keys(s).forEach((function(e){var r=s[e];"!"==r?t.add(e):"*"==r&&n.add(e)})),r||(s.offset=a/e.duration),i.push(s)}));var o=t.size?ly(t.values()):[],a=n.size?ly(n.values()):[];if(r){var s=i[0],l=$g(s);s.offset=0,l.offset=1,i=[s,l]}return xy(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),Ny=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a,s){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(l=t.call(this,e,r,s.delay)).element=r,l.keyframes=i,l.preStyleProps=o,l.postStyleProps=a,l._stretchStartingKeyframe=u,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,l=Jg(e[0],!1);l.offset=0,o.push(l);var u=Jg(e[0],!1);u.offset=Ly(s),o.push(u);for(var c=e.length-1,h=1;h<=c;h++){var f=Jg(e[h],!1);f.offset=Ly((n+f.offset*r)/a),o.push(f)}r=a,n=0,i="",e=o}return xy(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(Dy);function Ly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var My,Fy,Vy=function e(){_classCallCheck(this,e)},jy=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return cy(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(Uy[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+i}}]),n}(Vy),Uy=(My="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),Fy={},My.forEach((function(e){return Fy[e]=!0})),Fy);function Hy(e,t,n,r,i,o,a,s,l,u,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:f}}var zy={},By=function(){function e(t,n,r){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return _createClass(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some((function(e){return e(t,n,r,i)}))}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,a,s,l,u){var c=[],h=this.ast.options&&this.ast.options.params||zy,f=this.buildStyles(n,a&&a.params||zy,c),d=s&&s.params||zy,p=this.buildStyles(r,d,c),v=new Set,m=new Map,g=new Map,y="void"===r,_={params:Object.assign(Object.assign({},h),d)},b=u?[]:Ay(e,t,this.ast.animation,i,o,f,p,_,l,c),k=0;if(b.forEach((function(e){k=Math.max(e.duration+e.delay,k)})),c.length)return Hy(t,this._triggerName,n,r,y,f,p,[],[],m,g,k,c);b.forEach((function(e){var n=e.element,r=Dg(m,n,{});e.preStyleProps.forEach((function(e){return r[e]=!0}));var i=Dg(g,n,{});e.postStyleProps.forEach((function(e){return i[e]=!0})),n!==t&&v.add(n)}));var C=ly(v.values());return Hy(t,this._triggerName,n,r,y,f,p,b,C,m,g,k)}}]),e}(),qy=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},r=$g(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(r[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach((function(e){var o=i[e];o.length>1&&(o=sy(o,r,t)),n[e]=o}))}})),n}}]),e}(),Wy=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){r.states[e.name]=new qy(e.style,e.options&&e.options.params||{})})),Gy(this.states,"true","1"),Gy(this.states,"false","0"),n.transitions.forEach((function(e){r.transitionFactories.push(new By(t,e,r.states))})),this.fallbackTransition=new By(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find((function(i){return i.match(e,t,n,r)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function Gy(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Xy=new Ey,Ky=function(){function e(t,n,r){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],r=_y(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=Ag(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=Ay(this._driver,t,a,"ng-enter","ng-leave",{},{},i,Xy,o)).forEach((function(e){var t=Dg(s,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=r._driver.computeStyle(t,n,"*")}))}));var l=Ig(n.map((function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)})));return this._playersById[e]=l,l.onDestroy((function(){return r.destroy(e)})),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,r){var i=Pg(t,"","","");return Og(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),Yy=[],Zy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Qy={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$y=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var o=$g(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach((function(e){null==n[e]&&(n[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),Jy=new $y("void"),e_=function(){function e(t,n,r){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,s_(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=Dg(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};a.push(s);var l=Dg(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(s_(e,"ng-trigger"),s_(e,"ng-trigger-"+t),l[t]=Jy),function(){o._engine.afterFlush((function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete l[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new n_(this.id,t,e),s=this._engine.statesByElement.get(e);s||(s_(e,"ng-trigger"),s_(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],u=new $y(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[t]=u,l||(l=Jy),"void"===u.value||l.value!==u.value){var c=Dg(this._engine.playersByElement,e,[]);c.forEach((function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()}));var h=o.matchTransition(l.value,u.value,e,u.params),f=!1;if(!h){if(!i)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:l,toState:u,player:a,isFallbackTransition:f}),f||(s_(e,"ng-animate-queued"),a.onStart((function(){l_(e,"ng-animate-queued")}))),a.onDone((function(){var t=r.players.indexOf(a);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),s_(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),l_(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,r){if(r_(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return r_(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return Ig(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Zy,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;E--)this._namespaceList[E].drainQueuedTransitions(t).forEach((function(e){var t=e.player,o=e.element;if(S.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,o),d=C.get(o),v=p.get(o),m=n._buildInstruction(e,r,v,d,f);if(!m.errors||!m.errors.length)return f?(t.onStart((function(){return ry(o,m.fromStyles)})),t.onDestroy((function(){return ny(o,m.toStyles)})),void i.push(t)):e.isFallbackTransition?(t.onStart((function(){return ry(o,m.fromStyles)})),t.onDestroy((function(){return ny(o,m.toStyles)})),void i.push(t)):(m.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),r.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach((function(e){return Dg(s,e,[]).push(t)})),m.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var r=l.get(t);r||l.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}})),void m.postStyleProps.forEach((function(e,t){var n=Object.keys(e),r=u.get(t);r||u.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))})));x.push(m)}));if(x.length){var T=[];x.forEach((function(e){T.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return T.push("- ".concat(e,"\n"))}))})),S.forEach((function(e){return e.destroy()})),this.reportError(T)}var I=new Map,A=new Map;a.forEach((function(e){var t=e.element;r.has(t)&&(A.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,I))})),i.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){Dg(I,t,[]).push(e),e.destroy()}))}));var O=m.filter((function(e){return c_(e,l,u)})),R=new Map;o_(R,this.driver,y,u,"*").forEach((function(e){c_(e,l,u)&&O.push(e)}));var P=new Map;d.forEach((function(e,t){o_(P,n.driver,new Set(e),l,"!")})),O.forEach((function(e){var t=R.get(e),n=P.get(e);R.set(e,Object.assign(Object.assign({},t),n))}));var D=[],N=[],L={};a.forEach((function(e){var t=e.element,a=e.player,s=e.instruction;if(r.has(t)){if(c.has(t))return a.onDestroy((function(){return ny(t,s.toStyles)})),a.disabled=!0,a.overrideTotalTime(s.totalTime),void i.push(a);var l=L;if(A.size>1){for(var u=t,h=[];u=u.parentNode;){var f=A.get(u);if(f){l=f;break}h.push(u)}h.forEach((function(e){return A.set(e,l)}))}var d=n._buildAnimation(a.namespaceId,s,I,o,P,R);if(a.setRealPlayer(d),l===L)D.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=Ig(p)),i.push(a)}}else ry(t,s.fromStyles),a.onDestroy((function(){return ny(t,s.toStyles)})),N.push(a),c.has(t)&&i.push(a)})),N.forEach((function(e){var t=o.get(e.element);if(t&&t.length){var n=Ig(t);e.setRealPlayer(n)}})),i.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var M=0;M0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new xg(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),n_=function(){function e(t,n,r){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new xg,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return Og(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart((function(){return n.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){Dg(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function r_(e){return e&&1===e.nodeType}function i_(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function o_(e,t,n,r,i){var o=[];n.forEach((function(e){return o.push(i_(e))}));var a=[];r.forEach((function(n,r){var o={};n.forEach((function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Qy,a.push(r))})),e.set(r,o)}));var s=0;return n.forEach((function(e){return i_(e,o[s++])})),a}function a_(e,t){var n=new Map;if(e.forEach((function(e){return n.set(e,[])})),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var a=t.parentNode;return o=n.has(a)?a:r.has(a)?1:e(a),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)})),n}function s_(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function l_(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function u_(e,t,n){Ig(n).onDone((function(){return e.processLeaveNode(t)}))}function c_(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach((function(e){return i.add(e)})):t.set(e,r),n.delete(e),!0}var h_=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new t_(t,n,r),this._timelineEngine=new Ky(t,n,r),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,n,r,i){var o=e+"-"+r,a=this._triggerCache[o];if(!a){var s=[],l=_y(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t){return new Wy(e,t)}(r,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}},{key:"onRemove",value:function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var i=_slicedToArray(Ng(n),2),o=i[0],a=i[1];this._timelineEngine.command(o,t,a,r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,i){if("@"==n.charAt(0)){var o=_slicedToArray(Ng(n),2),a=o[0],s=o[1];return this._timelineEngine.listen(a,t,s,i)}return this._transitionEngine.listen(e,t,n,r,i)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function f_(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=p_(t[0]),t.length>1&&(r=p_(t[t.length-1]))):t&&(n=p_(t)),n||r?new d_(e,n,r):null}var d_=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ny(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ny(this._element,this._initialStyles),this._endStyles&&(ny(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ry(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ry(this._element,this._endStyles),this._endStyles=null),ny(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function p_(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),b_(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=C_(e,"").split(","),(r=__(n,t))>=0&&(n.splice(r,1),k_(e,"",n.join(","))))}}]),e}();function g_(e,t,n){k_(e,"PlayState",n,y_(e,t))}function y_(e,t){var n=C_(e,"");return n.indexOf(",")>0?__(n.split(","),t):__([n],t)}function __(e,t){for(var n=0;n=0)return n;return-1}function b_(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function k_(e,t,n,r){var i="animation"+t;if(null!=r){var o=e.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}e.style[i]=n}function C_(e,t){return e.style["animation"+t]}var w_=function(){function e(t,n,r,i,o,a,s,l){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new m_(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:py(e.element,r))}))}this.currentSnapshot=t}}]),e}(),S_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=Wg(r),i}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(xg),x_=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Hg(e)}},{key:"matchesElement",value:function(e,t){return zg(e,t)}},{key:"containsElement",value:function(e,t){return Bg(e,t)}},{key:"query",value:function(e,t,n){return qg(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map((function(e){return Wg(e)}));var r="@keyframes ".concat(t," {\n"),i="";n.forEach((function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}})),r+="".concat(i,"}\n")})),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter((function(e){return e instanceof w_})),l={};hy(n,r)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])}))})),t}(t=fy(e,t,l));if(0==n)return new S_(e,u);var c="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=f_(e,t),d=new w_(e,t,c,n,r,i,u,f);return d.onDestroy((function(){var e;(e=h).parentNode.removeChild(e)})),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),E_=function(){function e(t,n,r,i){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:py(e.element,n))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),T_=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(I_().toString()),this._cssKeyframesDriver=new x_}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Hg(e)}},{key:"matchesElement",value:function(e,t){return zg(e,t)}},{key:"containsElement",value:function(e,t){return Bg(e,t)}},{key:"query",value:function(e,t,n){return qg(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var l={},u=o.filter((function(e){return e instanceof E_}));hy(n,r)&&u.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var c=f_(e,t=fy(e,t=t.map((function(e){return Jg(e,!1)})),l));return new E_(e,t,s,c)}}]),e}();function I_(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var A_,O_=((A_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:dt.None,styles:[],data:{animation:[]}}),i}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?bg(e):e;return D_(this._renderer,null,t,"register",[n]),new R_(t,this._renderer)}}]),n}(gg)).\u0275fac=function(e){return new(e||A_)($e(Ms),$e(Ju))},A_.\u0275prov=pe({token:A_,factory:A_.\u0275fac}),A_),R_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return _createClass(n,[{key:"create",value:function(e,t){return new P_(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),P_=function(){function e(t,n,r,i){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(d)),G_=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),X_=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G_.now;return _classCallCheck(this,n),(r=t.call(this,e,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():i()}))).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(G_))(W_);function K_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X_;return function(n){return n.lift(new Z_(e,t))}}var Y_,Z_=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Q_(e,this.dueTime,this.scheduler))}}]),e}(),Q_=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule($_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(m);function $_(e){e.debouncedNext()}function J_(e){return null!=e&&"false"!=="".concat(e)}function eb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function tb(e){return Array.isArray(e)?e:[e]}function nb(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function rb(e){return e instanceof Ns?e.nativeElement:e}try{Y_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(uP){Y_=!1}var ib,ob,ab,sb,lb,ub=((ab=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Y_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}).\u0275fac=function(e){return new(e||ab)($e(iu,8))},ab.\u0275prov=pe({factory:function(){return new ab($e(iu,8))},token:ab,providedIn:"root"}),ab),cb=((ob=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:ob}),ob.\u0275inj=ve({factory:function(e){return new(e||ob)}}),ob),hb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fb(){if(ib)return ib;if("object"!=typeof document||!document)return ib=new Set(hb);var e=document.createElement("input");return ib=new Set(hb.filter((function(t){return e.setAttribute("type",t),e.type===t})))}function db(e){return function(){if(null==sb&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return sb=!0}}))}finally{sb=sb||!1}return sb}()?e:!!e.capture}var pb,vb,mb,gb,yb=((gb=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||gb)},gb.\u0275prov=pe({factory:function(){return new gb},token:gb,providedIn:"root"}),gb),_b=((mb=function(){function e(t){_classCallCheck(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach((function(t,n){return e._cleanupObserver(n)}))}},{key:"observe",value:function(e){var t=this,n=rb(e);return new w((function(e){var r=t._observeElement(n).subscribe(e);return function(){r.unsubscribe(),t._unobserveElement(n)}}))}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new A,n=this._mutationObserverFactory.create((function(e){return t.next(e)}));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,r=t.stream;n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||mb)($e(yb))},mb.\u0275prov=pe({factory:function(){return new mb($e(yb))},token:mb,providedIn:"root"}),mb),bb=((vb=function(){function e(t,n,r){_classCallCheck(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=r,this.event=new Ol,this._disabled=!1,this._currentSubscription=null}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){e._currentSubscription=(e.debounce?t.pipe(K_(e.debounce)):t).subscribe(e.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=J_(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=eb(e),this._subscribe()}}]),e}()).\u0275fac=function(e){return new(e||vb)(ka(_b),ka(Ns),ka(bu))},vb.\u0275dir=wt({type:vb,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),vb),kb=((pb=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:pb}),pb.\u0275inj=ve({factory:function(e){return new(e||pb)},providers:[yb]}),pb);function Cb(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var wb,Sb,xb=0,Eb=new Map,Tb=null,Ib=((wb=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t){this._canBeDescribed(e,t)&&("string"!=typeof t?(this._setMessageId(t),Eb.set(t,{messageElement:t,referenceCount:0})):Eb.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))}},{key:"removeDescription",value:function(e,t){if(this._isElementNode(e)){if(this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t),"string"==typeof t){var n=Eb.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t)}Tb&&0===Tb.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}}))}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(e){return"function"!=typeof e.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(yp((function(t){return e._pressedLetters.push(t)})),K_(t),jd((function(){return e._pressedLetters.length>0})),U((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),r=1;r-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((r||q_(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),r=t[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var r=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Pl?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),e}()),Ob=((Sb=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(uP){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){var r=n&&n.nodeName.toLowerCase();if(-1===Pb(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===r)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),o=Pb(e);if(e.hasAttribute("contenteditable"))return-1!==o;if("iframe"===i)return!1;if("audio"===i){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}},{key:"isFocusable",value:function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Rb(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}]),e}()).\u0275fac=function(e){return new(e||Sb)($e(ub))},Sb.\u0275prov=pe({factory:function(){return new Sb($e(ub))},token:Sb,providedIn:"root"}),Sb);function Rb(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function Pb(e){if(!Rb(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Db,Nb=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(e,[{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),n=0;n=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(rp(1)).subscribe(e)}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}}]),e}(),Lb=((Db=function(){function e(t,n,r){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=r}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Nb(e,this._checker,this._ngZone,this._document,t)}}]),e}()).\u0275fac=function(e){return new(e||Db)($e(Ob),$e(bu),$e(Ju))},Db.\u0275prov=pe({factory:function(){return new Db($e(Ob),$e(bu),$e(Ju))},token:Db,providedIn:"root"}),Db);"undefined"!=typeof Element&∈var Mb,Fb,Vb,jb,Ub,Hb,zb=new Be("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Bb=new Be("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),qb=((Mb=function(){function e(t,n,r,i){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=i,this._document=r,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,r,i=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Id(null);var r=rb(e);if(this._elementInfo.has(r)){var i=this._elementInfo.get(r);return i.checkChildren=n,i.subject.asObservable()}var o={unlisten:function(){},checkChildren:n,subject:new A};this._elementInfo.set(r,o),this._incrementMonitoredElementCount();var a=function(e){return t._onFocus(e,r)},s=function(e){return t._onBlur(e,r)};return this._ngZone.runOutsideAngular((function(){r.addEventListener("focus",a,!0),r.addEventListener("blur",s,!0)})),o.unlisten=function(){r.removeEventListener("focus",a,!0),r.removeEventListener("blur",s,!0)},o.subject.asObservable()}},{key:"stopMonitoring",value:function(e){var t=rb(e),n=this._elementInfo.get(t);n&&(n.unlisten(),n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())}},{key:"focusVia",value:function(e,t,n){var r=rb(e);this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n)}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach((function(t,n){return e.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_setClasses",value:function(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(e){var t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===e.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run((function(){return e.next(t)}))}},{key:"_incrementMonitoredElementCount",value:function(){var e=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,Gb),t.addEventListener("mousedown",e._documentMousedownListener,Gb),t.addEventListener("touchstart",e._documentTouchstartListener,Gb),n.addEventListener("focus",e._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){if(!--this._monitoredElementCount){var e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,Gb),e.removeEventListener("mousedown",this._documentMousedownListener,Gb),e.removeEventListener("touchstart",this._documentTouchstartListener,Gb),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),e}()).\u0275fac=function(e){return new(e||jb)($e(bu),$e(ub),$e(Ju,8),$e(Wb,8))},jb.\u0275prov=pe({factory:function(){return new jb($e(bu),$e(ub),$e(Ju,8),$e(Wb,8))},token:jb,providedIn:"root"}),jb),Kb=((Vb=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=(this._document.defaultView.getComputedStyle(e).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),t){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||Vb)($e(ub),$e(Ju))},Vb.\u0275prov=pe({factory:function(){return new Vb($e(ub),$e(Ju))},token:Vb,providedIn:"root"}),Vb),Yb=((Fb=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()}).\u0275mod=kt({type:Fb}),Fb.\u0275inj=ve({factory:function(e){return new(e||Fb)($e(Kb))},imports:[[cb,kb]]}),Fb),Zb=new Be("cdk-dir-doc",{providedIn:"root",factory:function(){return Je(Ju)}}),Qb=((Hb=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new Ol,t){var n=t.documentElement?t.documentElement.dir:null,r=(t.body?t.body.dir:null)||n;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||Hb)($e(Zb,8))},Hb.\u0275prov=pe({factory:function(){return new Hb($e(Zb,8))},token:Hb,providedIn:"root"}),Hb),$b=((Ub=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:Ub}),Ub.\u0275inj=ve({factory:function(e){return new(e||Ub)}}),Ub),Jb=new Hs("9.2.0"),ek=["*",[["mat-option"],["ng-container"]]],tk=["*","mat-option, ng-container"];function nk(e,t){if(1&e&&Ia(0,"mat-pseudo-checkbox",3),2&e){var n=ja();Sa("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var rk,ik=["*"],ok=new Hs("9.2.0"),ak=new Be("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),sk=((rk=function(){function e(t,n,r){_classCallCheck(this,e),this._hasDoneGlobalChecks=!1,this._document=r,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_getDocument",value:function(){var e=this._document||document;return"object"==typeof e&&e?e:null}},{key:"_getWindow",value:function(){var e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Sr()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){var e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(!e&&t&&t.body&&"function"==typeof getComputedStyle){var n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);var r=getComputedStyle(n);r&&"none"!==r.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),t.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&ok.full!==Jb.full&&console.warn("The Angular Material version ("+ok.full+") does not match the Angular CDK version ("+Jb.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275mod=kt({type:rk}),rk.\u0275inj=ve({factory:function(e){return new(e||rk)($e(Kb),$e(ak,8),$e(Ju,8))},imports:[[$b],$b]}),rk);function lk(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return(function(e){_inherits(r,e);var n=_createSuper(r);function r(){var e;_classCallCheck(this,r);for(var i=arguments.length,o=new Array(i),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Sk),r.animation);r.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);var a=r.radius||function(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),i=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+i*i)}(e,t,i),s=e-i.left,l=t-i.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-a,"px"),c.style.top="".concat(l-a,"px"),c.style.height="".concat(2*a,"px"),c.style.width="".concat(2*a,"px"),null!=r.color&&(c.style.backgroundColor=r.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new wk(this,c,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var e=h===n._mostRecentTransientRipple;h.state=1,r.persistent||e&&n._isPointerDown||h.fadeOut()}),u),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,r=Object.assign(Object.assign({},Sk),e.config.animation);n.style.transitionDuration="".concat(r.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone((function(){e.state=3,n.parentNode.removeChild(n)}),r.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(e){return e.fadeOut()}))}},{key:"setupTriggerEvents",value:function(e){var t=this,n=rb(e);n&&n!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){t._triggerEvents.forEach((function(e,t){n.addEventListener(t,e,xk)}))})),this._triggerElement=n)}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(e,t)}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&this._triggerEvents.forEach((function(t,n){e._triggerElement.removeEventListener(n,t,xk)}))}}]),e}(),Tk=new Be("mat-ripple-global-options"),Ik=((yk=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Ek(this,n,t,r),"NoopAnimations"===o&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return _createClass(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),e}()).\u0275fac=function(e){return new(e||yk)(ka(Ns),ka(bu),ka(ub),ka(Tk,8),ka(H_,8))},yk.\u0275dir=wt({type:yk,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Qa("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),yk),Ak=((gk=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:gk}),gk.\u0275inj=ve({factory:function(e){return new(e||gk)},imports:[[sk,cb],sk]}),gk),Ok=((mk=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1}).\u0275fac=function(e){return new(e||mk)(ka(H_,8))},mk.\u0275cmp=gt({type:mk,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Qa("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),mk),Rk=((vk=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:vk}),vk.\u0275inj=ve({factory:function(e){return new(e||vk)}}),vk),Pk=lk((function e(){_classCallCheck(this,e)})),Dk=0,Nk=((_k=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._labelId="mat-optgroup-label-".concat(Dk++),e}return n}(Pk)).\u0275fac=function(e){return Lk(e||_k)},_k.\u0275cmp=gt({type:_k,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(e,t){2&e&&(ga("aria-disabled",t.disabled.toString())("aria-labelledby",t._labelId),Qa("mat-optgroup-disabled",t.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[ps],ngContentSelectors:tk,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(e,t){1&e&&(Ha(ek),Ea(0,"label",0),ls(1),za(2),Ta(),za(3,1)),2&e&&(Sa("id",t._labelId),hi(1),cs("",t.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),_k),Lk=lr(Nk),Mk=0,Fk=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},Vk=new Be("MAT_OPTION_PARENT_COMPONENT"),jk=((bk=function(){function e(t,n,r,i){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Mk++),this.onSelectionChange=new Ol,this._stateChanges=new A}return _createClass(e,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||q_(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Fk(this,e))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=J_(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),e}()).\u0275fac=function(e){return new(e||bk)(ka(Ns),ka(Uo),ka(Vk,8),ka(Nk,8))},bk.\u0275cmp=gt({type:bk,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&Na("click",(function(){return t._selectViaInteraction()}))("keydown",(function(e){return t._handleKeydown(e)})),2&e&&(hs("id",t.id),ga("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Qa("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:ik,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(e,t){1&e&&(Ha(),_a(0,nk,1,2,"mat-pseudo-checkbox",0),Ea(1,"span",1),za(2),Ta(),Ia(3,"div",2)),2&e&&(Sa("ngIf",t.multiple),hi(3),Sa("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Nc,Ik,Ok],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),bk);function Uk(e,t,n){if(n.length){for(var r=t.toArray(),i=n.toArray(),o=0,a=0;a*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),zk),Kk=function(){function e(){_classCallCheck(this,e),this.columnIndex=0,this.rowIndex=0}return _createClass(e,[{key:"update",value:function(e,t){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(e),this.tracker.fill(0,0,this.tracker.length),this.positions=t.map((function(e){return n._trackTile(e)}))}},{key:"_trackTile",value:function(e){var t=this._findMatchingGap(e.colspan);return this._markTilePosition(t,e),this.columnIndex=t+e.colspan,new Yk(this.rowIndex,t)}},{key:"_findMatchingGap",value:function(e){if(e>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(e," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var t=-1,n=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t)):-1!=(t=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(t),this.columnIndex=t+1):(this._nextRow(),t=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(t))}while(n-t1?this.rowCount+e-1:this.rowCount}}]),e}(),Yk=function e(t,n){_classCallCheck(this,e),this.row=t,this.col=n},Zk=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Qk=function(){function e(){_classCallCheck(this,e),this._rows=0,this._rowspan=0}return _createClass(e,[{key:"init",value:function(e,t,n,r){this._gutterSize=nC(e),this._rows=t.rowCount,this._rowspan=t.rowspan,this._cols=n,this._direction=r}},{key:"getBaseTileSize",value:function(e,t){return"(".concat(e,"% - (").concat(this._gutterSize," * ").concat(t,"))")}},{key:"getTilePosition",value:function(e,t){return 0===t?"0":tC("(".concat(e," + ").concat(this._gutterSize,") * ").concat(t))}},{key:"getTileSize",value:function(e,t){return"(".concat(e," * ").concat(t,") + (").concat(t-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(e,t,n){var r=100/this._cols,i=(this._cols-1)/this._cols;this.setColStyles(e,n,r,i),this.setRowStyles(e,t,r,i)}},{key:"setColStyles",value:function(e,t,n,r){var i=this.getBaseTileSize(n,r);e._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(i,t)),e._setStyle("width",tC(this.getTileSize(i,e.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(e){return"".concat(this._rowspan," * ").concat(this.getTileSize(e,1))}},{key:"getComputedHeight",value:function(){return null}}]),e}(),$k=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).fixedRowHeight=e,r}return _createClass(n,[{key:"init",value:function(e,t,r,i){if(_get(_getPrototypeOf(n.prototype),"init",this).call(this,e,t,r,i),this.fixedRowHeight=nC(this.fixedRowHeight),!Zk.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(e,t){e._setStyle("top",this.getTilePosition(this.fixedRowHeight,t)),e._setStyle("height",tC(this.getTileSize(this.fixedRowHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",tC("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["height",null]),e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),n}(Qk),Jk=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._parseRatio(e),r}return _createClass(n,[{key:"setRowStyles",value:function(e,t,n,r){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,r),e._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,t)),e._setStyle("paddingTop",tC(this.getTileSize(this.baseTileHeight,e.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",tC("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(e){e._setListStyle(["paddingBottom",null]),e._tiles.forEach((function(e){e._setStyle("marginTop",null),e._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(e){var t=e.split(":");if(2!==t.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(e,'"'));this.rowHeightRatio=parseFloat(t[0])/parseFloat(t[1])}}]),n}(Qk),eC=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setRowStyles",value:function(e,t){var n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);e._setStyle("top",this.getTilePosition(n,t)),e._setStyle("height",tC(this.getTileSize(n,e.rowspan)))}},{key:"reset",value:function(e){e._tiles&&e._tiles.forEach((function(e){e._setStyle("top",null),e._setStyle("height",null)}))}}]),n}(Qk);function tC(e){return"calc(".concat(e,")")}function nC(e){return e.match(/([A-Za-z%]+)$/)?e:"".concat(e,"px")}var rC,iC,oC,aC,sC,lC,uC,cC=((iC=function(){function e(t,n){_classCallCheck(this,e),this._element=t,this._dir=n,this._gutter="1px"}return _createClass(e,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(e){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===e?new eC:e&&e.indexOf(":")>-1?new Jk(e):new $k(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new Kk);var t=this._tileCoordinator,n=this._tiles.filter((function(t){return!t._gridList||t._gridList===e})),r=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,t,this.cols,r),n.forEach((function(n,r){var i=t.positions[r];e._tileStyler.setStyle(n,i.row,i.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}},{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round(eb(e)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(e){this._gutter="".concat(null==e?"":e)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){var t="".concat(null==e?"":e);t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}}]),e}()).\u0275fac=function(e){return new(e||iC)(ka(Ns),ka(Qb,8))},iC.\u0275cmp=gt({type:iC,selectors:[["mat-grid-list"]],contentQueries:function(e,t,n){var r;1&e&&Wl(n,Xk,!0),2&e&&Hl(r=Kl())&&(t._tiles=r)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,t){2&e&&ga("cols",t.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Os([{provide:Gk,useExisting:iC}])],ngContentSelectors:Wk,decls:2,vars:0,template:function(e,t){1&e&&(Ha(),Ea(0,"div"),za(1),Ta())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),iC),hC=((rC=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:rC}),rC.\u0275inj=ve({factory:function(e){return new(e||rC)},imports:[[Ck,sk],Ck,sk]}),rC),fC=["input"],dC=function(){return{enterDuration:150}},pC=["*"],vC=new Be("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),mC=new Be("mat-checkbox-click-action"),gC=0,yC={provide:Xh,useExisting:Te((function(){return kC})),multi:!0},_C=function e(){_classCallCheck(this,e)},bC=hk(uk(ck(lk((function e(t){_classCallCheck(this,e),this._elementRef=t}))))),kC=((sC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a,s,l,u){var c;return _classCallCheck(this,n),(c=t.call(this,e))._changeDetectorRef=r,c._focusMonitor=i,c._ngZone=o,c._clickAction=s,c._animationMode=l,c._options=u,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-".concat(++gC),c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new Ol,c.indeterminateChange=new Ol,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||{},c._options.color&&(c.color=c._options.color),c.tabIndex=parseInt(a)||0,c._focusMonitor.monitor(e,!0).subscribe((function(e){e||Promise.resolve().then((function(){c._onTouched(),r.markForCheck()}))})),c._clickAction=c._clickAction||c._options.clickAction,c}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var r=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(r)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var e=new _C;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t=this;e.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){t._indeterminate=!1,t.indeterminateChange.emit(t._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,e,t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=J_(e)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=J_(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=J_(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(bC)).\u0275fac=function(e){return new(e||sC)(ka(Ns),ka(Uo),ka(Xb),ka(bu),Ca("tabindex"),ka(mC,8),ka(H_,8),ka(vC,8))},sC.\u0275cmp=gt({type:sC,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;1&e&&(Bl(fC,!0),Bl(Ik,!0)),2&e&&(Hl(n=Kl())&&(t._inputElement=n.first),Hl(n=Kl())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(hs("id",t.id),ga("tabindex",null),Qa("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Os([yC]),ps],ngContentSelectors:pC,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(Ha(),Ea(0,"label",0,1),Ea(2,"div",2),Ea(3,"input",3,4),Na("change",(function(e){return t._onInteractionEvent(e)}))("click",(function(e){return t._onInputClick(e)})),Ta(),Ea(5,"div",5),Ia(6,"div",6),Ta(),Ia(7,"div",7),Ea(8,"div",8),wn(),Ea(9,"svg",9),Ia(10,"path",10),Ta(),Sn(),Ia(11,"div",11),Ta(),Ta(),Ea(12,"span",12,13),Na("cdkObserveContent",(function(){return t._onLabelTextChange()})),Ea(14,"span",14),ls(15,"\xa0"),Ta(),za(16),Ta(),Ta()),2&e){var n=ba(1),r=ba(13);ga("for",t.inputId),hi(2),Qa("mat-checkbox-inner-container-no-side-margin",!r.textContent||!r.textContent.trim()),hi(1),Sa("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),ga("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked()),hi(2),Sa("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",wl(18,dC))}},directives:[Ik,bb],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),sC),CC=((aC=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:aC}),aC.\u0275inj=ve({factory:function(e){return new(e||aC)}}),aC),wC=((oC=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:oC}),oC.\u0275inj=ve({factory:function(e){return new(e||oC)},imports:[[Ak,sk,kb,CC],sk,CC]}),oC),SC=["mat-button",""],xC=["*"],EC=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],TC=uk(lk(ck((function e(t){_classCallCheck(this,e),this._elementRef=t})))),IC=((uC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;_classCallCheck(this,n),(o=t.call(this,e))._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(EC);try{for(s.s();!(a=s.n()).done;){var l=a.value;o._hasHostAttributes(l)&&o._getHostElement().classList.add(l)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o._focusMonitor.monitor(o._elementRef,!0),o.isRoundButton&&(o.color="accent"),o}return _createClass(n,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),uC),AC=((lC=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:lC}),lC.\u0275inj=ve({factory:function(e){return new(e||lC)},imports:[[Ak,sk],sk]}),lC);function OC(e,t,n,r){return i(n)&&(r=n,n=void 0),r?OC(e,t,n).pipe(U((function(e){return u(e)?r.apply(void 0,_toConsumableArray(e)):r(e)}))):new w((function(r){!function e(t,n,r,i,o){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var l=t;t.on(n,r),a=function(){return l.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var u=t;t.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,h=t.length;c1?Array.prototype.slice.call(arguments):e)}),r,n)}))}var RC=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new PC(e,this.compare,this.keySelector))}}]),e}(),PC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}]),n}(m),DC=function(){function e(t){_classCallCheck(this,e),this.durationSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new NC(e,this.durationSelector))}}]),e}(),NC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).durationSelector=r,i.hasValue=!1,i}return _createClass(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(r){return this.destination.error(r)}var n=V(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(e,t,n,r){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(j);function LC(e){return!u(e)&&e-parseFloat(e)+1>=0}function MC(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function FC(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:X_;return t=function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return LC(t)?r=Number(t)<1?1:Number(t):R(t)&&(n=t),R(n)||(n=X_),new w((function(t){var i=LC(e)?e:+e-n.now();return n.schedule(MC,i,{index:0,period:r,subscriber:t})}))}(e,n)},function(e){return e.lift(new DC(t))}}function VC(e){return function(t){return t.lift(new zC(e))}}var jC,UC,HC,zC=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new BC(e),r=V(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}]),e}(),BC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).seenValue=!1,r}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(j),qC=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new A,r&&r.length&&(n?r.forEach((function(e){return t._markSelected(e)})):this._markSelected(r[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),e}(),WC=((HC=function(){function e(t,n,r){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new w((function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(FC(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Id()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,n){return e.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(jd((function(e){return!e||n.indexOf(e)>-1})))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach((function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return OC(e._getWindow().document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||HC)($e(bu),$e(ub),$e(Ju,8))},HC.\u0275prov=pe({factory:function(){return new HC($e(bu),$e(ub),$e(Ju,8))},token:HC,providedIn:"root"}),HC),GC=((UC=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this._platform=t,this._document=r,n.runOutsideAngular((function(){var e=i._getWindow();i._change=t.isBrowser?Q(OC(e,"resize"),OC(e,"orientationchange")):Id(),i._invalidateCache=i.change().subscribe((function(){return i._updateViewportSize()}))}))}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._getDocument(),t=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-r.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(FC(e)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}()).\u0275fac=function(e){return new(e||UC)($e(ub),$e(bu),$e(Ju,8))},UC.\u0275prov=pe({factory:function(){return new UC($e(ub),$e(bu),$e(Ju,8))},token:UC,providedIn:"root"}),UC),XC=((jC=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:jC}),jC.\u0275inj=ve({factory:function(e){return new(e||jC)},imports:[[$b,cb],$b]}),jC);function KC(){throw Error("Host already has a portal attached")}var YC,ZC,QC=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&KC(),this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),e}(),$C=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var a;return _classCallCheck(this,n),(a=t.call(this)).component=e,a.viewContainerRef=r,a.injector=i,a.componentFactoryResolver=o,a}return n}(QC),JC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=r,o.context=i,o}return _createClass(n,[{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(QC),ew=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e instanceof Ns?e.nativeElement:e,r}return n}(QC),tw=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&KC(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof $C?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof JC?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof ew?(this._attachedPortal=e,this.attachDomPortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),nw=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a){var s;return _classCallCheck(this,n),(s=t.call(this)).outletElement=e,s._componentFactoryResolver=r,s._appRef=i,s._defaultInjector=o,s.attachDomPortal=function(e){if(!s._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var r=s._document.createComment("dom-portal");t.parentNode.insertBefore(r,t),s.outletElement.appendChild(t),_get(_getPrototypeOf(n.prototype),"setDisposeFn",_assertThisInitialized(s)).call(_assertThisInitialized(s),(function(){r.parentNode&&r.parentNode.replaceChild(t,r)}))},s._document=a,s}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){n._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.detectChanges(),r.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),this.setDisposeFn((function(){var e=n.indexOf(r);-1!==e&&n.remove(e)})),r}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(tw),rw=((ZC=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._componentFactoryResolver=e,o._viewContainerRef=r,o._isInitialized=!1,o.attached=new Ol,o.attachDomPortal=function(e){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var t=e.element;if(!t.parentNode)throw Error("DOM portal content must be attached to a parent node.");var r=o._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(o)),t.parentNode.insertBefore(r,t),o._getRootNode().appendChild(t),_get(_getPrototypeOf(n.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){r.parentNode&&r.parentNode.replaceChild(t,r)}))},o._document=i,o}return _createClass(n,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(r,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return i.destroy()})),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return t._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),n}(tw)).\u0275fac=function(e){return new(e||ZC)(ka(Ds),ka(al),ka(Ju))},ZC.\u0275dir=wt({type:ZC,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ps]}),ZC),iw=((YC=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:YC}),YC.\u0275inj=ve({factory:function(e){return new(e||YC)}}),YC),ow=function(){function e(t,n){_classCallCheck(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=nb(-this._previousScrollPosition.left),e.style.top=nb(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,r=t.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=r,n.scrollBehavior=i}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}();function aw(){return Error("Scroll strategy has already been attached.")}var sw=function(){function e(t,n,r,i){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run((function(){return o._overlayRef.detach()}))}}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw aw();this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),lw=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function uw(e,t){return t.some((function(t){return e.bottomt.bottom||e.rightt.right}))}function cw(e,t){return t.some((function(t){return e.topt.bottom||e.leftt.right}))}var hw,fw=function(){function e(t,n,r,i){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this._config=i,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){if(this._overlayRef)throw aw();this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;uw(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),dw=((hw=function e(t,n,r,i){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new lw},this.close=function(e){return new sw(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new ow(o._viewportRuler,o._document)},this.reposition=function(e){return new fw(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=i}).\u0275fac=function(e){return new(e||hw)($e(WC),$e(GC),$e(bu),$e(Ju))},hw.\u0275prov=pe({factory:function(){return new hw($e(WC),$e(GC),$e(bu),$e(Ju))},token:hw,providedIn:"root"}),hw),pw=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new lw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,r=Object.keys(t);n-1;r--)if(t[r]._keydownEventSubscriptions>0){t[r]._keydownEvents.next(e);break}},this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),e}()).\u0275fac=function(e){return new(e||_w)($e(Ju))},_w.\u0275prov=pe({factory:function(){return new _w($e(Ju))},token:_w,providedIn:"root"}),_w),Cw=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),ww=((bw=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(e||Cw)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;nd&&(d=m,f=v)}}catch(g){p.e(g)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Tw(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var r,i;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,i="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+r,y:e.y+i}}},{key:"_getOverlayFit",value:function(e,t,n,r){var i=e.x,o=e.y,a=this._getOffset(r,"x"),s=this._getOffset(r,"y");a&&(i+=a),s&&(o+=s);var l=0-o,u=o+t.height-n.height,c=this._subtractOverflows(t.width,0-i,i+t.width-n.width),h=this._subtractOverflows(t.height,l,u),f=c*h;return{visibleArea:f,isCompletelyWithinViewport:t.width*t.height===f,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:c==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,o=Iw(this._overlayRef.getConfig().minHeight),a=Iw(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=i;return(e.fitsInViewportVertically||null!=o&&o<=r)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var r,i,o=this._viewportRect,a=Math.max(e.x+t.width-o.right,0),s=Math.max(e.y+t.height-o.bottom,0),l=Math.max(o.top-n.top-e.y,0),u=Math.max(o.left-n.left-e.x,0);return r=t.width<=o.width?u||-a:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-h/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=l.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=l.right-e.x;else{var f=Math.min(l.right-e.x+l.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=nb(n.height),r.top=nb(n.top),r.bottom=nb(n.bottom),r.width=nb(n.width),r.left=nb(n.left),r.right=nb(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=nb(i)),o&&(r.maxWidth=nb(o))}this._lastBoundingBoxSize=n,Tw(this._boundingBox.style,r)}},{key:"_resetBoundingBoxStyles",value:function(){Tw(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Tw(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){var a=this._viewportRuler.getViewportScrollPosition();Tw(n,this._getExactOverlayY(t,e,a)),Tw(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),u=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=nb(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=nb(o.maxWidth):i&&(n.maxWidth="")),Tw(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var r={top:"",bottom:""},i=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===e.overlayY?r.bottom="".concat(this._document.documentElement.clientHeight-(i.y+this._overlayRect.height),"px"):r.top=nb(i.y),r}},{key:"_getExactOverlayX",value:function(e,t,n){var r={left:"",right:""},i=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?r.right="".concat(this._document.documentElement.clientWidth-(i.x+this._overlayRect.width),"px"):r.left=nb(i.x),r}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:cw(e,n),isOriginOutsideView:uw(e,n),isOverlayClipped:cw(t,n),isOverlayOutsideView:uw(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),r=n.width,i=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==i&&"100vh"!==i||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),Mw=((Ow=function(){function e(t,n,r,i){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i}return _createClass(e,[{key:"global",value:function(){return new Lw}},{key:"connectedTo",value:function(e,t,n){return new Nw(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Ew(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}()).\u0275fac=function(e){return new(e||Ow)($e(GC),$e(Ju),$e(ub),$e(ww))},Ow.\u0275prov=pe({factory:function(){return new Ow($e(GC),$e(Ju),$e(ub),$e(ww))},token:Ow,providedIn:"root"}),Ow),Fw=0,Vw=((Aw=function(){function e(t,n,r,i,o,a,s,l,u,c){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=l,this._directionality=u,this._location=c}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),i=new pw(e);return i.direction=i.direction||this._directionality.value,new Sw(r,t,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(Fw++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Uu)),new nw(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}()).\u0275fac=function(e){return new(e||Aw)($e(dw),$e(ww),$e(Ds),$e(Mw),$e(kw),$e(na),$e(bu),$e(Ju),$e(Qb),$e(_c,8))},Aw.\u0275prov=pe({token:Aw,factory:Aw.\u0275fac}),Aw),jw=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Uw=new Be("cdk-connected-overlay-scroll-strategy"),Hw=((Pw=function e(t){_classCallCheck(this,e),this.elementRef=t}).\u0275fac=function(e){return new(e||Pw)(ka(Ns))},Pw.\u0275dir=wt({type:Pw,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pw),zw=((Rw=function(){function e(t,n,r,i,o){_classCallCheck(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new Ol,this.positionChange=new Ol,this.attach=new Ol,this.detach=new Ol,this.overlayKeydown=new Ol,this._templatePortal=new JC(n,r),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=jw),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(t){e.overlayKeydown.next(t),27!==t.keyCode||q_(t)||(t.preventDefault(),e._detachOverlay())}))}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new pw({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map((function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}}));return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe((function(t){return e.positionChange.emit(t)})),t}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe((function(t){e.backdropClick.emit(t)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=J_(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=J_(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=J_(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=J_(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=J_(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),e}()).\u0275fac=function(e){return new(e||Rw)(ka(Vw),ka(il),ka(al),ka(Uw),ka(Qb,8))},Rw.\u0275dir=wt({type:Rw,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[bs]}),Rw),Bw={provide:Uw,deps:[Vw],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},qw=((Dw=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:Dw}),Dw.\u0275inj=ve({factory:function(e){return new(e||Dw)},providers:[Vw,Bw],imports:[[$b,iw,XC],XC]}),Dw),Ww=["underline"],Gw=["connectionContainer"],Xw=["inputContainer"],Kw=["label"];function Yw(e,t){1&e&&(Aa(0),Ea(1,"div",14),Ia(2,"div",15),Ia(3,"div",16),Ia(4,"div",17),Ta(),Ea(5,"div",18),Ia(6,"div",15),Ia(7,"div",16),Ia(8,"div",17),Ta(),Oa())}function Zw(e,t){1&e&&(Ea(0,"div",19),za(1,1),Ta())}function Qw(e,t){if(1&e&&(Aa(0),za(1,2),Ea(2,"span"),ls(3),Ta(),Oa()),2&e){var n=ja(2);hi(3),us(n._control.placeholder)}}function $w(e,t){1&e&&za(0,3,["*ngSwitchCase","true"])}function Jw(e,t){1&e&&(Ea(0,"span",23),ls(1," *"),Ta())}function eS(e,t){if(1&e){var n=Ra();Ea(0,"label",20,21),Na("cdkObserveContent",(function(){return Jt(n),ja().updateOutlineGap()})),_a(2,Qw,4,1,"ng-container",12),_a(3,$w,1,0,void 0,12),_a(4,Jw,2,0,"span",22),Ta()}if(2&e){var r=ja();Qa("mat-empty",r._control.empty&&!r._shouldAlwaysFloat)("mat-form-field-empty",r._control.empty&&!r._shouldAlwaysFloat)("mat-accent","accent"==r.color)("mat-warn","warn"==r.color),Sa("cdkObserveContentDisabled","outline"!=r.appearance)("id",r._labelId)("ngSwitch",r._hasLabel()),ga("for",r._control.id)("aria-owns",r._control.id),hi(2),Sa("ngSwitchCase",!1),hi(1),Sa("ngSwitchCase",!0),hi(1),Sa("ngIf",!r.hideRequiredMarker&&r._control.required&&!r._control.disabled)}}function tS(e,t){1&e&&(Ea(0,"div",24),za(1,4),Ta())}function nS(e,t){if(1&e&&(Ea(0,"div",25,26),Ia(2,"span",27),Ta()),2&e){var n=ja();hi(2),Qa("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function rS(e,t){1&e&&(Ea(0,"div"),za(1,5),Ta()),2&e&&Sa("@transitionMessages",ja()._subscriptAnimationState)}function iS(e,t){if(1&e&&(Ea(0,"div",31),ls(1),Ta()),2&e){var n=ja(2);Sa("id",n._hintLabelId),hi(1),us(n.hintLabel)}}function oS(e,t){if(1&e&&(Ea(0,"div",28),_a(1,iS,2,2,"div",29),za(2,6),Ia(3,"div",30),za(4,7),Ta()),2&e){var n=ja();Sa("@transitionMessages",n._subscriptAnimationState),hi(1),Sa("ngIf",n.hintLabel)}}var aS,sS,lS=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],uS=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],cS=0,hS=((aS=function e(){_classCallCheck(this,e),this.id="mat-error-".concat(cS++)}).\u0275fac=function(e){return new(e||aS)},aS.\u0275dir=wt({type:aS,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&ga("id",t.id)},inputs:{id:"id"}}),aS),fS={transitionMessages:yg("transitionMessages",[Cg("enter",kg({opacity:1,transform:"translateY(0%)"})),wg("void => enter",[kg({opacity:0,transform:"translateY(-100%)"}),_g("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dS=((sS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||sS)},sS.\u0275dir=wt({type:sS}),sS);function pS(e){return Error("A hint was already declared for 'align=\"".concat(e,"\"'."))}var vS,mS,gS,yS,_S,bS,kS,CS=0,wS=((_S=function e(){_classCallCheck(this,e),this.align="start",this.id="mat-hint-".concat(CS++)}).\u0275fac=function(e){return new(e||_S)},_S.\u0275dir=wt({type:_S,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(ga("id",t.id)("align",null),Qa("mat-right","end"==t.align))},inputs:{align:"align",id:"id"}}),_S),SS=((yS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||yS)},yS.\u0275dir=wt({type:yS,selectors:[["mat-label"]]}),yS),xS=((gS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||gS)},gS.\u0275dir=wt({type:gS,selectors:[["mat-placeholder"]]}),gS),ES=((mS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||mS)},mS.\u0275dir=wt({type:mS,selectors:[["","matPrefix",""]]}),mS),TS=((vS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||vS)},vS.\u0275dir=wt({type:vS,selectors:[["","matSuffix",""]]}),vS),IS=0,AS=uk((function e(t){_classCallCheck(this,e),this._elementRef=t}),"primary"),OS=new Be("MAT_FORM_FIELD_DEFAULT_OPTIONS"),RS=new Be("MatFormField"),PS=((kS=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a,s,l,u){var c;return _classCallCheck(this,n),(c=t.call(this,e))._elementRef=e,c._changeDetectorRef=r,c._dir=o,c._defaults=a,c._platform=s,c._ngZone=l,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new A,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-".concat(IS++),c._labelId="mat-form-field-label-".concat(IS++),c._labelOptions=i||{},c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==u,c.appearance=a&&a.appearance?a.appearance:"legacy",c._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,c}return _createClass(n,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(dp(null)).subscribe((function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(VC(this._destroyed)).subscribe((function(){return e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(VC(e._destroyed)).subscribe((function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()}))})),Q(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(dp(null)).subscribe((function(){e._processHints(),e._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(dp(null)).subscribe((function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(VC(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e.updateOutlineGap()}))})):e.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,OC(this._label.nativeElement,"transitionend").pipe(rp(1)).subscribe((function(){e._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var e,t,n=this;this._hintChildren&&this._hintChildren.forEach((function(r){if("start"===r.align){if(e||n.hintLabel)throw pS("start");e=r}else if("end"===r.align){if(t)throw pS("end");t=r}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find((function(e){return"start"===e.align})):null,n=this._hintChildren?this._hintChildren.find((function(e){return"end"===e.align})):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map((function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,r=this._connectionContainerRef.nativeElement,i=r.querySelectorAll(".mat-form-field-outline-start"),o=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=r.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s,l=this._getStartEnd(a),u=this._getStartEnd(e.children[0].getBoundingClientRect()),c=0,h=_createForOfIteratorHelper(e.children);try{for(h.s();!(s=h.n()).done;)c+=s.value.offsetWidth}catch(p){h.e(p)}finally{h.f()}t=Math.abs(u-l)-5,n=c>0?.75*c+10:0}for(var f=0;f void",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}("@transformPanel",[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}()],{optional:!0}))]),transformPanel:yg("transformPanel",[Cg("void",kg({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Cg("showing",kg({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Cg("showing-multiple",kg({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),wg("void => *",_g("120ms cubic-bezier(0, 0, 0.2, 1)")),wg("* => void",_g("100ms 25ms linear",kg({opacity:0})))])},YS=0,ZS=new Be("mat-select-scroll-strategy"),QS=new Be("MAT_SELECT_CONFIG"),$S={provide:ZS,deps:[Vw],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},JS=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},ex=ck(hk(lk(fk((function e(t,n,r,i,o){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=r,this._parentFormGroup=i,this.ngControl=o}))))),tx=((BS=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||BS)},BS.\u0275dir=wt({type:BS,selectors:[["mat-select-trigger"]]}),BS),nx=((zS=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a,s,l,u,c,h,f,d,p,v){var m;return _classCallCheck(this,n),(m=t.call(this,a,o,l,u,h))._viewportRuler=e,m._changeDetectorRef=r,m._ngZone=i,m._dir=s,m._parentFormField=c,m.ngControl=h,m._liveAnnouncer=p,m._panelOpen=!1,m._required=!1,m._scrollTop=0,m._multiple=!1,m._compareWith=function(e,t){return e===t},m._uid="mat-select-".concat(YS++),m._destroy=new A,m._triggerFontSize=0,m._onChange=function(){},m._onTouched=function(){},m._optionIds="",m._transformOrigin="top",m._panelDoneAnimatingStream=new A,m._offsetY=0,m._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],m._disableOptionCentering=!1,m._focused=!1,m.controlType="mat-select",m.ariaLabel="",m.optionSelectionChanges=Fd((function(){var e=m.options;return e?e.changes.pipe(dp(e),up((function(){return Q.apply(void 0,_toConsumableArray(e.map((function(e){return e.onSelectionChange}))))}))):m._ngZone.onStable.asObservable().pipe(rp(1),up((function(){return m.optionSelectionChanges})))})),m.openedChange=new Ol,m._openedStream=m.openedChange.pipe(jd((function(e){return e})),U((function(){}))),m._closedStream=m.openedChange.pipe(jd((function(e){return!e})),U((function(){}))),m.selectionChange=new Ol,m.valueChange=new Ol,m.ngControl&&(m.ngControl.valueAccessor=_assertThisInitialized(m)),m._scrollStrategyFactory=d,m._scrollStrategy=m._scrollStrategyFactory(),m.tabIndex=parseInt(f)||0,m.id=m.id,v&&(null!=v.disableOptionCentering&&(m.disableOptionCentering=v.disableOptionCentering),null!=v.typeaheadDebounceInterval&&(m.typeaheadDebounceInterval=v.typeaheadDebounceInterval)),m}return _createClass(n,[{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new qC(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((function(e){return e.lift(new RC(void 0,void 0))}),VC(this._destroy)).subscribe((function(){e.panelOpen?(e._scrollTop=0,e.openedChange.emit(!0)):(e.openedChange.emit(!1),e.overlayDir.offsetX=0,e._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(VC(this._destroy)).subscribe((function(){e._panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(VC(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(dp(null),VC(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var e=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(rp(1)).subscribe((function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.options&&this._setSelectionByValue(e)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,r=13===t||32===t,i=this._keyManager;if(!i.isTyping()&&r&&!q_(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;36===t||35===t?(36===t?i.setFirstItemActive():i.setLastItemActive(),e.preventDefault()):i.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,r=40===n||38===n,i=t.isTyping();if(36===n||35===n)e.preventDefault(),36===n?t.setFirstItemActive():t.setLastItemActive();else if(r&&e.altKey)e.preventDefault(),this.close();else if(i||13!==n&&32!==n||!t.activeItem||q_(e))if(!i&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(o?e.select():e.deselect())}))}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&r&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(rp(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._calculateOverlayOffsetX(),e.panel.nativeElement.scrollTop=e._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this.multiple&&e){if(!Array.isArray(e))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),e.forEach((function(e){return t._selectValue(e)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(e);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find((function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(r){return Sr()&&console.warn(r),!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new Ab(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(VC(this._destroy)).subscribe((function(){!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close()})),this._keyManager.change.pipe(VC(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollActiveOptionIntoView():e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var e=this,t=Q(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(VC(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),Q.apply(void 0,_toConsumableArray(this.options.map((function(e){return e._stateChanges})))).pipe(VC(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(n,r){return e.sortComparator?e.sortComparator(n,r,t):t.indexOf(n)-t.indexOf(r)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(new JS(this,t)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(e){return e.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var e,t,n,r,i=this._keyManager.activeItemIndex||0,o=Uk(i,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(e=i+o,t=this._getItemHeight(),n=this.panel.nativeElement.scrollTop,(r=e*t)n+256?Math.max(0,r-256+t):n)}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getOptionIndex",value:function(e){return this.options.reduce((function(t,n,r){return void 0!==t?t:e===n?r:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var e=this._getItemHeight(),t=this._getItemCount(),n=Math.min(t*e,256),r=t*e-n,i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=Uk(i,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)}},{key:"_calculateOverlayScroll",value:function(e,t,n){var r=this._getItemHeight();return Math.min(Math.max(0,r*e-t+r/2),n)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}r||(e*=-1);var a=0-(t.left+e-(r?i:0)),s=t.right+e-n.width+(r?0:i);a>0?e+=a+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var r,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,a=Math.floor(256/i);return this._disableOptionCentering?0:(r=0===this._scrollTop?e*i:this._scrollTop===n?(e-(this._getItemCount()-a))*i+(i-(this._getItemCount()*i-256)%i):t-i/2,Math.round(-1*r-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var r=Math.round(e-t);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=J_(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=J_(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=J_(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){if("function"!=typeof e)throw Error("`compareWith` must be a function.");this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){e!==this._value&&(this.writeValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=eb(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),n}(ex)).\u0275fac=function(e){return new(e||zS)(ka(GC),ka(Uo),ka(bu),ka(kk),ka(Ns),ka(Qb,8),ka(fd,8),ka(wd,8),ka(RS,8),ka(of,10),Ca("tabindex"),ka(ZS),ka(qb),ka(QS,8))},zS.\u0275cmp=gt({type:zS,selectors:[["mat-select"]],contentQueries:function(e,t,n){var r;1&e&&(Wl(n,tx,!0),Wl(n,jk,!0),Wl(n,Nk,!0)),2&e&&(Hl(r=Kl())&&(t.customTrigger=r.first),Hl(r=Kl())&&(t.options=r),Hl(r=Kl())&&(t.optionGroups=r))},viewQuery:function(e,t){var n;1&e&&(Bl(NS,!0),Bl(LS,!0),Bl(zw,!0)),2&e&&(Hl(n=Kl())&&(t.trigger=n.first),Hl(n=Kl())&&(t.panel=n.first),Hl(n=Kl())&&(t.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&Na("keydown",(function(e){return t._handleKeydown(e)}))("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onBlur()})),2&e&&(ga("id",t.id)("tabindex",t.tabIndex)("aria-label",t._getAriaLabel())("aria-labelledby",t._getAriaLabelledby())("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-owns",t.panelOpen?t._optionIds:null)("aria-multiselectable",t.multiple)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Qa("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Os([{provide:dS,useExisting:zS},{provide:Vk,useExisting:zS}]),ps,bs],ngContentSelectors:XS,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(Ha(GS),Ea(0,"div",0,1),Na("click",(function(){return t.toggle()})),Ea(3,"div",2),_a(4,MS,2,1,"span",3),_a(5,jS,3,2,"span",4),Ta(),Ea(6,"div",5),Ia(7,"div",6),Ta(),Ta(),_a(8,US,4,10,"ng-template",7),Na("backdropClick",(function(){return t.close()}))("attach",(function(){return t._onAttached()}))("detach",(function(){return t.close()}))),2&e){var n=ba(1);hi(3),Sa("ngSwitch",t.empty),hi(1),Sa("ngSwitchCase",!0),hi(1),Sa("ngSwitchCase",!1),hi(3),Sa("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[Hw,Kc,Yc,zw,Zc,Oc],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[KS.transformPanelWrap,KS.transformPanel]},changeDetection:0}),zS),rx=((HS=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:HS}),HS.\u0275inj=ve({factory:function(e){return new(e||HS)},providers:[$S],imports:[[th,qw,Bk,sk],DS,Bk,sk]}),HS),ix=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ox(e,this.total))}}]),e}(),ox=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(m),ax=new Set,sx=((WS=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lx}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!ax.has(e))try{qS||((qS=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(qS)),qS.sheet&&(qS.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),ax.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}()).\u0275fac=function(e){return new(e||WS)($e(ub))},WS.\u0275prov=pe({factory:function(){return new WS($e(ub))},token:WS,providedIn:"root"}),WS);function lx(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var ux,cx=((ux=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new A}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return hx(tb(e)).some((function(e){return t._registerQuery(e).mql.matches}))}},{key:"observe",value:function(e){var t=this,n=Pd(hx(tb(e)).map((function(e){return t._registerQuery(e).observable})));return(n=fp(n.pipe(rp(1)),n.pipe((function(e){return e.lift(new ix(1))}),K_(0)))).pipe(U((function(e){var t={matches:!1,breakpoints:{}};return e.forEach((function(e){t.matches=t.matches||e.matches,t.breakpoints[e.query]=e.matches})),t})))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),r={observable:new w((function(e){var r=function(n){return t._zone.run((function(){return e.next(n)}))};return n.addListener(r),function(){n.removeListener(r)}})).pipe(dp(n),U((function(t){return{query:e,matches:t.matches}})),VC(this._destroySubject)),mql:n};return this._queries.set(e,r),r}}]),e}()).\u0275fac=function(e){return new(e||ux)($e(sx),$e(bu))},ux.\u0275prov=pe({factory:function(){return new ux($e(sx),$e(bu))},token:ux,providedIn:"root"}),ux);function hx(e){return e.map((function(e){return e.split(",")})).reduce((function(e,t){return e.concat(t)})).map((function(e){return e.trim()}))}var fx,dx={tooltipState:yg("state",[Cg("initial, void, hidden",kg({opacity:0,transform:"scale(0)"})),Cg("visible",kg({transform:"scale(1)"})),wg("* => visible",_g("200ms cubic-bezier(0, 0, 0.2, 1)",(fx=[kg({opacity:0,transform:"scale(0)",offset:0}),kg({opacity:.5,transform:"scale(0.99)",offset:.5}),kg({opacity:1,transform:"scale(1)",offset:1})],{type:5,steps:fx}))),wg("* => hidden",_g("100ms cubic-bezier(0, 0, 0.2, 1)",kg({opacity:0})))])},px=db({passive:!0});function vx(e){return Error('Tooltip position "'.concat(e,'" is invalid.'))}var mx,gx,yx,_x=new Be("mat-tooltip-scroll-strategy"),bx={provide:_x,deps:[Vw],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},kx=new Be("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Cx=((yx=function(){function e(t,n,r,i,o,a,s,l,u,c,h,f){var d=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=r,this._viewContainerRef=i,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new A,this._handleKeydown=function(e){d._isTooltipVisible()&&27===e.keyCode&&!q_(e)&&(e.preventDefault(),e.stopPropagation(),d._ngZone.run((function(){return d.hide(0)})))},this._scrollStrategy=u,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.monitor(n).pipe(VC(this._destroyed)).subscribe((function(e){e?"keyboard"===e&&o.run((function(){return d.show()})):o.run((function(){return d.hide(0)}))})),o.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",d._handleKeydown)}))}return _createClass(e,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(t,n){e.removeEventListener(n,t,px)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new $C(wx,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(VC(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return n.positionChanges.pipe(VC(this._destroyed)).subscribe((function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run((function(){return e.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(VC(this._destroyed)).subscribe((function(){return e._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([Object.assign(Object.assign({},t.main),n.main),Object.assign(Object.assign({},t.fallback),n.fallback)])}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)e={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&t||"right"==n&&!t)e={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&t||"left"==n&&!t))throw vx(n);e={originX:"end",originY:"center"}}var r=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:r.x,originY:r.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)e={overlayX:"center",overlayY:"bottom"};else if("below"==n)e={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&t||"right"==n&&!t)e={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&t||"left"==n&&!t))throw vx(n);e={overlayX:"start",overlayY:"center"}}var r=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:r.x,overlayY:r.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(rp(1),VC(this._destroyed)).subscribe((function(){e._tooltipInstance&&e._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_setupPointerEvents",value:function(){var e=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var t=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",(function(){clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout((function(){return e.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return e.show()})).set("mouseleave",(function(){return e.hide()}));this._passiveListeners.forEach((function(t,n){e._elementRef.nativeElement.addEventListener(n,t,px)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this._elementRef.nativeElement,t=e.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==n&&e.draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent")}},{key:"position",get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=J_(e),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?"".concat(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),e}()).\u0275fac=function(e){return new(e||yx)(ka(Vw),ka(Ns),ka(WC),ka(al),ka(bu),ka(ub),ka(Ib),ka(Xb),ka(_x),ka(Qb,8),ka(kx,8),ka(Ns))},yx.\u0275dir=wt({type:yx,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),yx),wx=((gx=function(){function e(t,n){_classCallCheck(this,e),this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(e,[{key:"show",value:function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()}),e)}},{key:"hide",value:function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()}),e)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),e}()).\u0275fac=function(e){return new(e||gx)(ka(Uo),ka(cx))},gx.\u0275cmp=gt({type:gx,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&Na("click",(function(){return t._handleBodyInteraction()}),!1,qn),2&e&&Za("zoom","visible"===t._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(Ea(0,"div",0),Na("@state.start",(function(){return t._animationStart()}))("@state.done",(function(e){return t._animationDone(e)})),xl(1,"async"),ls(2),Ta()),2&e&&(Qa("mat-tooltip-handset",null==(n=El(1,5,t._isHandset))?null:n.matches),Sa("ngClass",t.tooltipClass)("@state",t._visibility),hi(2),us(t.message))},directives:[Oc],pipes:[eh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[dx.tooltipState]},changeDetection:0}),gx),Sx=((mx=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:mx}),mx.\u0275inj=ve({factory:function(e){return new(e||mx)},providers:[bx],imports:[[Yb,th,qw,sk],sk]}),mx);function xx(e,t){if(1&e&&(Ea(0,"mat-option",19),ls(1),Ta()),2&e){var n=t.$implicit;Sa("value",n),hi(1),cs(" ",n," ")}}function Ex(e,t){if(1&e){var n=Ra();Ea(0,"mat-form-field",16),Ea(1,"mat-select",17),Na("selectionChange",(function(e){return Jt(n),ja(2)._changePageSize(e.value)})),_a(2,xx,2,2,"mat-option",18),Ta(),Ta()}if(2&e){var r=ja(2);Sa("color",r.color),hi(1),Sa("value",r.pageSize)("disabled",r.disabled)("aria-label",r._intl.itemsPerPageLabel),hi(1),Sa("ngForOf",r._displayedPageSizeOptions)}}function Tx(e,t){if(1&e&&(Ea(0,"div",20),ls(1),Ta()),2&e){var n=ja(2);hi(1),us(n.pageSize)}}function Ix(e,t){if(1&e&&(Ea(0,"div",12),Ea(1,"div",13),ls(2),Ta(),_a(3,Ex,3,5,"mat-form-field",14),_a(4,Tx,2,1,"div",15),Ta()),2&e){var n=ja();hi(2),cs(" ",n._intl.itemsPerPageLabel," "),hi(1),Sa("ngIf",n._displayedPageSizeOptions.length>1),hi(1),Sa("ngIf",n._displayedPageSizeOptions.length<=1)}}function Ax(e,t){if(1&e){var n=Ra();Ea(0,"button",21),Na("click",(function(){return Jt(n),ja().firstPage()})),wn(),Ea(1,"svg",7),Ia(2,"path",22),Ta(),Ta()}if(2&e){var r=ja();Sa("matTooltip",r._intl.firstPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),ga("aria-label",r._intl.firstPageLabel)}}function Ox(e,t){if(1&e){var n=Ra();wn(),Sn(),Ea(0,"button",23),Na("click",(function(){return Jt(n),ja().lastPage()})),wn(),Ea(1,"svg",7),Ia(2,"path",24),Ta(),Ta()}if(2&e){var r=ja();Sa("matTooltip",r._intl.lastPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),ga("aria-label",r._intl.lastPageLabel)}}var Rx,Px,Dx,Nx=((Rx=function e(){_classCallCheck(this,e),this.changes=new A,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var r=e*t;return"".concat(r+1," \u2013 ").concat(r<(n=Math.max(n,0))?Math.min(r+t,n):r+t," of ").concat(n)}}).\u0275fac=function(e){return new(e||Rx)},Rx.\u0275prov=pe({factory:function(){return new Rx},token:Rx,providedIn:"root"}),Rx),Lx={provide:Nx,deps:[[new le,new ce,Nx]],useFactory:function(e){return e||new Nx}},Mx=new Be("MAT_PAGINATOR_DEFAULT_OPTIONS"),Fx=lk(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var e=this.getNumberOfPages()-1;return this.pageIndex enter",_g("150ms cubic-bezier(0, 0, 0.2, 1)",kg({transform:"none",opacity:1}))),wg("* => void, * => exit",_g("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",kg({opacity:0})))])};function tE(){throw Error("Attempting to attach dialog content after content is already attached")}var nE,rE,iE,oE,aE,sE,lE=((nE=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusTrapFactory=r,s._changeDetectorRef=i,s._config=a,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new Ol,s.attachDomPortal=function(e){return s._portalOutlet.hasAttached()&&tE(),s._savePreviouslyFocusedElement(),s._portalOutlet.attachDomPortal(e)},s._ariaLabelledBy=a.ariaLabelledBy||null,s._document=o,s}return _createClass(n,[{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached()&&tE(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached()&&tE(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_trapFocus",value:function(){var e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()})))}},{key:"_onAnimationDone",value:function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(tw)).\u0275fac=function(e){return new(e||nE)(ka(Ns),ka(Lb),ka(Uo),ka(Ju,8),ka(Jx))},nE.\u0275cmp=gt({type:nE,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var n;1&e&&zl(rw,!0),2&e&&Hl(n=Kl())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&La("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(ga("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),fs("@dialogContainer",t._state))},features:[ps],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&_a(0,$x,0,0,"ng-template",0)},directives:[rw],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[eE.dialogContainer]}}),nE),uE=0,cE=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(uE++);_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A,this._afterClosed=new A,this._beforeClosed=new A,this._state=0,n._id=i,n._animationStateChanged.pipe(jd((function(e){return"done"===e.phaseName&&"enter"===e.toState})),rp(1)).subscribe((function(){r._afterOpened.next(),r._afterOpened.complete()})),n._animationStateChanged.pipe(jd((function(e){return"done"===e.phaseName&&"exit"===e.toState})),rp(1)).subscribe((function(){clearTimeout(r._closeFallbackTimeout),r._overlayRef.dispose()})),t.detachments().subscribe((function(){r._beforeClosed.next(r._result),r._beforeClosed.complete(),r._afterClosed.next(r._result),r._afterClosed.complete(),r.componentInstance=null,r._overlayRef.dispose()})),t.keydownEvents().pipe(jd((function(e){return 27===e.keyCode&&!r.disableClose&&!q_(e)}))).subscribe((function(e){e.preventDefault(),r.close()}))}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(jd((function(e){return"start"===e.phaseName})),rp(1)).subscribe((function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._state=2,t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){t._overlayRef.dispose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}(),hE=new Be("MatDialogData"),fE=new Be("mat-dialog-default-options"),dE=new Be("mat-dialog-scroll-strategy"),pE={provide:dE,deps:[Vw],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},vE=((sE=function(){function e(t,n,r,i,o,a,s){var l=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=a,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A,this._afterOpenedAtThisLevel=new A,this._ariaHiddenElements=new Map,this.afterAllClosed=Fd((function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(dp(void 0))})),this._scrollStrategy=o}return _createClass(e,[{key:"open",value:function(e,t){var n=this;if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new Jx)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var r=this._createOverlay(t),i=this._attachDialogContainer(r,t),o=this._attachDialogContent(e,i,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe((function(){return n._removeOpenDialog(o)})),this.afterOpened.next(o),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new pw({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=na.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:Jx,useValue:t}]}),r=new $C(lE,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(r).instance}},{key:"_attachDialogContent",value:function(e,t,n,r){var i=new cE(n,t,r.id);if(r.hasBackdrop&&n.backdropClick().subscribe((function(){i.disableClose||i.close()})),e instanceof il)t.attachTemplatePortal(new JC(e,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,t),a=t.attachComponentPortal(new $C(e,r.viewContainerRef,o));i.componentInstance=a.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i}},{key:"_createInjector",value:function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=[{provide:lE,useValue:n},{provide:hE,useValue:e.data},{provide:cE,useValue:t}];return!e.direction||r&&r.get(Qb,null)||i.push({provide:Qb,useValue:{value:e.direction,change:Id()}}),na.create({parent:r||this._injector,providers:i})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}}]),e}()).\u0275fac=function(e){return new(e||sE)($e(Vw),$e(na),$e(_c,8),$e(fE,8),$e(dE),$e(sE,12),$e(ww))},sE.\u0275prov=pe({token:sE,factory:sE.\u0275fac}),sE),mE=0,gE=((aE=function(){function e(t,n,r){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=r,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=kE(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}}]),e}()).\u0275fac=function(e){return new(e||aE)(ka(cE,8),ka(Ns),ka(vE))},aE.\u0275dir=wt({type:aE,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&Na("click",(function(){return t.dialogRef.close(t.dialogResult)})),2&e&&ga("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[bs]}),aE),yE=((oE=function(){function e(t,n,r){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=r,this.id="mat-dialog-title-".concat(mE++)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=kE(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)}))}}]),e}()).\u0275fac=function(e){return new(e||oE)(ka(cE,8),ka(Ns),ka(vE))},oE.\u0275dir=wt({type:oE,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&hs("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),oE),_E=((iE=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||iE)},iE.\u0275dir=wt({type:iE,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),iE),bE=((rE=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||rE)},rE.\u0275dir=wt({type:rE,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),rE);function kE(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find((function(e){return e.id===n.id})):null}var CE,wE=((CE=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:CE}),CE.\u0275inj=ve({factory:function(e){return new(e||CE)},providers:[vE,pE],imports:[[qw,iw,sk],sk]}),CE),SE=function e(){_classCallCheck(this,e)},xE=function e(){_classCallCheck(this,e)},EE=function(){function e(t){var n=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach((function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}}))}:function(){n.headers=new Map,Object.keys(t).forEach((function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))}))}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))}))}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,_toConsumableArray(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter((function(e){return-1===i.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return e(t.normalizedNames.get(n),t.headers.get(n))}))}}]),e}(),TE=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return IE(e)}},{key:"encodeValue",value:function(e){return IE(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function IE(e){return encodeURIComponent(e).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,"/")}var AE=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new TE,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.split("&").forEach((function(e){var r=e.indexOf("="),i=_slicedToArray(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),o=i[0],a=i[1],s=n.get(o)||[];s.push(a),n.set(o,s)})),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(e){var r=n.fromObject[e];t.map.set(e,Array.isArray(r)?r:[r])}))):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map((function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return n+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}]),e}();function OE(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function RE(e){return"undefined"!=typeof Blob&&e instanceof Blob}function PE(e){return"undefined"!=typeof FormData&&e instanceof FormData}var DE=function(){function e(t,n,r,i){var o;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new EE),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((function(e,n){return e.set(n,t.setHeaders[n])}),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((function(e,n){return e.set(n,t.setParams[n])}),u)),new e(n,r,o,{params:u,headers:l,reportProgress:s,responseType:i,withCredentials:a})}}]),e}(),NE=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}(),LE=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new EE,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},ME=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,r)).type=NE.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(LE),FE=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,r)).type=NE.Response,e.body=void 0!==r.body?r.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(LE),VE=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(LE);function jE(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var UE,HE,zE,BE,qE,WE,GE,XE,KE,YE=((UE=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof DE)n=e;else{var o=void 0;o=i.headers instanceof EE?i.headers:new EE(i.headers);var a=void 0;i.params&&(a=i.params instanceof AE?i.params:new AE({fromObject:i.params})),n=new DE(e,t,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var s=Id(n).pipe(gp((function(e){return r.handler.handle(e)})));if(e instanceof DE||"events"===i.observe)return s;var l=s.pipe(jd((function(e){return e instanceof FE})));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(U((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return l.pipe(U((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return l.pipe(U((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return l.pipe(U((function(e){return e.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new AE).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,jE(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,jE(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,jE(n,t))}}]),e}()).\u0275fac=function(e){return new(e||UE)($e(SE))},UE.\u0275prov=pe({token:UE,factory:UE.\u0275fac}),UE),ZE=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),QE=new Be("HTTP_INTERCEPTORS"),$E=((HE=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||HE)},HE.\u0275prov=pe({token:HE,factory:HE.\u0275fac}),HE),JE=/^\)\]\}',?\n/,eT=function e(){_classCallCheck(this,e)},tT=((BE=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||BE)},BE.\u0275prov=pe({token:BE,factory:BE.\u0275fac}),BE),nT=((zE=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new w((function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((function(e,t){return r.setRequestHeader(e,t.join(","))})),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new EE(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new ME({headers:i,status:t,statusText:n,url:o})},u=function(){var t=l(),i=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var h=u;u=u.replace(JE,"");try{u=""!==u?JSON.parse(u):null}catch(f){u=h,c&&(c=!1,u={error:f,text:u})}}c?(n.next(new FE({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new VE({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=l().url,i=new VE({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},h=!1,f=function(t){h||(n.next(l()),h=!0);var i={type:NE.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:NE.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",u),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:NE.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),e.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}}))}}]),e}()).\u0275fac=function(e){return new(e||zE)($e(eT))},zE.\u0275prov=pe({token:zE,factory:zE.\u0275fac}),zE),rT=new Be("XSRF_COOKIE_NAME"),iT=new Be("XSRF_HEADER_NAME"),oT=function e(){_classCallCheck(this,e)},aT=((KE=function(){function e(t,n,r){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ec(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||KE)($e(Ju),$e(iu),$e(rT))},KE.\u0275prov=pe({token:KE,factory:KE.\u0275fac}),KE),sT=((XE=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||XE)($e(oT),$e(iT))},XE.\u0275prov=pe({token:XE,factory:XE.\u0275fac}),XE),lT=((GE=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(QE,[]);this.chain=t.reduceRight((function(e,t){return new ZE(e,t)}),this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||GE)($e(xE),$e(na))},GE.\u0275prov=pe({token:GE,factory:GE.\u0275fac}),GE),uT=((WE=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:sT,useClass:$E}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:rT,useValue:t.cookieName}:[],t.headerName?{provide:iT,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=kt({type:WE}),WE.\u0275inj=ve({factory:function(e){return new(e||WE)},providers:[sT,{provide:QE,useExisting:sT,multi:!0},{provide:oT,useClass:aT},{provide:rT,useValue:"XSRF-TOKEN"},{provide:iT,useValue:"X-XSRF-TOKEN"}]}),WE),cT=((qE=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:qE}),qE.\u0275inj=ve({factory:function(e){return new(e||qE)},providers:[YE,{provide:SE,useClass:lT},nT,{provide:xE,useExisting:nT},tT,{provide:eT,useExisting:tT}],imports:[[uT.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),qE),hT=function(e,t){return(hT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function fT(e,t){function n(){this.constructor=e}hT(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function dT(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function pT(e){var t=dT();return t&&t[e]?t[e]:"window"===e&&vT()?window:null}function vT(){return Boolean("object"==typeof window&&window)}function mT(){return vT()?window:pT("window")}function gT(){return Boolean("object"==typeof document&&document)}function yT(){return gT()?document:pT("document")}function _T(){return Boolean("object"==typeof navigator&&navigator)?navigator:pT("navigator")}function bT(){return"object"==typeof location&&location?location:pT("location")}function kT(){return pT("performance")}function CT(){return Boolean("object"==typeof JSON&&JSON||null!==pT("JSON"))}function wT(){return CT()?JSON||pT("JSON"):null}function ST(e,t){return typeof e===t}function xT(e){return ST(e,"undefined")||void 0===e}function ET(e){return xT(e)||null===e}function TT(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function IT(e){return ST(e,"object")}function AT(e){return ST(e,"function")}function OT(e,t,n,r){void 0===r&&(r=!1);var i=!1;if(!ET(e))try{ET(e.addEventListener)?ET(e.attachEvent)||(e.attachEvent("on"+t,n),i=!0):(e.addEventListener(t,n,r),i=!0)}catch(o){}return i}function RT(e,t,n,r){if(void 0===r&&(r=!1),!ET(e))try{ET(e.removeEventListener)?ET(e.detachEvent)||e.detachEvent("on"+t,n):e.removeEventListener(t,n,r)}catch(i){}}var PT,DT=function(){function e(){}return e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.isString=function(e){return ST(e,"string")},e.isNumber=function(e){return ST(e,"number")},e.isBoolean=function(e){return ST(e,"boolean")},e.disableCookies=function(){e._canUseCookies=!1},e.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(NT,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},e.arrForEach=function(e,t,n){for(var r=e.length,i=0;i=0?i:r-Math.abs(i),0);o=3)r=arguments[2];else{for(;o=PT.WARNING&&(this.warnToConsole(o.message),this._messageLogged[a]=!0)}else this.consoleLoggingLevel()>=PT.WARNING&&this.warnToConsole(o.message);this.logInternalMessage(e,o)}},e.prototype.warnToConsole=function(e){!DT.isUndefined(console)&&console&&(DT.isFunction(console.warn)?console.warn(e):DT.isFunction(console.log)&&console.log(e))},e.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},e.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var n=!0,r=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[r]?n=!1:this._messageLogged[r]=!0,n&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount===this.maxInternalMessageLimit())){var i="Internal events throttle limit per PageView reached for this app.",o=new MT(23,i,!1);this.queue.push(o),this.warnToConsole(i)}}},e.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},e}(),VT=DT.isFunction,jT=function(e,t){var n=this,r=null,i=VT(e.processTelemetry),o=VT(e.setNextPlugin);n._hasRun=!1,n.getPlugin=function(){return e},n.getNext=function(){return r},n.setNext=function(e){r=e},n.processTelemetry=function(a,s){if(s||(s=t),e&&i){n._hasRun=!0;try{s.setNext(r),o&&e.setNextPlugin(r),r&&(r._hasRun=!1),e.processTelemetry(a,s)}catch(u){var l=r&&r._hasRun;r&&l||s.diagLog().throwInternal(PT.CRITICAL,73,"Plugin ["+e.identifier+"] failed during processTelemetry - "+u),r&&!l&&r.processTelemetry(a,s)}}else r&&(n._hasRun=!0,r.processTelemetry(a,s))}},UT=DT.isNullOrUndefined;function HT(e,t){var n=[];if(e&&e.length>0)for(var r=null,i=0;i0?n[0]:null}var zT=function e(t,n,r,i){var o=this,a=null;null!==i&&(t&&DT.isFunction(t.getPlugin)?a=function(e,t,n){var r=[],i=!n;if(e)for(;e;){var o=e.getPlugin();(i||o===n)&&(i=!0,r.push(o)),e=e.getNext()}return i||r.push(n),HT(r,t)}(t,o,i||t.getPlugin()):i?a=function(e,t,n){var r=e,i=!1;return n&&e&&(r=[],DT.arrForEach(e,(function(e){(i||e===n)&&(i=!0,r.push(e))}))),n&&!i&&(r||(r=[]),r.push(n)),HT(r,t)}(t,o,i):DT.isUndefined(i)&&(a=HT(t,o))),o.core=function(){return r},o.diagLog=function(){var e=(r||{}).logger;return e||(e=new FT(n||{})),e},o.getCfg=function(){return n},o.getExtCfg=function(e,t){var r;if(void 0===t&&(t={}),n){var i=n.extensionConfig;i&&e&&(r=i[e])}return r||t},o.getConfig=function(e,t,r){var i;void 0===r&&(r=!1);var a=o.getExtCfg(e,null);return a&&!UT(a[t])?i=a[t]:n&&!UT(n[t])&&(i=n[t]),UT(i)?r:i},o.hasNext=function(){return null!=a},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processNext=function(e){var t=a;t&&(a=t.getNext(),t.processTelemetry(e,o))},o.createNew=function(t,i){return void 0===t&&(t=null),new e(t||a,n,r,i)}},BT=DT.isFunction,qT=function(){function e(){var e=this,t=!1,n=null,r=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){r=e},e.processNext=function(e,t){t?t.processNext(e):r&&BT(r.processTelemetry)&&r.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var i=t;return i||(i=(n||new zT(null,{},e.core)).createNew(null,r&&r.getPlugin?r.getPlugin:r)),i},e._baseTelInit=function(i,o,a,s){i&&(i.extensionConfig=i.extensionConfig||[]),!s&&o&&(s=o.getProcessTelContext().getNext());var l=r;r&&r.getPlugin&&(l=r.getPlugin()),e.core=o,n=new zT(s,i,o,l),t=!0}}return e.prototype.initialize=function(e,t,n,r){this._baseTelInit(e,t,n,r)},e}(),WT=DT.isFunction;function GT(e,t){for(var n=[],r=null,i=e.getNext();i;){var o=i.getPlugin();o&&(r&&WT(r.setNextPlugin)&&WT(o.processTelemetry)&&r.setNextPlugin(o),WT(o.isInitialized)&&o.isInitialized()||n.push(o),r=o,i=i.getNext())}DT.arrForEach(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function XT(e){return e.sort((function(e,t){var n=0,r=WT(t.processTelemetry);return WT(e.processTelemetry)?n=r?e.priority-t.priority:1:r&&(n=-1),n}))}var KT=DT.arrForEach,YT=DT.objDefineAccessors;function ZT(e,t){t&&t.length>0&&(function(e){KT(e,(function(e){if(e.priority<500)throw Error("Channel has invalid priority"+e.identifier)}))}(t=t.sort((function(e,t){return e.priority-t.priority}))),e.push(t))}var QT,$T,JT,eI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.identifier="ChannelControllerPlugin",t.priority=500,t}return fT(t,e),t.prototype.processTelemetry=function(e,t){var n=this;this._channelQueue&&KT(this._channelQueue,(function(r){r.length>0&&n._getTelCtx(t).createNew(r).processNext(e)}))},t.prototype.getChannelControls=function(){return this._channelQueue},t.prototype.initialize=function(t,n,r){if(!this.isInitialized()){e.prototype.initialize.call(this,t,n,r),t.isCookieUseDisabled&&DT.disableCookies();var i=this._channelQueue=function(e,t){var n=[];if(e&&KT(e,(function(e){return ZT(n,e)})),t){var r=[];KT(t,(function(e){e.priority>500&&r.push(e)})),ZT(n,r)}return n}((t||{}).channels,r);KT(i,(function(e){return GT(new zT(e,t,n),r)}))}},t._staticInit=(YT(t.prototype,"ChannelControls",t.prototype.getChannelControls),void YT(t.prototype,"channelQueue",t.prototype.getChannelControls)),t}(qT),tI=DT.arrForEach,nI=DT.isNullOrUndefined,rI=function(){function e(){var e=!1;this._extensions=new Array,this._channelController=new eI,this.isInitialized=function(){return e},this._setInit=function(t){e=t},this._eventQueue=[]}return e.prototype.initialize=function(e,t,n,r){if(this.isInitialized())throw Error("Core should not be initialized more than once");if(!e||nI(e.instrumentationKey))throw Error("Please provide instrumentation key");this.config=e;var i=this._channelController;r||(r=DT.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}})),this._notificationManager=r,e.extensions=nI(e.extensions)?[]:e.extensions,(e.extensionConfig=nI(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=r,n||(n=DT.objCreate({throwInternal:function(e,t,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}})),this.logger=n;var o=[];o.push.apply(o,t.concat(e.extensions)),o=XT(o);var a=[],s=[],l={};if(tI(o,(function(e){if(nI(e)||nI(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,r=e.identifier;e&&t&&(nI(l[t])?l[t]=r:n.warnToConsole("Two extensions have same priority #"+t+" - "+l[t]+", "+r)),!t||t0&&(tI(t._eventQueue,(function(e){t.getProcessTelContext().processNext(e)})),t._eventQueue=[]),t.getProcessTelContext().processNext(e)):t._eventQueue.push(e)},e.prototype.getProcessTelContext=function(){var e=this._extensions,t=e;return e&&0!==e.length||(t=[this._channelController]),new zT(t,this.config,this)},e}(),iI=function(){function e(){this.listeners=[]}return e.prototype.addNotificationListener=function(e){this.listeners.push(e)},e.prototype.removeNotificationListener=function(e){for(var t=DT.arrIndexOf(this.listeners,e);t>-1;)this.listeners.splice(t,1),t=DT.arrIndexOf(this.listeners,e)},e.prototype.eventsSent=function(e){for(var t=this,n=function(n){r.listeners[n].eventsSent&&setTimeout((function(){return t.listeners[n].eventsSent(e)}),0)},r=this,i=0;i0||(n=1e4),setInterval((function(){var n=t,r=n.logger?n.logger.queue:[];DT.arrForEach(r,(function(t){var r={name:e||"InternalMessageId: "+t.messageId,iKey:n.config.instrumentationKey,time:DT.toISOString(new Date),baseType:MT.dataType,baseData:{message:t.message}};n.track(r)})),r.length=0}),n)},t.prototype._validateTelemetryItem=function(e){if(DT.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},t.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],2)},t}(rI),aI=function(e,t){return(aI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},sI=function(){return(sI=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.MAX_NAME_LENGTH&&(r=n.substring(0,e.MAX_NAME_LENGTH),t.throwInternal(PT.WARNING,57,"name is too long. It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},!0)),r||n},e.sanitizeString=function(t,n,r){var i;return void 0===r&&(r=e.MAX_STRING_LENGTH),n&&(r=r||e.MAX_STRING_LENGTH,(n=e.trim(n)).toString().length>r&&(i=n.toString().substring(0,r),t.throwInternal(PT.WARNING,61,"string value is too long. It has been truncated to "+r+" characters.",{value:n},!0))),i||n},e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,66)},e.sanitizeMessage=function(t,n){var r;return n&&n.length>e.MAX_MESSAGE_LENGTH&&(r=n.substring(0,e.MAX_MESSAGE_LENGTH),t.throwInternal(PT.WARNING,56,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},!0)),r||n},e.sanitizeException=function(t,n){var r;return n&&n.length>e.MAX_EXCEPTION_LENGTH&&(r=n.substring(0,e.MAX_EXCEPTION_LENGTH),t.throwInternal(PT.WARNING,52,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},!0)),r||n},e.sanitizeProperties=function(t,n){if(n){var r={};for(var i in n){var o=n[i];if(DT.isObject(o)&&CT())try{o=wT().stringify(o)}catch(a){t.throwInternal(PT.WARNING,49,"custom property is not valid",{exception:a},!0)}o=e.sanitizeString(t,o,e.MAX_PROPERTY_LENGTH),r[i=e.sanitizeKeyAndAddUniqueness(t,i,r)]=o}n=r}return n},e.sanitizeMeasurements=function(t,n){if(n){var r={};for(var i in n){var o=n[i];r[i=e.sanitizeKeyAndAddUniqueness(t,i,r)]=o}n=r}return n},e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,69).toString():n},e.sanitizeInput=function(t,n,r,i){var o;return n&&(n=e.trim(n)).length>r&&(o=n.substring(0,r),t.throwInternal(PT.WARNING,i,"input is too long, it has been truncated to "+r+" characters.",{data:n},!0)),o||n},e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},e.trim=function(e){return DT.isString(e)?e.replace(/^\s+|\s+$/g,""):e},e.MAX_NAME_LENGTH=150,e.MAX_ID_LENGTH=128,e.MAX_PROPERTY_LENGTH=8192,e.MAX_STRING_LENGTH=1024,e.MAX_URL_LENGTH=2048,e.MAX_MESSAGE_LENGTH=32768,e.MAX_EXCEPTION_LENGTH=32768,e}(),cI=_T(),hI=DT.isString,fI=null,dI=function(){function e(){}return e.createDomEvent=function(e){var t=null;if(DT.isFunction(Event))t=new Event(e);else{var n=yT();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},e.disableStorage=function(){e._canUseLocalStorage=!1,e._canUseSessionStorage=!1},e._getLocalStorageObject=function(){return e.canUseLocalStorage()?e._getVerifiedStorageObject(QT.LocalStorage):null},e._getVerifiedStorageObject=function(e){var t,n,r=null;try{if(DT.isNullOrUndefined(dT()))return null;n=new Date,(r=pT(e===QT.LocalStorage?"localStorage":"sessionStorage")).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(i){r=null}return r},e.isInternalApplicationInsightsEndpoint=function(t){return-1!==e._internalEndpoints.indexOf(t.toLowerCase())},e.canUseLocalStorage=function(){return void 0===e._canUseLocalStorage&&(e._canUseLocalStorage=!!e._getVerifiedStorageObject(QT.LocalStorage)),e._canUseLocalStorage},e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.getItem(n)}catch(i){e._canUseLocalStorage=!1,t.throwInternal(PT.WARNING,1,"Browser failed read of local storage. "+e.getExceptionName(i),{exception:e.dump(i)})}return null},e.setStorage=function(t,n,r){var i=e._getLocalStorageObject();if(null!==i)try{return i.setItem(n,r),!0}catch(o){e._canUseLocalStorage=!1,t.throwInternal(PT.WARNING,3,"Browser failed write to local storage. "+e.getExceptionName(o),{exception:e.dump(o)})}return!1},e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(i){e._canUseLocalStorage=!1,t.throwInternal(PT.WARNING,5,"Browser failed removal of local storage item. "+e.getExceptionName(i),{exception:e.dump(i)})}return!1},e._getSessionStorageObject=function(){return e.canUseSessionStorage()?e._getVerifiedStorageObject(QT.SessionStorage):null},e.canUseSessionStorage=function(){return void 0===e._canUseSessionStorage&&(e._canUseSessionStorage=!!e._getVerifiedStorageObject(QT.SessionStorage)),e._canUseSessionStorage},e.getSessionStorageKeys=function(){var t=[];if(e.canUseSessionStorage())for(var n in pT("sessionStorage"))t.push(n);return t},e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.getItem(n)}catch(i){e._canUseSessionStorage=!1,t.throwInternal(PT.WARNING,2,"Browser failed read of session storage. "+e.getExceptionName(i),{exception:e.dump(i)})}return null},e.setSessionStorage=function(t,n,r){var i=e._getSessionStorageObject();if(null!==i)try{return i.setItem(n,r),!0}catch(o){e._canUseSessionStorage=!1,t.throwInternal(PT.WARNING,4,"Browser failed write to session storage. "+e.getExceptionName(o),{exception:e.dump(o)})}return!1},e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(i){e._canUseSessionStorage=!1,t.throwInternal(PT.WARNING,6,"Browser failed removal of session storage item. "+e.getExceptionName(i),{exception:e.dump(i)})}return!1},e.disableCookies=function(){DT.disableCookies()},e.canUseCookies=function(t){if(void 0===DT._canUseCookies){DT._canUseCookies=!1;try{DT._canUseCookies=void 0!==e.document.cookie}catch(n){t.throwInternal(PT.WARNING,68,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return DT._canUseCookies},e.disallowsSameSiteNone=function(e){return!!hI(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&"AppleWebKit/605.1.15 (KHTML, like Gecko)"===(t=e).substring((r=(n=t.length)-"AppleWebKit/605.1.15 (KHTML, like Gecko)".length)>=0?r:0,n)||-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11"));var t,n,r},e.setCookie=function(t,n,r,i){if(e.canUseCookies(t)){var o="",a="";i&&(o=";domain="+i);var s=bT();s&&"https:"===s.protocol&&(a=";secure",null===fI&&(fI=e.disallowsSameSiteNone((_T()||{}).userAgent)),fI||(r+=";SameSite=None")),e.document.cookie=n+"="+r+o+";path=/"+a}},e.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},e.getCookie=function(t,n){if(e.canUseCookies(t)){var r="";if(n&&n.length)for(var i=n+"=",o=e.document.cookie.split(";"),a=0;a0;)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64);return e},e.random32=function(){return 4294967296*Math.random()|0},e.generateW3CId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",i=0;i<4;i++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var o=n[8+4*Math.random()|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+o+r.substr(16,3)+r.substr(19,12)},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},e.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():cI?(cI.userAgent||"").toLowerCase():"";return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return(o>0?o+".":"")+(i=i.length<2?"0"+i:i)+":"+(r=r.length<2?"0"+r:r)+":"+(n=n.length<2?"0"+n:n)+"."+(1===t.length?"00"+t:2===t.length?"0"+t:t)},e.isCrossOriginError=function(e,t,n,r,i){return("Script error."===e||"Script error"===e)&&!i},e.dump=function(e){var t=Object.prototype.toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":CT()&&(n=wT().stringify(e)),t+n},e.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},e.addEventHandler=function(e,t){return LT.Attach(mT(),e,t)},e.IsBeaconApiSupported=function(){return"sendBeacon"in cI&&cI.sendBeacon},e.getExtension=function(e,t){for(var n=null,r=0;!n&&r2&&hI(t[2])&&t[2].length>0)return t[2]}return null},e.document=yT()||{},e}(),vI=function(){function e(){}return e.canIncludeCorrelationHeader=function(e,t,n){if(e&&e.disableCorrelationHeaders)return!1;if(!t)return!1;var r=pI.parseUrl(t).host.toLowerCase();if(!(e&&e.enableCorsCorrelation||r===n))return!1;var i,o=e&&e.correlationHeaderDomains;if(o&&(DT.arrForEach(o,(function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));i=i||t.test(r)})),!i))return!1;var a=e&&e.correlationHeaderExcludedDomains;if(!a||0===a.length)return!0;for(var s=0;s0},e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,lI.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix)return n}},e.getCorrelationContextValue=function(e,t){if(e)for(var n=e.split(","),r=0;r0){var s=pI.parseUrl(t);if(i=s.host,!o)if(null!=s.pathname){var l=0===s.pathname.length?"/":s.pathname;"/"!==l.charAt(0)&&(l="/"+l),a=s.pathname,o=uI.sanitizeString(e,n?n+" "+l:l)}else o=uI.sanitizeString(e,t)}else i=r,o=r;return{target:i,name:o,data:a}},e}(),gI=function(){function e(){}return e.Now=function(){var e=kT();return e&&e.now&&e.timing?e.now()+e.timing.navigationStart:(new Date).getTime()},e.GetDuration=function(e,t){var n=null;return 0===e||0===t||DT.isNullOrUndefined(e)||DT.isNullOrUndefined(t)||(n=t-e),n},e}(),yI="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",_I="sampleRate",bI="ProcessLegacy",kI="http.method",CI="https://dc.services.visualstudio.com",wI=function(){function e(){}return e.parse=function(t){if(!t)return{};var n=t.split(e._FIELDS_SEPARATOR),r=DT.arrReduce(n,(function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);return 2===r.length&&(t[r[0].toLowerCase()]=r[1]),t}),{});return DT.objKeys(r).length>0&&(r.endpointsuffix&&(r.ingestionendpoint=r.ingestionendpoint||"https://"+(r.location?r.location+".":"")+"dc."+r.endpointsuffix),r.ingestionendpoint=r.ingestionendpoint||CI),r},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}(),SI=function(e,t){return(SI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function xI(e,t){function n(){this.constructor=e}SI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var EI,TI=function(){return(TI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0}else i.typeName=r.typeName,i.message=r.message,i.stack=r.stack,i.parsedStack=r.parsedStack,i.hasFullStack=r.hasFullStack;return i}return xI(t,e),t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&DT.arrMap(this.parsedStack,(function(e){return e.toInterface()}));return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&DT.arrMap(n.parsedStack,(function(e){return MI.CreateFromInterface(e)}))||n.parsedStack;return new t(e,TI({},n,{parsedStack:r}))},t.parseStack=function(e){var t;if(DT.isString(e)){var n=e.split("\n");t=[];for(var r=0,i=0,o=0;o<=n.length;o++)if(MI.regex.test(n[o])){var a=new MI(n[o],r++);i+=a.sizeInBytes,t.push(a)}if(i>32768)for(var s=0,l=t.length-1,u=0,c=s,h=l;s32768){t.splice(c,h-c+1);break}c=s,h=l,s++,l--}}return t},t}((function(){this.hasFullStack=!0,this.parsedStack=[]})),MI=function(e){function t(n,r){var i=e.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:$T.Required,method:$T.Required,assembly:$T.Default,fileName:$T.Default,line:$T.Default},"string"==typeof n){var o=n;i.level=r,i.method="",i.assembly=dI.trim(o),i.fileName="",i.line=0;var a=o.match(t.regex);a&&a.length>=5&&(i.method=dI.trim(a[2])||i.method,i.fileName=dI.trim(a[4]),i.line=parseInt(a[5])||0)}else i.level=n.level,i.method=n.method,i.assembly=n.assembly,i.fileName=n.fileName,i.line=n.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=t.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}return xI(t,e),t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}((function(){})),FI=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t.measurements={},t}return xI(t,e),t}(RI);!function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"}(EI||(EI={}));var VI,jI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aiDataContract={name:$T.Required,kind:$T.Default,value:$T.Required,count:$T.Default,min:$T.Default,max:$T.Default,stdDev:$T.Default},t}return xI(t,e),t}((function(){this.kind=EI.Measurement})),UI=function(e){function t(t,n,r,i,o,a,s,l){var u=e.call(this)||this;u.aiDataContract={ver:$T.Required,metrics:$T.Required,properties:$T.Default};var c=new jI;return c.count=i>0?i:void 0,c.max=isNaN(a)||null===a?void 0:a,c.min=isNaN(o)||null===o?void 0:o,c.name=uI.sanitizeString(t,n)||dI.NotSpecified,c.value=r,u.metrics=[c],u.properties=uI.sanitizeProperties(t,s),u.measurements=uI.sanitizeMeasurements(t,l),u}return xI(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(FI),HI=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return xI(t,e),t}(PI),zI=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;return l.aiDataContract={ver:$T.Required,name:$T.Default,url:$T.Default,duration:$T.Default,properties:$T.Default,measurements:$T.Default,id:$T.Default},l.id=uI.sanitizeId(t,s),l.url=uI.sanitizeUrl(t,r),l.name=uI.sanitizeString(t,n)||dI.NotSpecified,isNaN(i)||(l.duration=dI.msToTimeSpan(i)),l.properties=uI.sanitizeProperties(t,o),l.measurements=uI.sanitizeMeasurements(t,a),l}return xI(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(HI),BI=function(e){function t(t,n,r,i,o,a,s,l,u,c,h,f){void 0===u&&(u="Ajax");var d=e.call(this)||this;d.aiDataContract={id:$T.Required,ver:$T.Required,name:$T.Default,resultCode:$T.Default,duration:$T.Default,success:$T.Default,data:$T.Default,target:$T.Default,type:$T.Default,properties:$T.Default,measurements:$T.Default,kind:$T.Default,value:$T.Default,count:$T.Default,min:$T.Default,max:$T.Default,stdDev:$T.Default,dependencyKind:$T.Default,dependencySource:$T.Default,commandName:$T.Default,dependencyTypeName:$T.Default},d.id=n,d.duration=dI.msToTimeSpan(o),d.success=a,d.resultCode=s+"",d.type=uI.sanitizeString(t,u);var p=mI.ParseDependencyPath(t,r,l,i);return d.data=uI.sanitizeUrl(t,i)||p.data,d.target=uI.sanitizeString(t,p.target),c&&(d.target=d.target+" | "+c),d.name=uI.sanitizeString(t,p.name),d.properties=uI.sanitizeProperties(t,h),d.measurements=uI.sanitizeMeasurements(t,f),d}return xI(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return xI(t,e),t}(RI)),qI=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.aiDataContract={ver:$T.Required,message:$T.Required,severityLevel:$T.Default,properties:$T.Default},a.message=uI.sanitizeMessage(t,n=n||dI.NotSpecified),a.properties=uI.sanitizeProperties(t,i),a.measurements=uI.sanitizeMeasurements(t,o),r&&(a.severityLevel=r),a}return xI(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return xI(t,e),t}(RI)),WI=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this)||this;return l.aiDataContract={ver:$T.Required,name:$T.Default,url:$T.Default,duration:$T.Default,perfTotal:$T.Default,networkConnect:$T.Default,sentRequest:$T.Default,receivedResponse:$T.Default,domProcessing:$T.Default,properties:$T.Default,measurements:$T.Default},l.url=uI.sanitizeUrl(t,r),l.name=uI.sanitizeString(t,n)||dI.NotSpecified,l.properties=uI.sanitizeProperties(t,o),l.measurements=uI.sanitizeMeasurements(t,a),s&&(l.domProcessing=s.domProcessing,l.duration=s.duration,l.networkConnect=s.networkConnect,l.perfTotal=s.perfTotal,l.receivedResponse=s.receivedResponse,l.sentRequest=s.sentRequest),l}return xI(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return xI(t,e),t}(HI)),GI=function(e){function t(t,n){var r=e.call(this)||this;return r.aiDataContract={baseType:$T.Required,baseData:$T.Required},r.baseType=t,r.baseData=n,r}return xI(t,e),t}(AI);!function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"}(VI||(VI={}));var XI=function(){function e(){}return e.getConfig=function(e,t,n,r){var i;return void 0===r&&(r=!1),i=n&&e.extensionConfig&&e.extensionConfig[n]&&!DT.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],DT.isNullOrUndefined(i)?r:i},e}(),KI=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},YI=function(){function e(){}return e.create=function(e,t,n,r,i,o){if(n=uI.sanitizeString(r,n)||dI.NotSpecified,DT.isNullOrUndefined(e)||DT.isNullOrUndefined(t)||DT.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:DT.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};if(!DT.isNullOrUndefined(i))for(var s in i)i.hasOwnProperty(s)&&(a.data[s]=i[s]);return a},e}(),ZI=function(){function e(){}return e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SessionExt="ses",e.SDKExt="sdk",e}(),QI=new KI,$I="AppInsightsPropertiesPlugin",JI="AppInsightsChannelPlugin",eA="ApplicationInsightsAnalytics",tA=Object.getPrototypeOf,nA=0;function rA(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function iA(e){return"function"==typeof e}function oA(e){return e&&(e===Object.prototype||e===Array.prototype)}function aA(e){return oA(e)||e===Function.prototype}function sA(e){if(e){if(tA)return tA(e);var t=e.__proto__||e.prototype||e.constructor;if(t)return t}return null}function lA(e,t,n){return"constructor"!==t&&iA(e[t])&&(n||rA(e,t))}function uA(e){throw new TypeError("DynamicProto: "+e)}function cA(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function hA(e,t){return rA(e,"prototype")?e.name||t||"_unknown_":((e||{}).constructor||{}).name||t||"_unknown_"}var fA=function(e,t,n){rA(e,"prototype")||uA("theClass is an invalid class definition.");var r=e.prototype;(function(e,t){for(var n=sA(t);n&&!aA(n);){if(n===e)return!0;n=sA(n)}return!1})(r,t)||uA("["+hA(e)+"] is not in class heirarchy of ["+hA(t)+"]");var i=null;rA(r,"_dynClass")?i=r._dynClass:(i="_dynCls$"+hA(e,"_")+"$"+nA,nA++,r._dynClass=i);var o=function(e){var t={};for(var n in e)!t[n]&&lA(e,n,!1)&&(t[n]=e[n]);return t}(t);n(t,function(e,t,n){function r(e,t){return function(){return t.apply(e,arguments)}}var i={};for(var o in n)i[o]=r(t,n[o]);for(var a=sA(e),s=[];a&&!aA(a)&&!cA(s,a);){for(var o in a)!i[o]&&lA(a,o,!tA)&&(i[o]=r(t,a[o]));s.push(a),a=sA(a)}return i}(r,t,o)),function(e,t,n,r){function i(e,t){var n=function n(){var r=this;if(r&&rA(e,"_dynClass")){var i=((r._dynInstFuncs||{})[e._dynClass]||{})[t];if(i)return i.apply(r,arguments);uA("Missing ["+t+"] function")}var o=e[t];return o===n&&(o=sA(e)[t]),iA(o)||uA("["+t+"] is not a function"),o.apply(r,arguments)};return n._isDynProxy=1,n}if(!oA(e)){var o=n._dynInstFuncs=n._dynInstFuncs||{},a=o[t]=o[t]||{};for(var s in n)lA(n,s,!1)&&n[s]!==r[s]&&(a[s]=n[s],delete n[s],(!rA(e,s)||e[s]&&!e[s]._isDynProxy)&&(e[s]=i(e,s)))}}(r,i,t,o)},dA=function e(t,n,r,i){fA(e,this,(function(e){var o,a=DT.arrForEach,s=DT.isNullOrUndefined,l=null,u=[],c=!1;function h(){r&&a(r.getTransmissionControls(),(function(e){a(e,(function(e){return e.flush(!0)}))}))}r&&(o=r.logger),e.trackPageView=function(e,r){var f=e.name;if(s(f)||"string"!=typeof f){var d=yT();f=e.name=d&&d.title||""}var p=e.uri;if(s(p)||"string"!=typeof p){var v=bT();p=e.uri=v&&v.href||""}if(!i.isPerformanceTimingSupported())return t.sendPageViewInternal(e,r),h(),void o.throwInternal(PT.WARNING,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var m,g,y=!1,_=i.getPerformanceTiming().navigationStart;m=gI.GetDuration(_,+new Date),i.shouldCollectDuration(m)||(m=void 0),s(r)||s(r.duration)||(g=r.duration),!n&&isNaN(g)||(isNaN(g)&&(r||(r={}),r.duration=m),t.sendPageViewInternal(e,r),h(),y=!0),r||(r={}),u.push((function(){var n=!1;try{if(i.isPerformanceTimingDataReady()){n=!0;var a={name:f,uri:p};i.populatePageViewPerformanceEvent(a),a.isValid||y?(y||(r.duration=a.durationMs,t.sendPageViewInternal(e,r)),c||(t.sendPageViewPerformanceInternal(a,r),c=!0)):(r.duration=m,t.sendPageViewInternal(e,r))}else gI.GetDuration(_,+new Date)>6e4&&(n=!0,y||(r.duration=6e4,t.sendPageViewInternal(e,r)))}catch(s){o.throwInternal(PT.CRITICAL,38,"trackPageView failed on page load calculation: "+dI.getExceptionName(s),{exception:dI.dump(s)})}return n})),l||(l=setInterval((function(){var e=u.slice(0),t=!1;u=[],a(e,(function(e){e()?t=!0:u.push(e)})),0===u.length&&(clearInterval(l),l=null),t&&h()}),100))}}))},pA=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}return e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+dI.dump(r))}},e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+dI.dump(r)),null}},e.prototype.startPageVisitTimer=function(e,t){try{if(dI.canUseSessionStorage()){if(null!=dI.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new vA(e,t),r=wT().stringify(n);dI.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,r)}}catch(i){this._logger.warnToConsole("Call to start failed: "+dI.dump(i))}},e.prototype.stopPageVisitTimer=function(){try{if(dI.canUseSessionStorage()){var e=Date.now(),t=dI.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t&&CT()){var n=wT().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,dI.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(r){return this._logger.warnToConsole("Stop page visit timer failed: "+dI.dump(r)),null}},e}(),vA=function(e,t){this.pageVisitStartTime=Date.now(),this.pageName=e,this.pageUrl=t},mA=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}return e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var r=t.duration,i=gI.GetDuration(t.startTime,t.connectEnd),o=gI.GetDuration(t.requestStart,t.responseStart),a=gI.GetDuration(t.responseStart,t.responseEnd),s=gI.GetDuration(t.responseEnd,t.loadEventEnd);else r=gI.GetDuration(n.navigationStart,n.loadEventEnd),i=gI.GetDuration(n.navigationStart,n.connectEnd),o=gI.GetDuration(n.requestStart,n.responseStart),a=gI.GetDuration(n.responseStart,n.responseEnd),s=gI.GetDuration(n.responseEnd,n.loadEventEnd);0===r?this._logger.throwInternal(PT.WARNING,10,"error calculating page view performance.",{total:r,network:i,request:o,response:a,dom:s}):this.shouldCollectDuration(r,i,o,a,s)?r0},e.prototype.isPerformanceTimingSupported=function(){var e=kT();return e&&e.timing},e.prototype.isPerformanceTimingDataReady=function(){var e=kT(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0},e.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t=this.MAX_DURATION_ALLOWED)return!1;return!0},e}();function gA(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var yA=function(e){function t(){var t=e.call(this)||this;t.identifier=eA,t.priority=180,t.autoRoutePVDelay=500,t._trackAjaxAttempts=0;var n=bT();return t._prevUri=n&&n.href||"",t}return function(e,t){function n(){this.constructor=e}aI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.getDefaultConfig=function(e){return e||(e={}),e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=dI.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=dI.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=dI.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=dI.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isCookieUseDisabled=dI.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=dI.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=dI.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=dI.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},t.prototype.processTelemetry=function(e,t){var n=!1,r=this._telemetryInitializers.length;t=this._getTelCtx(t);for(var i=0;i=0)return!1}return!0}))}},t.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},t.prototype._sendCORSException=function(e){var t=YI.create({message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:void 0},NI.dataType,NI.envelopeType,this.diagLog(),{url:e});this.core.track(t)},t.Version="2.5.3",t}(qT),_A=function(){function e(e,t){this._name=t,this._events={},this._logger=e}return e.prototype.start=function(e){void 0!==this._events[e]&&this._logger.throwInternal(PT.WARNING,62,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},e.prototype.stop=function(e,t,n,r){var i=this._events[e];if(isNaN(i))this._logger.throwInternal(PT.WARNING,63,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var o=+new Date,a=gI.GetDuration(i,o);this.action(e,t,a,n,r)}delete this._events[e],this._events[e]=void 0},e}(),bA=function(e,t){return(bA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function kA(e,t){function n(){this.constructor=e}bA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var CA=function(){return(CA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this._config.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null},e.prototype.markAsSent=function(e){this.clear()},e.prototype.clearSent=function(e){},e}(),SA=function(){function e(t,n){this._bufferFullMessageSent=!1,this._logger=t,this._config=n;var r=this.getBuffer(e.BUFFER_KEY),i=this.getBuffer(e.SENT_BUFFER_KEY);this._buffer=r.concat(i),this._buffer.length>e.MAX_BUFFER_SIZE&&(this._buffer.length=e.MAX_BUFFER_SIZE),this.setBuffer(e.SENT_BUFFER_KEY,[]),this.setBuffer(e.BUFFER_KEY,this._buffer)}return e.prototype.enqueue=function(t){this._buffer.length>=e.MAX_BUFFER_SIZE?this._bufferFullMessageSent||(this._logger.throwInternal(PT.WARNING,67,"Maximum buffer size reached: "+this._buffer.length,!0),this._bufferFullMessageSent=!0):(this._buffer.push(t),this.setBuffer(e.BUFFER_KEY,this._buffer))},e.prototype.count=function(){return this._buffer.length},e.prototype.clear=function(){this._buffer.length=0,this.setBuffer(e.BUFFER_KEY,[]),this.setBuffer(e.SENT_BUFFER_KEY,[]),this._bufferFullMessageSent=!1},e.prototype.getItems=function(){return this._buffer.slice(0)},e.prototype.batchPayloads=function(e){return e&&e.length>0?this._config.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null},e.prototype.markAsSent=function(t){this._buffer=this.removePayloadsFromBuffer(t,this._buffer),this.setBuffer(e.BUFFER_KEY,this._buffer);var n=this.getBuffer(e.SENT_BUFFER_KEY);n instanceof Array&&t instanceof Array&&((n=n.concat(t)).length>e.MAX_BUFFER_SIZE&&(this._logger.throwInternal(PT.CRITICAL,67,"Sent buffer reached its maximum size: "+n.length,!0),n.length=e.MAX_BUFFER_SIZE),this.setBuffer(e.SENT_BUFFER_KEY,n))},e.prototype.clearSent=function(t){var n=this.getBuffer(e.SENT_BUFFER_KEY);n=this.removePayloadsFromBuffer(t,n),this.setBuffer(e.SENT_BUFFER_KEY,n)},e.prototype.removePayloadsFromBuffer=function(e,t){var n=[];for(var r in t){var i=!1;for(var o in e)if(e[o]===t[r]){i=!0;break}i||n.push(t[r])}return n},e.prototype.getBuffer=function(e){var t=e;try{t=this._config.namePrefix&&this._config.namePrefix()?this._config.namePrefix()+"_"+t:t;var n=dI.getSessionStorage(this._logger,t);if(n){var r=wT().parse(n);if(r)return r}}catch(i){this._logger.throwInternal(PT.CRITICAL,42," storage key: "+t+", "+dI.getExceptionName(i),{exception:dI.dump(i)})}return[]},e.prototype.setBuffer=function(e,t){var n=e;try{n=this._config.namePrefix&&this._config.namePrefix()?this._config.namePrefix()+"_"+n:n;var r=JSON.stringify(t);dI.setSessionStorage(this._logger,n,r)}catch(i){dI.setSessionStorage(this._logger,n,JSON.stringify([])),this._logger.throwInternal(PT.WARNING,41," storage key: "+n+", "+dI.getExceptionName(i)+". Buffer cleared",{exception:dI.dump(i)})}},e.BUFFER_KEY="AI_buffer",e.SENT_BUFFER_KEY="AI_sentBuffer",e.MAX_BUFFER_SIZE=2e3,e}(),xA=function(){function e(){}return e.extractPropsAndMeasurements=function(e,t,n){if(!DT.isNullOrUndefined(e))for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];DT.isNumber(i)?n[r]=i:DT.isString(i)?t[r]=i:CT()&&(t[r]=wT().stringify(i))}},e.createEnvelope=function(t,n,r,i){var o=new OI(t,i,n);r[_I]&&(o.sampleRate=r[_I]),o.iKey=r.iKey;var a=r.iKey.replace(/-/g,"");return o.name=o.name.replace("{0}",a),e.extractPartAExtensions(r,o),r.tags||(r.tags=[]),o},e.extractPartAExtensions=function(t,n){if(n.tags||(n.tags={}),t.ext||(t.ext={}),t.tags||(t.tags=[]),t.ext.user){t.ext.user.authId&&(n.tags[QI.userAuthUserId]=t.ext.user.authId);var r=t.ext.user.id||t.ext.user.localId;r&&(n.tags[QI.userId]=r)}if(t.ext.app&&t.ext.app.sesId&&(n.tags[QI.sessionId]=t.ext.app.sesId),t.ext.device&&((t.ext.device.id||t.ext.device.localId)&&(n.tags[QI.deviceId]=t.ext.device.id||t.ext.device.localId),t.ext.device.deviceClass&&(n.tags[QI.deviceType]=t.ext.device.deviceClass),t.ext.device.ip&&(n.tags[QI.deviceIp]=t.ext.device.ip)),t.ext.web){var i=t.ext.web;i.browserLang&&(n.tags[QI.deviceLanguage]=i.browserLang),i.browserVer&&(n.tags[QI.deviceBrowserVersion]=i.browserVer),i.browser&&(n.tags[QI.deviceBrowser]=i.browser),n.data=n.data||{},n.data.baseData=n.data.baseData||{},n.data.baseData.properties=n.data.baseData.properties||{},i.domain&&(n.data.baseData.properties.domain=i.domain),i.isManual&&(n.data.baseData.properties.isManual=i.isManual.toString()),i.screenRes&&(n.data.baseData.properties.screenRes=i.screenRes),i.userConsent&&(n.data.baseData.properties.userConsent=i.userConsent.toString())}t.ext.device&&t.ext.device.model&&(n.tags[QI.deviceModel]=t.ext.device.model),t.ext.os&&t.ext.os.name&&(n.tags[QI.deviceOS]=t.ext.os.name),t.ext.device&&t.ext.device.deviceType&&(n.tags[QI.deviceType]=t.ext.device.deviceType),t.ext.trace&&(t.ext.trace.parentID&&(n.tags[QI.operationParentId]=t.ext.trace.parentID),t.ext.trace.name&&(n.tags[QI.operationName]=t.ext.trace.name),t.ext.trace.traceID&&(n.tags[QI.operationId]=t.ext.trace.traceID));for(var o={},a=function(e){var n=t.tags[e];DT.arrForEach(DT.objKeys(n),(function(e){o[e]=n[e]})),t.tags.splice(e,1)},s=t.tags.length-1;s>=0;s--)a(s);for(var l in t.tags)o[l]=t.tags[l];n.tags=CA({},n.tags,o),n.tags[QI.internalSdkVersion]||(n.tags[QI.internalSdkVersion]="javascript:"+e.Version)},e.Version="2.5.3",e}(),EA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kA(t,e),t.prototype.Create=function(e,t){this._logger=e,DT.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(PT.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=t.baseData.measurements||{},r=t.baseData.properties||{};xA.extractPropsAndMeasurements(t.data,r,n);var i=t.baseData;if(DT.isNullOrUndefined(i))return e.warnToConsole("Invalid input for dependency data"),null;var o=new BI(e,i.id,i.target,i.name,i.duration,i.success,i.responseCode,i.properties&&i.properties[kI]?i.properties[kI]:"GET",i.type,i.correlationContext,r,n),a=new GI(BI.dataType,o);return xA.createEnvelope(e,BI.envelopeType,t,a)},t.DependencyEnvelopeCreator=new t,t}(xA),TA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kA(t,e),t.prototype.Create=function(e,t){this._logger=e,DT.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(PT.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n={},r={};t.baseType!==DI.dataType&&(n.baseTypeSource=t.baseType),t.baseType===DI.dataType?(n=t.baseData.properties||{},r=t.baseData.measurements||{}):t.baseData&&xA.extractPropsAndMeasurements(t.baseData,n,r),xA.extractPropsAndMeasurements(t.data,n,r);var i=new DI(e,t.baseData.name,n,r),o=new GI(DI.dataType,i);return xA.createEnvelope(e,DI.envelopeType,t,o)},t.EventEnvelopeCreator=new t,t}(xA),IA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kA(t,e),t.prototype.Create=function(e,t){this._logger=e,DT.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(PT.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=NI.CreateFromInterface(e,t.baseData),r=new GI(NI.dataType,n);return xA.createEnvelope(e,NI.envelopeType,t,r)},t.ExceptionEnvelopeCreator=new t,t}(xA),AA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kA(t,e),t.prototype.Create=function(e,t){this._logger=e,DT.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(PT.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=t.baseData.properties||{},r=t.baseData.measurements||{};xA.extractPropsAndMeasurements(t.data,n,r);var i=new UI(e,t.baseData.name,t.baseData.average,t.baseData.sampleCount,t.baseData.min,t.baseData.max,n,r),o=new GI(UI.dataType,i);return xA.createEnvelope(e,UI.envelopeType,t,o)},t.MetricEnvelopeCreator=new t,t}(xA),OA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kA(t,e),t.prototype.Create=function(e,t){var n;this._logger=e,DT.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(PT.CRITICAL,46,"telemetryItem.baseData cannot be null."),DT.isNullOrUndefined(t.baseData)||DT.isNullOrUndefined(t.baseData.properties)||DT.isNullOrUndefined(t.baseData.properties.duration)?DT.isNullOrUndefined(t.data)||DT.isNullOrUndefined(t.data.duration)||(n=t.data.duration,delete t.data.duration):(n=t.baseData.properties.duration,delete t.baseData.properties.duration);var r,i=t.baseData;t.ext&&t.ext.trace&&t.ext.trace.traceID&&(r=t.ext.trace.traceID);var o=i.id||r,a=i.name,s=i.uri,l=i.properties||{},u=i.measurements||{};if(DT.isNullOrUndefined(i.refUri)||(l.refUri=i.refUri),DT.isNullOrUndefined(i.pageType)||(l.pageType=i.pageType),DT.isNullOrUndefined(i.isLoggedIn)||(l.isLoggedIn=i.isLoggedIn.toString()),!DT.isNullOrUndefined(i.properties)){var c=i.properties;for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])}xA.extractPropsAndMeasurements(t.data,l,u);var f=new zI(e,a,s,n,l,u,o),d=new GI(zI.dataType,f);return xA.createEnvelope(e,zI.envelopeType,t,d)},t.PageViewEnvelopeCreator=new t,t}(xA),RA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kA(t,e),t.prototype.Create=function(e,t){this._logger=e,DT.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(PT.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=t.baseData,r=n.name,i=n.uri||n.url,o=n.properties||{},a=n.measurements||{};xA.extractPropsAndMeasurements(t.data,o,a);var s=new WI(e,r,i,void 0,o,a,n),l=new GI(WI.dataType,s);return xA.createEnvelope(e,WI.envelopeType,t,l)},t.PageViewPerformanceEnvelopeCreator=new t,t}(xA),PA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kA(t,e),t.prototype.Create=function(e,t){this._logger=e,DT.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(PT.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=t.baseData.message,r=t.baseData.severityLevel,i=t.baseData.properties||{},o=t.baseData.measurements||{};xA.extractPropsAndMeasurements(t.data,i,o);var a=new qI(e,n,r,i,o),s=new GI(qI.dataType,a);return xA.createEnvelope(e,qI.envelopeType,t,s)},t.TraceEnvelopeCreator=new t,t}(xA),DA=function(){function e(e){this._logger=e}return e.prototype.serialize=function(e){var t=this._serializeObject(e,"root");try{return wT().stringify(t)}catch(n){this._logger.throwInternal(PT.CRITICAL,48,n&&DT.isFunction(n.toString)?n.toString():"Error serializing object",null,!0)}},e.prototype._serializeObject=function(e,t){var n={};if(!e)return this._logger.throwInternal(PT.CRITICAL,48,"cannot serialize object because it is null or undefined",{name:t},!0),n;if(e.__aiCircularRefCheck)return this._logger.throwInternal(PT.WARNING,50,"Circular reference detected while serializing object",{name:t},!0),n;if(!e.aiDataContract){if("measurements"===t)n=this._serializeStringMap(e,"number",t);else if("properties"===t)n=this._serializeStringMap(e,"string",t);else if("tags"===t)n=this._serializeStringMap(e,"string",t);else if(dI.isArray(e))n=this._serializeArray(e,t);else{this._logger.throwInternal(PT.WARNING,49,"Attempting to serialize an object which does not implement ISerializable",{name:t},!0);try{wT().stringify(e),n=e}catch(h){this._logger.throwInternal(PT.CRITICAL,48,h&&DT.isFunction(h.toString)?h.toString():"Error serializing object",null,!0)}}return n}for(var r in e.__aiCircularRefCheck=!0,e.aiDataContract){var i,o=e.aiDataContract[r],a=DT.isFunction(o)?o()&$T.Required:o&$T.Required,s=DT.isFunction(o)?o()&$T.Hidden:o&$T.Hidden,l=o&$T.Array,u=void 0!==e[r],c=DT.isObject(e[r])&&null!==e[r];if(!a||u||l){if(!s)void 0!==(i=c?l?this._serializeArray(e[r],r):this._serializeObject(e[r],r):e[r])&&(n[r]=i)}else this._logger.throwInternal(PT.CRITICAL,24,"Missing required field specification. The field is required but not present on source",{field:r,name:t})}return delete e.__aiCircularRefCheck,n},e.prototype._serializeArray=function(e,t){var n;if(e)if(dI.isArray(e)){n=[];for(var r=0;r100||e<0)&&(this._logger.throwInternal(PT.WARNING,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),this.sampleRate=100),this.sampleRate=e,this.samplingScoreGenerator=new MA}return e.prototype.isSampledIn=function(e){var t=this.sampleRate;return null==t||t>=100||e.baseType===UI.dataType||this.samplingScoreGenerator.getSamplingScore(e)this._senderConfig.maxBatchSizeInBytes()&&this.triggerSend(),this._buffer.enqueue(o),this._setupTimer()}catch(l){n.diagLog().throwInternal(PT.WARNING,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+dI.getExceptionName(l),{exception:dI.dump(l)})}this.processNext(e,n)},t.prototype._xhrReadyStateChange=function(e,t,n){if(4===e.readyState){var r=null;this._appId||(r=this._parseResponse(VA(e)||e.response))&&r.appId&&(this._appId=r.appId),(e.status<200||e.status>=300)&&0!==e.status?!this._senderConfig.isRetryDisabled()&&this._isRetriable(e.status)?(this._resendPayload(t),this.diagLog().throwInternal(PT.WARNING,40,". Response code "+e.status+". Will retry to send "+t.length+" items.")):this._onError(t,this._formatErrorMessageXhr(e)):NA.isOffline()?this._senderConfig.isRetryDisabled()||(this._resendPayload(t,10),this.diagLog().throwInternal(PT.WARNING,40,". Offline - Response Code: "+e.status+". Offline status: "+NA.isOffline()+". Will retry to send "+t.length+" items.")):206===e.status?(r||(r=this._parseResponse(VA(e)||e.response)),r&&!this._senderConfig.isRetryDisabled()?this._onPartialSuccess(t,r):this._onError(t,this._formatErrorMessageXhr(e))):(this._consecutiveErrors=0,this._onSuccess(t,n))}},t.prototype.triggerSend=function(e,t){void 0===e&&(e=!0);try{if(this._senderConfig.disableTelemetry())this._buffer.clear();else{if(this._buffer.count()>0){var n=this._buffer.getItems();t?t.call(this,n,e):this._sender(n,e)}this._lastSend=+new Date}clearTimeout(this._timeoutHandle),this._timeoutHandle=null,this._retryAt=null}catch(r){(!dI.getIEVersion()||dI.getIEVersion()>9)&&this.diagLog().throwInternal(PT.CRITICAL,40,"Telemetry transmission failed, some telemetry will be lost: "+dI.getExceptionName(r),{exception:dI.dump(r)})}},t.prototype._onError=function(e,t,n){this.diagLog().throwInternal(PT.WARNING,26,"Failed to send telemetry.",{message:t}),this._buffer.clearSent(e)},t.prototype._onPartialSuccess=function(e,t){for(var n=[],r=[],i=0,o=t.errors.reverse();i0&&this._onSuccess(e,t.itemsAccepted),n.length>0&&this._onError(n,this._formatErrorMessageXhr(null,["partial success",t.itemsAccepted,"of",t.itemsReceived].join(" "))),r.length>0&&(this._resendPayload(r),this.diagLog().throwInternal(PT.WARNING,40,"Partial success. Delivered: "+e.length+", Failed: "+n.length+". Will retry to send "+r.length+" our of "+t.itemsReceived+" items"))},t.prototype._onSuccess=function(e,t){this._buffer.clearSent(e)},t.prototype._xdrOnLoad=function(e,t){var n=VA(e);if(!e||n+""!="200"&&""!==n){var r=this._parseResponse(n);r&&r.itemsReceived&&r.itemsReceived>r.itemsAccepted&&!this._senderConfig.isRetryDisabled()?this._onPartialSuccess(t,r):this._onError(t,this._formatErrorMessageXdr(e))}else this._consecutiveErrors=0,this._onSuccess(t,0)},t.prototype._isSampledIn=function(e){return this._sample.isSampledIn(e)},t.prototype._beaconSender=function(e,t){var n=this._senderConfig.endpointUrl(),r=this._buffer.batchPayloads(e),i=new Blob([r],{type:"text/plain;charset=UTF-8"});_T().sendBeacon(n,i)?(this._buffer.markAsSent(e),this._onSuccess(e,e.length)):(this._xhrSender(e,!0),this.diagLog().throwInternal(PT.WARNING,40,". Failed to send telemetry with Beacon API, retried with xhrSender."))},t.prototype._xhrSender=function(e,t){var n=this,r=new XMLHttpRequest,i=this._senderConfig.endpointUrl();try{r[yI]=!0}catch(a){}r.open("POST",i,t),r.setRequestHeader("Content-type","application/json"),dI.isInternalApplicationInsightsEndpoint(i)&&r.setRequestHeader(lI.sdkContextHeader,lI.sdkContextHeaderAppIdRequest),r.onreadystatechange=function(){return n._xhrReadyStateChange(r,e,e.length)},r.onerror=function(t){return n._onError(e,n._formatErrorMessageXhr(r),t)};var o=this._buffer.batchPayloads(e);r.send(o),this._buffer.markAsSent(e)},t.prototype._parseResponse=function(e){try{if(e&&""!==e){var t=wT().parse(e);if(t&&t.itemsReceived&&t.itemsReceived>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors.length)return t}}catch(n){this.diagLog().throwInternal(PT.CRITICAL,43,"Cannot parse the response. "+dI.getExceptionName(n),{response:e})}return null},t.prototype._resendPayload=function(e,t){if(void 0===t&&(t=1),e&&0!==e.length){this._buffer.clearSent(e),this._consecutiveErrors++;for(var n=0,r=e;nthis.config.sessionExpirationMs(),r=0!==this.config.sessionExpirationMs()&&t-this.automaticSession.renewalDate>this.config.sessionRenewalMs();n||r?this.renew():(!this.cookieUpdatedTimestamp||t-this.cookieUpdatedTimestamp>e.cookieUpdateInterval)&&(this.automaticSession.renewalDate=t,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},e.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},e.prototype.initializeAutomaticSession=function(){var e=dI.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=dI.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},e.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");t.length>0&&(this.automaticSession.id=t[0]);try{t.length>1&&(this.automaticSession.acquisitionDate=+new Date(+t[1]),this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0),t.length>2&&(this.automaticSession.renewalDate=+new Date(+t[2]),this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0)}catch(n){this._logger.throwInternal(PT.CRITICAL,9,"Error parsing ai_session cookie, session will be reset: "+dI.getExceptionName(n),{exception:dI.dump(n)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(PT.WARNING,27,"AI session renewal date is 0, session will be reset.")},e.prototype.renew=function(){var e=gI.Now();this.automaticSession.id=dI.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),dI.canUseLocalStorage()||this._logger.throwInternal(PT.WARNING,0,"Browser does not support local storage. Session durations will be inaccurate.")},e.prototype.setCookie=function(e,t,n){var r=t+this.config.sessionExpirationMs(),i=n+this.config.sessionRenewalMs(),o=new Date,a=[e,t,n];o.setTime(r0&&(this.id=i[0])}if(this.config=t,!this.id){this.id=dI.newId();var o=new Date,a=DT.toISOString(o);this.accountAcquisitionDate=a,this.isNewUser=!0,o.setTime(o.getTime()+31536e6);var s=[this.id,a],l=this.config.cookieDomain?this.config.cookieDomain():void 0;dI.setCookie(this._logger,e.userCookieName,s.join(e.cookieSeparator)+";expires="+o.toUTCString(),l);var u=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";dI.removeStorage(this._logger,u)}this.accountId=t.accountId?t.accountId():void 0;var c=dI.getCookie(this._logger,e.authUserCookieName);if(c){var h=(c=decodeURI(c)).split(e.cookieSeparator);h[0]&&(this.authenticatedId=h[0]),h.length>1&&h[1]&&(this.accountId=h[1])}}return e.prototype.setAuthenticatedUserContext=function(t,n,r){if(void 0===r&&(r=!1),!this.validateUserInput(t)||n&&!this.validateUserInput(n))this._logger.throwInternal(PT.WARNING,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=t;var i=this.authenticatedId;n&&(this.accountId=n,i=[this.authenticatedId,this.accountId].join(e.cookieSeparator)),r&&dI.setCookie(this._logger,e.authUserCookieName,encodeURI(i),this.config.cookieDomain())}},e.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,dI.deleteCookie(this._logger,e.authUserCookieName)},e.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),XA=function(){},KA=function(e,t,n,r){this.traceID=e||dI.generateW3CId(),this.parentID=t,this.name=n;var i=bT();!n&&i&&i.pathname&&(this.name=i.pathname),this.name=uI.sanitizeString(r,this.name)},YA=function(){function e(e,t){vT()&&(this.sessionManager=new zA(t,e),this.application=new BA,this.device=new qA,this.internal=new WA(t),this.location=new XA,this.user=new GA(t,e),this.telemetryTrace=new KA(void 0,void 0,void 0,e),this.session=new HA),this.appId=function(){return null}}return e.prototype.applySessionContext=function(e,t){var n=this.session||this.sessionManager&&this.sessionManager.automaticSession;n&&"string"==typeof n.id&&(e.ext.app.sesId=n.id),this.session&&(e.ext.app.sesId="string"==typeof this.session.id?this.session.id:this.sessionManager.automaticSession.id)},e.prototype.applyOperatingSystemContxt=function(e,t){this.os&&this.os.name&&(e.ext.os=this.os)},e.prototype.applyApplicationContext=function(e,t){this.application&&("string"==typeof this.application.ver&&(e.tags[QI.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[QI.applicationBuild]=this.application.build))},e.prototype.applyDeviceContext=function(e,t){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},e.prototype.applyInternalContext=function(e,t){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[QI.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[QI.internalSdkVersion]=this.internal.sdkVersion))},e.prototype.applyLocationContext=function(e,t){this.location&&"string"==typeof this.location.ip&&(e.tags[QI.locationIp]=this.location.ip)},e.prototype.applyOperationContext=function(e,t){if(this.telemetryTrace){var n=e.ext.trace||{traceID:void 0,parentID:void 0};"string"==typeof this.telemetryTrace.traceID&&(n.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(n.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(n.parentID=this.telemetryTrace.parentID),e.ext.trace=n}},e.prototype.applyWebContext=function(e,t){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},e.prototype.applyUserContext=function(e,t){this.user&&(e.tags||(e.tags=[]),"string"==typeof this.user.accountId&&(e.tags[QI.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId))},e.prototype.cleanUp=function(e,t){e.ext[ZI.DeviceExt]&&0===DT.objKeys(e.ext[ZI.DeviceExt]).length&&delete e.ext[ZI.DeviceExt],e.ext[ZI.UserExt]&&0===DT.objKeys(e.ext[ZI.UserExt]).length&&delete e.ext[ZI.UserExt],e.ext[ZI.WebExt]&&0===DT.objKeys(e.ext[ZI.WebExt]).length&&delete e.ext[ZI.WebExt],e.ext[ZI.OSExt]&&0===DT.objKeys(e.ext[ZI.OSExt]).length&&delete e.ext[ZI.OSExt],e.ext[ZI.AppExt]&&0===DT.objKeys(e.ext[ZI.AppExt]).length&&delete e.ext[ZI.AppExt],e.ext[ZI.TraceExt]&&0===DT.objKeys(e.ext[ZI.TraceExt]).length&&delete e.ext[ZI.TraceExt]},e}(),ZA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.priority=110,t.identifier=$I,t}return function(e,t){function n(){this.constructor=e}UA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){}}},t.prototype.initialize=function(n,r,i,o){var a=this;e.prototype.initialize.call(this,n,r,i,o);var s=this._getTelCtx(),l=this.identifier,u=t.getDefaultConfig();this._extensionConfig=this._extensionConfig||t.getDefaultConfig();var c=function(e){h._extensionConfig[e]=function(){return s.getConfig(l,e,u[e]())}},h=this;for(var f in u)c(f);this.context=new YA(r.logger,this._extensionConfig),this._breezeChannel=dI.getExtension(i,JI),this.context.appId=function(){return a._breezeChannel?a._breezeChannel._appId:null}},t.prototype.processTelemetry=function(e,t){if(DT.isNullOrUndefined(e));else{if(t=this._getTelCtx(t),e.name===zI.envelopeType&&t.diagLog().resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e,t),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var n=new MT(72,(_T()||{}).userAgent||"");t.diagLog().logInternalMessage(PT.CRITICAL,n)}this.processNext(e,t)}},t.prototype._processTelemetryInternal=function(e,t){e.tags||(e.tags=[]),e.ext||(e.ext={});var n=e.ext;n[ZI.DeviceExt]=n[ZI.DeviceExt]||{},n[ZI.WebExt]=n[ZI.WebExt]||{},n[ZI.UserExt]=n[ZI.UserExt]||{},n[ZI.OSExt]=n[ZI.OSExt]||{},n[ZI.AppExt]=n[ZI.AppExt]||{},n[ZI.TraceExt]=n[ZI.TraceExt]||{};var r=this.context;r.applySessionContext(e,t),r.applyApplicationContext(e,t),r.applyDeviceContext(e,t),r.applyOperationContext(e,t),r.applyUserContext(e,t),r.applyOperatingSystemContxt(e,t),r.applyWebContext(e,t),r.applyLocationContext(e,t),r.applyInternalContext(e,t),r.cleanUp(e,t)},t}(qT),QA=function(e,t){return(QA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},$A=["req","rsp","hkErr","fnErr"];function JA(e,t){if(e)for(var n=0;n=0&&i<=2&&JA(e,(function(e,o){var a=e.cbks,s=a[$A[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s.apply(t.inst,n)}catch(c){var l=t.err;try{var u=a[$A[2]];u&&(t.err=c,u.apply(t.inst,n))}catch(h){}finally{t.err=l}}}}))}function tO(e,t,n,r){if(void 0===r&&(r=!0),e&&t&&n){var i=function e(t,n,r){var i=null;return t&&(DT.hasOwnProperty(t,n)?i=t:r&&(i=e(t.prototype,n,!1))),i}(e,t,r),o=i[t];if("function"==typeof o){var a=o._aiHooks;if(!a){var s=(u=a={i:0,n:t,f:o,h:[]},function(){var e=this,t=arguments,n=u.h,r={name:u.n,inst:e,ctx:null},i=[],o=[r];JA(t,(function(e){o.push(e)})),eO(n,r,o,i,0);var a=u.f;try{r.rslt=a.apply(e,t)}catch(s){throw r.err=s,eO(n,r,o,i,3),s}return eO(n,r,o,i,1),r.rslt});s._aiHooks=a,i[t]=s}var l={id:a.i,cbks:n,rm:function(){var e=this.id;JA(a.h,(function(t,n){if(t.id===e)return a.h.splice(n,1),1}))}};return a.i++,a.h.push(l),l}}var u;return null}var nO=DT.objKeys,rO=DT.arrForEach;function iO(e,t,n){var r=0,i=e[t],o=e[n];return i&&o&&(r=gI.GetDuration(i,o)),r}function oO(e,t,n,r,i){var o=0,a=iO(n,r,i);return a&&(o=aO(e,t,dI.msToTimeSpan(a))),o}function aO(e,t,n){var r=0;return e&&t&&n&&((e.ajaxPerf=e.ajaxPerf||{})[t]=n,r=1),r}var sO=function(){this.openDone=!1,this.setRequestHeaderDone=!1,this.sendDone=!1,this.abortDone=!1,this.stateChangeAttached=!1},lO=function e(t,n,r){var i=r;this.perfMark=null,this.completed=!1,this.requestHeadersSize=null,this.requestHeaders=null,this.responseReceivingDuration=null,this.callbackDuration=null,this.ajaxTotalDuration=null,this.aborted=0,this.pageUrl=null,this.requestUrl=null,this.requestSize=0,this.method=null,this.status=null,this.requestSentTime=null,this.responseStartedTime=null,this.responseFinishedTime=null,this.callbackFinishedTime=null,this.endTime=null,this.xhrMonitoringState=new sO,this.clientFailure=0,this.traceID=t,this.spanID=n,fA(e,this,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?pI.getAbsoluteUrl(e.requestUrl):null},e.getPathName=function(){return e.requestUrl?uI.sanitizeUrl(i,pI.getCompleteUrl(e.method,e.requestUrl)):null},e.CreateTrackItem=function(t,n,r){if(e.ajaxTotalDuration=Math.round(1e3*gI.GetDuration(e.requestSentTime,e.responseFinishedTime))/1e3,e.ajaxTotalDuration<0)return null;var i,o=((i={id:"|"+e.traceID+"."+e.spanID,target:e.getAbsoluteUrl(),name:e.getPathName(),type:t,duration:e.ajaxTotalDuration,success:+e.status>=200&&+e.status<400,responseCode:+e.status,method:e.method}).properties={HttpMethod:e.method},i);if(function(e,t){var n=e.perfTiming,r=t.properties||{},i=0,o=DT.isString,a="redirect",s=a+"Start",l=a="End";if(n){i|=oO(r,a,n,s,l),i|=oO(r,"domainLookup",n,"domainLookupStart","domainLookupEnd"),i|=oO(r,"connect",n,"connectStart","connectEnd"),i|=oO(r,"request",n,"requestStart","requestEnd"),i|=oO(r,"response",n,"responseStart","responseEnd"),i|=oO(r,"networkConnect",n,"startTime","connectEnd"),i|=oO(r,"sentRequest",n,"requestStart","responseEnd");var u=n.duration;u||(u=iO(n,"startTime","responseEnd")||0),i|=aO(r,"duration",u),i|=aO(r,"perfTotal",u);var c=n.serverTiming;if(c){var h={};rO(c,(function(e,t){var n=function(e){var t=e,n=/([^\w\d_$])/g;return n.test(e)&&(t=e.replace(n,"_")),t}(e.name||""+t),r=h[n]||{};rO(nO(e),(function(t){var n=e[t];("name"!==t&&o(n)||DT.isNumber(n))&&(r[t]&&(n=r[t]+";"+n),!n&&o(n)||(r[t]=n))})),h[n]=r})),i|=aO(r,"serverTiming",h)}i|=aO(r,"transferSize",n.transferSize),i|=aO(r,"encodedBodySize",n.encodedBodySize),i|=aO(r,"decodedBodySize",n.decodedBodySize)}else e.perfMark&&(i|=aO(r,"missing",e.perfAttempts));i&&(t.properties=r)}(e,o),n&&nO(e.requestHeaders).length>0&&(o.properties=o.properties||{},o.properties.requestHeaders=e.requestHeaders),r){var a=r();if(a){var s=a.correlationContext;if(s&&(o.correlationContext=s),a.headerMap&&nO(a.headerMap).length>0&&(o.properties=o.properties||{},o.properties.responseHeaders=a.headerMap),e.status>=400){var l=a.type;o.properties=o.properties||{},""!==l&&"text"!==l||(o.properties.responseText=a.responseText?a.statusText+" - "+a.responseText:a.statusText),"json"===l&&(o.properties.responseText=a.response?a.statusText+" - "+JSON.stringify(a.response):a.statusText)}}}return o}}))},uO=function(){function e(t,n){this.traceFlag=e.DEFAULT_TRACE_FLAG,this.version=e.DEFAULT_VERSION,this.traceId=t&&e.isValidTraceId(t)?t:dI.generateW3CId(),this.spanId=n&&e.isValidSpanId(n)?n:dI.generateW3CId().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}(),cO=DT.isNullOrUndefined,hO=DT.arrForEach,fO=DT.objKeys,dO=0;function pO(e){var t="";try{cO(e)||cO(e.ajaxData)||cO(e.ajaxData.requestUrl)||(t+="(url: '"+e.ajaxData.requestUrl+"')")}catch(n){}return t}function vO(e,t,n,r,i){e.diagLog().throwInternal(PT.CRITICAL,t,n,r,i)}function mO(e,t,n,r,i){e.diagLog().throwInternal(PT.WARNING,t,n,r,i)}function gO(e,t,n){return function(r){vO(e,t,n,{ajaxDiagnosticsMessage:pO(r.inst),exception:dI.dump(r.err)})}}function yO(e,t){return e&&t?e.indexOf(t):-1}var _O=function(e){function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var r,i,o,a,s=bT(),l=!1,u=!1,c=s&&s.host&&s.host.toLowerCase(),h=t.getEmptyConfig(),f=!1,d=0,p=!1,v=0,m=!1,g=[],y={};return fA(t,n,(function(e,n){function s(e,t,n){g.push(function(e,t,n){return e?tO(e.prototype,t,n,!1):null}(e,t,n))}function _(e,t,n){var r=!1,i=((DT.isString(t)?t:(t||{}).url||"")||"").toLowerCase(),o=yO(i,"?"),a=yO(i,"#");return(-1===o||-1!==a&&a=0;d--){var p=f[d];if(p){if("resource"===p.entryType)p.initiatorType!==e||-1===yO(p.name,l)&&-1===yO(l,p.name)||(h=p);else if("mark"===p.entryType&&p.name===i.name){t.perfTiming=h;break}if(p.startTime=a||!1===t.async?(i&&DT.isFunction(o.clearMarks)&&o.clearMarks(i.name),t.perfAttempts=u,n()):setTimeout(c,s)}catch(v){r(v)}}()}function x(t){var n="";try{cO(t)||(n+="string"==typeof t?"(url: '"+t+"')":"(url: '"+t.url+"')")}catch(r){vO(e,15,"Failed to grab failed fetch diagnostics message",{exception:dI.dump(r)})}return n}function E(t,n,r,i,o,a){function s(t,n,i){var o=i||{};o.fetchDiagnosticsMessage=x(r),n&&(o.exception=dI.dump(n)),mO(e,t,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",o)}i&&(i.responseFinishedTime=gI.Now(),i.status=n,S("fetch",i,(function(){var t=i.CreateTrackItem("Fetch",f,o);t?e.trackDependencyDataInternal(t):s(14,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})}),(function(e){s(18,e,null)})))}function T(t){if(t&&t.headers)try{var n=t.headers.get(lI.requestContextHeader);return vI.getCorrelationContext(n)}catch(r){mO(e,18,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:x(t),exception:dI.dump(r)})}}e.initialize=function(c,d,y,x){if(!e.isInitialized()){n.initialize(c,d,y,x);var I=e._getTelCtx(),A=t.getDefaultConfig();hO(fO(A),(function(e){h[e]=I.getConfig(t.identifier,e,A[e])}));var O=h.distributedTracingMode;if(f=h.enableRequestHeaderTracking,v=h.maxAjaxCallsPerView,m=h.enableResponseHeaderTracking,o=O===JT.AI||O===JT.AI_AND_W3C,i=O===JT.AI_AND_W3C||O===JT.W3C,p=h.enableAjaxPerfTracking){var R=c.instrumentationKey||"unkwn";a=R.length>5?"ai.ajxmn."+R.substring(R.length-5)+".":"ai.ajxmn."+R+"."}if(!1===h.disableAjaxTracking&&function(e){var t=!1;if("undefined"!=typeof XMLHttpRequest&&!cO(XMLHttpRequest)){var n=XMLHttpRequest.prototype;t=!(cO(n)||cO(n.open)||cO(n.send)||cO(n.abort))}try{" a ".trim()}catch(i){t=!1}if(t)try{(new XMLHttpRequest).ajaxData={};var r=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=r}catch(o){t=!1,vO(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:dI.dump(o)})}return t}(e)&&!u&&(s(XMLHttpRequest,"open",{req:function(t,n,i,o){var a=t.inst,s=a.ajaxData;_(a,i)||!b(a,!0)||s&&s.xhrMonitoringState.openDone||function(t,n,i,o){var a=r&&r.telemetryTrace&&r.telemetryTrace.traceID||dI.generateW3CId(),s=dI.generateW3CId().substr(0,16),l=new lO(a,s,e.diagLog());l.method=n,l.requestUrl=i,l.xhrMonitoringState.openDone=!0,l.requestHeaders={},l.async=o,t.ajaxData=l,function(t){t.ajaxData.xhrMonitoringState.stateChangeAttached=LT.Attach(t,"readystatechange",(function(){try{t&&4===t.readyState&&b(t)&&function(t){var n=t.ajaxData;function r(n,r){var i=r||{};i.ajaxDiagnosticsMessage=pO(t),n&&(i.exception=dI.dump(n)),mO(e,14,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}n.responseFinishedTime=gI.Now(),n.status=t.status,S("xmlhttprequest",n,(function(){try{var i=n.CreateTrackItem("Ajax",f,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:C(t),type:t.responseType,responseText:k(t),response:t.response};if(m){var n=t.getAllResponseHeaders();if(n){var r=n.trim().split(/[\r\n]+/),i={};hO(r,(function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");i[n]=r})),e.headerMap=i}}return e}));i?e.trackDependencyDataInternal(i):r(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{t.ajaxData=null}catch(o){}}}),(function(e){r(e,null)}))}(t)}catch(r){var n=dI.dump(r);n&&-1!==yO(n.toLowerCase(),"c00c023f")||vO(e,16,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:pO(t),exception:n})}}))}(t)}(a,n,i,o)},hkErr:gO(e,15,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),s(XMLHttpRequest,"send",{req:function(t,n){var r=t.inst,i=r.ajaxData;b(r)&&!i.xhrMonitoringState.sendDone&&(w("xhr",i),i.requestSentTime=gI.Now(),r=e.includeCorrelationHeaders(i,void 0,void 0,r),i.xhrMonitoringState.sendDone=!0)},hkErr:gO(e,17,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),s(XMLHttpRequest,"abort",{req:function(e){var t=e.inst,n=t.ajaxData;b(t)&&!n.xhrMonitoringState.abortDone&&(n.aborted=1,n.xhrMonitoringState.abortDone=!0)},hkErr:gO(e,13,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),f&&s(XMLHttpRequest,"setRequestHeader",{req:function(e,t,n){var r=e.inst;b(r)&&(r.ajaxData.requestHeaders[t]=n)},hkErr:gO(e,71,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),u=!0),function(){var t,n=!(t=dT())||cO(t.Request)||cO(t.Request.prototype)||cO(t.fetch)?null:t.fetch;if(n){var i=dT(),o=n.polyfill;!1===h.disableFetchTracking?(g.push(tO(i,"fetch",{req:function(t,n,i){var a;if(l&&!_(null,n,i)&&(!o||!u)){var s=t.ctx();a=function(t,n){var i=r&&r.telemetryTrace&&r.telemetryTrace.traceID||dI.generateW3CId(),o=dI.generateW3CId().substr(0,16),a=new lO(i,o,e.diagLog());a.requestSentTime=gI.Now(),a.requestUrl=t instanceof Request?t?t.url:"":t;var s="GET";n&&n.method?s=n.method:t&&t instanceof Request&&(s=t.method),a.method=s;var l={};return n&&n.headers&&f&&(l=n.headers),a.requestHeaders=l,w("fetch",a),a}(n,i),i=e.includeCorrelationHeaders(a,n,i),s.data=a}},rsp:function(e,t){var n=e.ctx().data;n&&(e.rslt=e.rslt.then((function(e){return E(0,(e||{}).status,e,n,(function(){var t={statusText:e.statusText,headerMap:null,correlationContext:T(e)};if(m){var n={};e.headers.forEach((function(e,t){n[t]=e})),t.headerMap=n}return t})),e})).catch((function(e){throw E(0,0,t,n,null),e})))},hkErr:gO(e,15,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),l=!0):o&&g.push(tO(i,"fetch",{req:function(e,t,n){_(null,t,n)}})),o&&(i.fetch.polyfill=o)}}(),y.length>0&&y){for(var P=void 0,D=0;!P&&D0)throw new Error("Extensions not allowed in legacy mode");var t=[],n=new jA;return t.push(n),t.push(this.properties),t.push(this.dependencies),t.push(this.appInsights),this.core.initialize(this.config,t),this.emptyQueue(),this.pollInternalLogs(),this.addHousekeepingBeforeUnload(this),this.context=this.properties.context,this},e.prototype.updateSnippetDefinitions=function(e){for(var t in this)DT.isString(t)&&(e[t]=this[t])},e.prototype.emptyQueue=function(){try{if(dI.isArray(this.snippet.queue)){for(var e=this.snippet.queue.length,t=0;t0?this.config.diagnosticLogInterval:1e4},e}();function kO(e,t){if(1&e&&(Ea(0,"div"),ls(1),Ta()),2&e){var n=ja();hi(1),cs(" Sorry, ",n.cardNumber," is not a valid Bingo card.\n")}}function CO(e,t){if(1&e&&(Ea(0,"div"),Ea(1,"mat-grid-tile"),Ea(2,"div"),Ea(3,"table"),Ea(4,"tr"),ls(5),Ta(),Ea(6,"tr"),Ia(7,"mat-checkbox"),Ta(),Ta(),Ta(),Ta(),Ta()),2&e){var n=t.$implicit,r=ja().$implicit,i=ja(2);hi(5),us(i.cardValue(r,n))}}function wO(e,t){if(1&e&&(Ea(0,"div"),_a(1,CO,8,1,"div",6),Ta()),2&e){var n=ja(2);hi(1),Sa("ngForOf",n.numbers)}}function SO(e,t){if(1&e&&(Ea(0,"div"),Ea(1,"mat-grid-list",3),Ea(2,"div",4),Ea(3,"mat-grid-tile"),ls(4,"B"),Ta(),Ea(5,"mat-grid-tile"),ls(6,"I"),Ta(),Ea(7,"mat-grid-tile"),ls(8,"N"),Ta(),Ea(9,"mat-grid-tile"),ls(10,"G"),Ta(),Ea(11,"mat-grid-tile"),ls(12,"O"),Ta(),Ta(),Ia(13,"hr"),Ta(),Ea(14,"mat-grid-list",5),_a(15,wO,2,1,"div",6),Ta(),Ta()),2&e){var n=ja();hi(15),Sa("ngForOf",n.numbers)}}var xO,EO,TO=((xO=function(){function e(t,n){_classCallCheck(this,e),this.route=t,this.http=n,this.title="jakija-bingo",this.appInsights=new bO({config:{instrumentationKey:"7b528cae-344b-481a-bda9-e1ec88b7de05"}}),this.card=[],this.cardReady=!1,this.cardInvalid=!1,this.numbers=Array(5).fill(0).map((function(e,t){return t})),this.uploadResponseText=""}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.appInsights.loadAppInsights(),this.route.queryParams.subscribe((function(t){null!=t.card&&(e.CardValid(t.card)?(e.cardNumber=t.card,e.GenerateCard(t.card),e.appInsights.trackEvent({name:"CardGenerated"})):(e.cardNumber=t.card,e.cardInvalid=!0,e.appInsights.trackEvent({name:"InvalidCard"})))}))}},{key:"CardValid",value:function(e){return Math.floor(e/100).toString().split("").map(Number).reduce((function(e,t){return e+t}),0)===parseInt(e.toString().slice(-2),10)}},{key:"GenerateCard",value:function(e){for(var t=n("YSVl")(e),r=0;r<5;r++){this.card[r]=[];for(var i=0;i<5;i++)this.card[r][i]=0}for(var o=0;o<5;o++)for(var a=0;a<5;a++){for(var s=void 0,l=!1;!1===l;)s=Math.floor(15*t())+1+15*o,l=this.NumberIsUniqueInColumn(s,this.card,o);this.card[a][o]=s}this.cardReady=!0}},{key:"cardValue",value:function(e,t){return 2===e&&2===t?"FREE":this.card[e][t].toString()}},{key:"NumberIsUniqueInColumn",value:function(e,t,n){for(var r=!0,i=0;i<5;i++)if(e===t[i][n]){r=!1;break}return r}},{key:"OnSubmit",value:function(e){}},{key:"handleFileInput",value:function(e){var t=this;if(0!==e.length){console.log(e);var n=new FileReader;n.onload=function(n){var r=n.target.result;console.log(r);var i={headers:new EE({"Content-type":e.item(0).type}),observe:"response"};t.http.post("http://localhost:7071/api/uploadphoto",r,i).subscribe((function(n){200===n.status&&(t.uploadResponseText="Photo ".concat(e.item(0).name," uploaded!")),t.inputFiles=""}),(function(n){console.log("Upload error. Code: "+n.status),t.uploadResponseText="Photo ".concat(e.item(0).name," upload error!")}))},n.readAsArrayBuffer(e.item(0))}}},{key:"uploadImage",value:function(e,t){var n=new FormData;return n.append("Image",t,t.name),n.append("ComponentId",e),this.http.post("/api/dashboard/UploadImage",n)}}]),e}()).\u0275fac=function(e){return new(e||xO)(ka(Rv),ka(YE))},xO.\u0275cmp=gt({type:xO,selectors:[["app-bingo-card"]],decls:9,vars:2,consts:[["href","https://www.facebook.com/statecollegelive","target","_blank"],[4,"ngIf"],["href","sendphoto","target","_blank"],["cols","5","rowHeight","3:1"],[2,"font-size","x-large"],["cols","5","rowHeight","1:1"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(ls(0,"JaKiJa Bingo! Play along at "),Ea(1,"a",0),ls(2,"State College Live"),Ta(),_a(3,kO,2,1,"div",1),_a(4,SO,16,1,"div",1),Ia(5,"br"),Ea(6,"a",2),ls(7,"Send a photo"),Ta(),ls(8," to JaKiJa!\n")),2&e&&(hi(3),Sa("ngIf",t.cardInvalid),hi(1),Sa("ngIf",t.cardReady))},directives:[Nc,cC,Xk,Pc,kC],styles:["mat-grid-tile[_ngcontent-%COMP%]{background:#add8e6}tr[_ngcontent-%COMP%]{text-align:center}"]}),xO),IO=(EO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}EO(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),AO=function(e){function t(t,n){var r=this,i=this.constructor.prototype;return(r=e.call(this,t)||this).statusCode=n,r.__proto__=i,r}return IO(t,e),t}(Error),OO=function(e){function t(t){void 0===t&&(t="A timeout occurred.");var n=this,r=this.constructor.prototype;return(n=e.call(this,t)||this).__proto__=r,n}return IO(t,e),t}(Error),RO=function(e){function t(t){void 0===t&&(t="An abort occurred.");var n=this,r=this.constructor.prototype;return(n=e.call(this,t)||this).__proto__=r,n}return IO(t,e),t}(Error),PO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch((function(e){}))},e}(),qO=function(){function e(e){this.minimumLogLevel=e,this.outputConsole=console}return e.prototype.log=function(e,t){if(e>=this.minimumLogLevel)switch(e){case LO.Critical:case LO.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+LO[e]+": "+t);break;case LO.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+LO[e]+": "+t);break;case LO.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+LO[e]+": "+t);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+LO[e]+": "+t)}},e}(),WO=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=200&&o.statusCode<300?n(new DO(o.statusCode,o.statusMessage||"",a)):r(new AO(o.statusMessage||"",o.statusCode||0))}));e.abortSignal&&(e.abortSignal.onabort=function(){o.abort(),r(new RO)})}))},t.prototype.getCookieString=function(e){return this.cookieJar.getCookieString(e)},t}(NO),YO=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ZO=function(e){function t(t){var n=e.call(this)||this;return n.logger=t,n}return YO(t,e),t.prototype.send=function(e){var t=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new RO):e.method?e.url?new Promise((function(n,r){var i=new XMLHttpRequest;i.open(e.method,e.url,!0),i.withCredentials=!0,i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var o=e.headers;o&&Object.keys(o).forEach((function(e){i.setRequestHeader(e,o[e])})),e.responseType&&(i.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){i.abort(),r(new RO)}),e.timeout&&(i.timeout=e.timeout),i.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),i.status>=200&&i.status<300?n(new DO(i.status,i.statusText,i.response||i.responseText)):r(new AO(i.statusText,i.status))},i.onerror=function(){t.logger.log(LO.Warning,"Error from HTTP request. "+i.status+": "+i.statusText+"."),r(new AO(i.statusText,i.status))},i.ontimeout=function(){t.logger.log(LO.Warning,"Timeout from HTTP request."),r(new OO)},i.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(NO),QO=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$O=function(e){function t(t){var n=e.call(this)||this;return n.httpClient="undefined"!=typeof XMLHttpRequest?new ZO(t):new KO(t),n}return QO(t,e),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new RO):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(NO),JO=function(){function e(){}return e.write=function(t){return""+t+e.RecordSeparator},e.parse=function(t){if(t[t.length-1]!==e.RecordSeparator)throw new Error("Message is incomplete.");var n=t.split(e.RecordSeparator);return n.pop(),n},e.RecordSeparatorCode=30,e.RecordSeparator=String.fromCharCode(e.RecordSeparatorCode),e}(),eR=function(){function e(){}return e.prototype.writeHandshakeRequest=function(e){return JO.write(JSON.stringify(e))},e.prototype.parseHandshakeResponse=function(e){var t,n;if(UO(e)||"undefined"!=typeof Buffer&&e instanceof Buffer){var r=new Uint8Array(e);if(-1===(o=r.indexOf(JO.RecordSeparatorCode)))throw new Error("Message is incomplete.");var i=o+1;t=String.fromCharCode.apply(null,r.slice(0,i)),n=r.byteLength>i?r.slice(i).buffer:null}else{var o,a=e;if(-1===(o=a.indexOf(JO.RecordSeparator)))throw new Error("Message is incomplete.");t=a.substring(0,i=o+1),n=a.length>i?a.substring(i):null}var s=JO.parse(t),l=JSON.parse(s[0]);if(l.type)throw new Error("Expected a handshake response from the server.");return[n,l]},e}(),tR=function(e){return e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close",e}({}),nR=function(){function e(){this.observers=[]}return e.prototype.next=function(e){for(var t=0,n=this.observers;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+o.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},e.prototype.constructTransport=function(e){switch(e){case uR.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new yR(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case uR.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new gR(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case uR.LongPolling:return new pR(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+e+".")}},e.prototype.startTransport=function(e,t){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return n.stopConnection(e)},this.transport.connect(e,t)},e.prototype.resolveTransportOrError=function(e,t,n){var r=uR[e.transport];if(null==r)return this.logger.log(LO.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function(e,t){return!e||0!=(t&e)}(t,r))return this.logger.log(LO.Debug,"Skipping transport '"+uR[r]+"' because it was disabled by the client."),new Error("'"+uR[r]+"' is disabled by the client.");if(!(e.transferFormats.map((function(e){return cR[e]})).indexOf(n)>=0))return this.logger.log(LO.Debug,"Skipping transport '"+uR[r]+"' because it does not support the requested transfer format '"+cR[n]+"'."),new Error("'"+uR[r]+"' does not support "+cR[n]+".");if(r===uR.WebSockets&&!this.options.WebSocket||r===uR.ServerSentEvents&&!this.options.EventSource)return this.logger.log(LO.Debug,"Skipping transport '"+uR[r]+"' because it is not supported in your environment.'"),new Error("'"+uR[r]+"' is not supported in your environment.");this.logger.log(LO.Debug,"Selecting transport '"+uR[r]+"'.");try{return this.constructTransport(r)}catch(i){return i}},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.stopConnection=function(e){if(this.logger.log(LO.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log(LO.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(LO.Information,"Connection disconnected."),this.connectionId=void 0,this.connectionState="Disconnected",this.onclose&&this.connectionStarted){this.connectionStarted=!1;try{this.onclose(e)}catch(t){this.logger.log(LO.Error,"HttpConnection.onclose("+e+") threw error '"+t+"'.")}}}else this.logger.log(LO.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(LO.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!VO.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log(LO.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},e}(),AR=function(){function e(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new OR,this.transportResult=new OR,this.sendLoopPromise=this.sendLoop()}return e.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new OR),this.transportResult.promise},e.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},e.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},e.prototype.sendLoop=function(){return _R(this,void 0,void 0,(function(){var t,n,r;return bR(this,(function(i){switch(i.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(i.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new OR,t=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):e.concatBuffers(this.buffer),this.buffer.length=0,i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return i.sent(),t.resolve(),[3,5];case 4:return r=i.sent(),t.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},e.concatBuffers=function(e){for(var t=e.map((function(e){return e.byteLength})).reduce((function(e,t){return e+t})),n=new Uint8Array(t),r=0,i=0,o=e;i-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=J_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=J_(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&fb().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=J_(e)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}}]),n}(zR)).\u0275fac=function(e){return new(e||TR)(ka(Ns),ka(ub),ka(of,10),ka(fd,8),ka(wd,8),ka(kk),ka(jR,10),ka(FR),ka(bu))},TR.\u0275dir=wt({type:TR,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&Na("blur",(function(){return t._focusChanged(!1)}))("focus",(function(){return t._focusChanged(!0)}))("input",(function(){return t._onInput()})),2&e&&(hs("disabled",t.disabled)("required",t.required),ga("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),Qa("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Os([{provide:dS,useExisting:TR}]),ps,bs]}),TR),qR=((ER=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:ER}),ER.\u0275inj=ve({factory:function(e){return new(e||ER)},providers:[kk],imports:[[VR,DS],VR,DS]}),ER);function WR(e,t){1&e&&(Ea(0,"div"),ls(1," Warming up the server... "),Ia(2,"mat-spinner",6),Ta())}function GR(e,t){if(1&e){var n=Ra();Aa(0),Ea(1,"img",7),Na("click",(function(){Jt(n);var e=t.$implicit;return ja().openPhotoDialog(e)})),xl(2,"async"),xl(3,"loadimg"),Ta(),Oa()}if(2&e){var r=t.$implicit,i=ja();hi(1),Sa("src",El(2,1,Tl(3,3,r,i.url,i.password,!0)),Yr)}}var XR,KR,YR,ZR,QR=function(){return[4,8,16]},$R=((ZR=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n}return _createClass(e,[{key:"onOKClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||ZR)(ka(cE),ka(hE))},ZR.\u0275cmp=gt({type:ZR,selectors:[["photo-dialog"]],decls:4,vars:8,consts:[["mat-dialog-content",""],[2,"max-width","100%","max-height","100%",3,"src","click"]],template:function(e,t){1&e&&(Ea(0,"div",0),Ea(1,"img",1),Na("click",(function(){return t.onOKClick()})),xl(2,"async"),xl(3,"loadimg"),Ta(),Ta()),2&e&&(hi(1),Sa("src",El(2,1,Tl(3,3,t.data.i,t.data.url,t.data.password,!1)),Yr))},directives:function(){return[_E]},pipes:function(){return[eh,tP]},styles:[".mat-dialog-content[_ngcontent-%COMP%]{margin:0;padding:0;height:calc(100% - 5px);width:calc(100% - 5px);max-height:calc(100% - 5px);max-width:calc(100% - 5px)}"]}),ZR),JR=((YR=function(){function e(t,n){_classCallCheck(this,e),this.dialogRef=t,this.data=n}return _createClass(e,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),e}()).\u0275fac=function(e){return new(e||YR)(ka(cE),ka(hE))},YR.\u0275cmp=gt({type:YR,selectors:[["password-dialog"]],decls:12,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","","type","password",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(Ea(0,"h1",0),ls(1,"Enter Password"),Ta(),Ea(2,"div",1),Ea(3,"mat-form-field"),Ea(4,"mat-label"),ls(5,"Password"),Ta(),Ea(6,"input",2),Na("ngModelChange",(function(e){return t.data.password=e})),Ta(),Ta(),Ta(),Ea(7,"div",3),Ea(8,"button",4),ls(9,"Ok"),Ta(),Ea(10,"button",5),Na("click",(function(){return t.onNoClick()})),ls(11,"Cancel"),Ta(),Ta()),2&e&&(hi(6),Sa("ngModel",t.data.password),hi(2),Sa("mat-dialog-close",t.data.password))},directives:[yE,_E,PS,SS,BR,$h,af,bd,bE,IC,gE],encapsulation:2}),YR),eP=((KR=function(){function e(t,n,r){_classCallCheck(this,e),this.http=t,this.dialog=n,this.sanitizer=r,this.serverReady=!1,this.loggedIn=!1,this.page=0,this.size=4,this.photoCount=0,this.url="https://jakijaphotosapi.azurewebsites.net"}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;this.paginator.initialized.subscribe((function(){e.HeartbeatCheck=new w((function(t){var n=setInterval((function(){e.http.get(e.url+"/api/heartbeat",{observe:"response"}).subscribe((function(e){var r=e.body.apiReady,i=e.body.databaseReady;console.log("apiReady: "+r),console.log("databaseReady: "+i),r&&i?(clearInterval(n),t.next(!0)):t.next(!1)}))}),5e3)})),e.HeartbeatCheck.subscribe((function(t){if(t){if(e.serverReady=!0,e.loggedIn)return;e.loggedIn=!0,e.dialog.open(JR,{data:{password:e.password}}).afterClosed().subscribe((function(t){void 0!==t&&(e.password=t,e.pw=e.password,e.sound=new LR.Howl({src:["https://jakija.z13.web.core.windows.net/plucky.mp3"]}),e.http.get(e.url+"/api/photos/?metaonly=True",{observe:"response"}).subscribe((function(t){e.photoCount=t.body.count;var n=e.photoCount,r=n-e.size;r<0&&(r=0),e.data=Array(n-r).fill(0).map((function(e,t){return n-t}))})))}))}}))}));var t=(new NR).withUrl(this.url+"/api/").configureLogging(LO.Information).withAutomaticReconnect().build();t.on("NewPhoto",(function(t){void 0!==e.password&&(console.log(t),e.sound.play(),e.http.get(e.url+"/api/photos/?metaonly=True",{observe:"response"}).subscribe((function(t){e.photoCount=t.body.count;var n=e.photoCount-e.paginator.pageIndex*e.paginator.pageSize,r=n-e.paginator.pageSize;r<0&&(r=0),e.data=Array(n-r).fill(0).map((function(e,t){return n-t}))})))})),t.start().catch((function(e){return document.write(e)}))}},{key:"ngOnInit",value:function(){}},{key:"openPhotoDialog",value:function(e){this.dialog.open($R,{height:"calc(100% - 5px)",width:"calc(100% - 5px)",maxWidth:"100%",maxHeight:"100%",data:{i:e,password:this.password,url:this.url}})}},{key:"getData",value:function(e){var t=e.length-e.pageIndex*e.pageSize,n=t-e.pageSize;n<0&&(n=0),this.data=Array(t-n).fill(0).map((function(e,n){return t-n}))}}]),e}()).\u0275fac=function(e){return new(e||KR)(ka(YE),ka(vE),ka(Nh))},KR.\u0275cmp=gt({type:KR,selectors:[["app-photo-viewer"]],viewQuery:function(e,t){var n;1&e&&Bl(Vx,!0),2&e&&Hl(n=Kl())&&(t.paginator=n.first)},decls:6,vars:7,consts:[[4,"ngIf"],["fxFill","","fxLayout","column","fxLayoutAlign","space-between"],[3,"length","pageSize","pageIndex","pageSizeOptions","page"],["paginator",""],["fxLayout","row wrap"],[4,"ngFor","ngForOf"],["diameter","20"],[3,"src","click"]],template:function(e,t){1&e&&(_a(0,WR,3,0,"div",0),Ea(1,"div",1),Ea(2,"mat-paginator",2,3),Na("page",(function(e){return t.getData(e)})),Ta(),Ea(4,"div",4),_a(5,GR,4,8,"ng-container",5),Ta(),Ta()),2&e&&(Sa("ngIf",!1===t.serverReady),hi(2),Sa("length",t.photoCount)("pageSize",t.size)("pageIndex",t.page)("pageSizeOptions",wl(6,QR)),hi(3),Sa("ngForOf",t.data))},directives:function(){return[Nc,Vx,Pc,Zx]},pipes:function(){return[eh,tP]},styles:[""]}),KR),tP=((XR=function(){function e(t,n){_classCallCheck(this,e),this.http=t,this.sanitizer=n}return _createClass(e,[{key:"transform",value:function(e,t,n,r){var i=this;return this.http.get(t+"/api/photos/"+e+"?thumb="+r+"&pw="+n,{responseType:"blob"}).pipe(U((function(e){var t=URL.createObjectURL(e);return i.sanitizer.bypassSecurityTrustUrl(t)})))}}]),e}()).\u0275fac=function(e){return new(e||XR)(ka(YE),ka(Nh))},XR.\u0275pipe=St({name:"loadimg",type:XR,pure:!0}),XR);function nP(e,t){1&e&&(Ea(0,"div"),ls(1," Please wait... "),Ia(2,"mat-spinner",1),Ta())}function rP(e,t){1&e&&(Ea(0,"div"),Ia(1,"br"),ls(2," Sending photo... "),Ia(3,"mat-spinner",1),Ta())}function iP(e,t){if(1&e){var n=Ra();Ea(0,"div"),Ea(1,"div",2),Ia(2,"label",3),Ea(3,"input",4,5),Na("change",(function(e){return Jt(n),ja().handleFileInput(e.target.files)}))("ngModelChange",(function(e){return Jt(n),ja().inputFiles=e})),Ta(),Ta(),_a(5,rP,4,0,"div",0),ls(6),Ta()}if(2&e){var r=ja();hi(3),Sa("ngModel",r.inputFiles),hi(2),Sa("ngIf",r.sendphotoWaitVisible),hi(1),cs(" ",r.uploadResponseText,"\n")}}var oP,aP,sP=[{path:"",component:TO},{path:"photoviewer",component:eP},{path:"sendphoto",component:(oP=function(){function e(t,n){_classCallCheck(this,e),this.http=t,this.titleService=n,this.title="Send a Photo",this.appInsights=new bO({config:{instrumentationKey:"7b528cae-344b-481a-bda9-e1ec88b7de05"}}),this.uploadResponseText="",this.uploadUIVisible=!1,this.sendphotoWaitVisible=!1,this.apiReady=!1,this.databaseReady=!1,this.url="https://jakijaphotosapi.azurewebsites.net"}return _createClass(e,[{key:"ngOnInit",value:function(){this.titleService.setTitle("Send a photo!"),this.appInsights.loadAppInsights(),this.HeartbeatCheck()}},{key:"HeartbeatCheck",value:function(){var e=this;this.http.get(this.url+"/api/heartbeat",{observe:"response"}).subscribe((function(t){e.apiReady=t.body.apiReady,e.databaseReady=t.body.databaseReady,console.log("apiReady: "+e.apiReady),console.log("databaseReady: "+e.databaseReady),e.uploadUIVisible=e.apiReady}))}},{key:"handleFileInput",value:function(e){var t=this;if(console.log("handleFileInput() called"),0!==e.length){this.uploadResponseText="",this.sendphotoWaitVisible=!0,this.databaseReady=!1;var n=setInterval((function(){if(console.log("Checking if database ready..."),t.databaseReady){clearInterval(n);var r=new FileReader;r.onload=function(n){console.log("reader.onload event...");var r=n.target.result,i={headers:new EE({"Content-type":e.item(0).type}),observe:"response"};t.http.post(t.url+"/api/uploadphoto",r,i).subscribe((function(n){200===n.status&&(t.uploadResponseText="Photo ".concat(e.item(0).name," uploaded!"),t.appInsights.trackEvent({name:"PhotoUploadOK"})),t.inputFiles="",t.sendphotoWaitVisible=!1}),(function(n){console.log("Upload error. Code: "+n.status),t.uploadResponseText="Photo ".concat(e.item(0).name," upload error!"),t.appInsights.trackEvent({name:"PhotoUploadError"}),t.inputFiles="",t.sendphotoWaitVisible=!1}))},r.readAsArrayBuffer(e.item(0))}else t.HeartbeatCheck()}),5e3)}}}]),e}(),oP.\u0275fac=function(e){return new(e||oP)(ka(YE),ka(Hh))},oP.\u0275cmp=gt({type:oP,selectors:[["app-send-photo"]],decls:5,vars:2,consts:[[4,"ngIf"],["diameter","20"],[1,"image-upload"],["for","file-input"],["id","file-input","type","file","accept","image/*",3,"ngModel","change","ngModelChange"],["fileinput",""]],template:function(e,t){1&e&&(ls(0,"Send a photo to JaKiJa!\n"),Ia(1,"br"),Ia(2,"br"),_a(3,nP,3,0,"div",0),_a(4,iP,7,3,"div",0)),2&e&&(hi(3),Sa("ngIf",!1===t.uploadUIVisible),hi(1),Sa("ngIf",t.uploadUIVisible))},directives:[Nc,Zx,$h,af,bd],styles:[""]}),oP)}],lP=((aP=function e(){_classCallCheck(this,e)}).\u0275mod=kt({type:aP,bootstrap:[mg]}),aP.\u0275inj=ve({factory:function(e){return new(e||aP)},providers:[{provide:OS,useValue:{appearance:"fill"}}],imports:[[Vh,ng,ng.forRoot(sP),vg,Ed,Td,B_,hC,wC,jx,qR,Qx,wE,AC,cT]]}),aP);(function(){if(wr)throw new Error("Cannot enable prod mode after platform setup.");Cr=!1})(),Mh().bootstrapModule(lP).catch((function(e){return console.error(e)}))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);