openvidu-livekit-tutorials/openvidu-webcomponent/web/openvidu-webcomponent-2.12.0.js
2020-03-16 13:59:43 +01:00

4 lines
1.2 MiB

!function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++)0!==o[t[f]]&&(n=!1);n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={0:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,(function(r){return e[r]}).bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var p=0;p<f.length;p++)r(f[p]);var a=i;t()}([]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"++zV":function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:a(arguments[3]);c(e,t,i(n),r)}})},"/GqU":function(e,t,n){var r=n("RK3t"),o=n("HYAF");e.exports=function(e){return r(o(e))}},"/b8u":function(e,t,n){var r=n("STAE");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"0BK2":function(e,t){e.exports={}},"0Dky":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"0GbY":function(e,t,n){var r=n("Qo9l"),o=n("2oRo"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},"0TWp":function(e,t,n){var r,o,i=this&&this.__values||function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");var o=e.__Zone_symbol_prefix||"__zone_symbol__";function i(e){return o+e}var a=!0===e[i("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var c=function(){function t(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return Z.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return R},enumerable:!0,configurable:!0}),t.__load_patch=function(o,i){if(P.hasOwnProperty(o)){if(a)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var c="Zone:"+o;n(c),P[o]=i(e,t,j),r(c,c)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){Z={parent:Z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{Z=Z.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),Z={parent:Z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{Z=Z.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");if(e.state!==k||e.type!==D&&e.type!==x){var r=e.state!=E;r&&e._transitionTo(E,T),e.runCount++;var o=R;R=e,Z={parent:Z,zone:this};try{e.type==x&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==k&&e.state!==O&&(e.type==D||e.data&&e.data.isPeriodic?r&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(k,E,k))),Z=Z.parent,R=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(_,k);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(O,_,k),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(T,_),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new f(S,e,t,n,r,void 0))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new f(x,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new f(D,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(O,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(k,w),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},t}();c.__symbol__=i;var u,s={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,o,i){return e.invokeTask(n,r,o,i)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},l=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:s,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new c(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");y(t)}return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n},e.prototype.hasTask=function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),f=function(){function t(n,r,o,i,a,c){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,!o)throw new Error("callback is not defined");this.callback=o;var u=this;this.invoke=n===D&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),z++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==z&&b(),z--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(k,_)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==k&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),p=i("setTimeout"),h=i("Promise"),v=i("then"),d=[],g=!1;function y(t){if(0===z&&0===d.length)if(u||e[h]&&(u=e[h].resolve(0)),u){var n=u[v];n||(n=u.then),n.call(u,b)}else e[p](b,0);t&&d.push(t)}function b(){if(!g){for(g=!0;d.length;){var e=d;d=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){j.onUnhandledError(r)}}}j.microtaskDrainDone(),g=!1}}var m={name:"NO ZONE"},k="notScheduled",_="scheduling",T="scheduled",E="running",w="canceling",O="unknown",S="microTask",x="macroTask",D="eventTask",P={},j={symbol:i,currentZoneFrame:function(){return Z},onUnhandledError:I,microtaskDrainDone:I,scheduleMicroTask:y,showUncaughtError:function(){return!c[i("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:I,patchMethod:function(){return I},bindArguments:function(){return[]},patchThen:function(){return I},patchMacroTask:function(){return I},setNativePromise:function(e){e&&"function"==typeof e.resolve&&(u=e.resolve(0))},patchEventPrototype:function(){return I},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return I},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return I},wrapWithCurrentZone:function(){return I},filterProperties:function(){return[]},attachOriginToPatched:function(){return I},_redefineProperty:function(){return I},patchCallbacks:function(){return I}},Z={parent:null,zone:new c(null,null)},R=null,z=0;function I(){}r("Zone","Zone"),e.Zone=c}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(function(e,t,n){var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,a=n.symbol,c=[],u=a("Promise"),s=a("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(;c.length;)for(var e=function(){var e=c.shift();try{e.zone.runGuarded((function(){throw e}))}catch(t){f(t)}};c.length;)e()};var l=a("unhandledPromiseRejectionHandler");function f(e){n.onUnhandledError(e);try{var r=t[l];r&&"function"==typeof r&&r.call(this,e)}catch(o){}}function p(e){return e&&e.then}function h(e){return e}function v(e){return S.reject(e)}var d=a("state"),g=a("value"),y=a("finally"),b=a("parentPromiseValue"),m=a("parentPromiseState");function k(e,t){return function(n){try{T(e,t,n)}catch(r){T(e,!1,r)}}}var _=a("currentTaskTrace");function T(e,r,i){var a,u,s=(a=!1,function(e){return function(){a||(a=!0,e.apply(null,arguments))}});if(e===i)throw new TypeError("Promise resolved with itself");if(null===e[d]){var l=null;try{"object"!=typeof i&&"function"!=typeof i||(l=i&&i.then)}catch(E){return s((function(){T(e,!1,E)}))(),e}if(!1!==r&&i instanceof S&&i.hasOwnProperty(d)&&i.hasOwnProperty(g)&&null!==i[d])w(i),T(e,i[d],i[g]);else if(!1!==r&&"function"==typeof l)try{l.call(i,s(k(e,r)),s(k(e,!1)))}catch(E){s((function(){T(e,!1,E)}))()}else{e[d]=r;var f=e[g];if(e[g]=i,e[y]===y&&!0===r&&(e[d]=e[m],e[g]=e[b]),!1===r&&i instanceof Error){var p=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;p&&o(i,_,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var h=0;h<f.length;)O(e,f[h++],f[h++],f[h++],f[h++]);if(0==f.length&&0==r){e[d]=0;try{throw new Error("Uncaught (in promise): "+((u=i)&&u.toString===Object.prototype.toString?(u.constructor&&u.constructor.name||"")+": "+JSON.stringify(u):u?u.toString():Object.prototype.toString.call(u))+(i&&i.stack?"\n"+i.stack:""))}catch(E){var v=E;v.rejection=i,v.promise=e,v.zone=t.current,v.task=t.currentTask,c.push(v),n.scheduleMicroTask()}}}}return e}var E=a("rejectionHandledHandler");function w(e){if(0===e[d]){try{var n=t[E];n&&"function"==typeof n&&n.call(this,{rejection:e[g],promise:e})}catch(o){}e[d]=!1;for(var r=0;r<c.length;r++)e===c[r].promise&&c.splice(r,1)}}function O(e,t,n,r,o){w(e);var i=e[d],a=i?"function"==typeof r?r:h:"function"==typeof o?o:v;t.scheduleMicroTask("Promise.then",(function(){try{var r=e[g],o=!!n&&y===n[y];o&&(n[b]=r,n[m]=i);var c=t.run(a,void 0,o&&a!==v&&a!==h?[]:[r]);T(n,!0,c)}catch(u){T(n,!1,u)}}),n)}var S=function(){function e(t){if(!(this instanceof e))throw new Error("Must be an instanceof Promise.");this[d]=null,this[g]=[];try{t&&t(k(this,!0),k(this,!1))}catch(n){T(this,!1,n)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return T(new this(null),!0,e)},e.reject=function(e){return T(new this(null),!1,e)},e.race=function(e){var t,n,r,o,a=new this((function(e,t){r=e,o=t}));function c(e){r(e)}function u(e){o(e)}try{for(var s=i(e),l=s.next();!l.done;l=s.next()){var f=l.value;p(f)||(f=this.resolve(f)),f.then(c,u)}}catch(h){t={error:h}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a},e.all=function(t){return e.allWithCallback(t)},e.allSettled=function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(e){return{status:"fulfilled",value:e}},errorCallback:function(e){return{status:"rejected",reason:e}}})},e.allWithCallback=function(e,t){var n,r,o,a,c=new this((function(e,t){o=e,a=t})),u=2,s=0,l=[],f=function(e){p(e)||(e=h.resolve(e));var n=s;try{e.then((function(e){l[n]=t?t.thenCallback(e):e,0==--u&&o(l)}),(function(e){t?(l[n]=t.errorCallback(e),0==--u&&o(l)):a(e)}))}catch(r){a(r)}u++,s++},h=this;try{for(var v=i(e),d=v.next();!d.done;d=v.next())f(d.value)}catch(g){n={error:g}}finally{try{d&&!d.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}return 0==(u-=2)&&o(l),c},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!0,configurable:!0}),e.prototype.then=function(e,n){var r=new this.constructor(null),o=t.current;return null==this[d]?this[g].push(o,r,e,n):O(this,o,r,e,n),r},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=new this.constructor(null);n[y]=y;var r=t.current;return null==this[d]?this[g].push(r,n,e,e):O(this,r,n,e,e),n},e}();S.resolve=S.resolve,S.reject=S.reject,S.race=S.race,S.all=S.all;var x=e[u]=e.Promise,D=t.__symbol__("ZoneAwarePromise"),P=r(e,"Promise");P&&!P.configurable||(P&&delete P.writable,P&&delete P.value,P||(P={configurable:!0,enumerable:!0}),P.get=function(){return e[D]?e[D]:e[u]},P.set=function(t){t===S?e[D]=t:(e[u]=t,t.prototype[s]||R(t),n.setNativePromise(t))},o(e,"Promise",P)),e.Promise=S;var j,Z=a("thenPatched");function R(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[s]=o,e.prototype.then=function(e,t){var n=this;return new S((function(e,t){o.call(n,e,t)})).then(e,t)},e[Z]=!0}}if(n.patchThen=R,x){R(x);var z=e.fetch;"function"==typeof z&&(e[n.symbol("fetch")]=z,e.fetch=(j=z,function(){var e=j.apply(this,arguments);if(e instanceof S)return e;var t=e.constructor;return t[Z]||R(t),e}))}return Promise[t.__symbol__("uncaughtPromiseErrors")]=c,S}));var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,a=Zone.__symbol__("addEventListener"),c=Zone.__symbol__("removeEventListener"),u=Zone.__symbol__("");function s(e,t){return Zone.current.wrap(e,t)}function l(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var f=Zone.__symbol__,p="undefined"!=typeof window,h=p?window:void 0,v=p&&h||"object"==typeof self&&self||global,d=[null];function g(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=s(e[n],t+"_"+n));return e}function y(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var b="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!("nw"in v)&&void 0!==v.process&&"[object process]"==={}.toString.call(v.process),k=!m&&!b&&!(!p||!h.HTMLElement),_=void 0!==v.process&&"[object process]"==={}.toString.call(v.process)&&!b&&!(!p||!h.HTMLElement),T={},E=function(e){if(e=e||v.event){var t=T[e.type];t||(t=T[e.type]=f("ON_PROPERTY"+e.type));var n,r=this||e.target||v,o=r[t];if(k&&r===h&&"error"===e.type){var i=e;!0===(n=o&&o.call(this,i.message,i.filename,i.lineno,i.colno,i.error))&&e.preventDefault()}else null==(n=o&&o.apply(this,arguments))||n||e.preventDefault();return n}};function w(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=f("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var c=i.get,u=i.set,s=r.substr(2),l=T[s];l||(l=T[s]=f("ON_PROPERTY"+s)),i.set=function(e){var t=this;t||n!==v||(t=v),t&&(t[l]&&t.removeEventListener(s,E),u&&u.apply(t,d),"function"==typeof e?(t[l]=e,t.addEventListener(s,E,!1)):t[l]=null)},i.get=function(){var e=this;if(e||n!==v||(e=v),!e)return null;var t=e[l];if(t)return t;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof e.removeAttribute&&e.removeAttribute(r),o}return null},t(n,r,i),n[a]=!0}}}function O(e,t,n){if(t)for(var r=0;r<t.length;r++)w(e,"on"+t[r],n);else{var o=[];for(var i in e)"on"==i.substr(0,2)&&o.push(i);for(var a=0;a<o.length;a++)w(e,o[a],n)}}var S=f("originalInstance");function x(e){var n=v[e];if(n){v[f(e)]=n,v[e]=function(){var t=g(arguments,e);switch(t.length){case 0:this[S]=new n;break;case 1:this[S]=new n(t[0]);break;case 2:this[S]=new n(t[0],t[1]);break;case 3:this[S]=new n(t[0],t[1],t[2]);break;case 4:this[S]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},j(v[e],n);var r,o=new n((function(){}));for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?v[e].prototype[n]=function(){return this[S][n].apply(this[S],arguments)}:t(v[e].prototype,n,{set:function(t){"function"==typeof t?(this[S][n]=s(t,e+"."+n),j(this[S][n],t)):this[S][n]=t},get:function(){return this[S][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(v[e][r]=n[r])}}function D(t,r,o){for(var i=t;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);var a=f(r),c=null;if(i&&!(c=i[a])&&(c=i[a]=i[r],y(i&&e(i,r)))){var u=o(c,a,r);i[r]=function(){return u(this,arguments)},j(i[r],c)}return c}function P(e,t,n){var r=null;function o(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=D(e,t,(function(e){return function(t,r){var i=n(t,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?l(i.name,r[i.cbIdx],i,o):e.apply(t,r)}}))}function j(e,t){e[f("OriginalDelegate")]=t}var Z=!1,R=!1;function z(){try{var e=h.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}function I(){if(Z)return R;Z=!0;try{var e=h.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(R=!0)}catch(t){}return R}Zone.__load_patch("toString",(function(e){var t=Function.prototype.toString,n=f("OriginalDelegate"),r=f("Promise"),o=f("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?t.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=e[r];if(a)return t.call(a)}if(this===Error){var c=e[o];if(c)return t.call(c)}}return t.call(this)};i[n]=t,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}}));var C=!1;if("undefined"!=typeof window)try{var M=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("test",M,M),window.removeEventListener("test",M,M)}catch(ke){C=!1}var L={useG:!0},A={},N={},F=new RegExp("^"+u+"(\\w+)(true|false)$"),H=f("propagationStopped");function W(e,t,r){var o=r&&r.add||"addEventListener",i=r&&r.rm||"removeEventListener",a=r&&r.listeners||"eventListeners",c=r&&r.rmAll||"removeAllListeners",s=f(o),l="."+o+":",p=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[i].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},h=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[A[t.type].false];if(r)if(1===r.length)p(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[H]);i++)p(o[i],n,t)}},v=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[A[t.type].true];if(r)if(1===r.length)p(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[H]);i++)p(o[i],n,t)}};function d(t,r){if(!t)return!1;var p=!0;r&&void 0!==r.useG&&(p=r.useG);var d=r&&r.vh,g=!0;r&&void 0!==r.chkDup&&(g=r.chkDup);var y=!1;r&&void 0!==r.rt&&(y=r.rt);for(var b=t;b&&!b.hasOwnProperty(o);)b=n(b);if(!b&&t[o]&&(b=t),!b)return!1;if(b[s])return!1;var k,_=r&&r.eventNameToString,T={},E=b[s]=b[o],w=b[f(i)]=b[i],O=b[f(a)]=b[a],S=b[f(c)]=b[c];function x(e){C||"boolean"==typeof T.options||null==T.options||(e.options=!!T.options.capture,T.options=e.options)}r&&r.prepend&&(k=b[f(r.prepend)]=b[r.prepend]);var D=p?function(e){if(!T.isExisting)return x(e),E.call(T.target,T.eventName,T.capture?v:h,T.options)}:function(e){return x(e),E.call(T.target,T.eventName,e.invoke,T.options)},P=p?function(e){if(!e.isRemoved){var t=A[e.eventName],n=void 0;t&&(n=t[e.capture?"true":"false"]);var r=n&&e.target[n];if(r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return w.call(e.target,e.eventName,e.capture?v:h,e.options)}:function(e){return w.call(e.target,e.eventName,e.invoke,e.options)},Z=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},R=Zone[f("BLACK_LISTED_EVENTS")],z=function(t,n,o,i,a,c){return void 0===a&&(a=!1),void 0===c&&(c=!1),function(){var s=this||e,l=arguments[0];r&&r.transferEventName&&(l=r.transferEventName(l));var f=arguments[1];if(!f)return t.apply(this,arguments);if(m&&"uncaughtException"===l)return t.apply(this,arguments);var h=!1;if("function"!=typeof f){if(!f.handleEvent)return t.apply(this,arguments);h=!0}if(!d||d(t,f,s,arguments)){var v,y=arguments[2];if(R)for(var b=0;b<R.length;b++)if(l===R[b])return t.apply(this,arguments);var k=!1;void 0===y?v=!1:!0===y?v=!0:!1===y?v=!1:(v=!!y&&!!y.capture,k=!!y&&!!y.once);var E,w=Zone.current,O=A[l];if(O)E=O[v?"true":"false"];else{var S=(_?_(l):l)+"false",x=(_?_(l):l)+"true",D=u+S,P=u+x;A[l]={},A[l].false=D,A[l].true=P,E=v?P:D}var j,z=s[E],I=!1;if(z){if(I=!0,g)for(b=0;b<z.length;b++)if(Z(z[b],f))return}else z=s[E]=[];var M=s.constructor.name,F=N[M];F&&(j=F[l]),j||(j=M+n+(_?_(l):l)),T.options=y,k&&(T.options.once=!1),T.target=s,T.capture=v,T.eventName=l,T.isExisting=I;var H=p?L:void 0;H&&(H.taskData=T);var W=w.scheduleEventTask(j,f,H,o,i);return T.target=null,H&&(H.taskData=null),k&&(y.once=!0),(C||"boolean"!=typeof W.options)&&(W.options=y),W.target=s,W.capture=v,W.eventName=l,h&&(W.originalDelegate=f),c?z.unshift(W):z.push(W),a?s:void 0}}};return b[o]=z(E,l,D,P,y),k&&(b.prependListener=z(k,".prependListener:",(function(e){return k.call(T.target,T.eventName,e.invoke,T.options)}),P,y,!0)),b[i]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));var o,i=arguments[2];o=void 0!==i&&(!0===i||!1!==i&&!!i&&!!i.capture);var a=arguments[1];if(!a)return w.apply(this,arguments);if(!d||d(w,a,t,arguments)){var c,s=A[n];s&&(c=s[o?"true":"false"]);var l=c&&t[c];if(l)for(var f=0;f<l.length;f++){var p=l[f];if(Z(p,a)){if(l.splice(f,1),p.isRemoved=!0,0===l.length&&(p.allRemoved=!0,t[c]=null,"string"==typeof n)){var h=u+"ON_PROPERTY"+n;t[h]=null}return p.zone.cancelTask(p),y?t:void 0}}return w.apply(this,arguments)}},b[a]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));for(var o=[],i=G(t,_?_(n):n),a=0;a<i.length;a++){var c=i[a],u=c.originalDelegate?c.originalDelegate:c.callback;o.push(u)}return o},b[c]=function(){var t=this||e,n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));var o=A[n];if(o){var a=o.false,u=o.true,s=t[a],l=t[u];if(s){var f=s.slice();for(v=0;v<f.length;v++)this[i].call(this,n,(p=f[v]).originalDelegate?p.originalDelegate:p.callback,p.options)}if(l)for(f=l.slice(),v=0;v<f.length;v++){var p;this[i].call(this,n,(p=f[v]).originalDelegate?p.originalDelegate:p.callback,p.options)}}}else{for(var h=Object.keys(t),v=0;v<h.length;v++){var d=h[v],g=F.exec(d),b=g&&g[1];b&&"removeListener"!==b&&this[c].call(this,b)}this[c].call(this,"removeListener")}if(y)return this},j(b[o],E),j(b[i],w),S&&j(b[c],S),O&&j(b[a],O),!0}for(var g=[],y=0;y<t.length;y++)g[y]=d(t[y],r);return g}function G(e,t){var n=[];for(var r in e){var o=F.exec(r),i=o&&o[1];if(i&&(!t||i===t)){var a=e[r];if(a)for(var c=0;c<a.length;c++)n.push(a[c])}}return n}function B(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",(function(e){return function(t,n){t[H]=!0,e&&e.apply(t,n)}}))}function U(e,t,n,r,o){var i=Zone.__symbol__(r);if(!t[i]){var a=t[i]=t[r];t[r]=function(i,c,u){return c&&c.prototype&&o.forEach((function(t){var o=n+"."+r+"::"+t,i=c.prototype;if(i.hasOwnProperty(t)){var a=e.ObjectGetOwnPropertyDescriptor(i,t);a&&a.value?(a.value=e.wrapWithCurrentZone(a.value,o),e._redefineProperty(c.prototype,t,a)):i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))}else i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))})),a.call(t,i,c,u)},e.attachOriginToPatched(t[r],a)}}var K,V,q,Y,X,J=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],Q=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],$=["load"],ee=["blur","error","focus","load","resize","scroll","messageerror"],te=["bounce","finish","start"],ne=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],re=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],oe=["close","error","open","message"],ie=["error","message"],ae=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],J,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ce(e,t,n){if(!n||0===n.length)return t;var r=n.filter((function(t){return t.target===e}));if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter((function(e){return-1===o.indexOf(e)}))}function ue(e,t,n,r){e&&O(e,ce(e,t,n),r)}function se(e,t){if((!m||_)&&!Zone[e.symbol("patchEvents")]){var r="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(k){var i=window,a=z?[{target:i,ignoreProperties:["error"]}]:[];ue(i,ae.concat(["messageerror"]),o?o.concat(a):o,n(i)),ue(Document.prototype,ae,o),void 0!==i.SVGElement&&ue(i.SVGElement.prototype,ae,o),ue(Element.prototype,ae,o),ue(HTMLElement.prototype,ae,o),ue(HTMLMediaElement.prototype,Q,o),ue(HTMLFrameSetElement.prototype,J.concat(ee),o),ue(HTMLBodyElement.prototype,J.concat(ee),o),ue(HTMLFrameElement.prototype,$,o),ue(HTMLIFrameElement.prototype,$,o);var c=i.HTMLMarqueeElement;c&&ue(c.prototype,te,o);var u=i.Worker;u&&ue(u.prototype,ie,o)}var s=t.XMLHttpRequest;s&&ue(s.prototype,ne,o);var l=t.XMLHttpRequestEventTarget;l&&ue(l&&l.prototype,ne,o),"undefined"!=typeof IDBIndex&&(ue(IDBIndex.prototype,re,o),ue(IDBRequest.prototype,re,o),ue(IDBOpenDBRequest.prototype,re,o),ue(IDBDatabase.prototype,re,o),ue(IDBTransaction.prototype,re,o),ue(IDBCursor.prototype,re,o)),r&&ue(WebSocket.prototype,oe,o)}}function le(){K=Zone.__symbol__,V=Object[K("defineProperty")]=Object.defineProperty,q=Object[K("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Y=Object.create,X=K("unconfigurables"),Object.defineProperty=function(e,t,n){if(pe(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=he(e,t,n)),ve(e,t,n,r)},Object.defineProperties=function(e,t){return Object.keys(t).forEach((function(n){Object.defineProperty(e,n,t[n])})),e},Object.create=function(e,t){return"object"!=typeof t||Object.isFrozen(t)||Object.keys(t).forEach((function(n){t[n]=he(e,n,t[n])})),Y(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=q(e,t);return n&&pe(e,t)&&(n.configurable=!1),n}}function fe(e,t,n){var r=n.configurable;return ve(e,t,n=he(e,t,n),r)}function pe(e,t){return e&&e[X]&&e[X][t]}function he(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[X]||Object.isFrozen(e)||V(e,X,{writable:!0,value:{}}),e[X]&&(e[X][t]=!0)),n}function ve(e,t,n,r){try{return V(e,t,n)}catch(i){if(!n.configurable)throw i;void 0===r?delete n.configurable:n.configurable=r;try{return V(e,t,n)}catch(i){var o=null;try{o=JSON.stringify(n)}catch(i){o=n.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+o+"' on object '"+e+"' and got error, giving up: "+i)}}}function de(e,t){var n=t.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,c=n.FALSE_STR,u=n.ZONE_SYMBOL_PREFIX,s="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),l=[],f=e.wtf,p="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");f?l=p.map((function(e){return"HTML"+e+"Element"})).concat(s):e.EventTarget?l.push("EventTarget"):l=s;for(var h=e.__Zone_disable_IE_check||!1,v=e.__Zone_enable_cross_context_check||!1,d=t.isIEOrEdge(),g="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",y={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},b=0;b<r.length;b++){var m=u+((w=r[b])+c),k=u+(w+a);i[w]={},i[w][c]=m,i[w][a]=k}for(b=0;b<p.length;b++)for(var _=p[b],T=o[_]={},E=0;E<r.length;E++){var w;T[w=r[E]]=_+".addEventListener:"+w}var O=[];for(b=0;b<l.length;b++){var S=e[l[b]];O.push(S&&S.prototype)}return t.patchEventTarget(e,O,{vh:function(e,t,n,r){if(!h&&d){if(v)try{var o;if("[object FunctionWrapper]"===(o=t.toString())||o==g)return e.apply(n,r),!1}catch(i){return e.apply(n,r),!1}else if("[object FunctionWrapper]"===(o=t.toString())||o==g)return e.apply(n,r),!1}else if(v)try{t.toString()}catch(i){return e.apply(n,r),!1}return!0},transferEventName:function(e){return y[e]||e}}),Zone[t.symbol("patchEventTarget")]=!!e.EventTarget,!0}function ge(e,t){var n=e.getGlobalObjects();if((!n.isNode||n.isMix)&&!function(e,t){var n=e.getGlobalObjects();if((n.isBrowser||n.isMix)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var r=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(r&&!r.configurable)return!1;if(r){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var o=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",r),o}}var i=t.XMLHttpRequest;if(!i)return!1;var a=i.prototype,c=e.ObjectGetOwnPropertyDescriptor(a,"onreadystatechange");if(c)return e.ObjectDefineProperty(a,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}}),o=!!(s=new i).onreadystatechange,e.ObjectDefineProperty(a,"onreadystatechange",c||{}),o;var u=e.symbol("fake");e.ObjectDefineProperty(a,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[u]},set:function(e){this[u]=e}});var s=new i,l=function(){};return s.onreadystatechange=l,o=s[u]===l,s.onreadystatechange=null,o}(e,t)){var r="undefined"!=typeof WebSocket;!function(e){for(var t=e.getGlobalObjects().eventNames,n=e.symbol("unbound"),r=function(r){var o=t[r],i="on"+o;self.addEventListener(o,(function(t){var r,o,a=t.target;for(o=a?a.constructor.name+"."+i:"unknown."+i;a;)a[i]&&!a[i][n]&&((r=e.wrapWithCurrentZone(a[i],o))[n]=a[i],a[i]=r),a=a.parentElement}),!0)},o=0;o<t.length;o++)r(o)}(e),e.patchClass("XMLHttpRequest"),r&&function(e,t){var n=e.getGlobalObjects(),r=n.ADD_EVENT_LISTENER_STR,o=n.REMOVE_EVENT_LISTENER_STR,i=t.WebSocket;t.EventTarget||e.patchEventTarget(t,[i.prototype]),t.WebSocket=function(t,n){var a,c,u=arguments.length>1?new i(t,n):new i(t),s=e.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=e.ObjectCreate(u),c=u,[r,o,"send","close"].forEach((function(t){a[t]=function(){var n=e.ArraySlice.call(arguments);if(t===r||t===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[t].apply(u,n)}}))):a=u,e.patchOnProperties(a,["close","error","message","open"],c),a};var a=t.WebSocket;for(var c in i)a[c]=i[c]}(e,t),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",(function(n,i,a){a.patchOnProperties=O,a.patchMethod=D,a.bindArguments=g,a.patchMacroTask=P;var c=i.__symbol__("BLACK_LISTED_EVENTS"),l=i.__symbol__("UNPATCHED_EVENTS");n[l]&&(n[c]=n[l]),n[c]&&(i[c]=i[l]=n[c]),a.patchEventPrototype=B,a.patchEventTarget=W,a.isIEOrEdge=I,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=r,a.ArraySlice=o,a.patchClass=x,a.wrapWithCurrentZone=s,a.filterProperties=ce,a.attachOriginToPatched=j,a._redefineProperty=Object.defineProperty,a.patchCallbacks=U,a.getGlobalObjects=function(){return{globalSources:N,zoneSymbolEventNames:A,eventNames:ae,isBrowser:k,isMix:_,isNode:m,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:u,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})),function(e){e[(e.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var t=e.Zone;t.__load_patch("defineProperty",(function(e,t,n){n._redefineProperty=fe,le()})),t.__load_patch("registerElement",(function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in e.document&&t.patchCallbacks(t,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(e,n)})),t.__load_patch("EventTargetLegacy",(function(e,t,n){de(e,n),ge(n,e)}))}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});var ye=f("zoneTask");function be(e,t,n,r){var o=null,i=null;n+=r;var a={};function c(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[ye]=null))}},n.handleId=o.apply(e,n.args),t}function u(e){return i(e.data.handleId)}o=D(e,t+=r,(function(n){return function(o,i){if("function"==typeof i[0]){var s=l(t,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},c,u);if(!s)return s;var f=s.data.handleId;return"number"==typeof f?a[f]=s:f&&(f[ye]=s),f&&f.ref&&f.unref&&"function"==typeof f.ref&&"function"==typeof f.unref&&(s.ref=f.ref.bind(f),s.unref=f.unref.bind(f)),"number"==typeof f||f?f:s}return n.apply(e,i)}})),i=D(e,n,(function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[ye])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[ye]=null),o.zone.cancelTask(o)):t.apply(e,r)}}))}function me(e,t){if(!Zone[t.symbol("patchEventTarget")]){for(var n=t.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u=0;u<r.length;u++){var s=r[u],l=c+(s+a),f=c+(s+i);o[s]={},o[s][a]=l,o[s][i]=f}var p=e.EventTarget;if(p&&p.prototype)return t.patchEventTarget(e,[p&&p.prototype]),!0}}Zone.__load_patch("legacy",(function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()})),Zone.__load_patch("timers",(function(e){be(e,"set","clear","Timeout"),be(e,"set","clear","Interval"),be(e,"set","clear","Immediate")})),Zone.__load_patch("requestAnimationFrame",(function(e){be(e,"request","cancel","AnimationFrame"),be(e,"mozRequest","mozCancel","AnimationFrame"),be(e,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",(function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)D(e,n[r],(function(n,r,o){return function(r,i){return t.current.run(n,e,i,o)}}))})),Zone.__load_patch("EventTarget",(function(e,t,n){!function(e,t){t.patchEventPrototype(e,t)}(e,n),me(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype]),x("MutationObserver"),x("WebKitMutationObserver"),x("IntersectionObserver"),x("FileReader")})),Zone.__load_patch("on_property",(function(e,t,n){se(n,e)})),Zone.__load_patch("customElements",(function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)})),Zone.__load_patch("XHR",(function(e,t){!function(e){var p=e.XMLHttpRequest;if(p){var h=p.prototype,v=h[a],d=h[c];if(!v){var g=e.XMLHttpRequestEventTarget;if(g){var y=g.prototype;v=y[a],d=y[c]}}var b=D(h,"open",(function(){return function(e,t){return e[r]=0==t[2],e[u]=t[1],b.apply(e,t)}})),m=f("fetchTaskAborting"),k=f("fetchTaskScheduling"),_=D(h,"send",(function(){return function(e,n){if(!0===t.current[k])return _.apply(e,n);if(e[r])return _.apply(e,n);var o={target:e,url:e[u],isPeriodic:!1,args:n,aborted:!1},i=l("XMLHttpRequest.send",w,o,E,O);e&&!0===e[s]&&!o.aborted&&"scheduled"===i.state&&i.invoke()}})),T=D(h,"abort",(function(){return function(e,r){var o=e[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===t.current[m])return T.apply(e,r)}}))}function E(e){var r=e.data,u=r.target;u[i]=!1,u[s]=!1;var l=u[o];v||(v=u[a],d=u[c]),l&&d.call(u,"readystatechange",l);var f=u[o]=function(){if(u.readyState===u.DONE)if(!r.aborted&&u[i]&&"scheduled"===e.state){var n=u[t.__symbol__("loadfalse")];if(n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=u[t.__symbol__("loadfalse")],i=0;i<n.length;i++)n[i]===e&&n.splice(i,1);r.aborted||"scheduled"!==e.state||o.call(e)},n.push(e)}else e.invoke()}else r.aborted||!1!==u[i]||(u[s]=!0)};return v.call(u,"readystatechange",f),u[n]||(u[n]=e),_.apply(u,r.args),u[i]=!0,e}function w(){}function O(e){var t=e.data;return t.aborted=!0,T.apply(t.target,t.args)}}(e);var n=f("xhrTask"),r=f("xhrSync"),o=f("xhrListener"),i=f("xhrScheduled"),u=f("xhrURL"),s=f("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!y(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,g(arguments,r+"."+i))};return j(t,e),t}(a)}},i=0;i<n.length;i++)o(i)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",(function(e,t){function n(t){return function(n){G(e,t).forEach((function(r){var o=e.PromiseRejectionEvent;if(o){var i=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(i)}}))}}e.PromiseRejectionEvent&&(t[f("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[f("rejectionHandledHandler")]=n("rejectionhandled"))}))})?r.call(t,n,t,e):r)||(e.exports=o)},"0eef":function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},"0rvr":function(e,t,n){var r=n("glrk"),o=n("O741");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},"1E5z":function(e,t,n){var r=n("m/L8").f,o=n("UTVS"),i=n("tiKp")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},2:function(e,t,n){e.exports=n("hN/g")},"2oRo":function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},"33Wh":function(e,t,n){var r=n("yoRg"),o=n("eDl+");e.exports=Object.keys||function(e){return r(e,o)}},"4WOD":function(e,t,n){var r=n("UTVS"),o=n("ewvW"),i=n("93I0"),a=n("4Xet"),c=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},"4Xet":function(e,t,n){var r=n("0Dky");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"4syw":function(e,t,n){var r=n("busE");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},"5r1n":function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.get,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},"6JNq":function(e,t,n){var r=n("UTVS"),o=n("Vu81"),i=n("Bs8V"),a=n("m/L8");e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,s=0;s<n.length;s++){var l=n[s];r(e,l)||c(e,l,u(t,l))}}},"6LWA":function(e,t,n){var r=n("xrYK");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"6PKz":function(e,t,n){n("++zV"),n("Y4C7"),n("ZsH6"),n("vZi8"),n("5r1n"),n("sQ9d"),n("bdeN"),n("AwgR"),n("qgGA")},"6VoE":function(e,t,n){var r=n("tiKp"),o=n("P4y1"),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},"8YOa":function(e,t,n){var r=n("0BK2"),o=n("hh1v"),i=n("UTVS"),a=n("m/L8").f,c=n("kOOl"),u=n("uy83"),s=c("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++l,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return u&&h.REQUIRED&&f(e)&&!i(e,s)&&p(e),e}};r[s]=!0},"93I0":function(e,t,n){var r=n("VpIT"),o=n("kOOl"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},"9d/t":function(e,t,n){var r=n("AO7/"),o=n("xrYK"),i=n("tiKp")("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},A2ZE:function(e,t,n){var r=n("HAuM");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"AO7/":function(e,t,n){var r={};r[n("tiKp")("toStringTag")]="z",e.exports="[object z]"===String(r)},AwgR:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.has,c=o.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},Bs8V:function(e,t,n){var r=n("g6v/"),o=n("0eef"),i=n("XGwC"),a=n("/GqU"),c=n("wE6v"),u=n("UTVS"),s=n("DPsx"),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=c(t,!0),s)try{return l(e,t)}catch(n){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},DPsx:function(e,t,n){var r=n("g6v/"),o=n("0Dky"),i=n("zBJ4");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},ENF9:function(e,t,n){"use strict";var r,o=n("2oRo"),i=n("4syw"),a=n("8YOa"),c=n("bWFh"),u=n("rKzb"),s=n("hh1v"),l=n("afO8").enforce,f=n("f5p1"),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},d=e.exports=c("WeakMap",v,u);if(f&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,b=g.has,m=g.get,k=g.set;i(g,{delete:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.delete(e)}return y.call(this,e)},has:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)?m.call(this,e):t.frozen.get(e)}return m.call(this,e)},set:function(e,t){if(s(e)&&!h(e)){var n=l(this);n.frozen||(n.frozen=new r),b.call(this,e)?k.call(this,e,t):n.frozen.set(e,t)}else k.call(this,e,t);return this}})}},"G+Rx":function(e,t,n){var r=n("0GbY");e.exports=r("document","documentElement")},GarU:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},HAuM:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},HH4o:function(e,t,n){var r=n("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},HYAF:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"I+eb":function(e,t,n){var r=n("2oRo"),o=n("Bs8V").f,i=n("kRJp"),a=n("busE"),c=n("zk60"),u=n("6JNq"),s=n("lMq5");e.exports=function(e,t){var n,l,f,p,h,v=e.target,d=e.global,g=e.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!s(d?l:v+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},I8vh:function(e,t,n){var r=n("ppGB"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},ImZN:function(e,t,n){var r=n("glrk"),o=n("6VoE"),i=n("UMSQ"),a=n("A2ZE"),c=n("NaFW"),u=n("m92n"),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,f){var p,h,v,d,g,y,b,m=a(t,n,l?2:1);if(f)p=e;else{if("function"!=typeof(h=c(e)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,d=i(e.length);d>v;v++)if((g=l?m(r(b=e[v])[0],b[1]):m(e[v]))&&g instanceof s)return g;return new s(!1)}p=h.call(e)}for(y=p.next;!(b=y.call(p)).done;)if("object"==typeof(g=u(p,m,b.value,l))&&g&&g instanceof s)return g;return new s(!1)}).stop=function(e){return new s(!0,e)}},JBy8:function(e,t,n){var r=n("yoRg"),o=n("eDl+").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},JiZb:function(e,t,n){"use strict";var r=n("0GbY"),o=n("m/L8"),i=n("tiKp"),a=n("g6v/"),c=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[c]&&(0,o.f)(t,c,{configurable:!0,get:function(){return this}})}},"N+g0":function(e,t,n){var r=n("g6v/"),o=n("m/L8"),i=n("glrk"),a=n("33Wh");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},NaFW:function(e,t,n){var r=n("9d/t"),o=n("P4y1"),i=n("tiKp")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},O741:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},P4y1:function(e,t){e.exports={}},Qo9l:function(e,t,n){var r=n("2oRo");e.exports=r},RK3t:function(e,t,n){var r=n("0Dky"),o=n("xrYK"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},STAE:function(e,t,n){var r=n("0Dky");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},TWQb:function(e,t,n){var r=n("/GqU"),o=n("UMSQ"),i=n("I8vh"),a=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},Tskq:function(e,t,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},UMSQ:function(e,t,n){var r=n("ppGB"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},UTVS:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},VpIT:function(e,t,n){var r=n("xDBR"),o=n("xs3f");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},Vu81:function(e,t,n){var r=n("0GbY"),o=n("JBy8"),i=n("dBg+"),a=n("glrk");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},XGwC:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},Y4C7:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.getMap,u=o.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),r=c(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var o=u.get(t);return o.delete(n),!!o.size||u.delete(t)}})},YGK4:function(e,t,n){"use strict";var r=n("bWFh"),o=n("ZWaQ");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},ZWaQ:function(e,t,n){"use strict";var r=n("m/L8").f,o=n("fHMY"),i=n("4syw"),a=n("A2ZE"),c=n("GarU"),u=n("ImZN"),s=n("fdAy"),l=n("JiZb"),f=n("g6v/"),p=n("8YOa").fastKey,h=n("afO8"),v=h.set,d=h.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e((function(e,r){c(e,l,t),v(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[s],e,n)})),h=d(t),g=function(e,t,n){var r,o,i=h(e),a=y(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},y=function(e,t){var n,r=h(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=h(this),n=y(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(l.prototype,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=d(t),i=d(r);s(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},ZfDv:function(e,t,n){var r=n("hh1v"),o=n("6LWA"),i=n("tiKp")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},ZsH6:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=n("4WOD"),c=o.has,u=o.get,s=o.toKey,l=function(e,t,n){if(c(e,t,n))return u(e,t,n);var r=a(t);return null!==r?l(e,r,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return l(e,i(t),n)}})},afO8:function(e,t,n){var r,o,i,a=n("f5p1"),c=n("2oRo"),u=n("hh1v"),s=n("kRJp"),l=n("UTVS"),f=n("93I0"),p=n("0BK2");if(a){var h=new(0,c.WeakMap),v=h.get,d=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return d.call(h,e)}}else{var y=f("state");p[y]=!0,r=function(e,t){return s(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},bWFh:function(e,t,n){"use strict";var r=n("I+eb"),o=n("2oRo"),i=n("lMq5"),a=n("busE"),c=n("8YOa"),u=n("ImZN"),s=n("GarU"),l=n("hh1v"),f=n("0Dky"),p=n("HH4o"),h=n("1E5z"),v=n("cVYH");e.exports=function(e,t,n){var d=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),y=d?"set":"add",b=o[e],m=b&&b.prototype,k=b,_={},T=function(e){var t=m[e];a(m,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof b||!(g||m.forEach&&!f((function(){(new b).entries().next()})))))k=n.getConstructor(t,e,d,y),c.REQUIRED=!0;else if(i(e,!0)){var E=new k,w=E[y](g?{}:-0,1)!=E,O=f((function(){E.has(1)})),S=p((function(e){new b(e)})),x=!g&&f((function(){for(var e=new b,t=5;t--;)e[y](t,t);return!e.has(-0)}));S||((k=t((function(t,n){s(t,k,e);var r=v(new b,t,k);return null!=n&&u(n,r[y],r,d),r}))).prototype=m,m.constructor=k),(O||x)&&(T("delete"),T("has"),d&&T("get")),(x||w)&&T(y),g&&m.clear&&delete m.clear}return _[e]=k,r({global:!0,forced:k!=b},_),h(k,e),g||n.setStrong(k,e,d),k}},bdeN:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=n("4WOD"),c=o.has,u=o.toKey,s=function(e,t,n){if(c(e,t,n))return!0;var r=a(t);return null!==r&&s(e,r,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return s(e,i(t),n)}})},busE:function(e,t,n){var r=n("2oRo"),o=n("kRJp"),i=n("UTVS"),a=n("zk60"),c=n("iSVu"),u=n("afO8"),s=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!p&&e[t]&&(s=!0):delete e[t],s?e[t]=n:o(e,t,n)):s?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},cVYH:function(e,t,n){var r=n("hh1v"),o=n("0rvr");e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},"dBg+":function(e,t){t.f=Object.getOwnPropertySymbols},"eDl+":function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eDxR:function(e,t,n){var r=n("Tskq"),o=n("ENF9"),i=n("VpIT")("metadata"),a=i.store||(i.store=new o),c=function(e,t,n){var o=a.get(e);if(!o){if(!n)return;a.set(e,o=new r)}var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}return i};e.exports={store:a,getMap:c,has:function(e,t,n){var r=c(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=c(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){c(n,r,!0).set(e,t)},keys:function(e,t){var n=c(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}},ewvW:function(e,t,n){var r=n("HYAF");e.exports=function(e){return Object(r(e))}},f5p1:function(e,t,n){var r=n("2oRo"),o=n("iSVu"),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},fHMY:function(e,t,n){var r,o=n("glrk"),i=n("N+g0"),a=n("eDl+"),c=n("0BK2"),u=n("G+Rx"),s=n("zBJ4"),l=n("93I0")("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=s("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[l]=e):n=h(),void 0===t?n:i(n,t)}},fdAy:function(e,t,n){"use strict";var r=n("I+eb"),o=n("ntOU"),i=n("4WOD"),a=n("0rvr"),c=n("1E5z"),u=n("kRJp"),s=n("busE"),l=n("tiKp"),f=n("xDBR"),p=n("P4y1"),h=n("rpNk"),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y=function(){return this};e.exports=function(e,t,n,l,h,b,m){o(n,t,l);var k,_,T,E=function(e){if(e===h&&D)return D;if(!d&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+" Iterator",O=!1,S=e.prototype,x=S[g]||S["@@iterator"]||h&&S[h],D=!d&&x||E(h),P="Array"==t&&S.entries||x;if(P&&(k=i(P.call(new e)),v!==Object.prototype&&k.next&&(f||i(k)===v||(a?a(k,v):"function"!=typeof k[g]&&u(k,g,y)),c(k,w,!0,!0),f&&(p[w]=y))),"values"==h&&x&&"values"!==x.name&&(O=!0,D=function(){return x.call(this)}),f&&!m||S[g]===D||u(S,g,D),p[t]=D,h)if(_={values:E("values"),keys:b?D:E("keys"),entries:E("entries")},m)for(T in _)!d&&!O&&T in S||s(S,T,_[T]);else r({target:t,proto:!0,forced:d||O},_);return _}},"g6v/":function(e,t,n){var r=n("0Dky");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},glrk:function(e,t,n){var r=n("hh1v");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"hN/g":function(e,t,n){"use strict";n.r(t),n("6PKz"),n("0TWp"),n("vU8d"),window.global=window},hh1v:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},iSVu:function(e,t,n){var r=n("xs3f"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},kOOl:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},kRJp:function(e,t,n){var r=n("g6v/"),o=n("m/L8"),i=n("XGwC");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},lMq5:function(e,t,n){var r=n("0Dky"),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},"m/L8":function(e,t,n){var r=n("g6v/"),o=n("DPsx"),i=n("glrk"),a=n("wE6v"),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},m92n:function(e,t,n){var r=n("glrk");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&r(i.call(e)),a}}},ntOU:function(e,t,n){"use strict";var r=n("rpNk").IteratorPrototype,o=n("fHMY"),i=n("XGwC"),a=n("1E5z"),c=n("P4y1"),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,s,!1,!0),c[s]=u,e}},ppGB:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},qgGA:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){c(e,t,i(n),a(r))}}})},rKzb:function(e,t,n){"use strict";var r=n("4syw"),o=n("8YOa").getWeakData,i=n("glrk"),a=n("hh1v"),c=n("GarU"),u=n("ImZN"),s=n("tycR"),l=n("UTVS"),f=n("afO8"),p=f.set,h=f.getterFor,v=s.find,d=s.findIndex,g=0,y=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},m=function(e,t){return v(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=d(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var f=e((function(e,r){c(e,f,t),p(e,{type:t,id:g++,frozen:void 0}),null!=r&&u(r,e[s],e,n)})),v=h(t),d=function(e,t,n){var r=v(e),a=o(i(t),!0);return!0===a?y(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=v(this);if(a(e)){var n=o(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return d(this,e,t)}}:{add:function(e){return d(this,e,!0)}}),f}}},rpNk:function(e,t,n){"use strict";var r,o,i,a=n("4WOD"),c=n("kRJp"),u=n("UTVS"),s=n("tiKp"),l=n("xDBR"),f=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),l||u(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},sQ9d:function(e,t,n){var r=n("I+eb"),o=n("eDxR"),i=n("glrk"),a=o.keys,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:c(arguments[1]);return a(i(e),t)}})},tiKp:function(e,t,n){var r=n("2oRo"),o=n("VpIT"),i=n("UTVS"),a=n("kOOl"),c=n("STAE"),u=n("/b8u"),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return i(s,e)||(s[e]=c&&i(l,e)?l[e]:f("Symbol."+e)),s[e]}},tycR:function(e,t,n){var r=n("A2ZE"),o=n("RK3t"),i=n("ewvW"),a=n("UMSQ"),c=n("ZfDv"),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,l=4==e,f=6==e,p=5==e||f;return function(h,v,d,g){for(var y,b,m=i(h),k=o(m),_=r(v,d,3),T=a(k.length),E=0,w=g||c,O=t?w(h,T):n?w(h,0):void 0;T>E;E++)if((p||E in k)&&(b=_(y=k[E],E,m),e))if(t)O[E]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return E;case 2:u.call(O,y)}else if(l)return!1;return f?-1:s||l?l:O}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},uy83:function(e,t,n){var r=n("0Dky");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},vU8d:function(e,t){!function(){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const e=HTMLElement;window.HTMLElement={HTMLElement:function(){return Reflect.construct(e,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}()}()},vZi8:function(e,t,n){var r=n("I+eb"),o=n("YGK4"),i=n("eDxR"),a=n("glrk"),c=n("4WOD"),u=n("ImZN"),s=i.keys,l=i.toKey,f=function(e,t){var n=s(e,t),r=c(e);if(null===r)return n;var i,a,l=f(r,t);return l.length?n.length?(i=new o(n.concat(l)),u(i,(a=[]).push,a),a):l:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:l(arguments[1]);return f(a(e),t)}})},wE6v:function(e,t,n){var r=n("hh1v");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},xDBR:function(e,t){e.exports=!1},xrYK:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},xs3f:function(e,t,n){var r=n("2oRo"),o=n("zk60"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},yoRg:function(e,t,n){var r=n("UTVS"),o=n("/GqU"),i=n("TWQb").indexOf,a=n("0BK2");e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},zBJ4:function(e,t,n){var r=n("2oRo"),o=n("hh1v"),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},zk60:function(e,t,n){var r=n("2oRo"),o=n("kRJp");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}}},[[2,0]]]);
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=e.document,o=Object.getPrototypeOf,i=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var o,i,a=(n=n||r).createElement("script");if(a.text=e,t)for(o in v)(i=t[o]||t.getAttribute&&t.getAttribute(o))&&a.setAttribute(o,i);n.head.appendChild(a).parentNode.removeChild(a)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var x="3.4.1",T=function(e,t){return new T.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function E(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!m(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}T.fn=T.prototype={jquery:x,constructor:T,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},T.extend=T.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(T.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,a[t]=T.extend(l,i,r)):void 0!==r&&(a[t]=r));return a},T.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e)||(t=o(e))&&("function"!=typeof(n=f.call(t,"constructor")&&t.constructor)||p.call(n)!==d))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){y(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(w,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?T.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,s=[];if(E(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&s.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&s.push(o);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=n[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var C=function(e){var t,n,r,o,i,a,s,u,l,c,f,p,d,h,m,g,v,y,b,x="sizzle"+1*new Date,T=e.document,w=0,E=0,C=ue(),L=ue(),A=ue(),H=ue(),M=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,S=[],D=S.pop,k=S.push,j=S.push,O=S.slice,q=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+R+"*("+I+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+R+"*\\]",B=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",W=new RegExp(R+"+","g"),$=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),_=new RegExp("^"+R+"*,"+R+"*"),U=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),V=new RegExp(R+"|>"),z=new RegExp(B),X=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(S=O.call(T.childNodes),T.childNodes)}catch(t){j={apply:S.length?function(e,t){k.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,l,c,f,h,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!o&&((t?t.ownerDocument||t:T)!==d&&p(t),t=t||d,m)){if(11!==w&&(f=Z.exec(e)))if(i=f[1]){if(9===w){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(y&&(l=y.getElementById(i))&&b(t,l)&&l.id===i)return r.push(l),r}else{if(f[2])return j.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!H[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&V.test(e)){for((c=t.getAttribute("id"))?c=c.replace(re,oe):t.setAttribute("id",c=x),s=(h=a(e)).length;s--;)h[s]="#"+c+" "+be(h[s]);v=h.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return j.apply(r,y.querySelectorAll(v)),r}catch(t){H(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return u(e.replace($,"$1"),t,r,o)}function ue(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[x]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return le((function(t){return t=+t,le((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=(e.ownerDocument||e).documentElement;return!Y.test(e.namespaceURI||t&&t.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:T;return a!==d&&9===a.nodeType&&a.documentElement&&(h=(d=a).documentElement,m=!i(d),T!==d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=x,!d.getElementsByName||!d.getElementsByName(x).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){h.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=K.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",B)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},M=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===T&&b(T,e)?-1:t===d||t.ownerDocument===T&&b(T,t)?1:c?q(c,e)-q(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===d?-1:t===d?1:o?-1:i?1:c?q(c,e)-q(c,t):0;if(o===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===T?-1:s[r]===T?1:0}),d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),n.matchesSelector&&m&&!H[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){H(t,!0)}return 0<se(t,d,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&N.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(M),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return c=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1<o.indexOf(n):"$="===t?n&&o.slice(-n.length)===n:"~="===t?-1<(" "+o.replace(W," ")+" ").indexOf(n):"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(g){if(i){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(d=(l=(c=(f=(p=g)[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===w&&l[1])&&l[2],p=d&&g.childNodes[d];p=++d&&p&&p[m]||(b=d=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[w,d,b];break}}else if(y&&(b=d=(l=(c=(f=(p=t)[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===w&&l[1]),!1===b)for(;(p=++d&&p&&p[m]||(b=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((c=(f=p[x]||(p[x]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[w,b]),p!==t)););return(b-=o)===r||b%r==0&&0<=b/r}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[x]?o(t):1<o.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=q(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace($,"$1"));return r[x]?le((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return 0<se(e,t).length}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return-1<(t.textContent||o(t)).indexOf(e)}})),lang:le((function(e){return X.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=E++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,u){var l,c,f,p=[w,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[x]||(t[x]={}))[t.uniqueID]||(f[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[i])&&l[0]===w&&l[1]===s)return p[2]=l[2];if((c[i]=p)[2]=e(t,n,u))return!0}return!1}}function Te(e){return 1<e.length?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(s)));return a}function Ee(e,t,n,r,o,i){return r&&!r[x]&&(r=Ee(r)),o&&!o[x]&&(o=Ee(o,i)),le((function(i,a,s,u){var l,c,f,p=[],d=[],h=a.length,m=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?m:we(m,p,e,s,u),v=n?o||(i?e:h||r)?[]:a:g;if(n&&n(g,v,s,u),r)for(l=we(v,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(g[d[c]]=f));if(i){if(o||e){if(o){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(g[c]=f);o(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&-1<(l=o?q(i,f):p[c])&&(i[l]=!(a[l]=f))}}else v=we(v===a?v.splice(h,v.length):v),o?o(null,a,v,u):j.apply(a,v)}))}function Ce(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=xe((function(e){return e===t}),s,!0),f=xe((function(e){return-1<q(t,e)}),s,!0),p=[function(e,n,r){var o=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,o}];u<i;u++)if(n=r.relative[e[u].type])p=[xe(Te(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[x]){for(o=++u;o<i&&!r.relative[e[o].type];o++);return Ee(1<u&&Te(p),1<u&&be(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace($,"$1"),n,u<o&&Ce(e.slice(u,o)),o<i&&Ce(e=e.slice(o)),o<i&&be(e))}p.push(n)}return Te(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,i,a,s,u,l,c=L[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(o=_.exec(s))||(o&&(s=s.slice(o[0].length)||s),u.push(i=[])),n=!1,(o=U.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace($," ")}),s=s.slice(n.length)),r.filter)!(o=G[a].exec(s))||l[a]&&!(o=l[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):L(e,u).slice(0)},s=se.compile=function(e,t){var n,o,i,s,u,c,f=[],h=[],g=A[e+" "];if(!g){for(t||(t=a(e)),n=t.length;n--;)(g=Ce(t[n]))[x]?f.push(g):h.push(g);(g=A(e,(o=h,s=0<(i=f).length,u=0<o.length,c=function(e,t,n,a,c){var f,h,g,v=0,y="0",b=e&&[],x=[],T=l,E=e||u&&r.find.TAG("*",c),C=w+=null==T?1:Math.random()||.1,L=E.length;for(c&&(l=t===d||t||c);y!==L&&null!=(f=E[y]);y++){if(u&&f){for(h=0,t||f.ownerDocument===d||(p(f),n=!m);g=o[h++];)if(g(f,t||d,n)){a.push(f);break}c&&(w=C)}s&&((f=!g&&f)&&v--,e&&b.push(f))}if(v+=y,s&&y!==v){for(h=0;g=i[h++];)g(b,x,t,n);if(e){if(0<v)for(;y--;)b[y]||x[y]||(x[y]=D.call(a));x=we(x)}j.apply(a,x),c&&!e&&0<x.length&&1<v+i.length&&se.uniqueSort(a)}return c&&(w=C,l=T),b},s?le(c):c))).selector=e}return g},u=se.select=function(e,t,n,o){var i,u,l,c,f,p="function"==typeof e&&e,d=!o&&a(e=p.selector||e);if(n=n||[],1===d.length){if(2<(u=d[0]=d[0].slice(0)).length&&"ID"===(l=u[0]).type&&9===t.nodeType&&m&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(i=G.needsContext.test(e)?0:u.length;i--&&!r.relative[c=(l=u[i]).type];)if((f=r.find[c])&&(o=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ve(t.parentNode)||t))){if(u.splice(i,1),!(e=o.length&&be(u)))return j.apply(n,o),n;break}}return(p||s(e,d))(o,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(M).join("")===x,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(P,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);T.find=C,T.expr=C.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=C.uniqueSort,T.text=C.getText,T.isXMLDoc=C.isXML,T.contains=C.contains,T.escapeSelector=C.escape;var L=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},H=T.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(e,t,n){return m(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return-1<u.call(t,e)!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,o[t],n);return 1<r?T.uniqueSort(n):n},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,"string"==typeof e&&H.test(e)?T(e):e||[],!1).length}});var D,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:k.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(T.merge(this,T.parseHTML(o[1],(t=t instanceof T?t[0]:t)&&t.nodeType?t.ownerDocument||t:r,!0)),N.test(o[1])&&T.isPlainObject(t))for(o in t)m(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=r.getElementById(o[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,D=T(r);var j=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&T(e);if(!H.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&T.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?T.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return L(e,"parentNode")},parentsUntil:function(e,t,n){return L(e,"parentNode",n)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return L(e,"nextSibling")},prevAll:function(e){return L(e,"previousSibling")},nextUntil:function(e,t,n){return L(e,"nextSibling",n)},prevUntil:function(e,t,n){return L(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(M(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var o=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=T.filter(r,o)),1<this.length&&(O[e]||T.uniqueSort(o),j.test(e)&&o.reverse()),this.pushStack(o)}}));var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function I(e){throw e}function F(e,t,n,r){var o;try{e&&m(o=e.promise)?o.call(e).done(t).fail(n):e&&m(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){var t;e="string"==typeof e?(t={},T.each(e.match(P)||[],(function(e,n){t[n]=!0})),t):T.extend({},e);var n,r,o,i,a=[],s=[],u=-1,l=function(){for(i=i||e.once,o=n=!0;s.length;u=-1)for(r=s.shift();++u<a.length;)!1===a[u].apply(r[0],r[1])&&e.stopOnFalse&&(u=a.length,r=!1);e.memory||(r=!1),n=!1,i&&(a=r?[]:"")},c={add:function(){return a&&(r&&!n&&(u=a.length-1,s.push(r)),function t(n){T.each(n,(function(n,r){m(r)?e.unique&&c.has(r)||a.push(r):r&&r.length&&"string"!==b(r)&&t(r)}))}(arguments),r&&!n&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;-1<(n=T.inArray(t,a,n));)a.splice(n,1),n<=u&&u--})),this},has:function(e){return e?-1<T.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=r="",this},disabled:function(){return!a},lock:function(){return i=s=[],r||n||(a=r=""),this},locked:function(){return!!i},fireWith:function(e,t){return i||(t=[e,(t=t||[]).slice?t.slice():t],s.push(t),n||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},T.extend({Deferred:function(t){var n=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(t){T.each(n,(function(n,r){var o=m(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,o){var i=0;function a(t,n,r,o){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<i)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");m(l=e&&("object"==typeof e||"function"==typeof e)&&e.then)?o?l.call(e,a(i,n,R,o),a(i,n,I,o)):(i++,l.call(e,a(i,n,R,o),a(i,n,I,o),a(i,n,R,n.notifyWith))):(r!==R&&(s=void 0,u=[e]),(o||n.resolveWith)(s,u))}},c=o?l:function(){try{l()}catch(l){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(l,c.stackTrace),i<=t+1&&(r!==I&&(s=void 0,u=[l]),n.rejectWith(s,u))}};t?c():(T.Deferred.getStackHook&&(c.stackTrace=T.Deferred.getStackHook()),e.setTimeout(c))}}return T.Deferred((function(e){n[0][3].add(a(0,e,m(o)?o:R,e.notifyWith)),n[1][3].add(a(0,e,m(t)?t:R)),n[2][3].add(a(0,e,m(r)?r:I))})).promise()},promise:function(e){return null!=e?T.extend(e,o):o}},i={};return T.each(n,(function(e,t){var a=t[2],s=t[5];o[t[1]]=a.add,s&&a.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),i[t[0]]=function(){return i[t[0]+"With"](this===i?void 0:this,arguments),this},i[t[0]+"With"]=a.fireWith})),o.promise(i),t&&t.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),a=T.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=1<arguments.length?i.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(F(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||m(o[n]&&o[n].then)))return a.then();for(;n--;)F(o[n],s(n),a.reject);return a.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},T.readyException=function(t){e.setTimeout((function(){throw t}))};var W=T.Deferred();function $(){r.removeEventListener("DOMContentLoaded",$),e.removeEventListener("load",$),T.ready()}T.fn.ready=function(e){return W.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0)!==e&&0<--T.readyWait||W.resolveWith(r,[T])}}),T.ready.then=W.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(T.ready):(r.addEventListener("DOMContentLoaded",$),e.addEventListener("load",$));var _=function(e,t,n,r,o,i,a){var s=0,u=e.length,l=null==n;if("object"===b(n))for(s in o=!0,n)_(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(T(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:l?t.call(e):u?t(e[0],n):i},U=/^-ms-/,V=/-([a-z])/g;function z(e,t){return t.toUpperCase()}function X(e){return e.replace(U,"ms-").replace(V,z)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=T.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[X(t)]=n;else for(r in t)o[X(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var Q=new Y,J=new Y,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function ee(e,t,n){var r,o;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Z,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:K.test(o)?JSON.parse(o):o)}catch(e){}J.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return J.hasData(e)||Q.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=J.get(i),1===i.nodeType&&!Q.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),ee(i,r,o[r]));Q.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){J.set(this,e)})):_(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=J.get(i,e))?n:void 0!==(n=ee(i,e))?n:void 0;this.each((function(){J.set(this,e,t)}))}),null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return r=Q.get(e,t=(t||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=Q.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=T.queue(e,t=t||"fx"),r=n.length,o=n.shift(),i=T._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){T.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:T.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=T.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Q.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],oe=r.documentElement,ie=function(e){return T.contains(e.ownerDocument,e)},ae={composed:!0};oe.getRootNode&&(ie=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===T.css(e,"display")},ue=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=a[i];return o};function le(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},u=s(),l=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==l&&+u)&&ne.exec(T.css(e,t));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;a--;)T.style(e,t,c+l),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),c/=i;T.style(e,t,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=o)),o}var ce={};function fe(e,t){for(var n,r,o,i,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Q.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&se(r)&&(l[c]=(u=a=i=void 0,a=(o=r).ownerDocument,(u=ce[s=o.nodeName])||(i=a.body.appendChild(a.createElement(s)),u=T.css(i,"display"),i.parentNode.removeChild(i),"none"===u&&(u="block"),ce[s]=u)))):"none"!==n&&(l[c]="none",Q.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}T.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){se(this)?T(this).show():T(this).hide()}))}});var pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?T.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}me.optgroup=me.option,me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td;var ye,be,xe=/<|&#?\w+;/;function Te(e,t,n,r,o){for(var i,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((i=e[d])||0===i)if("object"===b(i))T.merge(p,i.nodeType?[i]:i);else if(xe.test(i)){for(a=a||f.appendChild(t.createElement("div")),s=(de.exec(i)||["",""])[1].toLowerCase(),a.innerHTML=(u=me[s]||me._default)[1]+T.htmlPrefilter(i)+u[2],c=u[0];c--;)a=a.lastChild;T.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(i));for(f.textContent="",d=0;i=p[d++];)if(r&&-1<T.inArray(i,r))o&&o.push(i);else if(l=ie(i),a=ge(f.appendChild(i),"script"),l&&ve(a),n)for(c=0;i=a[c++];)he.test(i.type||"")&&n.push(i);return f}ye=r.createDocumentFragment().appendChild(r.createElement("div")),(be=r.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),ye.appendChild(be),h.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var we=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Le(){return!0}function Ae(){return!1}function He(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Me(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Ae;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return T().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,t,o,r,n)}))}function Ne(e,t,n){n?(Q.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var r,o,a=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=i.call(arguments),Q.set(this,t,a),r=n(this,t),this[t](),a!==(o=Q.get(this,t))||r?Q.set(this,t,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else a.length&&(Q.set(this,t,{value:T.event.trigger(T.extend(a[0],T.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&T.event.add(e,t,Le)}T.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,l,c,f,p,d,h,m,g=Q.get(e);if(g)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&T.find.matchesSelector(oe,o),n.guid||(n.guid=T.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(P)||[""]).length;l--;)d=m=(s=Ce.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=T.event.special[d]||{},f=T.event.special[d=(o?f.delegateType:f.bindType)||d]||{},c=T.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,c):p.push(c),T.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,l,c,f,p,d,h,m,g=Q.hasData(e)&&Q.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(P)||[""]).length;l--;)if(d=m=(s=Ce.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=T.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)c=p[i],!o&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||T.removeEvent(e,d,g.handle),delete u[d])}else for(d in u)T.event.remove(e,d+t[l],n,r,!0);T.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=T.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=T.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=T.event.handlers.call(this,s,l),t=0;(o=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((T.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,o,i,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],a={},n=0;n<u;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?-1<T(o,this).index(l):T.find(o,this,null,[l]).length),a[o]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&M(t,"input")&&Ne(t,"click",Le),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&M(t,"input")&&Ne(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&M(t,"input")&&Q.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Le:Ae,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Le,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Le,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Le,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ee.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){T.event.special[e]={setup:function(){return Ne(this,e,He),!1},trigger:function(){return Ne(this,e),!0},delegateType:t}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return Me(this,e,t,n,r)},one:function(e,t,n,r){return Me(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ae),this.each((function(){T.event.remove(this,e,n,t)}))}});var Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Oe(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function qe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,o,i,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(i=Q.access(e),a=Q.set(t,i),l=i.events))for(o in delete a.handle,a.events={},l)for(n=0,r=l[o].length;n<r;n++)T.event.add(t,o,l[o][n]);J.hasData(e)&&(s=J.access(e),u=T.extend({},s),J.set(t,u))}}function Ie(e,t,n,r){t=a.apply([],t);var o,i,s,u,l,c,f=0,p=e.length,d=p-1,g=t[0],v=m(g);if(v||1<p&&"string"==typeof g&&!h.checkClone&&ke.test(g))return e.each((function(o){var i=e.eq(o);v&&(t[0]=g.call(this,o,i.html())),Ie(i,t,n,r)}));if(p&&(i=(o=Te(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(u=(s=T.map(ge(o,"script"),qe)).length;f<p;f++)l=o,f!==d&&(l=T.clone(l,!0,!0),u&&T.merge(s,ge(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,T.map(s,Pe),f=0;f<u;f++)he.test((l=s[f]).type||"")&&!Q.access(l,"globalEval")&&T.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):y(l.textContent.replace(je,""),l,c))}return e}function Fe(e,t,n){for(var r,o=t?T.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||T.cleanData(ge(r)),r.parentNode&&(n&&ie(r)&&ve(ge(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e.replace(Se,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=ge(c),r=0,o=(i=ge(e)).length;r<o;r++)s=i[r],"input"===(l=(u=a[r]).nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(i=i||ge(e),a=a||ge(c),r=0,o=i.length;r<o;r++)Re(i[r],a[r]);else Re(e,c);return 0<(a=ge(c,"script")).length&&ve(a,!f&&ge(e,"script")),c},cleanData:function(e){for(var t,n,r,o=T.event.special,i=0;void 0!==(n=e[i]);i++)if(G(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)o[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return _(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ie(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)}))},prepend:function(){return Ie(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ie(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return _(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!me[(de.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ie(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(ge(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],o=T(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),T(o[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}}));var Be=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),We=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},$e=new RegExp(re.join("|"),"i");function _e(e,t,n){var r,o,i,a,s=e.style;return(n=n||We(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=T.style(e,t)),!h.pixelBoxStyles()&&Be.test(a)&&$e.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);o="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),i=36===n(t.width),c.style.position="absolute",a=12===n(c.offsetWidth/3),oe.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var o,i,a,s,u,l=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(h,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),o},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();var Ve=["Webkit","Moz","ms"],ze=r.createElement("div").style,Xe={};function Ge(e){return T.cssProps[e]||Xe[e]||(e in ze?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in ze)return e}(e)||e)}var Ye=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=ne.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,o,i){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=T.css(e,n+re[a],!0,o)),r?("content"===n&&(u-=T.css(e,"padding"+re[a],!0,o)),"margin"!==n&&(u-=T.css(e,"border"+re[a]+"Width",!0,o))):(u+=T.css(e,"padding"+re[a],!0,o),"padding"!==n?u+=T.css(e,"border"+re[a]+"Width",!0,o):s+=T.css(e,"border"+re[a]+"Width",!0,o));return!r&&0<=i&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-u-s-.5))||0),u}function tt(e,t,n){var r=We(e),o=(!h.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),i=o,a=_e(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Be.test(a)){if(!n)return a;a="auto"}return(!h.boxSizingReliable()&&o||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===T.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(o?"border":"content"),i,r,a)+"px"}function nt(e,t,n,r,o){return new nt.prototype.init(e,t,n,r,o)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=_e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=X(t),u=Qe.test(t),l=e.style;if(u||(t=Ge(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:l[t];"string"==(i=typeof n)&&(o=ne.exec(n))&&o[1]&&(n=le(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||u||(n+=o&&o[3]||(T.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var o,i,a,s=X(t);return Qe.test(t)||(t=Ge(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=_e(e,t,r)),"normal"===o&&t in Ke&&(o=Ke[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!Ye.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):ue(e,Je,(function(){return tt(e,t,r)}))},set:function(e,n,r){var o,i=We(e),a=!h.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,i),u=r?et(e,t,r,s,i):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-et(e,t,"border",!1,i)-.5)),u&&(o=ne.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),Ze(0,n,u)}}})),T.cssHooks.marginLeft=Ue(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(_e(e,"marginLeft"))||e.getBoundingClientRect().left-ue(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+re[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(T.cssHooks[e+t].set=Ze)})),T.fn.extend({css:function(e,t){return _(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=We(e),o=t.length;a<o;a++)i[t[a]]=T.css(e,t[a],!1,r);return i}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,1<arguments.length)}}),((T.Tween=nt).prototype={constructor:nt,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(T.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.pos=t=this.options.duration?T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}}).init.prototype=nt.prototype,(nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=nt.prototype.init,T.fx.step={};var rt,ot,it,at,st=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function lt(){ot&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(lt):e.setTimeout(lt,T.fx.interval),T.fx.tick())}function ct(){return e.setTimeout((function(){rt=void 0})),rt=Date.now()}function ft(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=re[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function pt(e,t,n){for(var r,o=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function dt(e,t,n){var r,o,i=0,a=dt.prefilters.length,s=T.Deferred().always((function(){delete u.elem})),u=function(){if(o)return!1;for(var t=rt||ct(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),i=0,a=l.tweens.length;i<a;i++)l.tweens[i].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=X(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(c,l.opts.specialEasing);i<a;i++)if(r=dt.prefilters[i].call(l,e,c,l.opts))return m(r.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return T.map(c,pt,l),m(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),T.fx.timer(T.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}T.Animation=T.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,ne.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,o=e.length;r<o;r++)(dt.tweeners[n=e[r]]=dt.tweeners[n]||[]).unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,m=e.nodeType&&se(e),g=Q.get(e,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(st.test(o=t[r])){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;m=!0}d[r]=g&&g[r]||T.style(e,r)}if((u=!T.isEmptyObject(t))||!T.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=g&&g.display)&&(l=Q.get(e,"display")),"none"===(c=T.css(e,"display"))&&(l?c=l:(fe([e],!0),l=e.style.display||l,c=T.css(e,"display"),fe([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===T.css(e,"float")&&(u||(p.done((function(){h.display=l})),null==l&&(l="none"===(c=h.display)?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=Q.access(e,"fxshow",{display:l}),i&&(g.hidden=!m),m&&fe([e],!0),p.done((function(){for(r in m||fe([e]),Q.remove(e,"fxshow"),d)T.style(e,r,d[r])}))),u=pt(m?g[r]:0,r,p),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in T.fx.speeds?T.fx.speeds[r.duration]:T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=T.isEmptyObject(e),i=T.speed(t,n,r),a=function(){var t=dt(this,T.extend({},e),i);(o||Q.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=T.timers,a=Q.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&ut.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Q.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=T.timers,a=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,r,o)}})),T.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),rt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ot||(ot=!0,lt())},T.fx.stop=function(){ot=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,n){return t=T.fx&&T.fx.speeds[t]||t,this.queue(n=n||"fx",(function(n,r){var o=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(o)}}))},it=r.createElement("input"),at=r.createElement("select").appendChild(r.createElement("option")),it.type="checkbox",h.checkOn=""!==it.value,h.optSelected=at.selected,(it=r.createElement("input")).value="t",it.type="radio",h.radioValue="t"===it.value;var ht,mt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return _(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?T.prop(e,t,n):(1===i&&T.isXMLDoc(e)||(o=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(P);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||T.find.attr;mt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=mt[a],mt[a]=o,o=null!=n(e,t,r)?a:null,mt[a]=i),o}}));var gt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function yt(e){return(e.match(P)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}T.fn.extend({prop:function(e,t){return _(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(e)||(o=T.propHooks[t=T.propFix[t]||t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(T.propHooks.selected={get:function(e){return null},set:function(e){}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(m(e))return this.each((function(t){T(this).addClass(e.call(this,t,bt(this)))}));if((t=xt(e)).length)for(;n=this[u++];)if(o=bt(n),r=1===n.nodeType&&" "+yt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,u=0;if(m(e))return this.each((function(t){T(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)for(;n=this[u++];)if(o=bt(n),r=1===n.nodeType&&" "+yt(o)+" "){for(a=0;i=t[a++];)for(;-1<r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");o!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):m(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,o,i,a;if(r)for(o=0,i=T(this),a=xt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+yt(bt(n))+" ").indexOf(t))return!0;return!1}});var Tt=/\r/g;T.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=m(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,T(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Tt,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:yt(T.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?i+1:o.length;for(r=i<0?u:a?i:0;r<u;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=T.makeArray(t),a=o.length;a--;)((r=o[a]).selected=-1<T.inArray(T.valHooks.option.get(r),i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<T.inArray(T(e).val(),t)}},h.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(t,n,o,i){var a,s,u,l,c,p,d,h,v=[o||r],y=f.call(t,"type")?t.type:t,b=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=o=o||r,3!==o.nodeType&&8!==o.nodeType&&!wt.test(y+T.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[T.expando]?t:new T.Event(y,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),n=null==n?[t]:T.makeArray(n,[t]),d=T.event.special[y]||{},i||!d.trigger||!1!==d.trigger.apply(o,n))){if(!i&&!d.noBubble&&!g(o)){for(wt.test((l=d.delegateType||y)+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),u=s;u===(o.ownerDocument||r)&&v.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=v[a++])&&!t.isPropagationStopped();)h=s,t.type=1<a?l:d.bindType||y,(p=(Q.get(s,"events")||{})[t.type]&&Q.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&G(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),n)||!G(o)||c&&m(o[y])&&!g(o)&&((u=o[c])&&(o[c]=null),T.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,Et),o[y](),t.isPropagationStopped()&&h.removeEventListener(y,Et),T.event.triggered=void 0,u&&(o[c]=u)),t.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),h.focusin||T.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){T.event.simulate(t,e.target,T.event.fix(e))};T.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=Q.access(r,t);o||r.addEventListener(e,n,!0),Q.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=Q.access(r,t)-1;o?Q.access(r,t,o):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}}));var Ct=e.location,Lt=Date.now(),At=/\?/;T.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+t),n};var Ht=/\[\]$/,Mt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,r){var o;if(Array.isArray(t))T.each(t,(function(t,o){n||Ht.test(e)?r(e,o):Dt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==b(t))r(e,t);else for(o in t)Dt(e+"["+o+"]",t[o],n,r)}T.param=function(e,t){var n,r=[],o=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){o(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,o);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&St.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var kt=/%20/g,jt=/#.*$/,Ot=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Rt=/^\/\//,It={},Ft={},Bt="*/".concat("*"),Wt=r.createElement("a");function $t(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(P)||[];if(m(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function _t(e,t,n,r){var o={},i=e===Ft;function a(s){var u;return o[s]=!0,T.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||i||o[l]?i?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ut(e,t){var n,r,o=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Wt.href=Ct.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,T.ajaxSettings),t):Ut(T.ajaxSettings,e)},ajaxPrefilter:$t(It),ajaxTransport:$t(Ft),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0);var o,i,a,s,u,l,c,f,p,d,h=T.ajaxSetup({},n=n||{}),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?T(m):T.event,v=T.Deferred(),y=T.Callbacks("once memory"),b=h.statusCode||{},x={},w={},E="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=qt.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||E;return o&&o.abort(t),L(0,t),this}};if(v.promise(C),h.url=((t||h.url||Ct.href)+"").replace(Rt,Ct.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Wt.protocol+"//"+Wt.host!=l.protocol+"//"+l.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=T.param(h.data,h.traditional)),_t(It,h,n,C),c)return C;for(p in(f=T.event&&h.global)&&0==T.active++&&T.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),i=h.url.replace(jt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(kt,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(At.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Ot,"$1"),d=(At.test(i)?"&":"?")+"_="+Lt+++d),h.url=i+d),h.ifModified&&(T.lastModified[i]&&C.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&C.setRequestHeader("If-None-Match",T.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Bt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(m,C,h)||c))return C.abort();if(E="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),o=_t(Ft,h,n,C)){if(C.readyState=1,f&&g.trigger("ajaxSend",[C,h]),c)return C;h.async&&0<h.timeout&&(u=e.setTimeout((function(){C.abort("timeout")}),h.timeout));try{c=!1,o.send(x,L)}catch(t){if(c)throw t;L(-1,t)}}else L(-1,"No Transport");function L(t,n,r,s){var l,p,d,x,w,E=n;c||(c=!0,u&&e.clearTimeout(u),o=void 0,a=s||"",C.readyState=0<t?4:0,l=200<=t&&t<300||304===t,r&&(x=function(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+" "+u[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(h,C,r)),x=function(e,t,n,r){var o,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=l[u+" "+i]||l["* "+i]))for(o in l)if((s=o.split(" "))[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[o]:!0!==l[o]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}(h,x,C,l),l?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(T.etag[i]=w)),204===t||"HEAD"===h.type?E="nocontent":304===t?E="notmodified":(E=x.state,p=x.data,l=!(d=x.error))):(d=E,!t&&E||(E="error",t<0&&(t=0))),C.status=t,C.statusText=(n||E)+"",l?v.resolveWith(m,[p,E,C]):v.rejectWith(m,[C,E,d]),C.statusCode(b),b=void 0,f&&g.trigger(l?"ajaxSuccess":"ajaxError",[C,h,l?p:d]),y.fireWith(m,[C,E]),f&&(g.trigger("ajaxComplete",[C,h]),--T.active||T.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,o){return m(n)&&(o=o||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:o,data:n,success:r},T.isPlainObject(e)&&e))}})),T._evalUrl=function(e,t){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return m(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=m(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Vt={0:200,1223:204},zt=T.ajaxSettings.xhr();h.cors=!!zt&&"withCredentials"in zt,h.ajax=zt=!!zt,T.ajaxTransport((function(t){var n,r;if(h.cors||zt&&!t.crossDomain)return{send:function(o,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Vt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(o){if(n)throw o}},abort:function(){n&&n()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(o,i){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Xt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||T.expando+"_"+Lt++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(t,n,r){var o,i,a,s=!1!==t.jsonp&&(Yt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Yt,"$1"+o):!1!==t.jsonp&&(t.url+=(At.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||T.error(o+" was not called"),a[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){a=arguments},r.always((function(){void 0===i?T(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Gt.push(o)),a&&m(i)&&i(a[0]),a=i=void 0})),"script"})),h.createHTMLDocument=((Xt=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((o=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(o)):t=r),a=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=Te([e],t,a),a&&a.length&&T(a).remove(),T.merge([],i.childNodes)));var o,i,a},T.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return-1<s&&(r=yt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<a.length&&T.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,l=T.css(e,"position"),c=T(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),i=T.css(e,"top"),u=T.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(i+u).indexOf("auto")?(a=(r=c.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),m(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):c.css(f)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?{top:(t=r.getBoundingClientRect()).top+(n=r.ownerDocument.defaultView).pageYOffset,left:t.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(r,"marginTop",!0),left:t.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||oe}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return _(this,(function(e,r,o){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=Ue(h.pixelPosition,(function(e,n){if(n)return n=_e(e,t),Be.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return _(this,(function(t,n,o){var i;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?T.css(t,n,s):T.style(t,n,o,s)}),t,a?o:void 0,a)}}))})),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}})),T.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),T.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=i.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||T.guid++,o},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=M,T.isFunction=m,T.isWindow=g,T.camelCase=X,T.type=b,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return T}));var Qt=e.jQuery,Jt=e.$;return T.noConflict=function(t){return e.$===T&&(e.$=Jt),t&&e.jQuery===T&&(e.jQuery=Qt),T},t||(e.jQuery=e.$=T),T})),function(e,t){"use strict";function n(){var e=L.splice(0,L.length);for(Je=0;e.length;)e.shift().call(null,e.shift())}function r(e,t){for(var n=0,r=e.length;n<r;n++)h(e[n],t)}function o(e){return function(t){Pe(t)&&(h(t,e),ie.length&&r(t.querySelectorAll(ie),e))}}function i(e){var t=$e.call(e,"is"),n=e.nodeName.toUpperCase(),r=se.call(re,t?ee+t.toUpperCase():Z+n);return t&&-1<r&&!a(n,t)?-1:r}function a(e,t){return-1<ie.indexOf(e+'[is="'+t+'"]')}function s(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,i=e[G]||2,a=e[Y]||3;!rt||o&&o!==t||!t[$]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==i&&n!==a)||t[$](r,n===i?null:e.prevValue,n===a?null:e.newValue)}function u(e){var t=o(e);return function(e){L.push(t,e.target),Je&&clearTimeout(Je),Je=setTimeout(n,1)}}function l(e){nt&&(nt=!1,e.currentTarget.removeEventListener(J,l)),ie.length&&r((e.target||w).querySelectorAll(ie),e.detail===B?B:I),Oe&&function(){for(var e,t=0,n=Re.length;t<n;t++)ae.contains(e=Re[t])||(n--,Re.splice(t--,1),h(e,B))}()}function c(e,t){var n=this;Ve.call(n,e,t),A.call(n,{target:n})}function f(e,t,n){var r=t.apply(e,n),o=i(r);return-1<o&&k(r,oe[o]),n.pop()&&ie.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)k(t=e[n],oe[i(t)])}(r.querySelectorAll(ie)),r}function p(e,t){Se(e,t),N?N.observe(e,Ye):(tt&&(e.setAttribute=c,e[P]=M(e),e[R](K,A)),e[R](Q,s)),e[z]&&rt&&(e.created=!0,e[z](),e.created=!1)}function d(e){throw new Error("A "+e+" type is already registered")}function h(e,t){var n,r,o=i(e);-1<o&&!Be.call(e,"TEMPLATE")&&(D(e,oe[o]),o=0,t!==I||e[I]?t!==B||e[B]||(e[I]=!1,e[B]=!0,r="disconnected",o=1):(e[B]=!1,e[I]=!0,r="connected",o=1,Oe&&se.call(Re,e)<0&&Re.push(e)),o&&(n=e[t+F]||e[r+F])&&n.call(e))}function m(){}function g(e,t,n){var r=n&&n[W]||"",o=t.prototype,i=Ne(o),a=t.observedAttributes||pe,s={prototype:i};qe(i,z,{value:function(){if(Ce)Ce=!1;else if(!this[ye]){this[ye]=!0,new t(this),o[z]&&o[z].call(this);var e=Le[He.get(t)];(!xe||e.create.length>1)&&b(this)}}}),qe(i,$,{value:function(e){-1<se.call(a,e)&&o[$]&&o[$].apply(this,arguments)}}),o[U]&&qe(i,_,{value:o[U]}),o[V]&&qe(i,X,{value:o[V]}),r&&(s[W]=r),e=e.toUpperCase(),Le[e]={constructor:t,create:r?[r,Me(e)]:[e]},He.set(t,e),w[O](e.toLowerCase(),s),x(e),Ae[e].r()}function v(e){var t=Le[e.toUpperCase()];return t&&t.constructor}function y(e){return"string"==typeof e?e:e&&e.is||""}function b(e){for(var t,n=e[$],r=n?e.attributes:pe,o=r.length;o--;)n.call(e,(t=r[o]).name||t.nodeName,null,t.value||t.nodeValue)}function x(e){return(e=e.toUpperCase())in Ae||(Ae[e]={},Ae[e].p=new Ee((function(t){Ae[e].r=t}))),Ae[e].p}function T(){be&&delete e.customElements,fe(e,"customElements",{configurable:!0,value:new m}),fe(e,"CustomElementRegistry",{configurable:!0,value:m});for(var t=C.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,r;return e||(e=this),e[ye]||(Ce=!0,t=Le[He.get(e.constructor)],(e=(r=xe&&1===t.create.length)?Reflect.construct(n,pe,t.constructor):w.createElement.apply(w,t.create))[ye]=!0,Ce=!1,r||b(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(r){fe(n,ye,{value:e[t]})}}}(t[n]));w.createElement=function(e,t){var n=y(t);return n?Ge.call(this,e,Me(n)):Ge.call(this,e)},Ke||(et=!0,w[O](""))}var w=e.document,E=e.Object,C=function(e){var t,n,r,o,i=/^[A-Z]+[a-z]/,a=function(e,t){(t=t.toLowerCase())in s||(s[e]=(s[e]||[]).concat(t),s[t]=s[t.toUpperCase()]=e)},s=(E.create||E)(null),u={};for(n in e)for(o in e[n])for(s[o]=r=e[n][o],t=0;t<r.length;t++)s[r[t].toLowerCase()]=s[r[t].toUpperCase()]=o;return u.get=function(e){return"string"==typeof e?s[e]||(i.test(e)?[]:""):function(e){var t,n=[];for(t in s)e.test(t)&&n.push(t);return n}(e)},u.set=function(e,t){return i.test(e)?a(e,t):a(t,e),u},u}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var L,A,H,M,N,S,D,k,j,O="registerElement",q=1e5*e.Math.random()>>0,P="__"+O+q,R="addEventListener",I="attached",F="Callback",B="detached",W="extends",$="attributeChanged"+F,_=I+F,U="connected"+F,V="disconnected"+F,z="created"+F,X=B+F,G="ADDITION",Y="REMOVAL",Q="DOMAttrModified",J="DOMContentLoaded",K="DOMSubtreeModified",Z="<",ee="=",te=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ne=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],re=[],oe=[],ie="",ae=w.documentElement,se=re.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ue=E.prototype,le=ue.hasOwnProperty,ce=ue.isPrototypeOf,fe=E.defineProperty,pe=[],de=E.getOwnPropertyDescriptor,he=E.getOwnPropertyNames,me=E.getPrototypeOf,ge=E.setPrototypeOf,ve=!!E.__proto__,ye="__dreCEv1",be=e.customElements,xe=!/^force/.test(t.type)&&!!(be&&be.define&&be.get&&be.whenDefined),Te=E.create||E,we=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[se.call(t,e)]},set:function(r,o){(e=se.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},Ee=e.Promise||function(e){function t(e){for(r=!0;n.length;)n.shift()(e)}var n=[],r=!1,o={catch:function(){return o},then:function(e){return n.push(e),r&&setTimeout(t,1),o}};return e(t),o},Ce=!1,Le=Te(null),Ae=Te(null),He=new we,Me=function(e){return e.toLowerCase()},Ne=E.create||function e(t){return t?(e.prototype=t,new e):this},Se=ge||(ve?function(e,t){return e.__proto__=t,e}:he&&de?function(){function e(e,t){for(var n,r=he(t),o=0,i=r.length;o<i;o++)le.call(e,n=r[o])||fe(e,n,de(t,n))}return function(t,n){do{e(t,n)}while((n=me(n))&&!ce.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),De=e.MutationObserver||e.WebKitMutationObserver,ke=e.HTMLAnchorElement,je=(e.HTMLElement||e.Element||e.Node).prototype,Oe=!ce.call(je,ae),qe=Oe?function(e,t,n){return e[t]=n.value,e}:fe,Pe=Oe?function(e){return 1===e.nodeType}:function(e){return ce.call(je,e)},Re=Oe&&[],Ie=je.attachShadow,Fe=je.cloneNode,Be=je.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},We=je.dispatchEvent,$e=je.getAttribute,_e=je.hasAttribute,Ue=je.removeAttribute,Ve=je.setAttribute,ze=w.createElement,Xe=w.importNode,Ge=ze,Ye=De&&{attributes:!0,characterData:!0,attributeOldValue:!0},Qe=De||function(e){tt=!1,ae.removeEventListener(Q,Qe)},Je=0,Ke=O in w&&!/^force-all/.test(t.type),Ze=!0,et=!1,tt=!0,nt=!0,rt=!0;if(De&&((j=w.createElement("div")).innerHTML="<div><div></div></div>",new De((function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(j=de(je,"innerHTML"))&&j.set;n&&fe(je,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),j=null})).observe(j,{childList:!0,subtree:!0}),j.innerHTML=""),Ke||(ge||ve?(D=function(e,t){ce.call(t,e)||p(e,t)},k=p):k=D=function(e,t){e[P]||(e[P]=E(!0),p(e,t))},Oe?(tt=!1,function(){var e=de(je,R),t=e.value,n=function(e){var t=new CustomEvent(Q,{bubbles:!0});t.attrName=e,t.prevValue=$e.call(this,e),t.newValue=null,t[Y]=t.attrChange=2,Ue.call(this,e),We.call(this,t)},r=function(e,t){var n=_e.call(this,e),r=n&&$e.call(this,e),o=new CustomEvent(Q,{bubbles:!0});Ve.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[G]=o.attrChange=0,We.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[P],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(Q,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[G]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,We.call(n,t))};e.value=function(e,i,a){e===Q&&this[$]&&this.setAttribute!==r&&(this[P]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,i,a)},fe(je,R,e)}()):De||(ae[R](Q,Qe),ae.setAttribute(P,1),ae.removeAttribute(P),tt&&(A=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[P],o[P]=n=M(o),n){if(!(r in t))return H(0,o,r,t[r],n[r],G);if(n[r]!==t[r])return H(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return H(2,o,r,t[r],n[r],Y)}},H=function(e,t,n,r,o,i){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[i]=e,s(a)},M=function(e){for(var t,n,r={},o=e.attributes,i=0,a=o.length;i<a;i++)"setAttribute"!==(n=(t=o[i]).name)&&(r[n]=t.value);return r})),w[O]=function(e,t){if(n=e.toUpperCase(),Ze&&(Ze=!1,De?(N=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new De((function(r){for(var o,i,a,s=0,u=r.length;s<u;s++)"childList"===(o=r[s]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(i=o.target,rt&&i[$]&&"style"!==o.attributeName&&(a=$e.call(i,o.attributeName))!==o.oldValue&&i[$](o.attributeName,o.oldValue,a))}))}(o(I),o(B)),(S=function(e){return N.observe(e,{childList:!0,subtree:!0}),e})(w),Ie&&(je.attachShadow=function(){return S(Ie.apply(this,arguments))})):(L=[],w[R]("DOMNodeInserted",u(I)),w[R]("DOMNodeRemoved",u(B))),w[R](J,l),w[R]("readystatechange",l),w.importNode=function(e,t){switch(e.nodeType){case 1:return f(w,Xe,[e,!!t]);case 11:for(var n=w.createDocumentFragment(),r=e.childNodes,o=r.length,i=0;i<o;i++)n.appendChild(w.importNode(r[i],!!t));return n;default:return Fe.call(e,!!t)}},je.cloneNode=function(e){return f(this,Fe,[!!e])}),et)return et=!1;if(-2<se.call(re,ee+n)+se.call(re,Z+n)&&d(e),!te.test(n)||-1<se.call(ne,n))throw new Error("The type "+e+" is invalid");var n,i,a=function(){return c?w.createElement(p,n):w.createElement(p)},s=t||ue,c=le.call(s,W),p=c?t[W].toUpperCase():n;return c&&-1<se.call(re,Z+p)&&d(p),i=re.push((c?ee:Z)+n)-1,ie=ie.concat(ie.length?",":"",c?p+'[is="'+e.toLowerCase()+'"]':p),a.prototype=oe[i]=le.call(s,"prototype")?s.prototype:Ne(je),ie.length&&r(w.querySelectorAll(ie),I),a},w.createElement=Ge=function(e,t){var n=y(t),r=n?ze.call(w,e,Me(n)):ze.call(w,e),o=""+e,i=se.call(re,(n?ee:Z)+(n||o).toUpperCase()),s=-1<i;return n&&(r.setAttribute("is",n=n.toLowerCase()),s&&(s=a(o.toUpperCase(),n))),rt=!w.createElement.innerHTMLHelper,s&&k(r,oe[i]),r}),addEventListener("beforeunload",(function(){delete w.createElement,delete w.importNode,delete w[O]}),!1),m.prototype={constructor:m,define:xe?function(e,t,n){if(n)g(e,t,n);else{var r=e.toUpperCase();Le[r]={constructor:t,create:[r]},He.set(t,r),be.define(e,t)}}:g,get:xe?function(e){return be.get(e)||v(e)}:v,whenDefined:xe?function(e){return Ee.race([be.whenDefined(e),x(e)])}:x},!be||/^force/.test(t.type))T();else if(!t.noBuiltIn)try{!function(t,n,r){var o=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[W]="a",(t.prototype=Ne(ke.prototype)).constructor=t,e.customElements.define(r,t,n),!o.test(w.createElement("a",{is:r}).outerHTML)||!o.test((new t).outerHTML))throw n}((function e(){return Reflect.construct(ke,[],e)}),{},"document-register-element-a"+q)}catch(ot){T()}if(!t.noBuiltIn)try{if(ze.call(w,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(it){Me=function(e){return{is:e.toLowerCase()}}}}(window);
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+27z":function(t,e){function n(t,e,n){var i={audio:!1,video:{mandatory:{chromeMediaSource:t?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(i.audio={mandatory:{chromeMediaSource:t?"screen":"desktop"},optional:[]}),e&&(i.video.mandatory.chromeMediaSourceId=e,i.audio&&i.audio.mandatory&&(i.audio.mandatory.chromeMediaSourceId=e)),i}function i(t){r?r.isLoaded?r.contentWindow.postMessage(t?t.forEach?{captureCustomSourceId:t}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout((function(){i(t)}),100):o((function(){i(t)}))}var r;function o(t){r?t():((r=document.createElement("iframe")).onload=function(){r.isLoaded=!0,t()},r.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",r.style.display="none",(document.body||document.documentElement).appendChild(r))}function a(){r?r.isLoaded?r.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(a,100):o(a)}window.getScreenId=function(t,e,r){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?e(null,"firefox",{video:{mozMediaSource:t,mediaSource:t}}):(window.addEventListener("message",(function t(i){i.data&&(i.data.chromeMediaSourceId&&("PermissionDeniedError"===i.data.chromeMediaSourceId?e("permission-denied"):e(null,i.data.chromeMediaSourceId,n(null,i.data.chromeMediaSourceId,i.data.canRequestAudioTrack)),window.removeEventListener("message",t)),i.data.chromeExtensionStatus&&(e(i.data.chromeExtensionStatus,null,n(i.data.chromeExtensionStatus)),window.removeEventListener("message",t)))})),r?setTimeout((function(){i(r)}),100):setTimeout(i,100)):e({video:!0})},window.getScreenConstraints=function(t){o((function(){getScreenId((function(e,n,i){i||(i={video:!0}),t(e,i.video)}))}))},window.getChromeExtensionStatus=function(t){navigator.mozGetUserMedia?t("installed-enabled"):(window.addEventListener("message",(function e(n){n.data&&n.data.chromeExtensionStatus&&(t(n.data.chromeExtensionStatus),window.removeEventListener("message",e))})),setTimeout(a,100))},e.getScreenId=getScreenId},"+FKC":function(t,e,n){"use strict";e.__esModule=!0;var i=n("bDgZ"),r=function(){function t(t){this.stream=t,this.webRtcStatsEnabled=!1,this.statsInterval=1,this.stats={inbound:{audio:{bytesReceived:0,packetsReceived:0,packetsLost:0},video:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesDecoded:0,nackCount:0}},outbound:{audio:{bytesSent:0,packetsSent:0},video:{bytesSent:0,packetsSent:0,framesEncoded:0,nackCount:0}}}}return t.prototype.isEnabled=function(){return this.webRtcStatsEnabled},t.prototype.initWebRtcStats=function(){var t=this,e=localStorage.getItem("elastest-instrumentation");if(e){console.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),this.webRtcStatsEnabled=!0;var n=JSON.parse(e);return this.statsInterval=n.webrtc.interval,console.warn("localStorage item: "+JSON.stringify(n)),void(this.webRtcStatsIntervalId=setInterval((function(){t.sendStatsToHttpEndpoint(n)}),1e3*this.statsInterval))}console.debug("WebRtc stats not enabled")},t.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),console.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},t.prototype.getSelectedIceCandidateInfo=function(){var t=this;return new Promise((function(e,n){t.getStatsAgnostic(t.stream.getRTCPeerConnection(),(function(r){if(-1!==i.name.indexOf("Chrome")||-1!==i.name.indexOf("Opera")){var o=void 0,a=void 0,s=void 0,c={},u={};for(var l in r){var d=r[l];"localcandidate"===d.type?c[d.id]=d:"remotecandidate"===d.type?u[d.id]=d:"googCandidatePair"===d.type&&"true"===d.googActiveConnection&&(s=d,o=d.localCandidateId,a=d.remoteCandidateId)}var p=c[o];if(p){var h=t.stream.getLocalIceCandidateList().filter((function(t){return!!t.candidate&&t.candidate.indexOf(p.ipAddress)>=0&&t.candidate.indexOf(p.portNumber)>=0&&t.candidate.indexOf(p.priority)>=0}));p.raw=h[0]?h[0].candidate:"ERROR: Cannot find local candidate in list of sent ICE candidates"}else p="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";var f=u[a];f?(h=t.stream.getRemoteIceCandidateList().filter((function(t){return!!t.candidate&&t.candidate.indexOf(f.ipAddress)>=0&&t.candidate.indexOf(f.portNumber)>=0&&t.candidate.indexOf(f.priority)>=0})),f.raw=h[0]?h[0].candidate:"ERROR: Cannot find remote candidate in list of received ICE candidates"):f="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used",e({googCandidatePair:s,localCandidate:p,remoteCandidate:f})}else n("Selected ICE candidate info only available for Chrome")}),(function(t){n(t)}))}))},t.prototype.sendStatsToHttpEndpoint=function(t){var e=this,n=function(n){var i=new XMLHttpRequest,r=t.webrtc.httpEndpoint;i.open("POST",r,!0),i.setRequestHeader("Content-type","application/json"),i.onreadystatechange=function(){4===i.readyState&&200===i.status&&console.log("WebRtc stats successfully sent to "+r+" for stream "+e.stream.streamId+" of connection "+e.stream.connection.connectionId)},i.send(n)};this.getStatsAgnostic(this.stream.getRTCPeerConnection(),(function(r){if(-1!==i.name.indexOf("Firefox"))r.forEach((function(i){var r={};if("inbound-rtp"===i.type&&null!==i.nackCount&&!1===i.isRemote&&i.id.startsWith("inbound")&&i.remoteId.startsWith("inbound")){var o="webrtc_inbound_"+i.mediaType+"_"+i.ssrc,a={bytesReceived:(i.bytesReceived-e.stats.inbound[i.mediaType].bytesReceived)/e.statsInterval,jitter:1e3*i.jitter,packetsReceived:(i.packetsReceived-e.stats.inbound[i.mediaType].packetsReceived)/e.statsInterval,packetsLost:(i.packetsLost-e.stats.inbound[i.mediaType].packetsLost)/e.statsInterval},s={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===i.mediaType&&(a.framesDecoded=(i.framesDecoded-e.stats.inbound.video.framesDecoded)/e.statsInterval,a.nackCount=(i.nackCount-e.stats.inbound.video.nackCount)/e.statsInterval,s.framesDecoded="frames",s.nackCount="packets",e.stats.inbound.video.framesDecoded=i.framesDecoded,e.stats.inbound.video.nackCount=i.nackCount),e.stats.inbound[i.mediaType].bytesReceived=i.bytesReceived,e.stats.inbound[i.mediaType].packetsReceived=i.packetsReceived,e.stats.inbound[i.mediaType].packetsLost=i.packetsLost,(r={"@timestamp":new Date(i.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",et_type:o,stream_type:"composed_metrics",units:s})[o]=a,n(JSON.stringify(r))}else"outbound-rtp"===i.type&&!1===i.isRemote&&i.id.toLowerCase().includes("outbound")&&(o="webrtc_outbound_"+i.mediaType+"_"+i.ssrc,a={bytesSent:(i.bytesSent-e.stats.outbound[i.mediaType].bytesSent)/e.statsInterval,packetsSent:(i.packetsSent-e.stats.outbound[i.mediaType].packetsSent)/e.statsInterval},s={bytesSent:"bytes",packetsSent:"packets"},"video"===i.mediaType&&(a.framesEncoded=(i.framesEncoded-e.stats.outbound.video.framesEncoded)/e.statsInterval,s.framesEncoded="frames",e.stats.outbound.video.framesEncoded=i.framesEncoded),e.stats.outbound[i.mediaType].bytesSent=i.bytesSent,e.stats.outbound[i.mediaType].packetsSent=i.packetsSent,(r={"@timestamp":new Date(i.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",et_type:o,stream_type:"composed_metrics",units:s})[o]=a,n(JSON.stringify(r)))}));else if(-1!==i.name.indexOf("Chrome")||-1!==i.name.indexOf("Opera"))for(var o=0,a=Object.keys(r);o<a.length;o++){var s=r[a[o]];if("ssrc"===s.type){var c={};if("bytesReceived"in s&&("audio"===s.mediaType&&"audioOutputLevel"in s||"video"===s.mediaType&&"qpSum"in s)){var u="webrtc_inbound_"+s.mediaType+"_"+s.ssrc,l={bytesReceived:(s.bytesReceived-e.stats.inbound[s.mediaType].bytesReceived)/e.statsInterval,jitter:s.googJitterBufferMs,packetsReceived:(s.packetsReceived-e.stats.inbound[s.mediaType].packetsReceived)/e.statsInterval,packetsLost:(s.packetsLost-e.stats.inbound[s.mediaType].packetsLost)/e.statsInterval},d={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===s.mediaType&&(l.framesDecoded=(s.framesDecoded-e.stats.inbound.video.framesDecoded)/e.statsInterval,l.nackCount=(s.googNacksSent-e.stats.inbound.video.nackCount)/e.statsInterval,d.framesDecoded="frames",d.nackCount="packets",e.stats.inbound.video.framesDecoded=s.framesDecoded,e.stats.inbound.video.nackCount=s.googNacksSent),e.stats.inbound[s.mediaType].bytesReceived=s.bytesReceived,e.stats.inbound[s.mediaType].packetsReceived=s.packetsReceived,e.stats.inbound[s.mediaType].packetsLost=s.packetsLost,(c={"@timestamp":new Date(s.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",et_type:u,stream_type:"composed_metrics",units:d})[u]=l,n(JSON.stringify(c))}else"bytesSent"in s&&(u="webrtc_outbound_"+s.mediaType+"_"+s.ssrc,l={bytesSent:(s.bytesSent-e.stats.outbound[s.mediaType].bytesSent)/e.statsInterval,packetsSent:(s.packetsSent-e.stats.outbound[s.mediaType].packetsSent)/e.statsInterval},d={bytesSent:"bytes",packetsSent:"packets"},"video"===s.mediaType&&(l.framesEncoded=(s.framesEncoded-e.stats.outbound.video.framesEncoded)/e.statsInterval,d.framesEncoded="frames",e.stats.outbound.video.framesEncoded=s.framesEncoded),e.stats.outbound[s.mediaType].bytesSent=s.bytesSent,e.stats.outbound[s.mediaType].packetsSent=s.packetsSent,(c={"@timestamp":new Date(s.timestamp).toISOString(),exec:t.exec,component:t.component,stream:"webRtc",et_type:u,stream_type:"composed_metrics",units:d})[u]=l,n(JSON.stringify(c)))}}}),(function(t){console.log(t)}))},t.prototype.standardizeReport=function(t){console.log(t);var e={};return-1!==i.name.indexOf("Firefox")?(Object.keys(t).forEach((function(e){console.log(t[e])})),t):(t.result().forEach((function(t){var n={id:t.id,timestamp:t.timestamp,type:t.type};t.names().forEach((function(e){n[e]=t.stat(e)})),e[n.id]=n})),e)},t.prototype.getStatsAgnostic=function(t,e,n){var r=this;return-1!==i.name.indexOf("Firefox")?t.getStats(null).then((function(t){var n=r.standardizeReport(t);e(n)})).catch(n):-1!==i.name.indexOf("Chrome")||-1!==i.name.indexOf("Opera")?t.getStats((function(t){var n=r.standardizeReport(t);e(n)}),null,n):void 0},t}();e.WebRtcStats=r},"+ig+":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i){var r=t.call(this,!1,e,n)||this;return r.data=i,r}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.FilterEvent=o},"/dLB":function(t,e,n){"use strict";var i;e.__esModule=!0,(i=e.VideoInsertMode||(e.VideoInsertMode={})).AFTER="AFTER",i.APPEND="APPEND",i.BEFORE="BEFORE",i.PREPEND="PREPEND",i.REPLACE="REPLACE"},"/u9M":function(t,e,n){"use strict";e.__esModule=!0;var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n("LXjW")),r=i.tokenize,o=i.options.Options;function a(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(t){return t.replace(/"/g,"&quot;")}function c(t){if(!t)return"";var e=[];for(var n in t)e.push(n+'="'+s(t[n]+"")+'"');return e.join(" ")}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=new o(e);for(var n=r(t),i=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&e.nl2br)i.push("<br>\n");else if(l.isLink&&e.check(l)){var d=e.resolve(l),p=d.formatted,h=d.formattedHref,f=d.tagName,m=d.className,g=d.target,v=d.attributes,y="<"+f+' href="'+s(h)+'"';m&&(y+=' class="'+s(m)+'"'),g&&(y+=' target="'+s(g)+'"'),v&&(y+=" "+c(v)),y+=">"+a(p)+"</"+f+">",i.push(y)}else i.push(a(l.toString()))}return i.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(t){return u(this,t)}}})}catch(l){String.prototype.linkify||(String.prototype.linkify=function(t){return u(this,t)})}e.default=u},0:function(t,e,n){t.exports=n("zUnb")},"0wxW":function(t,e,n){var i=n("de4E"),r=n("pLL0");e.JsonRPC=i,e.XmlRPC=r},"1Kca":function(t,e,n){"use strict";var i=n("dY/r");t.exports=function(t){var e,r={stun:(t||{}).stun||n("KFtI"),turn:(t||{}).turn||n("hw9W")},o=(t||{}).turnCount||0;function a(t,e){for(var n,o=[],a=[].concat(r[t]);a.length&&o.length<e;)n=Math.random()*a.length|0,o=o.concat(a.splice(n,1));return o.map((function(e){return"string"==typeof e||e instanceof String?i(t+":"+e):e}))}return e=[].concat(a("stun",(t||{}).stunCount||2)),o&&(e=e.concat(a("turn",o))),e}},"5kmN":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("1Kca"),a=n("Wfi+"),s=n("bDgZ"),c=function(){function t(t){var e=this;this.configuration=t,this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,this.configuration.iceServers=this.configuration.iceServers&&this.configuration.iceServers.length>0?this.configuration.iceServers:o(),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.id=t.id?t.id:a.v4(),this.pc.onicecandidate=function(t){if(t.candidate){var n=t.candidate;n?(e.localCandidatesQueue.push({candidate:n.candidate}),e.candidategatheringdone=!1,e.configuration.onicecandidate(t.candidate)):e.candidategatheringdone||(e.candidategatheringdone=!0)}},this.pc.onsignalingstatechange=function(){if("stable"===e.pc.signalingState)for(;e.iceCandidateList.length>0;)e.pc.addIceCandidate(e.iceCandidateList.shift())},this.start()}return t.prototype.start=function(){var t=this;return new Promise((function(e,n){if("closed"===t.pc.signalingState&&n('The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue'),t.configuration.mediaStream){for(var i=0,r=t.configuration.mediaStream.getTracks();i<r.length;i++)t.pc.addTrack(r[i],t.configuration.mediaStream);e()}}))},t.prototype.dispose=function(){if(console.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},t.prototype.generateOffer=function(){var t=this;return new Promise((function(e,n){var i,r=!0;t.configuration.mediaConstraints&&(i="boolean"!=typeof t.configuration.mediaConstraints.audio||t.configuration.mediaConstraints.audio,r="boolean"!=typeof t.configuration.mediaConstraints.video||t.configuration.mediaConstraints.video);var o={offerToReceiveAudio:"sendonly"!==t.configuration.mode&&i,offerToReceiveVideo:"sendonly"!==t.configuration.mode&&r};console.debug("RTCPeerConnection constraints: "+JSON.stringify(o)),"Safari"===s.name&&-1!==s.ua.indexOf("Safari")?(i&&t.pc.addTransceiver("audio",{direction:t.configuration.mode}),r&&t.pc.addTransceiver("video",{direction:t.configuration.mode}),t.pc.createOffer().then((function(e){return console.debug("Created SDP offer"),t.pc.setLocalDescription(e)})).then((function(){var i=t.pc.localDescription;i?(console.debug("Local description set",i.sdp),e(i.sdp)):n("Local description is not defined")})).catch((function(t){return n(t)}))):t.pc.createOffer(o).then((function(e){return console.debug("Created SDP offer"),t.pc.setLocalDescription(e)})).then((function(){var i=t.pc.localDescription;i?(console.debug("Local description set",i.sdp),e(i.sdp)):n("Local description is not defined")})).catch((function(t){return n(t)}))}))},t.prototype.processAnswer=function(t,e){var n=this;return new Promise((function(i,r){var o={type:"answer",sdp:t};console.debug("SDP answer received, setting remote description"),"closed"===n.pc.signalingState&&r("RTCPeerConnection is closed"),s.isIonicIos?e?setTimeout((function(){console.info("setRemoteDescription run after timeout for Ionic iOS device"),n.pc.setRemoteDescription(new RTCSessionDescription(o)).then((function(){return i()})).catch((function(t){return r(t)}))}),250):n.pc.setRemoteDescription(new RTCSessionDescription(o)).then((function(){return i()})).catch((function(t){return r(t)})):n.pc.setRemoteDescription(o).then((function(){return i()})).catch((function(t){return r(t)}))}))},t.prototype.addIceCandidate=function(t){var e=this;return new Promise((function(n,i){switch(console.debug("Remote ICE candidate received",t),e.remoteCandidatesQueue.push(t),e.pc.signalingState){case"closed":i(new Error("PeerConnection object is closed"));break;case"stable":e.pc.remoteDescription?e.pc.addIceCandidate(t).then((function(){return n()})).catch((function(t){return i(t)})):(e.iceCandidateList.push(t),n());break;default:e.iceCandidateList.push(t),n()}}))},t.prototype.addIceConnectionStateChangeListener=function(t){var e=this;this.pc.oniceconnectionstatechange=function(){switch(e.pc.iceConnectionState){case"disconnected":console.warn("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "disconnected". Possible network disconnection');break;case"failed":console.error("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') to "failed"');break;case"closed":console.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "closed"');break;case"new":console.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "new"');break;case"checking":console.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "checking"');break;case"connected":console.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "connected"');break;case"completed":console.log("IceConnectionState of RTCPeerConnection "+e.id+" ("+t+') change to "completed"')}}},t}();e.WebRtcPeer=c;var u=function(t){function e(e){return e.mode="recvonly",t.call(this,e)||this}return r(e,t),e}(c);e.WebRtcPeerRecvonly=u;var l=function(t){function e(e){return e.mode="sendonly",t.call(this,e)||this}return r(e,t),e}(c);e.WebRtcPeerSendonly=l;var d=function(t){function e(e){return e.mode="sendrecv",t.call(this,e)||this}return r(e,t),e}(c);e.WebRtcPeerSendrecv=d},"6+/i":function(t,e,n){var i;!function(e){"use strict";function r(){}var o=r.prototype,a=e.EventEmitter;function s(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function c(t){return function(){return this[t].apply(this,arguments)}}o.getListeners=function(t){var e,n,i=this._getEvents();if(t instanceof RegExp)for(n in e={},i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n]);else e=i[t]||(i[t]=[]);return e},o.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},o.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,i=this.getListenersAsObject(t),r="object"==typeof e;for(n in i)i.hasOwnProperty(n)&&-1===s(i[n],e)&&i[n].push(r?e:{listener:e,once:!1});return this},o.on=c("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=c("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var n,i,r=this.getListenersAsObject(t);for(i in r)r.hasOwnProperty(i)&&-1!==(n=s(r[i],e))&&r[i].splice(n,1);return this},o.off=c("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var i,r,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(i=n.length;i--;)o.call(this,e,n[i]);else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"==typeof r?o.call(this,i,r):a.call(this,i,r));return this},o.removeEvent=function(t){var e,n=typeof t,i=this._getEvents();if("string"===n)delete i[t];else if(t instanceof RegExp)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._events;return this},o.removeAllListeners=c("removeEvent"),o.emitEvent=function(t,e){var n,i,r,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),r=0;r<n.length;r++)!0===(i=n[r]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},o.trigger=c("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},r.noConflict=function(){return e.EventEmitter=a,r},void 0===(i=(function(){return r}).call(e,n,e,t))||(t.exports=i)}("undefined"!=typeof window?window:this||{})},"74bm":function(t,e,n){"use strict";e.__esModule=!0;var i=n("BwMD"),r=n("Tt94"),o=function(){function t(t,e){this.handlers={},this.type=t,this.options=e}return t.prototype.execMethod=function(t,e){var n=this;return new Promise((function(o,a){var s;if(console.info("Executing filter method to stream "+n.stream.streamId),"string"!=typeof e)try{s=JSON.stringify(e)}catch(u){var c="'params' property must be a JSON formatted object";console.error(c),a(c)}else s=e;n.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:n.stream.streamId,method:t,params:s},(function(e,c){if(e)console.error("Error executing filter method for Stream "+n.stream.streamId,e),a(401===e.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):e);else{console.info("Filter method successfully executed on Stream "+n.stream.streamId);var u=Object.assign({},n.stream.filter);n.stream.filter.lastExecMethod={method:t,params:JSON.parse(s)},n.stream.session.emitEvent("streamPropertyChanged",[new i.StreamPropertyChangedEvent(n.stream.session,n.stream,"filter",n.stream.filter,u,"execFilterMethod")]),n.stream.streamManager.emitEvent("streamPropertyChanged",[new i.StreamPropertyChangedEvent(n.stream.streamManager,n.stream,"filter",n.stream.filter,u,"execFilterMethod")]),o()}}))}))},t.prototype.addEventListener=function(t,e){var n=this;return new Promise((function(i,o){console.info("Adding filter event listener to event "+t+" to stream "+n.stream.streamId),n.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:n.stream.streamId,eventType:t},(function(a,s){a?(console.error("Error adding filter event listener to event "+t+"for Stream "+n.stream.streamId,a),o(401===a.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):a)):(n.handlers[t]=e,console.info("Filter event listener to event "+t+" successfully applied on Stream "+n.stream.streamId),i())}))}))},t.prototype.removeEventListener=function(t){var e=this;return new Promise((function(n,i){console.info("Removing filter event listener to event "+t+" to stream "+e.stream.streamId),e.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:e.stream.streamId,eventType:t},(function(o,a){o?(console.error("Error removing filter event listener to event "+t+"for Stream "+e.stream.streamId,o),i(401===o.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):o)):(delete e.handlers[t],console.info("Filter event listener to event "+t+" successfully removed on Stream "+e.stream.streamId),n())}))}))},t}();e.Filter=o},"8KVD":function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.connection=r,a.reason=o,a}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.ConnectionEvent=o},AeG9:function(t,e,n){var i=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(h){i=!0}Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,r.prototype=new i,r});var r=n("txJ/").EventEmitter,o=n("HgqT"),a=n("0wxW"),s=n("gUCu");function c(t){if(t){if(t instanceof Function)return{send:t};if(t.send instanceof Function)return t;if(t.postMessage instanceof Function)return t.send=t.postMessage,t;if(t.write instanceof Function)return t.send=t.write,t;if(void 0===t.onmessage&&!(t.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function u(t,e){i?(this.method=t,this.params=e):(Object.defineProperty(this,"method",{value:t,enumerable:!0}),Object.defineProperty(this,"params",{value:e,enumerable:!0}))}function l(t,e,n,a){var l=this;if(!t)throw new SyntaxError("Packer is not defined");if(!t.pack||!t.unpack)throw new SyntaxError("Packer is invalid");var d=function(t){if(!t)return{};for(var e in t){var n=t[e];"string"==typeof n&&(t[e]={response:n})}return t}(t.responseMethods);if(e instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after onRequest");a=e,n=void 0,e=void 0}if(e&&e.send instanceof Function){if(n&&!(n instanceof Function))throw new SyntaxError("Only a function can be after transport");a=n,n=e,e=void 0}if(n instanceof Function){if(null!=a)throw new SyntaxError("There can't be parameters after onRequest");a=n,n=void 0}if(n&&n.send instanceof Function&&a&&!(a instanceof Function))throw new SyntaxError("Only a function can be after transport");e=e||{},r.call(this),a&&this.on("request",a),i?this.peerID=e.peerID:Object.defineProperty(this,"peerID",{value:e.peerID});var p=e.max_retries||0;function f(t){l.decode(t.data||t)}this.getTransport=function(){return n},this.setTransport=function(t){n&&(n.removeEventListener?n.removeEventListener("message",f):n.removeListener&&n.removeListener("data",f)),t&&(t.addEventListener?t.addEventListener("message",f):t.addListener&&t.addListener("data",f)),n=c(t)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(n);var m=e.request_timeout||5e3,g=e.ping_request_timeout||m,v=e.response_timeout||5e3,y=e.duplicates_timeout||5e3,b=0,_=new s,w=new s,S=new s,C={};function E(t,e){var n=setTimeout((function(){S.remove(t,e)}),y);S.set(n,t,e)}function x(e,n,r,o,a){u.call(this,e,n),this.getTransport=function(){return a},this.setTransport=function(t){a=c(t)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var s=w.get(r,o);a||l.getTransport()||(i?this.duplicated=Boolean(s):Object.defineProperty(this,"duplicated",{value:Boolean(s)}));var p=d[e];this.pack=t.pack.bind(t,this,r),this.reply=function(e,n,i){if(e instanceof Function||e&&e.send instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after callback");i=e,n=null,e=void 0}else if(n instanceof Function||n&&n.send instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");i=n,n=null}var a;return i=c(i),s&&clearTimeout(s.timeout),null!=o&&(e&&(e.dest=o),n&&(n.dest=o)),e||null!=n?(null!=l.peerID&&(e?e.from=l.peerID:n.from=l.peerID),a=t.pack(a=p?null==p.error&&e?{error:e}:{method:e?p.error:p.response,params:e||n}:{error:e,result:n},r)):a=s?s.message:t.pack({result:null},r),function(t,e,n){var i={message:t,timeout:setTimeout((function(){w.remove(e,n)}),v)};w.set(i,e,n)}(a,r,o),(i=i||this.getTransport()||l.getTransport())?i.send(a):a}}function k(t){var e=C[t];if(e){delete C[t];var n=_.pop(e.id,e.dest);n&&(clearTimeout(n.timeout),E(e.id,e.dest))}}o(x,u),this.cancel=function(t){if(t)return k(t);for(var t in C)k(t)},this.close=function(){var t=this.getTransport();t&&t.close&&t.close(4003,"Cancel request"),this.cancel(),S.forEach(clearTimeout),w.forEach((function(t){clearTimeout(t.timeout)}))},this.encode=function(e,n,i,r,o){if(n instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");o=n,r=void 0,i=void 0,n=void 0}else if(i instanceof Function){if(null!=r)throw new SyntaxError("There can't be parameters after callback");o=i,r=void 0,i=void 0}else if(r instanceof Function){if(null!=o)throw new SyntaxError("There can't be parameters after callback");o=r,r=void 0}null!=l.peerID&&((n=n||{}).from=l.peerID),null!=i&&((n=n||{}).dest=i);var a={method:e,params:n};if(o){var s=b++,u=0;function h(t,e){l.cancel(a),o(t,e)}var f={message:a=t.pack(a,s),callback:h,responseMethods:d[e]||{}},v=c(r);function y(t){return f.timeout=setTimeout(E,("ping"===e?g:m)*Math.pow(2,u++)),C[a]={id:s,dest:i},_.set(f,s,i),(t=t||v||l.getTransport())?t.send(a):a}function w(t){t=c(t),console.warn(u+" retry for request message:",a);var e=S.pop(s,i);return clearTimeout(e),y(t)}function E(){if(u<p)return w(r);var t=new Error("Request has timed out");t.request=a,t.retry=w,h(t)}return y(r)}return a=t.pack(a),(r=r||this.getTransport())?r.send(a):a},this.decode=function(e,n){if(!e)throw new TypeError("Message is not defined");try{e=t.unpack(e)}catch(h){return console.debug(h,e)}var i=e.id,r=e.ack,o=e.method,a=e.params||{},s=a.from,d=a.dest;if(null==l.peerID||s!=l.peerID){if(null==i&&null==r){var p=new u(o,a);if(l.emit("request",p))return;return p}if(o){if(null==d||d==l.peerID){if(v=_.get(r,s)){var f=v.responseMethods;return o==f.error?C(v,a):o==f.response?C(v,null,a):b()}if(y=S.get(r,s))return k(y)}return b()}var m=e.error,g=e.result;if(!(m&&m.dest&&m.dest!=l.peerID||g&&g.dest&&g.dest!=l.peerID)){var v,y;if(!(v=_.get(r,s)))return(y=S.get(r,s))?k(y):console.warn("No callback was defined for this message",e);C(v,m,g)}}function b(){if(n=c(n)||l.getTransport()){var t=w.get(i,s);if(t)return n.send(t.message)}var e=new x(o,a,null!=i?i:r,s,n);if(!l.emit("request",e))return e}function C(t,e,n){t.callback(e,n)}function k(t){console.warn("Response already processed",e),clearTimeout(t),E(r,s)}}}o(l,r),l.RpcNotification=u,t.exports=l;var d=n("SYuc"),p=n("ee8k");(l.clients=d).transports=p,l.packers=a},BwMD:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i,r,o,a){var s=t.call(this,!1,e,"streamPropertyChanged")||this;return s.stream=n,s.changedProperty=i,s.newValue=r,s.oldValue=o,s.reason=a,s}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.StreamPropertyChangedEvent=o},DPKQ:function(t,e,n){"use strict";e.__esModule=!0;var i=n("74bm"),r=n("bk74"),o=n("5kmN"),a=n("+FKC"),s=n("e8ps"),c=n("HxXY"),u=n("BwMD"),l=n("Tt94"),d=n("ttXH"),p=n("6+/i"),h=n("bDgZ"),f=function(){function t(t,e){var n=this;this.ee=new p,this.isSubscribeToRemote=!1,this.isLocalStreamReadyToPublish=!1,this.isLocalStreamPublished=!1,this.publishedOnce=!1,this.publisherStartSpeakingEventEnabled=!1,this.publisherStartSpeakingEventEnabledOnce=!1,this.publisherStopSpeakingEventEnabled=!1,this.publisherStopSpeakingEventEnabledOnce=!1,this.volumeChangeEventEnabled=!1,this.volumeChangeEventEnabledOnce=!1,this.session=t,e.hasOwnProperty("id")?(this.inboundStreamOpts=e,this.streamId=this.inboundStreamOpts.id,this.creationTime=this.inboundStreamOpts.createdAt,this.hasAudio=this.inboundStreamOpts.hasAudio,this.hasVideo=this.inboundStreamOpts.hasVideo,this.hasAudio&&(this.audioActive=this.inboundStreamOpts.audioActive),this.hasVideo&&(this.videoActive=this.inboundStreamOpts.videoActive,this.typeOfVideo=this.inboundStreamOpts.typeOfVideo?this.inboundStreamOpts.typeOfVideo:void 0,this.frameRate=-1===this.inboundStreamOpts.frameRate?void 0:this.inboundStreamOpts.frameRate,this.videoDimensions=this.inboundStreamOpts.videoDimensions),this.inboundStreamOpts.filter&&Object.keys(this.inboundStreamOpts.filter).length>0&&(this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=e,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo="undefined"!=typeof MediaStreamTrack&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":this.isSendScreen()?"SCREEN":"CAMERA"),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",(function(){n.streamManager.updateMediaStream(n.mediaStream),console.debug("Video srcObject ["+n.mediaStream+"] updated in stream ["+n.streamId+"]")}))}return t.prototype.on=function(t,e){var n=this;return this.ee.on(t,(function(i){i?console.info("Event '"+t+"' triggered by stream '"+n.streamId+"'",i):console.info("Event '"+t+"' triggered by stream '"+n.streamId+"'"),e(i)})),this},t.prototype.once=function(t,e){var n=this;return this.ee.once(t,(function(i){i?console.info("Event '"+t+"' triggered once by stream '"+n.streamId+"'",i):console.info("Event '"+t+"' triggered once by stream '"+n.streamId+"'"),e(i)})),this},t.prototype.off=function(t,e){return e?this.ee.off(t,e):this.ee.removeAllListeners(t),this},t.prototype.applyFilter=function(t,e){var n=this;return new Promise((function(r,o){console.info("Applying filter to stream "+n.streamId),"string"!=typeof(e=e||{})&&(e=JSON.stringify(e)),n.session.openvidu.sendRequest("applyFilter",{streamId:n.streamId,type:t,options:e},(function(a,s){if(a)console.error("Error applying filter for Stream "+n.streamId,a),o(401===a.code?new l.OpenViduError(l.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):a);else{console.info("Filter successfully applied on Stream "+n.streamId);var c=n.filter;n.filter=new i.Filter(t,e),n.filter.stream=n,n.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(n.session,n,"filter",n.filter,c,"applyFilter")]),n.streamManager.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(n.streamManager,n,"filter",n.filter,c,"applyFilter")]),r(n.filter)}}))}))},t.prototype.removeFilter=function(){var t=this;return new Promise((function(e,n){console.info("Removing filter of stream "+t.streamId),t.session.openvidu.sendRequest("removeFilter",{streamId:t.streamId},(function(i,r){if(i)console.error("Error removing filter for Stream "+t.streamId,i),n(401===i.code?new l.OpenViduError(l.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):i);else{console.info("Filter successfully removed from Stream "+t.streamId);var o=t.filter;delete t.filter,t.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t.session,t,"filter",t.filter,o,"applyFilter")]),t.streamManager.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t.streamManager,t,"filter",t.filter,o,"applyFilter")]),e()}}))}))},t.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},t.prototype.getMediaStream=function(){return this.mediaStream},t.prototype.setMediaStream=function(t){this.mediaStream=t},t.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},t.prototype.getWebRtcPeer=function(){return this.webRtcPeer},t.prototype.subscribeToMyRemote=function(t){this.isSubscribeToRemote=t},t.prototype.setOutboundStreamOptions=function(t){this.outboundStreamOpts=t},t.prototype.subscribe=function(){var t=this;return new Promise((function(e,n){t.initWebRtcPeerReceive(!1).then((function(){e()})).catch((function(t){n(t)}))}))},t.prototype.publish=function(){var t=this;return new Promise((function(e,n){t.isLocalStreamReadyToPublish?t.initWebRtcPeerSend(!1).then((function(){e()})).catch((function(t){n(t)})):t.ee.once("stream-ready-to-publish",(function(){t.publish().then((function(){e()})).catch((function(t){n(t)}))}))}))},t.prototype.disposeWebRtcPeer=function(){this.webRtcPeer&&(this.webRtcPeer.dispose(),this.stopWebRtcStats()),console.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"WebRTCPeer from 'Stream' with id ["+this.streamId+"] is now closed")},t.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach((function(t){t.stop()})),this.mediaStream.getVideoTracks().forEach((function(t){t.stop()})),delete this.mediaStream),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),console.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},t.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},t.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},t.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},t.prototype.isSendScreen=function(){var t="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return"Electron"===h.name&&(t="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&t},t.prototype.enableStartSpeakingEvent=function(){var t=this;this.setSpeechEventIfNotExists(),this.publisherStartSpeakingEventEnabled||(this.publisherStartSpeakingEventEnabled=!0,this.speechEvent.on("speaking",(function(){t.session.emitEvent("publisherStartSpeaking",[new s.PublisherSpeakingEvent(t.session,"publisherStartSpeaking",t.connection,t.streamId)]),t.publisherStartSpeakingEventEnabledOnce=!1})))},t.prototype.enableOnceStartSpeakingEvent=function(){var t=this;this.setSpeechEventIfNotExists(),this.publisherStartSpeakingEventEnabledOnce||(this.publisherStartSpeakingEventEnabledOnce=!0,this.speechEvent.once("speaking",(function(){t.publisherStartSpeakingEventEnabledOnce&&t.session.emitEvent("publisherStartSpeaking",[new s.PublisherSpeakingEvent(t.session,"publisherStartSpeaking",t.connection,t.streamId)]),t.disableStartSpeakingEvent(!0)})))},t.prototype.disableStartSpeakingEvent=function(t){if(this.speechEvent){if(this.publisherStartSpeakingEventEnabledOnce=!1,t){if(this.publisherStartSpeakingEventEnabled)return}else this.publisherStartSpeakingEventEnabled=!1;this.volumeChangeEventEnabled||this.volumeChangeEventEnabledOnce||this.publisherStopSpeakingEventEnabled||this.publisherStopSpeakingEventEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},t.prototype.enableStopSpeakingEvent=function(){var t=this;this.setSpeechEventIfNotExists(),this.publisherStopSpeakingEventEnabled||(this.publisherStopSpeakingEventEnabled=!0,this.speechEvent.on("stopped_speaking",(function(){t.session.emitEvent("publisherStopSpeaking",[new s.PublisherSpeakingEvent(t.session,"publisherStopSpeaking",t.connection,t.streamId)]),t.publisherStopSpeakingEventEnabledOnce=!1})))},t.prototype.enableOnceStopSpeakingEvent=function(){var t=this;this.setSpeechEventIfNotExists(),this.publisherStopSpeakingEventEnabledOnce||(this.publisherStopSpeakingEventEnabledOnce=!0,this.speechEvent.once("stopped_speaking",(function(){t.publisherStopSpeakingEventEnabledOnce&&t.session.emitEvent("publisherStopSpeaking",[new s.PublisherSpeakingEvent(t.session,"publisherStopSpeaking",t.connection,t.streamId)]),t.disableStopSpeakingEvent(!0)})))},t.prototype.disableStopSpeakingEvent=function(t){if(this.speechEvent){if(this.publisherStopSpeakingEventEnabledOnce=!1,t){if(this.publisherStopSpeakingEventEnabled)return}else this.publisherStopSpeakingEventEnabled=!1;this.volumeChangeEventEnabled||this.volumeChangeEventEnabledOnce||this.publisherStartSpeakingEventEnabled||this.publisherStartSpeakingEventEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},t.prototype.enableVolumeChangeEvent=function(t){var e=this;this.setSpeechEventIfNotExists()?this.volumeChangeEventEnabled&&!t||(this.volumeChangeEventEnabled=!0,this.speechEvent.on("volume_change",(function(t){var n={newValue:t,oldValue:e.speechEvent.oldVolumeValue};e.speechEvent.oldVolumeValue=t,e.streamManager.emitEvent("streamAudioVolumeChange",[new c.StreamManagerEvent(e.streamManager,"streamAudioVolumeChange",n)])}))):this.volumeChangeEventEnabled=!0},t.prototype.enableOnceVolumeChangeEvent=function(t){var e=this;this.setSpeechEventIfNotExists()?this.volumeChangeEventEnabledOnce&&!t||(this.volumeChangeEventEnabledOnce=!0,this.speechEvent.once("volume_change",(function(t){var n={newValue:t,oldValue:e.speechEvent.oldVolumeValue};e.speechEvent.oldVolumeValue=t,e.disableVolumeChangeEvent(!0),e.streamManager.emitEvent("streamAudioVolumeChange",[new c.StreamManagerEvent(e.streamManager,"streamAudioVolumeChange",n)])}))):this.volumeChangeEventEnabledOnce=!0},t.prototype.disableVolumeChangeEvent=function(t){if(this.speechEvent){if(this.volumeChangeEventEnabledOnce=!1,t){if(this.volumeChangeEventEnabled)return}else this.volumeChangeEventEnabled=!1;this.publisherStartSpeakingEventEnabled||this.publisherStartSpeakingEventEnabledOnce||this.publisherStopSpeakingEventEnabled||this.publisherStopSpeakingEventEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},t.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},t.prototype.getSelectedIceCandidate=function(){var t=this;return new Promise((function(e,n){t.webRtcStats.getSelectedIceCandidateInfo().then((function(t){return e(t)})).catch((function(t){return n(t)}))}))},t.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},t.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},t.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return console.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Publisher stream '+this.streamId+"will force a reconnection"),!0;var t=this.getRTCPeerConnection().iceConnectionState;return"disconnected"===t||"failed"===t},t.prototype.setSpeechEventIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var t=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};t.interval="number"==typeof t.interval?t.interval:100,t.threshold="number"==typeof t.threshold?t.threshold:-50,this.speechEvent=d(this.mediaStream,t)}return!0}return!1},t.prototype.initWebRtcPeerSend=function(t){var e=this;return new Promise((function(n,i){t||e.initHarkEvents();var r={audio:e.isSendAudio(),video:e.isSendVideo()},a={mediaStream:e.mediaStream,mediaConstraints:r,onicecandidate:e.connection.sendIceCandidate.bind(e.connection),iceServers:e.getIceServersConf(),simulcast:!1};t&&e.disposeWebRtcPeer(),e.webRtcPeer=e.displayMyRemote()?new o.WebRtcPeerSendrecv(a):new o.WebRtcPeerSendonly(a),e.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+e.connection.connectionId),e.webRtcPeer.generateOffer().then((function(r){!function(r){console.debug("Sending SDP offer to publish as "+e.streamId,r);var o,a=t?"reconnectStream":"publishVideo";if(t)o={stream:e.streamId};else{var s="";e.isSendVideo()&&(s="undefined"!=typeof MediaStreamTrack&&e.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":e.isSendScreen()?"SCREEN":"CAMERA"),o={doLoopback:e.displayMyRemote()||!1,hasAudio:e.isSendAudio(),hasVideo:e.isSendVideo(),audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:s,frameRate:e.frameRate?e.frameRate:-1,videoDimensions:JSON.stringify(e.videoDimensions),filter:e.outboundStreamOpts.publisherProperties.filter}}o.sdpOffer=r,e.session.openvidu.sendRequest(a,o,(function(r,o){r?i(401===r.code?new l.OpenViduError(l.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(r)):e.webRtcPeer.processAnswer(o.sdpAnswer,!1).then((function(){e.streamId=o.id,e.creationTime=o.createdAt,e.isLocalStreamPublished=!0,e.publishedOnce=!0,e.displayMyRemote()&&e.remotePeerSuccessfullyEstablished(),e.ee.emitEvent(t?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),e.initWebRtcStats(),console.info("'Publisher' ("+e.streamId+") successfully "+(t?"reconnected":"published")+" to session"),n()})).catch((function(t){i(t)}))}))}(r)})).catch((function(t){i(new Error("(publish) SDP offer error: "+JSON.stringify(t)))}))}))},t.prototype.initWebRtcPeerReceive=function(t){var e=this;return new Promise((function(n,i){var r={audio:e.inboundStreamOpts.hasAudio,video:e.inboundStreamOpts.hasVideo};console.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer",r);var a={onicecandidate:e.connection.sendIceCandidate.bind(e.connection),mediaConstraints:r,iceServers:e.getIceServersConf(),simulcast:!1};e.webRtcPeer=new o.WebRtcPeerRecvonly(a),e.webRtcPeer.addIceConnectionStateChangeListener(e.streamId),e.webRtcPeer.generateOffer().then((function(r){!function(r){console.debug("Sending SDP offer to subscribe to "+e.streamId,r);var o=t?"reconnectStream":"receiveVideoFrom",a={sdpOffer:r};a[t?"stream":"sender"]=e.streamId,e.session.openvidu.sendRequest(o,a,(function(r,o){r?i(new Error("Error on recvVideoFrom: "+JSON.stringify(r))):(e.session.isFirstIonicIosSubscriber&&(e.session.isFirstIonicIosSubscriber=!1,setTimeout((function(){e.session.countDownForIonicIosSubscribersActive=!1}),400)),e.webRtcPeer.processAnswer(o.sdpAnswer,e.session.countDownForIonicIosSubscribersActive).then((function(){console.info("'Subscriber' ("+e.streamId+") successfully "+(t?"reconnected":"subscribed")),e.remotePeerSuccessfullyEstablished(),e.initWebRtcStats(),n()})).catch((function(t){i(t)})))}))}(r)})).catch((function(t){i(new Error("(subscribe) SDP offer error: "+JSON.stringify(t)))}))}))},t.prototype.remotePeerSuccessfullyEstablished=function(){if(h.isIonicIos)this.mediaStream=this.webRtcPeer.pc.getRemoteStreams()[0];else{this.mediaStream=new MediaStream;for(var t=void 0,e=0,n=this.webRtcPeer.pc.getReceivers();e<n.length;e++)(t=n[e]).track&&this.mediaStream.addTrack(t.track)}if(console.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof r.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var i=!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=i}this.mediaStream.getVideoTracks()[0]&&(i=!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=i)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},t.prototype.initHarkEvents=function(){this.mediaStream.getAudioTracks()[0]&&(this.streamManager.remote&&(this.session.startSpeakingEventsEnabled&&this.enableStartSpeakingEvent(),this.session.startSpeakingEventsEnabledOnce&&this.enableOnceStartSpeakingEvent(),this.session.stopSpeakingEventsEnabled&&this.enableStopSpeakingEvent(),this.session.stopSpeakingEventsEnabledOnce&&this.enableOnceStopSpeakingEvent()),this.volumeChangeEventEnabled&&this.enableVolumeChangeEvent(!0),this.volumeChangeEventEnabledOnce&&this.enableOnceVolumeChangeEvent(!0))},t.prototype.initWebRtcStats=function(){this.webRtcStats=new a.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},t.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},t.prototype.getIceServersConf=function(){return this.session.openvidu.advancedConfiguration.iceServers?"freeice"===this.session.openvidu.advancedConfiguration.iceServers?void 0:this.session.openvidu.advancedConfiguration.iceServers:this.session.openvidu.iceServers?this.session.openvidu.iceServers:void 0},t.prototype.gatherStatsForPeer=function(){var t=this;return new Promise((function(e,n){t.isLocal()?t.getRTCPeerConnection().getSenders().forEach((function(e){return e.getStats().then((function(e){e.forEach((function(e){if(t.isReportWanted(e)){var n={};n.type=e.type,n.timestamp=e.timestamp,n.id=e.id,"outbound-rtp"===e.type&&(n.ssrc=e.ssrc,n.firCount=e.firCount,n.pliCount=e.pliCount,n.nackCount=e.nackCount,n.qpSum=e.qpSum,n.mediaType=e.kind?e.kind:e.mediaType?e.mediaType:-1!==e.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesEncoded=e.framesEncoded),n.packetsSent=e.packetsSent,n.bytesSent=e.bytesSent),"candidate-pair"===e.type&&void 0!==e.totalRoundTripTime&&(n.availableOutgoingBitrate=e.availableOutgoingBitrate,n.rtt=e.currentRoundTripTime,n.averageRtt=e.totalRoundTripTime/e.responsesReceived),console.log(n)}}))}))})):t.getRTCPeerConnection().getReceivers().forEach((function(e){return e.getStats().then((function(e){e.forEach((function(e){if(t.isReportWanted(e)){var n={};n.type=e.type,n.timestamp=e.timestamp,n.id=e.id,"inbound-rtp"===e.type&&(n.ssrc=e.ssrc,n.firCount=e.firCount,n.pliCount=e.pliCount,n.nackCount=e.nackCount,n.qpSum=e.qpSum,n.mediaType=e.kind?e.kind:e.mediaType?e.mediaType:-1!==e.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesDecoded=e.framesDecoded),n.packetsReceived=e.packetsReceived,n.packetsLost=e.packetsLost,n.jitter=e.jitter,n.bytesReceived=e.bytesReceived),"candidate-pair"===e.type&&void 0!==e.totalRoundTripTime&&(n.availableIncomingBitrate=e.availableIncomingBitrate,n.rtt=e.currentRoundTripTime,n.averageRtt=e.totalRoundTripTime/e.responsesReceived),console.log(n)}}))}))}))}))},t.prototype.isReportWanted=function(t){return"inbound-rtp"===t.type&&!this.isLocal()||"outbound-rtp"===t.type&&this.isLocal()||"candidate-pair"===t.type&&t.nominated&&t.bytesSent>0},t}();e.Stream=f},EDod:function(t,e,n){var i=n("AeG9"),r=n("cUzU");Date.now=Date.now||function(){return+new Date};var o=console;t.exports=function(t){var e,n=this,a=t.ws,s=-1,c=0,u=!0,l=!1,d="DISCONNECTED",p=a.onreconnecting,h=a.onreconnected,f=a.onconnected,m=a.onerror;t.rpc.pull=function(t,e){e.reply(null,"push")},a.onreconnecting=function(){o.debug("--------- ONRECONNECTING -----------"),"RECONNECTING"!==d?(w(),d="RECONNECTING",p&&p()):o.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},a.onreconnected=function(){o.debug("--------- ONRECONNECTED -----------"),"CONNECTED"!==d?(d="CONNECTED",y(),h&&h()):o.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},a.onconnected=function(){o.debug("--------- ONCONNECTED -----------"),"CONNECTED"!==d?(d="CONNECTED",u=!0,_(),f&&f()):o.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},a.onerror=function(t){o.debug("--------- ONERROR -----------"),d="DISCONNECTED",w(),m&&m(t)};var g=new r(a);o.debug("Connecting websocket to URI: "+a.uri);var v=new i(i.packers.JsonRPC,{request_timeout:t.rpc.requestTimeout,ping_request_timeout:t.rpc.heartbeatRequestTimeout},g,(function(e){o.debug("Received request: "+JSON.stringify(e));try{var n=t.rpc[e.method];void 0===n?o.error("Method "+e.method+" not registered in client"):n(e.params,e)}catch(i){o.error("Exception processing request: "+JSON.stringify(e)),o.error(i)}}));function y(){o.debug("notReconnectIfNumLessThan = "+c+" (old="+s+")"),s=c}function b(){if(u){var e=null;0!=c&&c!=s||(e={interval:t.heartbeat||5e3}),c++,n.send("ping",e,(i=c,function(t,e){t&&(o.debug("Error in ping request #"+i+" ("+t.message+")"),i>s&&(u=!1,y(),o.debug("Server did not respond to ping message #"+i+". Reconnecting... "),g.reconnectWs()))}))}else o.debug("Trying to send ping, but ping is not enabled");var i}function _(){l||(o.debug("Starting ping (if configured)"),l=!0,null!=t.heartbeat&&(e=setInterval(b,t.heartbeat),b()))}function w(){clearInterval(e),l=!1,u=!1,c=-1,v.cancel()}this.send=function(t,e,n){"ping"!==t&&o.debug("Request: method:"+t+" params:"+JSON.stringify(e));var i=Date.now();v.encode(t,e,(function(r,a){if(r){try{o.error("ERROR:"+r.message+" in Request: method:"+t+" params:"+JSON.stringify(e)+" request:"+r.request),r.data&&o.error("ERROR DATA:"+JSON.stringify(r.data))}catch(s){}r.requestTime=i}n&&(null!=a&&"pong"!==a.value&&o.debug("Response: "+JSON.stringify(a)),n(r,a))}))},this.close=function(n,i){o.debug("Closing with code: "+n+" because: "+i),null!=e&&(o.debug("Clearing ping interval"),clearInterval(e)),l=!1,u=!1,t.sendCloseMessage?(o.debug("Sending close message"),this.send("closeSession",null,(function(t,e){t&&o.error("Error sending close message: "+JSON.stringify(t)),g.close(n,i)}))):g.close(n,i)},this.forceClose=function(t){g.forceClose(t)},this.reconnect=function(){g.reconnectWs()},this.resetPing=function(){u=!0,c=0,_()}}},EcWD:function(t,e){var n,i,r="screen",o=void 0!==window.InstallTrigger;function a(t){if(!t)throw'"callback" parameter is mandatory.';if(n)return t(n);i=t,window.postMessage("get-sourceId","*")}function s(t,e){if(n="",o)return t(null,{mozMediaSource:"window",mediaSource:"window"});var s={mandatory:{chromeMediaSource:r,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=r||n?("desktop"==r&&(s.mandatory.chromeMediaSourceId=n),t(null,s)):e?function(t){if(!t)throw'"callback" parameter is mandatory.';if(n)return t(n);i=t,window.postMessage("audio-plus-tab","*")}((function(e,n){s.mandatory.chromeMediaSourceId=e,n&&(s.canRequestAudioTrack=!0),t("PermissionDeniedError"==e?e:null,s)})):a((function(e){s.mandatory.chromeMediaSourceId=e,t("PermissionDeniedError"==e?e:null,s)}))}window.opera||navigator.userAgent.indexOf(" OPR/"),window,window.addEventListener("message",(function(t){t.origin==window.location.origin&&function(t){if("PermissionDeniedError"==t){if(i)return i("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==t&&(r="desktop"),t.sourceId&&i&&i(n=t.sourceId,!0===t.canRequestAudioTrack)}(t.data)})),e.getScreenConstraints=s,e.getScreenConstraintsWithAudio=function(t){s(t,!0)},e.isChromeExtensionAvailable=function(t){if(t){if("desktop"==r)return t(!0);window.postMessage("are-you-there","*"),setTimeout((function(){t("screen"!=r)}),2e3)}},e.getChromeExtensionStatus=function(t,e){if(o)return e("not-chrome");2!=arguments.length&&(e=t,t="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+t+"/icon.png",n.onload=function(){r="screen",window.postMessage("are-you-there","*"),setTimeout((function(){e("screen"==r?"installed-disabled":"installed-enabled")}),2e3)},n.onerror=function(){e("not-installed")}},e.getSourceId=a},FlKs:function(t,e,n){"use strict";e.__esModule=!0,e.stateify=e.TokenState=e.CharacterState=void 0;var i=n("JUw6"),r=function(t){this.j=[],this.T=t||null};r.prototype={defaultTransition:!1,on:function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)this.j.push([t[n],e]);return this}return this.j.push([t,e]),this},next:function(t){for(var e=0;e<this.j.length;e++){var n=this.j[e],i=n[1];if(this.test(t,n[0]))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(t,e){return t===e},emit:function(){return this.T}};var o=(0,i.inherits)(r,(function(t){this.j=[],this.T=t||null}),{test:function(t,e){return t===e||e instanceof RegExp&&e.test(t)}}),a=(0,i.inherits)(r,(function(t){this.j=[],this.T=t||null}),{jump:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new t(""));return n===this.defaultTransition?(n=new this.constructor(e),this.on(t,n)):e&&(n.T=e),n},test:function(t,e){return t instanceof e}});e.CharacterState=o,e.TokenState=a,e.stateify=function(t,e,n,i){for(var r=0,a=t.length,s=e,c=[],u=void 0;r<a&&(u=s.next(t[r]));)s=u,r++;if(r>=a)return[];for(;r<a-1;)u=new o(i),c.push(u),s.on(t[r],u),s=u,r++;return u=new o(n),c.push(u),s.on(t[a-1],u),c}},HgqT:function(t,e){t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},HxXY:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i){var r=t.call(this,!1,e,n)||this;return r.value=i,r}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.StreamManagerEvent=o},IXxz:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e=t.scanner.TOKENS,n=t.parser,i=n.State,r=t.parser.start,o=e.DOMAIN,a=e.LOCALHOST,s=e.NUM,c=e.SLASH,u=e.TLD,l=e.UNDERSCORE,d=e.DOT,p=e.AT;function h(t){this.v=t}t.inherits(n.TOKENS.Base,h,{type:"mention",isLink:!0,toHref:function(){return"/"+this.toString().substr(1)}});var f=r.jump(e.AT),m=new i,g=new i(h),v=new i,y=new i;f.on(l,m),m.on(l,m).on(d,m),f.on(o,g).on(a,g).on(u,g).on(s,g),m.on(o,g).on(a,g).on(u,g).on(s,g),g.on(o,g).on(a,g).on(u,g).on(s,g).on(l,g),g.on(c,v).on(d,v).on(p,v),v.on(l,y),y.on(l,y),v.on(o,g).on(a,g).on(u,g).on(s,g),y.on(o,g).on(a,g).on(u,g).on(s,g)}},JTMn:function(t,e,n){"use strict";e.__esModule=!0;var i=n("ryRr"),r=n("74bm"),o=n("bk74"),a=n("8KVD"),s=n("+ig+"),c=n("rUL0"),u=n("ksJj"),l=n("suHS"),d=n("Te8r"),p=n("BwMD"),h=n("Tt94"),f=n("/dLB"),m=n("6+/i"),g=n("bDgZ"),v=function(){function t(t){this.streamManagers=[],this.remoteStreamsCreated={},this.isFirstIonicIosSubscriber=!0,this.countDownForIonicIosSubscribersActive=!0,this.remoteConnections={},this.startSpeakingEventsEnabled=!1,this.startSpeakingEventsEnabledOnce=!1,this.stopSpeakingEventsEnabled=!1,this.stopSpeakingEventsEnabledOnce=!1,this.ee=new m,this.openvidu=t}return t.prototype.connect=function(t,e){var n=this;return new Promise((function(i,r){n.processToken(t),n.openvidu.checkSystemRequirements()?(n.options={sessionId:n.sessionId,participantId:t,metadata:e?n.stringClientMetadata(e):""},n.connectAux(t).then((function(){i()})).catch((function(t){r(t)}))):r(new h.OpenViduError(h.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+g.name+" (version "+g.version+") for "+g.os.family+" is not supported in OpenVidu"))}))},t.prototype.disconnect=function(){this.leave(!1,"disconnect")},t.prototype.subscribe=function(t,e,n,i){var r,a={};a=n&&"function"!=typeof n?{insertMode:void 0!==n.insertMode?"string"==typeof n.insertMode?f.VideoInsertMode[n.insertMode]:a.insertMode:f.VideoInsertMode.APPEND,subscribeToAudio:void 0===n.subscribeToAudio||n.subscribeToAudio,subscribeToVideo:void 0===n.subscribeToVideo||n.subscribeToVideo}:{insertMode:f.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0},n&&"function"==typeof n?r=n:i&&(r=i),console.info("Subscribing to "+t.connection.connectionId),t.subscribe().then((function(){console.info("Subscribed correctly to "+t.connection.connectionId),void 0!==r&&r(void 0)})).catch((function(t){void 0!==r&&r(t)}));var s=new o.Subscriber(t,e,a);return s.targetElement&&t.streamManager.createVideoElement(s.targetElement,a.insertMode),s},t.prototype.subscribeAsync=function(t,e,n){var i=this;return new Promise((function(r,o){var a,s=function(t){t?o(t):r(a)};a=n?i.subscribe(t,e,n,s):i.subscribe(t,e,s)}))},t.prototype.unsubscribe=function(t){var e=t.stream.connection.connectionId;console.info("Unsubscribing from "+e),this.openvidu.sendRequest("unsubscribeFromVideo",{sender:t.stream.connection.connectionId},(function(n,i){n?console.error("Error unsubscribing from "+e,n):console.info("Unsubscribed correctly from "+e),t.stream.disposeWebRtcPeer(),t.stream.disposeMediaStream()})),t.stream.streamManager.removeAllVideos()},t.prototype.publish=function(t){var e=this;return new Promise((function(n,i){t.session=e,t.stream.session=e,t.stream.publishedOnce?t.initialize().then((function(){e.connection.addStream(t.stream),t.reestablishStreamPlayingEvent(),t.stream.publish().then((function(){n()})).catch((function(t){i(t)}))})).catch((function(t){i(t)})):(e.connection.addStream(t.stream),t.stream.publish().then((function(){n()})).catch((function(t){i(t)})))}))},t.prototype.unpublish=function(t){var e=t.stream;if(e.connection)if(e.connection===this.connection){console.info("Unpublishing local media ("+e.connection.connectionId+")"),this.openvidu.sendRequest("unpublishVideo",(function(t,e){t?console.error(t):console.info("Media unpublished correctly")})),e.disposeWebRtcPeer(),delete e.connection.stream;var n=new d.StreamEvent(!0,t,"streamDestroyed",t.stream,"unpublish");t.emitEvent("streamDestroyed",[n]),n.callDefaultBehavior()}else console.error("The associated Connection object of this Publisher is not your local Connection.Only moderators can force unpublish on remote Streams via 'forceUnpublish' method",e);else console.error("The associated Connection object of this Publisher is null",e)},t.prototype.forceDisconnect=function(t){var e=this;return new Promise((function(n,i){console.info("Forcing disconnect for connection "+t.connectionId),e.openvidu.sendRequest("forceDisconnect",{connectionId:t.connectionId},(function(e,r){e?(console.error("Error forcing disconnect for Connection "+t.connectionId,e),i(401===e.code?new h.OpenViduError(h.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):e)):(console.info("Forcing disconnect correctly for Connection "+t.connectionId),n())}))}))},t.prototype.forceUnpublish=function(t){var e=this;return new Promise((function(n,i){console.info("Forcing unpublish for stream "+t.streamId),e.openvidu.sendRequest("forceUnpublish",{streamId:t.streamId},(function(e,r){e?(console.error("Error forcing unpublish for Stream "+t.streamId,e),i(401===e.code?new h.OpenViduError(h.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):e)):(console.info("Forcing unpublish correctly for Stream "+t.streamId),n())}))}))},t.prototype.signal=function(t){var e=this;return new Promise((function(n,i){var r={};if(t.to&&t.to.length>0){var o=[];t.to.forEach((function(t){t.connectionId&&o.push(t.connectionId)})),r.to=o}else r.to=[];r.data=t.data?t.data:"";var a=t.type?t.type:"signal";a&&"signal:"!==a.substring(0,7)&&(a="signal:"+a),r.type=a,e.openvidu.sendRequest("sendMessage",{message:JSON.stringify(r)},(function(t,e){t?i(t):n()}))}))},t.prototype.on=function(t,e){if(this.ee.on(t,(function(n){n?console.info("Event '"+t+"' triggered by 'Session'",n):console.info("Event '"+t+"' triggered by 'Session'"),e(n)})),"publisherStartSpeaking"===t)for(var n in this.startSpeakingEventsEnabled=!0,this.remoteConnections)(i=this.remoteConnections[n].stream)&&i.hasAudio&&i.enableStartSpeakingEvent();if("publisherStopSpeaking"===t)for(var n in this.stopSpeakingEventsEnabled=!0,this.remoteConnections){var i;(i=this.remoteConnections[n].stream)&&i.hasAudio&&i.enableStopSpeakingEvent()}return this},t.prototype.once=function(t,e){if(this.ee.once(t,(function(n){n?console.info("Event '"+t+"' triggered once by 'Session'",n):console.info("Event '"+t+"' triggered once by 'Session'"),e(n)})),"publisherStartSpeaking"===t)for(var n in this.startSpeakingEventsEnabledOnce=!0,this.remoteConnections)(i=this.remoteConnections[n].stream)&&i.hasAudio&&i.enableOnceStartSpeakingEvent();if("publisherStopSpeaking"===t)for(var n in this.stopSpeakingEventsEnabledOnce=!0,this.remoteConnections){var i;(i=this.remoteConnections[n].stream)&&i.hasAudio&&i.enableOnceStopSpeakingEvent()}return this},t.prototype.off=function(t,e){if(e?this.ee.off(t,e):this.ee.removeAllListeners(t),"publisherStartSpeaking"===t&&0===this.ee.getListeners(t).length)for(var n in this.startSpeakingEventsEnabled=!1,this.remoteConnections)(i=this.remoteConnections[n].stream)&&i.disableStartSpeakingEvent(!1);if("publisherStopSpeaking"===t&&0===this.ee.getListeners(t).length)for(var n in this.stopSpeakingEventsEnabled=!1,this.remoteConnections){var i;(i=this.remoteConnections[n].stream)&&i.disableStopSpeakingEvent(!1)}return this},t.prototype.onParticipantJoined=function(t){var e=this;this.getConnection(t.id,"").then((function(e){console.warn("Connection "+t.id+" already exists in connections list")})).catch((function(n){var r=new i.Connection(e,t);e.remoteConnections[t.id]=r,e.ee.emitEvent("connectionCreated",[new a.ConnectionEvent(!1,e,"connectionCreated",r,"")])}))},t.prototype.onParticipantLeft=function(t){var e=this;this.getRemoteConnection(t.connectionId,"Remote connection "+t.connectionId+" unknown when 'onParticipantLeft'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){if(n.stream){var i=n.stream,r=new d.StreamEvent(!0,e,"streamDestroyed",i,t.reason);e.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior(),delete e.remoteStreamsCreated[i.streamId],0===Object.keys(e.remoteStreamsCreated).length&&(e.isFirstIonicIosSubscriber=!0,e.countDownForIonicIosSubscribersActive=!0)}delete e.remoteConnections[n.connectionId],e.ee.emitEvent("connectionDestroyed",[new a.ConnectionEvent(!1,e,"connectionDestroyed",n,t.reason)])})).catch((function(t){console.error(t)}))},t.prototype.onParticipantPublished=function(t){var e,n=this,r=function(t){n.remoteConnections[t.connectionId]=t,n.remoteStreamsCreated[t.stream.streamId]||n.ee.emitEvent("streamCreated",[new d.StreamEvent(!1,n,"streamCreated",t.stream,"")]),n.remoteStreamsCreated[t.stream.streamId]=!0};this.getRemoteConnection(t.id,"Remote connection '"+t.id+"' unknown when 'onParticipantPublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){e=n,t.metadata=n.data,e.options=t,e.initRemoteStreams(t.streams),r(e)})).catch((function(o){e=new i.Connection(n,t),r(e)}))},t.prototype.onParticipantUnpublished=function(t){var e=this;t.connectionId===this.connection.connectionId?this.stopPublisherStream(t.reason):this.getRemoteConnection(t.connectionId,"Remote connection '"+t.connectionId+"' unknown when 'onParticipantUnpublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(n){var i=new d.StreamEvent(!0,e,"streamDestroyed",n.stream,t.reason);e.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior();var r=n.stream.streamId;delete e.remoteStreamsCreated[r],0===Object.keys(e.remoteStreamsCreated).length&&(e.isFirstIonicIosSubscriber=!0,e.countDownForIonicIosSubscribersActive=!0),n.removeStream(r)})).catch((function(t){console.error(t)}))},t.prototype.onParticipantEvicted=function(t){t.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,t.reason)},t.prototype.onNewMessage=function(t){var e=this;console.info("New signal: "+JSON.stringify(t));var n=t.type?t.type.replace(/^(signal:)/,""):void 0;t.from?this.getConnection(t.from,"Connection '"+t.from+"' unknow when 'onNewMessage'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))+". Existing local connection: "+this.connection.connectionId).then((function(i){e.ee.emitEvent("signal",[new l.SignalEvent(e,n,t.data,i)]),"signal"!==t.type&&e.ee.emitEvent(t.type,[new l.SignalEvent(e,n,t.data,i)])})).catch((function(t){console.error(t)})):(this.ee.emitEvent("signal",[new l.SignalEvent(this,n,t.data,void 0)]),"signal"!==t.type&&this.ee.emitEvent(t.type,[new l.SignalEvent(this,n,t.data,void 0)]))},t.prototype.onStreamPropertyChanged=function(t){var e=this,n=function(n){if(n.stream&&n.stream.streamId===t.streamId){var i=n.stream,o=void 0;switch(t.property){case"audioActive":o=i.audioActive,t.newValue="true"===t.newValue,i.audioActive=t.newValue;break;case"videoActive":o=i.videoActive,t.newValue="true"===t.newValue,i.videoActive=t.newValue;break;case"videoDimensions":o=i.videoDimensions,t.newValue=JSON.parse(JSON.parse(t.newValue)),i.videoDimensions=t.newValue;break;case"filter":o=i.filter,t.newValue=Object.keys(t.newValue).length>0?t.newValue:void 0,void 0!==t.newValue?(i.filter=new r.Filter(t.newValue.type,t.newValue.options),i.filter.stream=i,t.newValue.lastExecMethod&&(i.filter.lastExecMethod=t.newValue.lastExecMethod)):delete i.filter,t.newValue=i.filter}e.ee.emitEvent("streamPropertyChanged",[new p.StreamPropertyChangedEvent(e,i,t.property,t.newValue,o,t.reason)]),i.streamManager&&i.streamManager.emitEvent("streamPropertyChanged",[new p.StreamPropertyChangedEvent(i.streamManager,i,t.property,t.newValue,o,t.reason)])}else console.error("No stream with streamId '"+t.streamId+"' found for connection '"+t.connectionId+"' on 'streamPropertyChanged' event")};t.connectionId===this.connection.connectionId?n(this.connection):this.getRemoteConnection(t.connectionId,"Remote connection "+t.connectionId+" unknown when 'onStreamPropertyChanged'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then((function(t){n(t)})).catch((function(t){console.error(t)}))},t.prototype.recvIceCandidate=function(t){var e={candidate:t.candidate,component:t.component,foundation:t.foundation,ip:t.ip,port:t.port,priority:t.priority,protocol:t.protocol,relatedAddress:t.relatedAddress,relatedPort:t.relatedPort,sdpMid:t.sdpMid,sdpMLineIndex:t.sdpMLineIndex,tcpType:t.tcpType,usernameFragment:t.usernameFragment,type:t.type,toJSON:function(){return{candidate:t.candidate}}};this.getConnection(t.senderConnectionId,"Connection not found for connectionId "+t.senderConnectionId+" owning endpoint "+t.endpointName+". Ice candidate will be ignored: "+e).then((function(n){var i=n.stream;i.getWebRtcPeer().addIceCandidate(e).catch((function(e){console.error("Error adding candidate for "+i.streamId+" stream of endpoint "+t.endpointName+": "+e)}))})).catch((function(t){console.error(t)}))},t.prototype.onSessionClosed=function(t){console.info("Session closed: "+JSON.stringify(t));var e=t.sessionId;void 0!==e?this.ee.emitEvent("session-closed",[{session:e}]):console.warn("Session undefined on session closed",t)},t.prototype.onLostConnection=function(t){console.warn("Lost connection in Session "+this.sessionId),this.sessionId&&!this.connection.disposed&&this.leave(!0,t)},t.prototype.onRecoveredConnection=function(){console.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},t.prototype.onMediaError=function(t){console.error("Media error: "+JSON.stringify(t));var e=t.error;e?this.ee.emitEvent("error-media",[{error:e}]):console.warn("Received undefined media error. Params:",t)},t.prototype.onRecordingStarted=function(t){this.ee.emitEvent("recordingStarted",[new c.RecordingEvent(this,"recordingStarted",t.id,t.name)])},t.prototype.onRecordingStopped=function(t){this.ee.emitEvent("recordingStopped",[new c.RecordingEvent(this,"recordingStopped",t.id,t.name,t.reason)])},t.prototype.onFilterEventDispatched=function(t){var e=t.connectionId;this.getConnection(e,"No connection found for connectionId "+e).then((function(e){console.info("Filter event dispatched");var n=e.stream;n.filter.handlers[t.eventType](new s.FilterEvent(n.filter,t.eventType,t.data))}))},t.prototype.reconnectBrokenStreams=function(){console.info("Re-establishing media connections...");var t=!1;this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(console.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),t=!0);for(var e=0,n=Object.values(this.remoteConnections);e<n.length;e++){var i=n[e];i.stream&&i.stream.streamIceConnectionStateBroken()&&(console.warn("Re-establishing Subscriber "+i.stream.streamId),i.stream.initWebRtcPeerReceive(!0),t=!0)}t||console.info("There were no media streams in need of a reconnection")},t.prototype.emitEvent=function(t,e){this.ee.emitEvent(t,e)},t.prototype.leave=function(t,e){var n=this;if(t=!!t,console.info("Leaving Session (forced="+t+")"),this.connection){if(this.connection.disposed||t?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",(function(t,e){t&&console.error(t),n.openvidu.closeWs()})),this.stopPublisherStream(e),!this.connection.disposed){var i=new u.SessionDisconnectedEvent(this,e);this.ee.emitEvent("sessionDisconnected",[i]),i.callDefaultBehavior()}}else console.warn("You were not connected to the session "+this.sessionId)},t.prototype.connectAux=function(t){var e=this;return new Promise((function(n,r){e.openvidu.startWs((function(o){if(o)r(o);else{var s={token:t||"",session:e.sessionId,platform:g.description?g.description:"unknown",metadata:e.options.metadata?e.options.metadata:"",secret:e.openvidu.getSecret(),recorder:e.openvidu.getRecorder()};e.openvidu.sendRequest("joinRoom",s,(function(t,o){if(t)r(t);else{e.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==e.openvidu.role,forceUnpublish:"MODERATOR"===e.openvidu.role,forceDisconnect:"MODERATOR"===e.openvidu.role},e.connection=new i.Connection(e),e.connection.connectionId=o.id,e.connection.creationTime=o.createdAt,e.connection.data=o.metadata,e.connection.rpcSessionId=o.sessionId;var s={connections:new Array,streams:new Array};o.value.forEach((function(t){var n=new i.Connection(e,t);e.remoteConnections[n.connectionId]=n,s.connections.push(n),n.stream&&(e.remoteStreamsCreated[n.stream.streamId]=!0,s.streams.push(n.stream))})),e.ee.emitEvent("connectionCreated",[new a.ConnectionEvent(!1,e,"connectionCreated",e.connection,"")]),s.connections.forEach((function(t){e.ee.emitEvent("connectionCreated",[new a.ConnectionEvent(!1,e,"connectionCreated",t,"")])})),s.streams.forEach((function(t){e.ee.emitEvent("streamCreated",[new d.StreamEvent(!1,e,"streamCreated",t,"")])})),n()}}))}}))}))},t.prototype.stopPublisherStream=function(t){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[t]))},t.prototype.stringClientMetadata=function(t){return"string"!=typeof t?JSON.stringify(t):t},t.prototype.getConnection=function(t,e){var n=this;return new Promise((function(i,r){var o=n.remoteConnections[t];o?i(o):n.connection.connectionId===t?i(n.connection):r(new h.OpenViduError(h.OpenViduErrorName.GENERIC_ERROR,e))}))},t.prototype.getRemoteConnection=function(t,e){var n=this;return new Promise((function(i,r){var o=n.remoteConnections[t];o?i(o):r(new h.OpenViduError(h.OpenViduErrorName.GENERIC_ERROR,e))}))},t.prototype.processToken=function(t){var e=t.match(/^(wss?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(e){var n={protocol:e[1],host:e[2],hostname:e[3],port:e[4],pathname:e[5],search:e[6],hash:e[7]},i=t.split("?"),r=decodeURI(i[1]).split("&").map((function(t){return t.split("=")})).reduce((function(t,e){return t[e[0]]=e[1],t}),{});this.sessionId=r.sessionId;var o=r.secret,a=r.recorder,s=r.coturnIp,c=r.turnUsername,u=r.turnCredential,l=r.role,d=r.webrtcStatsInterval,p=r.version;if(o&&(this.openvidu.secret=o),a&&(this.openvidu.recorder=!0),c&&u){var h="turn:"+s+":3478";this.openvidu.iceServers=[{urls:["stun:"+s+":3478"]},{urls:[h,h+"?transport=tcp"],username:c,credential:u}],console.log("STUN/TURN server IP: "+s),console.log("TURN temp credentials ["+c+":"+u+"]")}l&&(this.openvidu.role=l),d&&(this.openvidu.webrtcStatsInterval=+d),p&&(console.info("openvidu-server version: "+p),p!==this.openvidu.libraryVersion&&console.error("OpenVidu Server ("+p+") and OpenVidu Browser ("+this.openvidu.libraryVersion+") versions do NOT match. There may be incompatibilities")),this.openvidu.wsUri="wss://"+n.host+"/openvidu",this.openvidu.httpUri="https://"+n.host}else console.error('Token "'+t+'" is not valid')},t}();e.Session=v},JUw6:function(t,e,n){"use strict";e.__esModule=!0,e.inherits=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(t.prototype);for(var r in n)i[r]=n[r];return i.constructor=e,e.prototype=i,e}},KFtI:function(t){t.exports=JSON.parse('["stun.l.google.com:19302","stun1.l.google.com:19302","stun2.l.google.com:19302","stun3.l.google.com:19302","stun4.l.google.com:19302","stun.ekiga.net","stun.ideasip.com","stun.schlund.de","stun.stunprotocol.org:3478","stun.voiparound.com","stun.voipbuster.com","stun.voipstunt.com","stun.voxgratia.org"]')},LXjW:function(t,e,n){"use strict";e.__esModule=!0,e.tokenize=e.test=e.scanner=e.parser=e.options=e.inherits=e.find=void 0;var i=n("JUw6"),r=s(n("MW5i")),o=s(n("t/6/")),a=s(n("QSjB"));function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var c=function(t){return a.run(o.run(t))};e.find=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(t),i=[],r=0;r<n.length;r++){var o=n[r];!o.isLink||e&&o.type!==e||i.push(o.toObject())}return i},e.inherits=i.inherits,e.options=r,e.parser=a,e.scanner=o,e.test=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(t);return 1===n.length&&n[0].isLink&&(!e||n[0].type===e)},e.tokenize=c},MW5i:function(t,e,n){"use strict";e.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function o(t){this.defaultProtocol=(t=t||{}).hasOwnProperty("defaultProtocol")?t.defaultProtocol:r.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:r.events,this.format=t.hasOwnProperty("format")?t.format:r.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:r.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:r.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:r.tagName,this.target=t.hasOwnProperty("target")?t.target:r.target,this.validate=t.hasOwnProperty("validate")?t.validate:r.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||r.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||r.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:r.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function a(t){return t}e.defaults=r,e.Options=o,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},o.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,n){var o=void 0,a=this[t];if(!a)return a;switch(void 0===a?"undefined":i(a)){case"function":return a(e,n.type);case"object":return"function"==typeof(o=a.hasOwnProperty(n.type)?a[n.type]:r[t])?o(e,n.type):o}return a},getObject:function(t,e,n){var i=this[t];return"function"==typeof i?i(e,n.type):i}}},P3vI:function(t,e,n){"use strict";e.__esModule=!0;var i=n("HxXY"),r=n("oIG1"),o=n("/dLB"),a=n("6+/i"),s=n("bDgZ"),c=function(){function t(t,e){var n=this;if(this.videos=[],this.lazyLaunchVideoElementCreatedEvent=!1,this.ee=new a,this.stream=t,this.stream.streamManager=this,this.remote=!this.stream.isLocal(),e){var o=void 0;"string"==typeof e?o=document.getElementById(e):e instanceof HTMLElement&&(o=e),o&&(this.firstVideoElement={targetElement:o,video:document.createElement("video"),id:"",canplayListenerAdded:!1},"Safari"===s.name&&this.firstVideoElement.video.setAttribute("playsinline","true"),this.targetElement=o,this.element=o)}this.canPlayListener=function(){n.stream.isLocal()?n.stream.displayMyRemote()?(console.info("Your own remote 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("remoteVideoPlaying",[new r.VideoElementEvent(n.videos[0].video,n,"remoteVideoPlaying")])):(console.info("Your local 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("videoPlaying",[new r.VideoElementEvent(n.videos[0].video,n,"videoPlaying")])):(console.info("Remote 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("videoPlaying",[new r.VideoElementEvent(n.videos[0].video,n,"videoPlaying")])),n.ee.emitEvent("streamPlaying",[new i.StreamManagerEvent(n,"streamPlaying",void 0)])}}return t.prototype.on=function(t,e){var n=this;return this.ee.on(t,(function(i){i?console.info("Event '"+t+"' triggered by '"+(n.remote?"Subscriber":"Publisher")+"'",i):console.info("Event '"+t+"' triggered by '"+(n.remote?"Subscriber":"Publisher")+"'"),e(i)})),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new r.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"!==t&&"videoPlaying"!==t||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new i.StreamManagerEvent(this,"streamPlaying",void 0)]),this.ee.emitEvent("videoPlaying",[new r.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),"streamAudioVolumeChange"===t&&this.stream.hasAudio&&this.stream.enableVolumeChangeEvent(!1),this},t.prototype.once=function(t,e){var n=this;return this.ee.once(t,(function(i){i?console.info("Event '"+t+"' triggered once by '"+(n.remote?"Subscriber":"Publisher")+"'",i):console.info("Event '"+t+"' triggered once by '"+(n.remote?"Subscriber":"Publisher")+"'"),e(i)})),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new r.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"!==t&&"videoPlaying"!==t||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new i.StreamManagerEvent(this,"streamPlaying",void 0)]),this.ee.emitEvent("videoPlaying",[new r.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),"streamAudioVolumeChange"===t&&this.stream.hasAudio&&this.stream.enableOnceVolumeChangeEvent(!1),this},t.prototype.off=function(t,e){return e?this.ee.off(t,e):this.ee.removeAllListeners(t),"streamAudioVolumeChange"===t&&0===this.ee.getListeners(t).length&&this.stream.disableVolumeChangeEvent(!1),this},t.prototype.addVideoElement=function(t){this.initializeVideoProperties(t),this.stream.isLocal()&&this.stream.displayMyRemote()&&t.srcObject!==this.stream.getMediaStream()&&(t.srcObject=this.stream.getMediaStream());for(var e=0,n=this.videos;e<n.length;e++)if(n[e].video===t)return 0;for(var i=1,r=0,o=this.stream.session.streamManagers;r<o.length;r++)if(o[r].disassociateVideo(t)){i=-1;break}return this.stream.session.streamManagers.forEach((function(e){e.disassociateVideo(t)})),this.pushNewStreamManagerVideo({video:t,id:t.id,canplayListenerAdded:!1}),console.info("New video element associated to ",this),i},t.prototype.createVideoElement=function(t,e){var n;if("string"==typeof t){if(!(n=document.getElementById(t)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+t)}else{if(!(t instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+t);n=t}var i=document.createElement("video");this.initializeVideoProperties(i);var a=e||o.VideoInsertMode.APPEND;switch(a){case o.VideoInsertMode.AFTER:n.parentNode.insertBefore(i,n.nextSibling);break;case o.VideoInsertMode.APPEND:n.appendChild(i);break;case o.VideoInsertMode.BEFORE:n.parentNode.insertBefore(i,n);break;case o.VideoInsertMode.PREPEND:n.insertBefore(i,n.childNodes[0]);break;case o.VideoInsertMode.REPLACE:n.parentNode.replaceChild(i,n);break;default:a=o.VideoInsertMode.APPEND,n.appendChild(i)}var s={targetElement:n,video:i,insertMode:a,id:i.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(s),this.ee.emitEvent("videoElementCreated",[new r.VideoElementEvent(s.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,i},t.prototype.updatePublisherSpeakingEventsOptions=function(t){var e=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},n="number"==typeof t.interval?t.interval:"number"==typeof e.interval?e.interval:100,i="number"==typeof t.threshold?t.threshold:"number"==typeof e.threshold?e.threshold:-50;this.stream.harkOptions={interval:n,threshold:i},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(n),this.stream.speechEvent.setThreshold(i))},t.prototype.initializeVideoProperties=function(t){this.stream.isLocal()&&this.stream.displayMyRemote()||t.srcObject!==this.stream.getMediaStream()&&(t.srcObject=this.stream.getMediaStream()),t.autoplay=!0,t.controls=!1,"Safari"===s.name&&t.setAttribute("playsinline","true"),t.id||(t.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&this.targetElement&&(this.id=t.id)),this.remote||this.stream.displayMyRemote()||(t.muted=!0,"rotateY(180deg)"!==t.style.transform||this.stream.outboundStreamOpts.publisherProperties.mirror?this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(t):this.removeMirrorVideo(t))},t.prototype.removeAllVideos=function(){for(var t=this,e=this.stream.session.streamManagers.length-1;e>=0;--e)this.stream.session.streamManagers[e]===this&&this.stream.session.streamManagers.splice(e,1);this.videos.forEach((function(e){e.video.removeEventListener("canplay",t.canPlayListener),e.canplayListenerAdded=!1,e.targetElement&&(e.video.parentNode.removeChild(e.video),t.ee.emitEvent("videoElementDestroyed",[new r.VideoElementEvent(e.video,t,"videoElementDestroyed")])),e.video.srcObject=null,t.videos.filter((function(t){return!t.targetElement}))}))},t.prototype.disassociateVideo=function(t){for(var e=!1,n=0;n<this.videos.length;n++)if(this.videos[n].video===t){this.videos[n].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(n,1),e=!0,console.info("Video element disassociated from ",this);break}return e},t.prototype.addPlayEventToFirstVideo=function(){this.videos[0]&&this.videos[0].video&&!this.videos[0].canplayListenerAdded&&(this.videos[0].video.addEventListener("canplay",this.canPlayListener),this.videos[0].canplayListenerAdded=!0)},t.prototype.updateMediaStream=function(t){this.videos.forEach((function(e){if(e.video.srcObject=t,s.isIonicIos){var n=e.video;e.video.parentElement.replaceChild(n,e.video),e.video=n}}))},t.prototype.emitEvent=function(t,e){this.ee.emitEvent(t,e)},t.prototype.pushNewStreamManagerVideo=function(t){this.videos.push(t),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},t.prototype.mirrorVideo=function(t){s.isIonicIos||(t.style.transform="rotateY(180deg)",t.style.webkitTransform="rotateY(180deg)")},t.prototype.removeMirrorVideo=function(t){t.style.transform="unset",t.style.webkitTransform="unset"},t}();e.StreamManager=c},PEz1:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("JTMn"),a=n("DPKQ"),s=n("P3vI"),c=n("Te8r"),u=n("BwMD"),l=n("oIG1"),d=n("Tt94"),p=n("bDgZ"),h=function(t){function e(e,n,i){var r=t.call(this,new a.Stream(i.session?i.session:new o.Session(i),{publisherProperties:n,mediaConstraints:{}}),e)||this;return r.accessAllowed=!1,r.isSubscribedToRemote=!1,r.accessDenied=!1,r.properties=n,r.openvidu=i,r.stream.ee.on("local-stream-destroyed",(function(t){r.stream.isLocalStreamPublished=!1;var e=new c.StreamEvent(!0,r,"streamDestroyed",r.stream,t);r.emitEvent("streamDestroyed",[e]),e.callDefaultBehavior()})),r}return r(e,t),e.prototype.publishAudio=function(t){var e=this;this.stream.audioActive!==t&&(this.stream.getMediaStream().getAudioTracks().forEach((function(e){e.enabled=t})),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:t,reason:"publishAudio"},(function(n,i){n?console.error("Error sending 'streamPropertyChanged' event",n):(e.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e.session,e.stream,"audioActive",t,!t,"publishAudio")]),e.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e,e.stream,"audioActive",t,!t,"publishAudio")]))})),this.stream.audioActive=t,console.info("'Publisher' has "+(t?"published":"unpublished")+" its audio stream"))},e.prototype.publishVideo=function(t){var e=this;this.stream.videoActive!==t&&(this.stream.getMediaStream().getVideoTracks().forEach((function(e){e.enabled=t})),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:t,reason:"publishVideo"},(function(n,i){n?console.error("Error sending 'streamPropertyChanged' event",n):(e.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e.session,e.stream,"videoActive",t,!t,"publishVideo")]),e.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e,e.stream,"videoActive",t,!t,"publishVideo")]))})),this.stream.videoActive=t,console.info("'Publisher' has "+(t?"published":"unpublished")+" its video stream"))},e.prototype.subscribeToRemote=function(t){this.isSubscribedToRemote=t=void 0===t||t,this.stream.subscribeToMyRemote(t)},e.prototype.on=function(e,n){var i=this;return t.prototype.on.call(this,e,n),"streamCreated"===e&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new c.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",(function(){i.emitEvent("streamCreated",[new c.StreamEvent(!1,i,"streamCreated",i.stream,"")])}))),"remoteVideoPlaying"===e&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===e&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===e&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},e.prototype.once=function(e,n){var i=this;return t.prototype.once.call(this,e,n),"streamCreated"===e&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new c.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",(function(){i.emitEvent("streamCreated",[new c.StreamEvent(!1,i,"streamCreated",i.stream,"")])}))),"remoteVideoPlaying"===e&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===e&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===e&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},e.prototype.replaceTrack=function(t){var e=this;return new Promise((function(n,i){var r,o=e.stream.getRTCPeerConnection().getSenders();"video"===t.kind?(r=o.find((function(t){return!!t.track&&"video"===t.track.kind})))||i(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")):"audio"===t.kind?(r=o.find((function(t){return!!t.track&&"audio"===t.track.kind})))||i(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")):i(new Error("Unknown track kind "+t.kind)),r.replaceTrack(t).then((function(){var i;i="video"===t.kind?e.stream.getMediaStream().getVideoTracks()[0]:e.stream.getMediaStream().getAudioTracks()[0],e.stream.getMediaStream().removeTrack(i),i.stop(),e.stream.getMediaStream().addTrack(t),n()})).catch((function(t){i(t)}))}))},e.prototype.initialize=function(){var t=this;return new Promise((function(e,n){var i,r={},o={},a=function(e){t.accessDenied=!0,t.accessAllowed=!1,n(e)},s=function(n){if(t.accessAllowed=!0,t.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&t.properties.audioSource instanceof MediaStreamTrack&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(t.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&t.properties.videoSource instanceof MediaStreamTrack&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(t.properties.videoSource)),n.getAudioTracks()[0]){var i=null!=t.stream.audioActive?t.stream.audioActive:!!t.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=i}if(n.getVideoTracks()[0]&&(i=null!=t.stream.videoActive?t.stream.videoActive:!!t.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=i),t.videoReference=document.createElement("video"),"Safari"===p.name&&t.videoReference.setAttribute("playsinline","true"),t.stream.setMediaStream(n),t.firstVideoElement&&t.createVideoElement(t.firstVideoElement.targetElement,t.properties.insertMode),t.videoReference.srcObject=n,t.stream.displayMyRemote()||t.stream.updateMediaStreamInVideos(),delete t.firstVideoElement,t.stream.isSendVideo())if(t.stream.isSendScreen())t.videoReference.addEventListener("loadedmetadata",(function(){t.stream.videoDimensions={width:t.videoReference.videoWidth,height:t.videoReference.videoHeight},t.screenShareResizeInterval=setInterval((function(){var e=n.getVideoTracks()[0].getSettings(),i="Chrome"===p.name||"Opera"===p.name?t.videoReference.videoWidth:e.width,r="Chrome"===p.name||"Opera"===p.name?t.videoReference.videoHeight:e.height;if(t.stream.isLocalStreamPublished&&(i!==t.stream.videoDimensions.width||r!==t.stream.videoDimensions.height)){var o={width:t.stream.videoDimensions.width,height:t.stream.videoDimensions.height};t.stream.videoDimensions={width:i||0,height:r||0},t.session.openvidu.sendRequest("streamPropertyChanged",{streamId:t.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(t.stream.videoDimensions),reason:"screenResized"},(function(e,n){e?console.error("Error sending 'streamPropertyChanged' event",e):(t.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t.session,t.stream,"videoDimensions",t.stream.videoDimensions,o,"screenResized")]),t.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t,t.stream,"videoDimensions",t.stream.videoDimensions,o,"screenResized")]))}))}}),500),t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[])}));else if(p.isIonicIos||"Safari"===p.name){t.videoReference.style.display="none",document.body.appendChild(t.videoReference);var r,o=function(){t.stream.videoDimensions={width:t.videoReference.videoWidth,height:t.videoReference.videoHeight},t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[]),document.body.removeChild(t.videoReference)};t.videoReference.addEventListener("loadedmetadata",(function(){0===t.videoReference.videoWidth?r=setInterval((function(){0!==t.videoReference.videoWidth&&(clearInterval(r),o())}),40):o()}))}else{var a=n.getVideoTracks()[0].getSettings(),s=a.width,c=a.height;t.stream.videoDimensions=("iOS"===p.os.family||"Android"===p.os.family)&&window.innerHeight>window.innerWidth?{width:c||0,height:s||0}:{width:s||0,height:c||0},t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[])}else t.stream.isLocalStreamReadyToPublish=!0,t.stream.ee.emitEvent("stream-ready-to-publish",[]);e()},c=function(e,n){t.clearPermissionDialogTimer(i,1250),t.stream.isSendScreen()&&t.stream.isSendAudio()?(o.audio=n,o.video=!1,i=Date.now(),t.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then((function(n){t.clearPermissionDialogTimer(i,1250),e.addTrack(n.getAudioTracks()[0]),s(e)})).catch((function(n){t.clearPermissionDialogTimer(i,1250),e.getAudioTracks().forEach((function(t){t.stop()})),e.getVideoTracks().forEach((function(t){t.stop()})),a(t.openvidu.generateAudioDeviceError(n,r))}))):s(e)},l=function(e){var n,o;switch(console.error(e),t.clearPermissionDialogTimer(i,1250),"Error"===e.name&&(e.name=e.constructor.name),e.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:r.video}).then((function(t){t.getVideoTracks().forEach((function(t){t.stop()})),n=d.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=e.toString(),a(new d.OpenViduError(n,o))})).catch((function(t){n=d.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=e.toString(),a(new d.OpenViduError(n,o))}));break;case"notallowederror":n=t.stream.isSendScreen()?d.OpenViduErrorName.SCREEN_CAPTURE_DENIED:d.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=e.toString(),a(new d.OpenViduError(n,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:r.video}).then((function(t){t.getVideoTracks().forEach((function(t){t.stop()})),"deviceid"===e.constraint.toLowerCase()?(n=d.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+r.audio.deviceId.exact+"' not found"):(n=d.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+e.constraint+"'"),a(new d.OpenViduError(n,o))})).catch((function(t){"deviceid"===e.constraint.toLowerCase()?(n=d.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+r.video.deviceId.exact+"' not found"):(n=d.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+e.constraint+"'"),a(new d.OpenViduError(n,o))}));break;case"aborterror":case"notreadableerror":n=d.OpenViduErrorName.DEVICE_ALREADY_IN_USE,o=e.toString(),a(new d.OpenViduError(n,o));break;default:n=d.OpenViduErrorName.GENERIC_ERROR,o=e.toString(),a(new d.OpenViduError(n,o))}};t.openvidu.generateMediaConstraints(t.properties).then((function(e){if(void 0!==e.constraints){t.stream.setOutboundStreamOptions({mediaConstraints:r=e.constraints,publisherProperties:t.properties});var n=void 0===r.audio||r.audio;o.audio=!t.stream.isSendScreen()&&n,o.video=r.video,i=Date.now(),t.setPermissionDialogTimer(1250),t.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&"Electron"!==p.name?navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(i){t.openvidu.addAlreadyProvidedTracks(e,i),c(i,n)})).catch((function(t){l(t)})):navigator.mediaDevices.getUserMedia(o).then((function(i){t.openvidu.addAlreadyProvidedTracks(e,i),c(i,n)})).catch((function(t){l(t)}))}else s(t.openvidu.addAlreadyProvidedTracks(e,new MediaStream))})).catch((function(t){a(t)}))}))},e.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},e.prototype.setPermissionDialogTimer=function(t){var e=this;this.permissionDialogTimeout=setTimeout((function(){e.emitEvent("accessDialogOpened",[])}),t)},e.prototype.clearPermissionDialogTimer=function(t,e){clearTimeout(this.permissionDialogTimeout),Date.now()-t>e&&this.emitEvent("accessDialogClosed",[])},e}(s.StreamManager);e.Publisher=h},PPcv:function(t,e,n){"use strict";e.__esModule=!0;var i=n("tInm"),r=n("PEz1"),o=n("JTMn"),a=n("BwMD"),s=n("Tt94"),c=n("/dLB"),u=n("+27z"),l=n("EcWD"),d=n("6+/i"),p=n("AeG9"),h=n("bDgZ");h.isIonicIos=("iPhone"===h.product||"iPad"===h.product)&&-1===h.ua.indexOf("Safari"),h.isIonicAndroid="Android"===h.os.family&&"Android Browser"==h.name;var f=n("vqFl"),m=function(){function t(){var t=this;this.publishers=[],this.secret="",this.recorder=!1,this.advancedConfiguration={},this.webrtcStatsInterval=0,this.ee=new d,this.libraryVersion=f.version,console.info("'OpenVidu' initialized"),console.info("openvidu-browser version: "+this.libraryVersion),"iOS"!==h.os.family&&"Android"!==h.os.family||window.addEventListener("orientationchange",(function(){t.publishers.forEach((function(e){if(e.stream.isLocalStreamPublished&&e.stream&&e.stream.hasVideo&&e.stream.streamManager.videos[0])var n=0,i=e.stream.videoDimensions.width,r=e.stream.videoDimensions.height,o=setInterval((function(){new Promise((function(t,n){if(h.isIonicIos)t({newWidth:e.stream.streamManager.videos[0].video.videoWidth,newHeight:e.stream.streamManager.videos[0].video.videoHeight});else{var i=e.stream.getMediaStream().getVideoTracks()[0].getSettings();t({newWidth:-1!==h.name.toLowerCase().indexOf("firefox")?i.width:e.videoReference.videoWidth,newHeight:-1!==h.name.toLowerCase().indexOf("firefox")?i.height:e.videoReference.videoHeight})}})).then((function(t){s(i,r,t.newWidth,t.newHeight)}))}),75),s=function(i,r,s,c){++n>10&&clearTimeout(o),s===i&&c===r||(e.stream.videoDimensions={width:s||0,height:c||0},t.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:"deviceRotated"},(function(n,o){n?console.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(t.session,e.stream,"videoDimensions",e.stream.videoDimensions,{width:i,height:r},"deviceRotated")]),e.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,{width:i,height:r},"deviceRotated")]))})),clearTimeout(o))}}))}))}return t.prototype.initSession=function(){return this.session=new o.Session(this),this.session},t.prototype.initPublisher=function(t,e,n){var i;i=e&&"function"!=typeof e?{audioSource:void 0!==(i=e).audioSource?i.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&i.videoSource instanceof MediaStreamTrack?void 0:void 0!==i.frameRate?i.frameRate:void 0,insertMode:void 0!==i.insertMode?"string"==typeof i.insertMode?c.VideoInsertMode[i.insertMode]:i.insertMode:c.VideoInsertMode.APPEND,mirror:void 0===i.mirror||i.mirror,publishAudio:void 0===i.publishAudio||i.publishAudio,publishVideo:void 0===i.publishVideo||i.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&i.videoSource instanceof MediaStreamTrack?void 0:void 0!==i.resolution?i.resolution:"640x480",videoSource:void 0!==i.videoSource?i.videoSource:void 0,filter:i.filter}:{insertMode:c.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var o,a=new r.Publisher(t,i,this);return e&&"function"==typeof e?o=e:n&&(o=n),a.initialize().then((function(){void 0!==o&&o(void 0),a.emitEvent("accessAllowed",[])})).catch((function(t){void 0!==o&&o(t),a.emitEvent("accessDenied",[t])})),this.publishers.push(a),a},t.prototype.initPublisherAsync=function(t,e){var n=this;return new Promise((function(i,r){var o,a=function(t){t?r(t):i(o)};o=e?n.initPublisher(t,e,a):n.initPublisher(t,a)}))},t.prototype.initLocalRecorder=function(t){return new i.LocalRecorder(t)},t.prototype.checkSystemRequirements=function(){var t=h.name,e=h.ua?h.ua:navigator.userAgent;return"iOS"!==h.os.family||"Safari"===t&&-1===e.indexOf("CriOS")&&-1===e.indexOf("FxiOS")?"Safari"!==t&&"Chrome"!==t&&"Chrome Mobile"!==t&&"Firefox"!==t&&"Firefox Mobile"!==t&&"Opera"!==t&&"Opera Mobile"!==t&&"Android Browser"!==t&&"Electron"!==t?0:1:0},t.prototype.checkScreenSharingCapabilities=function(){var t=h.name,e=h.os.family;return"iOS"===e||"Android"===e?0:"Chrome"!==t&&"Firefox"!==t&&"Opera"!==t&&"Electron"!==t?0:1},t.prototype.getDevices=function(){return new Promise((function(t,e){navigator.mediaDevices.enumerateDevices().then((function(e){var n=[];h.isIonicAndroid&&cordova.plugins&&cordova.plugins.EnumerateDevicesPlugin?cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then((function(i){var r=[],o=[],a=[];r=i.filter((function(t){return"audioinput"===t.kind})),o=e.filter((function(t){return"videoinput"===t.kind})),a=e.filter((function(t){return"audioinput"===t.kind})),o.forEach((function(t,e){n.push(t.label?{kind:t.kind,deviceId:t.deviceId,label:t.label}:{kind:t.kind,deviceId:t.deviceId,label:0===e?"Front Camera":1===e?"Back Camera":"Unknown Camera"})})),a.forEach((function(t,e){if(t.label)n.push({kind:t.kind,deviceId:t.deviceId,label:t.label});else{var i="";switch(e){case 0:i="Default";break;case 1:var o=r.filter((function(t){return t.label.includes("Built")}))[0];i=o?o.label:"Built-in Microphone";break;case 2:var a=r.filter((function(t){return t.label.includes("Wired")}))[0];i=a?a.label:"Headset earpiece";break;case 3:var s=r.filter((function(t){return t.label.includes("Bluetooth")}))[0];i=s?s.label:"Wireless";break;default:i="Unknown Microphone"}n.push({kind:t.kind,deviceId:t.deviceId,label:i})}})),t(n)})):(e.forEach((function(t){"audioinput"!==t.kind&&"videoinput"!==t.kind||n.push({kind:t.kind,deviceId:t.deviceId,label:t.label})})),t(n))})).catch((function(t){console.error("Error getting devices",t),e(t)}))}))},t.prototype.getUserMedia=function(t){var e=this;return new Promise((function(n,i){var r=function(t,r){var o={audio:void 0===r.audio||r.audio,video:!1};navigator.mediaDevices.getUserMedia(o).then((function(e){t.addTrack(e.getAudioTracks()[0]),n(t)})).catch((function(n){t.getAudioTracks().forEach((function(t){t.stop()})),t.getVideoTracks().forEach((function(t){t.stop()})),i(e.generateAudioDeviceError(n,o))}))};e.generateMediaConstraints(t).then((function(o){var a,c;if(o.videoTrack&&o.audioTrack||o.audioTrack&&!1===(null===(a=o.constraints)||void 0===a?void 0:a.video)||o.videoTrack&&!1===(null===(c=o.constraints)||void 0===c?void 0:c.audio))n(e.addAlreadyProvidedTracks(o,new MediaStream));else{o.videoTrack&&delete o.constraints.video,o.audioTrack&&delete o.constraints.audio;var u=!1;if("string"==typeof t.videoSource&&("screen"===t.videoSource||"window"===t.videoSource||"Electron"===h.name&&t.videoSource.startsWith("screen:"))&&(u=!o.audioTrack&&null!==t.audioSource&&!1!==t.audioSource,navigator.mediaDevices.getDisplayMedia&&"Electron"!==h.name))return void navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(t){e.addAlreadyProvidedTracks(o,t),u?r(t,o.constraints):n(t)})).catch((function(t){var e=s.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n=t.toString();i(new s.OpenViduError(e,n))}));navigator.mediaDevices.getUserMedia(u?{video:o.constraints.video}:o.constraints).then((function(t){e.addAlreadyProvidedTracks(o,t),u?r(t,o.constraints):n(t)})).catch((function(e){var n=e.toString();i(new s.OpenViduError("screen"!==t.videoSource?s.OpenViduErrorName.DEVICE_ACCESS_DENIED:s.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))}))}})).catch((function(t){i(t)}))}))},t.prototype.enableProdMode=function(){console.log=function(){},console.debug=function(){},console.info=function(){},console.warn=function(){}},t.prototype.setAdvancedConfiguration=function(t){this.advancedConfiguration=t},t.prototype.generateMediaConstraints=function(t){var e=this;return new Promise((function(n,i){var r={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},o=t.audioSource,a=t.videoSource;if(null!==o&&!1!==o||(r.constraints.audio=!1),null!==a&&!1!==a||(r.constraints.video=!1),!1===r.constraints.audio&&!1===r.constraints.video&&i(new s.OpenViduError(s.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time")),"undefined"!=typeof MediaStreamTrack&&o instanceof MediaStreamTrack&&(r.audioTrack=o),"undefined"!=typeof MediaStreamTrack&&a instanceof MediaStreamTrack&&(r.videoTrack=a),void 0===o&&(r.constraints.audio=!0),void 0===a&&(r.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==a&&!1!==a){if(t.resolution){var c=t.resolution.toLowerCase().split("x"),d=Number(c[0]),p=Number(c[1]);r.constraints.video={width:{ideal:d},height:{ideal:p}}}t.frameRate&&(r.constraints.video.frameRate={ideal:t.frameRate})}if("string"==typeof o&&(r.constraints.audio={deviceId:{exact:o}}),"string"==typeof a)if(e.isScreenShare(a))if(e.checkScreenSharingCapabilities())if("Electron"===h.name){var f=a.substr(a.indexOf("screen:")+"screen:".length);r.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:f}},n(r)}else{if(e.advancedConfiguration.screenShareChromeExtension&&-1===h.name.indexOf("Firefox")&&!navigator.mediaDevices.getDisplayMedia)return void l.getScreenConstraints((function(t,o){if(t||o.mandatory&&"screen"===o.mandatory.chromeMediaSource){if("permission-denied"!==t&&"PermissionDeniedError"!==t){var a=e.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();return void l.getChromeExtensionStatus(a,(function(t){if("installed-disabled"===t){var n=new s.OpenViduError(s.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(n),i(n)}if("not-installed"===t){var r=new s.OpenViduError(s.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,e.advancedConfiguration.screenShareChromeExtension);console.error(r),i(r)}}))}var c=new s.OpenViduError(s.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(c),i(c)}else r.constraints.video=o,n(r)}));if(!navigator.mediaDevices.getDisplayMedia){var m=-1!==h.name.indexOf("Firefox")?t.videoSource:void 0;return void u.getScreenId(m,(function(t,o,a){if(t)if("not-installed"===t){var c=new s.OpenViduError(s.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,e.advancedConfiguration.screenShareChromeExtension?e.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");console.error(c),i(c)}else"installed-disabled"===t?(c=new s.OpenViduError(s.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),console.error(c),i(c)):"permission-denied"===t?(c=new s.OpenViduError(s.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),console.error(c),i(c)):(c=new s.OpenViduError(s.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),console.error(c),console.error(t),i(c));else r.constraints.video=a.video,n(r)}))}n(r)}else{var g=new s.OpenViduError(s.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera or Electron. Detected client: "+h.name);console.error(g),i(g)}else r.constraints.video||(r.constraints.video={}),r.constraints.video.deviceId={exact:a};n(r)}))},t.prototype.startWs=function(t){var e={heartbeat:5e3,sendCloseMessage:!1,ws:{uri:this.wsUri,onconnected:t,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this)},rpc:{requestTimeout:1e4,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session)}};this.jsonRpcClient=new p.clients.JsonRpcClient(e)},t.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},t.prototype.sendRequest=function(t,e,n){e&&e instanceof Function&&(n=e,e={}),console.debug('Sending request: {method:"'+t+'", params: '+JSON.stringify(e)+"}"),this.jsonRpcClient.send(t,e,n)},t.prototype.getWsUri=function(){return this.wsUri},t.prototype.getSecret=function(){return this.secret},t.prototype.getRecorder=function(){return this.recorder},t.prototype.generateAudioDeviceError=function(t,e){var n,i;switch("Error"===t.name&&(t.name=t.constructor.name),t.name.toLowerCase()){case"notfounderror":return n=s.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,i=t.toString(),new s.OpenViduError(n,i);case"notallowederror":return n=s.OpenViduErrorName.DEVICE_ACCESS_DENIED,i=t.toString(),new s.OpenViduError(n,i);case"overconstrainederror":return"deviceid"===t.constraint.toLowerCase()?(n=s.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,i="Audio input device with deviceId '"+e.audio.deviceId.exact+"' not found"):(n=s.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,i="Audio input device doesn't support the value passed for constraint '"+t.constraint+"'"),new s.OpenViduError(n,i);case"notreadableerror":return n=s.OpenViduErrorName.DEVICE_ALREADY_IN_USE,i=t.toString(),new s.OpenViduError(n,i);default:return new s.OpenViduError(s.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,t.toString())}},t.prototype.addAlreadyProvidedTracks=function(t,e){return t.videoTrack&&e.addTrack(t.videoTrack),t.audioTrack&&e.addTrack(t.audioTrack),e},t.prototype.disconnectCallback=function(){console.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},t.prototype.reconnectingCallback=function(){console.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},t.prototype.reconnectedCallback=function(){var t=this;console.warn("Websocket reconnected"),this.isRoomAvailable()?this.sendRequest("connect",{sessionId:this.session.connection.rpcSessionId},(function(e,n){e?(console.error(e),console.warn("Websocket was able to reconnect to OpenVidu Server, but your Connection was already destroyed due to timeout. You are no longer a participant of the Session and your media streams have been destroyed"),t.session.onLostConnection("networkDisconnect"),t.jsonRpcClient.close(4101,"Reconnection fault")):(t.jsonRpcClient.resetPing(),t.session.onRecoveredConnection())})):alert("Connection error. Please reload page.")},t.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof o.Session||(console.warn("Session instance not found"),!1)},t.prototype.isScreenShare=function(t){return"screen"===t||"window"===t||"Electron"===h.name&&t.startsWith("screen:")},t}();e.OpenVidu=m},PZzU:function(t,e,n){"use strict";e.__esModule=!0;var i=n("PPcv");e.OpenVidu=i.OpenVidu;var r=n("JTMn");e.Session=r.Session;var o=n("PEz1");e.Publisher=o.Publisher;var a=n("bk74");e.Subscriber=a.Subscriber;var s=n("P3vI");e.StreamManager=s.StreamManager;var c=n("DPKQ");e.Stream=c.Stream;var u=n("ryRr");e.Connection=u.Connection;var l=n("tInm");e.LocalRecorder=l.LocalRecorder;var d=n("74bm");e.Filter=d.Filter;var p=n("Yn0Z");e.LocalRecorderState=p.LocalRecorderState;var h=n("Tt94");e.OpenViduError=h.OpenViduError;var f=n("/dLB");e.VideoInsertMode=f.VideoInsertMode;var m=n("hzOQ");e.Event=m.Event;var g=n("8KVD");e.ConnectionEvent=g.ConnectionEvent;var v=n("e8ps");e.PublisherSpeakingEvent=v.PublisherSpeakingEvent;var y=n("rUL0");e.RecordingEvent=y.RecordingEvent;var b=n("ksJj");e.SessionDisconnectedEvent=b.SessionDisconnectedEvent;var _=n("suHS");e.SignalEvent=_.SignalEvent;var w=n("Te8r");e.StreamEvent=w.StreamEvent;var S=n("HxXY");e.StreamManagerEvent=S.StreamManagerEvent;var C=n("oIG1");e.VideoElementEvent=C.VideoElementEvent;var E=n("BwMD");e.StreamPropertyChangedEvent=E.StreamPropertyChangedEvent;var x=n("+ig+");e.FilterEvent=x.FilterEvent},QSjB:function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var i=n("FlKs"),r=n("vqGb"),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),a=n("dlaP"),s=function(t){return new i.TokenState(t)},c=s(),u=s(),l=s(),d=s(),p=s(),h=s(),f=s(),m=s(r.URL),g=s(),v=s(r.URL),y=s(r.URL),b=s(),_=s(),w=s(),S=s(),C=s(),E=s(r.URL),x=s(r.URL),k=s(r.URL),O=s(r.URL),T=s(),I=s(),A=s(),P=s(),M=s(),R=s(),N=s(r.EMAIL),D=s(),L=s(r.EMAIL),j=s(r.MAILTOEMAIL),V=s(),F=s(),B=s(),U=s(),z=s(r.NL);c.on(a.NL,z).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,d),u.on(a.SLASH,d),d.on(a.SLASH,p),c.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,m).on(a.NUM,h),p.on(a.TLD,y).on(a.DOMAIN,y).on(a.NUM,y).on(a.LOCALHOST,y),h.on(a.DOT,f),M.on(a.DOT,R),f.on(a.TLD,m).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),R.on(a.TLD,N).on(a.DOMAIN,M).on(a.NUM,M).on(a.LOCALHOST,M),m.on(a.DOT,f),N.on(a.DOT,R),m.on(a.COLON,g).on(a.SLASH,y),g.on(a.NUM,v),v.on(a.SLASH,y),N.on(a.COLON,D),D.on(a.NUM,L);var H=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],W=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];y.on(a.OPENBRACE,_).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),b.on(a.OPENBRACE,_).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),_.on(a.CLOSEBRACE,y),w.on(a.CLOSEBRACKET,y),S.on(a.CLOSEANGLEBRACKET,y),C.on(a.CLOSEPAREN,y),E.on(a.CLOSEBRACE,y),x.on(a.CLOSEBRACKET,y),k.on(a.CLOSEANGLEBRACKET,y),O.on(a.CLOSEPAREN,y),T.on(a.CLOSEBRACE,y),I.on(a.CLOSEBRACKET,y),A.on(a.CLOSEANGLEBRACKET,y),P.on(a.CLOSEPAREN,y),_.on(H,E),w.on(H,x),S.on(H,k),C.on(H,O),_.on(W,T),w.on(W,I),S.on(W,A),C.on(W,P),E.on(H,E),x.on(H,x),k.on(H,k),O.on(H,O),E.on(W,E),x.on(W,x),k.on(W,k),O.on(W,O),T.on(H,E),I.on(H,x),A.on(H,k),P.on(H,O),T.on(W,T),I.on(W,I),A.on(W,A),P.on(W,P),y.on(H,y),b.on(H,y),y.on(W,b),b.on(W,b),l.on(a.TLD,j).on(a.DOMAIN,j).on(a.NUM,j).on(a.LOCALHOST,j),j.on(H,j).on(W,V),V.on(H,j).on(W,V);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(G,F).on(a.AT,B),m.on(G,F).on(a.AT,B),f.on(G,F),F.on(G,F).on(a.AT,B).on(a.DOT,U),U.on(G,F),B.on(a.TLD,M).on(a.DOMAIN,M).on(a.LOCALHOST,N),e.State=i.TokenState,e.TOKENS=o,e.run=function(t){for(var e=t.length,n=0,i=[],o=[];n<e;){for(var a=c,s=null,u=null,l=0,d=null,p=-1;n<e&&!(s=a.next(t[n]));)o.push(t[n++]);for(;n<e&&(u=s||a.next(t[n]));)s=null,(a=u).accepts()?(p=0,d=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)o.push(t[h]);else{o.length>0&&(i.push(new r.TEXT(o)),o=[]),n-=p,l-=p;var f=d.emit();i.push(new f(t.slice(n-l,n)))}}return o.length>0&&i.push(new r.TEXT(o)),i},e.start=c},RvMX:function(t,e,n){"use strict";e.__esModule=!0,e.createTokenClass=function(){return function(t){t&&(this.v=t)}}},SYuc:function(t,e,n){var i=n("EDod");e.JsonRpcClient=i},TDwH:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e=t.scanner.TOKENS,n=t.parser.start;function i(t){this.v=t}t.inherits(t.parser.TOKENS.Base,i,{type:"hashtag",isLink:!0});var r=n.jump(e.POUND),o=new t.parser.State(i);r.on(e.DOMAIN,o),r.on(e.TLD,o),r.on(e.LOCALHOST,o)}},Te8r:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=n("hzOQ"),a=n("PEz1"),s=n("JTMn"),c=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.stream=r,a.reason=o,a}return r(e,t),e.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof s.Session)console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof a.Publisher){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var t=this.target.openvidu.publishers,e=0;e<t.length;e++)if(t[e]===this.target){t.splice(e,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),delete this.stream.session.remoteStreamsCreated[this.stream.streamId];var n=this.stream.session.remoteConnections[this.stream.connection.connectionId];if(n&&n.options){var i=n.options.streams;for(e=i.length-1;e>=0;--e)i[e].id===this.stream.streamId&&i.splice(e,1)}}},e}(o.Event);e.StreamEvent=c},Tt94:function(t,e,n){"use strict";var i;e.__esModule=!0,(i=e.OpenViduErrorName||(e.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",i.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",i.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",i.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",i.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",i.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",i.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",i.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",i.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",i.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",i.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",i.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",i.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",i.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",i.GENERIC_ERROR="GENERIC_ERROR",e.OpenViduError=function(t,e){this.name=t,this.message=e}},VZ2u:function(t,e,n){var i=n("jrAl"),r=n("qa4Q");t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||r(a)}},"Wfi+":function(t,e,n){var i=n("k3G7"),r=n("VZ2u"),o=r;o.v1=i,o.v4=r,t.exports=o},Yn0Z:function(t,e,n){"use strict";var i;e.__esModule=!0,(i=e.LocalRecorderState||(e.LocalRecorderState={})).READY="READY",i.RECORDING="RECORDING",i.PAUSED="PAUSED",i.FINISHED="FINISHED"},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},bDgZ:function(t,e,n){(function(t){var i;(function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,a=r[typeof e]&&e&&r[typeof t]&&t&&!t.nodeType&&t&&"object"==typeof global&&global;!a||a.global!==a&&a.window!==a&&a.self!==a||(o=a);var s=Math.pow(2,53)-1,c=/\bOpera/,u=Object.prototype,l=u.hasOwnProperty,d=u.toString;function p(t){return(t=String(t)).charAt(0).toUpperCase()+t.slice(1)}function h(t){return t=y(t),/^(?:webOS|i(?:OS|P))/.test(t)?t:p(t)}function f(t,e){for(var n in t)l.call(t,n)&&e(t[n],n,t)}function m(t){return null==t?p(t):d.call(t).slice(8,-1)}function g(t){return String(t).replace(/([ -])(?!$)/g,"$1?")}function v(t,e){var n=null;return function(t,e){var n=-1,i=t?t.length:0;if("number"==typeof i&&i>-1&&i<=s)for(;++n<i;)e(t[n],n);else f(t,e)}(t,(function(i,r){n=e(n,i,r,t)})),n}function y(t){return String(t).replace(/^ +| +$/g,"")}var b=function t(e){var n=o,i=e&&"object"==typeof e&&"String"!=m(e);i&&(n=e,e=null);var r=n.navigator||{},a=r.userAgent||"";e||(e=a);var s,u,l,p,b=i?!!r.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(d.toString()),_=i?"Object":"ScriptBridgingProxyObject",w=i?"Object":"Environment",S=i&&n.java?"JavaPackage":m(n.java),C=i?"Object":"RuntimeObject",E=/\bJava/.test(S)&&n.java,x=E&&m(n.environment)==w,k=E?"a":"\u03b1",O=E?"b":"\u03b2",T=n.document||{},I=n.operamini||n.opera,A=c.test(A=i&&I?I["[[Class]]"]:m(I))?A:I=null,P=e,M=[],R=null,N=e==a,D=N&&I&&"function"==typeof I.version&&I.version(),L=v([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(t,n){return t||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(e)&&(n.label||n)})),j=v(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],(function(t,n){return t||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(e)&&(n.label||n)})),V=U([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),F=v({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}},(function(t,n,i){return t||(n[V]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(V)]||RegExp("\\b"+g(i)+"(?:\\b|\\w*\\d)","i").exec(e))&&i})),B=v(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],(function(t,n){var i=n.pattern||g(n);return!t&&(t=RegExp("\\b"+i+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=function(t,e,n){var i={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return e&&n&&/^Win/i.test(t)&&!/^Windows Phone /i.test(t)&&(i=i[/[\d.]+$/.exec(t)])&&(t="Windows "+i),t=String(t),e&&n&&(t=t.replace(RegExp(e,"i"),n)),h(t.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(t,i,n.label||n)),t}));function U(t){return v(t,(function(t,n){var i=n.pattern||g(n);return!t&&(t=RegExp("\\b"+i+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+i+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+i+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(n.label&&!RegExp(i,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),n=n.label||n,t=h(t[0].replace(RegExp(i,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),t}))}if(L&&(L=[L]),F&&!V&&(V=U([F])),(s=/\bGoogle TV\b/.exec(V))&&(V=s[0]),/\bSimulator\b/i.test(e)&&(V=(V?V+" ":"")+"Simulator"),"Opera Mini"==j&&/\bOPiOS\b/.test(e)&&M.push("running in Turbo/Uncompressed mode"),"IE"==j&&/\blike iPhone OS\b/.test(e)?(F=(s=t(e.replace(/like iPhone OS/,""))).manufacturer,V=s.product):/^iP/.test(V)?(j||(j="Safari"),B="iOS"+((s=/ OS ([\d_]+)/i.exec(e))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"!=j||/buntu/i.test(B)?F&&"Google"!=F&&(/Chrome/.test(j)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(V))||/\bAndroid\b/.test(B)&&/^Chrome/.test(j)&&/\bVersion\//i.test(e)?(j="Android Browser",B=/\bAndroid\b/.test(B)?B:"Android"):"Silk"==j?(/\bMobi/i.test(e)||(B="Android",M.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&M.unshift("accelerated")):"PaleMoon"==j&&(s=/\bFirefox\/([\d.]+)\b/.exec(e))?M.push("identifying as Firefox "+s[1]):"Firefox"==j&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(B||(B="Firefox OS"),V||(V=s[1])):!j||(s=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(j))?(j&&!V&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(s+"/")+8))&&(j=null),(s=V||F||B)&&(V||F||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(B))&&(j=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(B)?B:s)+" Browser")):"Electron"==j&&(s=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&M.push("Chromium "+s):B="Kubuntu",D||(D=v(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(j),"(?:Firefox|Minefield|NetFront)"],(function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null}))),(s=("iCab"==L&&parseFloat(D)>3?"WebKit":/\bOpera\b/.test(j)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(L)&&"WebKit"||!L&&/\bMSIE\b/i.test(e)&&("Mac OS"==B?"Tasman":"Trident")||"WebKit"==L&&/\bPlayStation\b(?! Vita\b)/i.test(j)&&"NetFront")&&(L=[s]),"IE"==j&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(j+=" Mobile",B="Windows Phone "+(/\+$/.test(s)?s:s+".x"),M.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(j="IE Mobile",B="Windows Phone 8.x",M.unshift("desktop mode"),D||(D=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=j&&"Trident"==L&&(s=/\brv:([\d.]+)/.exec(e))&&(j&&M.push("identifying as "+j+(D?" "+D:"")),j="IE",D=s[1]),N){if(/^(?:boolean|number|string|undefined)$/.test(p=null!=(l=n)?typeof l.global:"number")||"object"==p&&!l.global)m(s=n.runtime)==_?(j="Adobe AIR",B=s.flash.system.Capabilities.os):m(s=n.phantom)==C?(j="PhantomJS",D=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof T.documentMode&&(s=/\bTrident\/(\d+)/i.exec(e))?((s=+s[1]+4)!=(D=[D,T.documentMode])[1]&&(M.push("IE "+D[1]+" mode"),L&&(L[1]=""),D[1]=s),D="IE"==j?String(D[1].toFixed(1)):D[0]):"number"==typeof T.documentMode&&/^(?:Chrome|Firefox)\b/.test(j)&&(M.push("masking as "+j+" "+D),j="IE",D="11.0",L=["Trident"],B="Windows");else if(E&&(P=(s=E.lang.System).getProperty("os.arch"),B=B||s.getProperty("os.name")+" "+s.getProperty("os.version")),x){try{D=n.require("ringo/engine").version.join("."),j="RingoJS"}catch(H){(s=n.system)&&s.global.system==n.system&&(j="Narwhal",B||(B=s[0].os||null))}j||(j="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(M.push("Node "+s.versions.node),j="Electron",D=s.versions.electron):"string"==typeof s.versions.nw&&(M.push("Chromium "+D,"Node "+s.versions.node),j="NW.js",D=s.versions.nw)),j||(j="Node.js",P=s.arch,B=s.platform,D=(D=/[\d.]+/.exec(s.version))?D[0]:null));B=B&&h(B)}if(D&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(D)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(N&&r.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(R=/b/i.test(s)?"beta":"alpha",D=D.replace(RegExp(s+"\\+?$"),"")+("beta"==R?O:k)+(/\d+\+?/.exec(s)||"")),"Fennec"==j||"Firefox"==j&&/\b(?:Android|Firefox OS)\b/.test(B))j="Firefox Mobile";else if("Maxthon"==j&&D)D=D.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(V))"Xbox 360"==V&&(B=null),"Xbox 360"==V&&/\bIEMobile\b/.test(e)&&M.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(j)&&(!j||V||/Browser|Mobi/.test(j))||"Windows CE"!=B&&!/Mobi/i.test(e))if("IE"==j&&N)try{null===n.external&&M.unshift("platform preview")}catch(H){M.unshift("embedded")}else(/\bBlackBerry\b/.test(V)||/\bBB10\b/.test(e))&&(s=(RegExp(V.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||D)?(B=((s=[s,/BB10/.test(e)])[1]?(V=null,F="BlackBerry"):"Device Software")+" "+s[0],D=null):this!=f&&"Wii"!=V&&(N&&I||/Opera/.test(j)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==j&&/\bOS X (?:\d+\.){2,}/.test(B)||"IE"==j&&(B&&!/^Win/.test(B)&&D>5.5||/\bWindows XP\b/.test(B)&&D>8||8==D&&!/\bTrident\b/.test(e)))&&!c.test(s=t.call(f,e.replace(c,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),c.test(j)?(/\bIE\b/.test(s)&&"Mac OS"==B&&(B=null),s="identify"+s):(s="mask"+s,j=A?h(A.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(B=null),N||(D=null)),L=["Presto"],M.push(s));else j+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==j&&"+"==s[1].slice(-1)?(j="WebKit Nightly",R="alpha",D=s[1].slice(0,-1)):D!=s[1]&&D!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(D=null),s[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==L&&(L=["Blink"]),N&&(b||s[1])?(L&&(L[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=L?"27":"28")):(L&&(L[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:"8"),L&&(L[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==j&&(!D||parseInt(D)>45)&&(D=s)),"Opera"==j&&(s=/\bzbov|zvav$/.exec(B))?(j+=" ",M.unshift("desktop mode"),"zvav"==s?(j+="Mini",D=null):j+="Mobile",B=B.replace(RegExp(" *"+s+"$"),"")):"Safari"==j&&/\bChrome\b/.exec(L&&L[1])&&(M.unshift("desktop mode"),j="Chrome Mobile",D=null,/\bOS X\b/.test(B)?(F="Apple",B="iOS 4.3+"):B=null),D&&0==D.indexOf(s=/[\d.]+$/.exec(B))&&e.indexOf("/"+s+"-")>-1&&(B=y(B.replace(s,""))),L&&!/\b(?:Avant|Nook)\b/.test(j)&&(/Browser|Lunascape|Maxthon/.test(j)||"Safari"!=j&&/^iOS/.test(B)&&/\bSafari\b/.test(L[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(j)&&L[1])&&(s=L[L.length-1])&&M.push(s),M.length&&(M=["("+M.join("; ")+")"]),F&&V&&V.indexOf(F)<0&&M.push("on "+F),V&&M.push((/^on /.test(M[M.length-1])?"":"on ")+V),B&&(s=/ ([\d.+]+)$/.exec(B),u=s&&"/"==B.charAt(B.length-s[0].length-1),B={architecture:32,family:s&&!u?B.replace(s[0],""):B,version:s?s[1]:null,toString:function(){var t=this.version;return this.family+(t&&!u?" "+t:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(P))&&!/\bi686\b/i.test(P)?(B&&(B.architecture=64,B.family=B.family.replace(RegExp(" *"+s),"")),j&&(/\bWOW64\b/i.test(e)||N&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(e))&&M.unshift("32-bit")):B&&/^OS X/.test(B.family)&&"Chrome"==j&&parseFloat(D)>=39&&(B.architecture=64),e||(e=null);var z={};return z.description=e,z.layout=L&&L[0],z.manufacturer=F,z.name=j,z.prerelease=R,z.product=V,z.ua=e,z.version=j&&D,z.os=B||{architecture:null,family:null,version:null,toString:function(){return"null"}},z.parse=t,z.toString=function(){return this.description||""},z.version&&M.unshift(D),z.name&&M.unshift(j),B&&j&&(B!=String(B).split(" ")[0]||B!=j.split(" ")[0]&&!V)&&M.push(V?"("+B+")":"on "+B),M.length&&(z.description=M.join(" ")),z}();o.platform=b,void 0===(i=(function(){return b}).call(e,n,e,t))||(t.exports=i)}).call(this)}).call(this,n("YuTi")(t))},bGVd:function(t,e,n){t.exports=n("IXxz").default},bk74:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.element=r.targetElement,r.stream=e,r.properties=i,r}return r(e,t),e.prototype.subscribeToAudio=function(t){return this.stream.getMediaStream().getAudioTracks().forEach((function(e){e.enabled=t})),console.info("'Subscriber' has "+(t?"subscribed to":"unsubscribed from")+" its audio stream"),this},e.prototype.subscribeToVideo=function(t){return this.stream.getMediaStream().getVideoTracks().forEach((function(e){e.enabled=t})),console.info("'Subscriber' has "+(t?"subscribed to":"unsubscribed from")+" its video stream"),this},e}(n("P3vI").StreamManager);e.Subscriber=o},cUzU:function(t,e,n){"use strict";var i=console;t.exports=function(t){var e,n=!1,r=t.uri,o=!1,a=new WebSocket(r);a.onopen=function(){i.debug("WebSocket connected to "+r),t.onconnected&&t.onconnected()},a.onerror=function(e){i.error("Could not connect to "+r+" (invoking onerror if defined)",e),t.onerror&&t.onerror(e)};var s=function(){3===a.readyState?n?i.debug("Connection closed by user"):(i.debug("Connection closed unexpectecly. Reconnecting..."),c(2e3,1)):i.debug("Close callback from previous websocket. Ignoring it")};function c(n,u){if(i.debug("reconnect (attempt #"+u+", max="+n+")"),1===u){if(o)return void i.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");o=!0,t.onreconnecting&&t.onreconnecting()}!function(n,u){i.debug("Reconnection attempt #"+u),a.close(),(a=new WebSocket(r)).onopen=function(){i.debug("Reconnected to "+r+" after "+u+" attempts..."),o=!1,e(),t.onreconnected()&&t.onreconnected(),a.onclose=s},a.onerror=function(e){i.warn("Reconnection error: ",e),u===n?t.ondisconnect&&t.ondisconnect():setTimeout((function(){c(n,u+1)}),3e3)}}(n,u)}a.onclose=s,this.close=function(){n=!0,a.close()},this.reconnectWs=function(){i.debug("reconnectWs"),c(2e3,1)},this.send=function(t){a.send(t)},this.addEventListener=function(t,n){(e=function(){a.addEventListener(t,n)})()}}},crnd:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},dP7y:function(t,e,n){t.exports=n("LXjW")},"dY/r":function(t,e){var n=["stun:","turn:"];t.exports=function(t){var e,i,r=(t||{}).url||t,o={};return"string"==typeof r||r instanceof String?(r=r.trim(),(e=n[n.indexOf(r.slice(0,5))])?(i=(r=r.slice(5)).split("@"),o.username=t.username,o.credential=t.credential,i.length>1&&(r=i[1],i=i[0].split(":"),o.username=i[0],o.credential=(t||{}).credential||i[1]||""),o.url=e+r,o.urls=[o.url],o):t):t}},de4E:function(t,e){e.pack=function(t,e){var n={jsonrpc:"2.0"};if(t.method)n.method=t.method,t.params&&(n.params=t.params),null!=e&&(n.id=e);else if(null!=e){if(t.error){if(void 0!==t.result)throw new TypeError("Both result and error are defined");n.error=t.error}else{if(void 0===t.result)throw new TypeError("No result or error is defined");n.result=t.result}n.id=e}return JSON.stringify(n)},e.unpack=function(t){var e=t;("string"==typeof t||t instanceof String)&&(e=JSON.parse(t));var n=e.jsonrpc;if("2.0"!==n)throw new TypeError("Invalid JsonRPC version '"+n+"': "+t);if(null==e.method){if(null==e.id)throw new TypeError("Invalid message: "+t);var i=void 0!==e.result,r=void 0!==e.error;if(i&&r)throw new TypeError("Both result and error are defined: "+t);if(!i&&!r)throw new TypeError("No result or error is defined: "+t);e.ack=e.id,delete e.id}return e}},dlaP:function(t,e,n){"use strict";e.__esModule=!0,e.AMPERSAND=e.CLOSEPAREN=e.CLOSEANGLEBRACKET=e.CLOSEBRACKET=e.CLOSEBRACE=e.OPENPAREN=e.OPENANGLEBRACKET=e.OPENBRACKET=e.OPENBRACE=e.WS=e.TLD=e.SYM=e.UNDERSCORE=e.SLASH=e.MAILTO=e.PROTOCOL=e.QUERY=e.POUND=e.PLUS=e.NUM=e.NL=e.LOCALHOST=e.PUNCTUATION=e.DOT=e.COLON=e.AT=e.DOMAIN=e.Base=void 0;var i=n("RvMX"),r=n("JUw6"),o=(0,i.createTokenClass)();function a(t){var e=t?{v:t}:{};return(0,r.inherits)(o,(0,i.createTokenClass)(),e)}o.prototype={toString:function(){return this.v+""}};var s=a(),c=a("@"),u=a(":"),l=a("."),d=a(),p=a(),h=a("\n"),f=a(),m=a("+"),g=a("#"),v=a(),y=a("mailto:"),b=a("?"),_=a("/"),w=a("_"),S=a(),C=a(),E=a(),x=a("{"),k=a("["),O=a("<"),T=a("("),I=a("}"),A=a("]"),P=a(">"),M=a(")"),R=a("&");e.Base=o,e.DOMAIN=s,e.AT=c,e.COLON=u,e.DOT=l,e.PUNCTUATION=d,e.LOCALHOST=p,e.NL=h,e.NUM=f,e.PLUS=m,e.POUND=g,e.QUERY=b,e.PROTOCOL=v,e.MAILTO=y,e.SLASH=_,e.UNDERSCORE=w,e.SYM=S,e.TLD=C,e.WS=E,e.OPENBRACE=x,e.OPENBRACKET=k,e.OPENANGLEBRACKET=O,e.OPENPAREN=T,e.CLOSEBRACE=I,e.CLOSEBRACKET=A,e.CLOSEANGLEBRACKET=P,e.CLOSEPAREN=M,e.AMPERSAND=R},e8ps:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i,r){var o=t.call(this,!1,e,n)||this;return o.type=n,o.connection=i,o.streamId=r,o}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.PublisherSpeakingEvent=o},ee8k:function(t,e,n){var i=n("cUzU");e.WebSocketWithReconnection=i},gUCu:function(t,e){function n(){var t={};this.forEach=function(e){for(var n in t){var i=t[n];for(var r in i)e(i[r])}},this.get=function(e,n){var i=t[n];if(null!=i)return i[e]},this.remove=function(e,n){var i=t[n];if(null!=i){for(var r in delete i[e],i)return!1;delete t[n]}},this.set=function(e,n,i){if(null==e)return this.remove(n,i);var r=t[i];null==r&&(t[i]=r={}),r[n]=e}}n.prototype.pop=function(t,e){var n=this.get(t,e);if(null!=n)return this.remove(t,e),n},t.exports=n},hw9W:function(t){t.exports=JSON.parse("[]")},hzOQ:function(t,e,n){"use strict";e.__esModule=!0;var i=function(){function t(t,e,n){this.hasBeenPrevented=!1,this.cancelable=t,this.target=e,this.type=n}return t.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},t.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},t}();e.Event=i},joaK:function(t,e,n){t.exports=n("TDwH").default},jrAl:function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);t.exports=function(){return n(i),i}}else{var r=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}},k3G7:function(t,e,n){var i,r,o=n("jrAl"),a=n("qa4Q"),s=0,c=0;t.exports=function(t,e,n){var u=e&&n||0,l=e||[],d=(t=t||{}).node||i,p=void 0!==t.clockseq?t.clockseq:r;if(null==d||null==p){var h=o();null==d&&(d=i=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=r=16383&(h[6]<<8|h[7]))}var f=void 0!==t.msecs?t.msecs:(new Date).getTime(),m=void 0!==t.nsecs?t.nsecs:c+1,g=f-s+(m-c)/1e4;if(g<0&&void 0===t.clockseq&&(p=p+1&16383),(g<0||f>s)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=f,c=m,r=p;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;l[u++]=v>>>24&255,l[u++]=v>>>16&255,l[u++]=v>>>8&255,l[u++]=255&v;var y=f/4294967296*1e4&268435455;l[u++]=y>>>8&255,l[u++]=255&y,l[u++]=y>>>24&15|16,l[u++]=y>>>16&255,l[u++]=p>>>8|128,l[u++]=255&p;for(var b=0;b<6;++b)l[u+b]=d[b];return e||a(l)}},kiQV:function(t){t.exports=JSON.parse('{"dependencies":{"@angular/animations":"9.0.6","@angular/cdk":"9.1.2","@angular/common":"9.0.6","@angular/compiler":"9.0.6","@angular/core":"9.0.6","@angular/elements":"9.0.6","@angular/flex-layout":"9.0.0-beta.29","@angular/forms":"9.0.6","@angular/material":"9.1.2","@angular/platform-browser":"9.0.6","@angular/platform-browser-dynamic":"9.0.6","@angular/router":"9.0.6","concat":"1.0.3","core-js":"3.6.4","document-register-element":"1.14.3","elements-zone-strategy":"9.0.0","fs-extra":"8.1.0","jquery":"3.4.1","ngx-linkifyjs":"1.3.0","openvidu-browser":"2.12.0","rxjs":"6.5.4","tslib":"1.11.1","wolfy87-eventemitter":"5.2.9","zone.js":"0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"0.900.6","@angular-devkit/build-ng-packagr":"0.900.6","@angular/cli":"9.0.6","@angular/compiler-cli":"9.0.6","@angular/language-service":"9.0.6","@types/jasmine":"3.5.9","@types/jasminewd2":"2.0.8","@types/jquery":"3.3.33","@types/node":"13.9.1","@webcomponents/webcomponentsjs":"2.4.2","codelyzer":"5.2.1","jasmine-core":"3.5.0","jasmine-spec-reporter":"4.2.1","karma":"4.4.1","karma-chrome-launcher":"3.1.0","karma-coverage-istanbul-reporter":"2.1.1","karma-jasmine":"3.1.1","karma-jasmine-html-reporter":"1.5.2","ng-packagr":"9.0.3","protractor":"5.4.3","ts-node":"8.6.2","tslint":"6.1.0","typedoc":"0.17.0","typescript":"3.7.5"},"name":"openvidu-call","private":true,"scripts":{"build":"./node_modules/@angular/cli/bin/ng build","build:openvidu-angular":"node openvidu-angular-build.js && ./node_modules/@angular/cli/bin/ng build openvidu-angular --prod","build:openvidu-webcomponent":"node -e \\"require(\'./openvidu-webcomponent-build.js\').prepareWebcomponent()\\" && ./node_modules/@angular/cli/bin/ng build --prod --output-hashing none && node -e \\"require(\'./openvidu-webcomponent-build.js\').buildWebcomponent()\\"","e2e":"ng e2e","lint":"ng lint","ng":"ng","pack:openvidu-angular":"cd dist/openvidu-angular && npm pack","start":"ng serve","test":"ng test"},"version":"2.12.0"}')},ksJj:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n){var i=t.call(this,!0,e,"sessionDisconnected")||this;return i.reason=n,i}return r(e,t),e.prototype.callDefaultBehavior=function(){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var t=this.target;for(var e in t.remoteConnections)t.remoteConnections[e].stream&&(t.remoteConnections[e].stream.disposeWebRtcPeer(),t.remoteConnections[e].stream.disposeMediaStream(),t.remoteConnections[e].stream.streamManager&&t.remoteConnections[e].stream.streamManager.removeAllVideos(),delete t.remoteStreamsCreated[t.remoteConnections[e].stream.streamId],t.remoteConnections[e].dispose()),delete t.remoteConnections[e]},e}(n("hzOQ").Event);e.SessionDisconnectedEvent=o},mgp7:function(t,e,n){t.exports=n("/u9M").default},oIG1:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i){var r=t.call(this,!1,n,i)||this;return r.element=e,r}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.VideoElementEvent=o},pLL0:function(t,e){e.pack=function(t){throw new TypeError("Not yet implemented")},e.unpack=function(t){throw new TypeError("Not yet implemented")}},qa4Q:function(t,e){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var i=e||0;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}},rUL0:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i,r,o){var a=t.call(this,!1,e,n)||this;return a.id=i,r!==i&&(a.name=r),a.reason=o,a}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.RecordingEvent=o},ryRr:function(t,e,n){"use strict";e.__esModule=!0;var i=n("DPKQ"),r=function(){function t(t,e){this.session=t,this.disposed=!1;var n="'Connection' created ";e?(n+="(remote) with 'connectionId' ["+e.id+"]",this.options=e,this.connectionId=e.id,this.creationTime=e.createdAt,e.metadata&&(this.data=e.metadata),e.streams&&this.initRemoteStreams(e.streams)):n+="(local)",console.info(n)}return t.prototype.sendIceCandidate=function(t){console.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,t),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:t.candidate,sdpMid:t.sdpMid,sdpMLineIndex:t.sdpMLineIndex},(function(t,e){t&&console.error("Error sending ICE candidate: "+JSON.stringify(t))}))},t.prototype.initRemoteStreams=function(t){var e=this;t.forEach((function(t){var n={id:t.id,createdAt:t.createdAt,connection:e,hasAudio:t.hasAudio,hasVideo:t.hasVideo,audioActive:t.audioActive,videoActive:t.videoActive,typeOfVideo:t.typeOfVideo,frameRate:t.frameRate,videoDimensions:t.videoDimensions?JSON.parse(t.videoDimensions):void 0,filter:t.filter?t.filter:void 0},r=new i.Stream(e.session,n);e.addStream(r)})),console.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},t.prototype.addStream=function(t){t.connection=this,this.stream=t},t.prototype.removeStream=function(t){delete this.stream},t.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},t}();e.Connection=r},suHS:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});e.__esModule=!0;var o=function(t){function e(e,n,i,r){var o=t.call(this,!1,e,"signal")||this;return n&&(o.type="signal:"+n),o.data=i,o.from=r,o}return r(e,t),e.prototype.callDefaultBehavior=function(){},e}(n("hzOQ").Event);e.SignalEvent=o},"t/6/":function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var i=n("FlKs"),r=n("dlaP"),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v","\xa0","\u1680","\u180e"],l=[],d=function(t){return new i.CharacterState(t)},p=d(),h=d(r.NUM),f=d(r.DOMAIN),m=d(),g=d(r.WS);p.on("@",d(r.AT)).on(".",d(r.DOT)).on("+",d(r.PLUS)).on("#",d(r.POUND)).on("?",d(r.QUERY)).on("/",d(r.SLASH)).on("_",d(r.UNDERSCORE)).on(":",d(r.COLON)).on("{",d(r.OPENBRACE)).on("[",d(r.OPENBRACKET)).on("<",d(r.OPENANGLEBRACKET)).on("(",d(r.OPENPAREN)).on("}",d(r.CLOSEBRACE)).on("]",d(r.CLOSEBRACKET)).on(">",d(r.CLOSEANGLEBRACKET)).on(")",d(r.CLOSEPAREN)).on("&",d(r.AMPERSAND)).on([",",";","!",'"',"'"],d(r.PUNCTUATION)),p.on("\n",d(r.NL)).on(u,g),g.on(u,g);for(var v=0;v<a.length;v++){var y=(0,i.stateify)(a[v],p,r.TLD,r.DOMAIN);l.push.apply(l,y)}var b=(0,i.stateify)("file",p,r.DOMAIN,r.DOMAIN),_=(0,i.stateify)("ftp",p,r.DOMAIN,r.DOMAIN),w=(0,i.stateify)("http",p,r.DOMAIN,r.DOMAIN),S=(0,i.stateify)("mailto",p,r.DOMAIN,r.DOMAIN);l.push.apply(l,b),l.push.apply(l,_),l.push.apply(l,w),l.push.apply(l,S);var C=b.pop(),E=_.pop(),x=w.pop(),k=S.pop(),O=d(r.DOMAIN),T=d(r.PROTOCOL),I=d(r.MAILTO);E.on("s",O).on(":",T),x.on("s",O).on(":",T),l.push(O),C.on(":",T),O.on(":",T),k.on(":",I);var A=(0,i.stateify)("localhost",p,r.LOCALHOST,r.DOMAIN);l.push.apply(l,A),p.on(s,h),h.on("-",m).on(s,h).on(c,f),f.on("-",m).on(c,f);for(var P=0;P<l.length;P++)l[P].on("-",m).on(c,f);m.on("-",m).on(s,f).on(c,f),p.defaultTransition=d(r.SYM);var M=p;e.State=i.CharacterState,e.TOKENS=o,e.run=function(t){for(var e=t.replace(/[A-Z]/g,(function(t){return t.toLowerCase()})),n=t.length,i=[],r=0;r<n;){for(var o=p,a=null,s=0,c=null,u=-1;r<n&&(a=o.next(e[r]));)(o=a).accepts()?(u=0,c=o):u>=0&&u++,s++,r++;if(!(u<0)){r-=u,s-=u;var l=c.emit();i.push(new l(t.substr(r-s,s)))}}return i},e.start=M},tInm:function(t,e,n){"use strict";e.__esModule=!0;var i=n("Yn0Z"),r=n("bDgZ"),o=function(){function t(t){this.stream=t,this.chunks=[],this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=i.LocalRecorderState.READY}return t.prototype.record=function(t){var e=this;return new Promise((function(n,r){try{if("undefined"==typeof MediaRecorder)throw console.error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your browser. See compatibility in https://caniuse.com/#search=MediaRecorder");if(e.state!==i.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+e.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");console.log("Starting local recording of stream '"+e.stream.streamId+"' of connection '"+e.connectionId+"'");var o={};"function"==typeof MediaRecorder.isTypeSupported?t?(MediaRecorder.isTypeSupported(t)||r(new Error('mimeType "'+t+'" is not supported')),o={mimeType:t}):console.log("No mimeType parameter provided. Using default codecs"):console.warn("MediaRecorder#isTypeSupported is not supported. Using default codecs"),e.mediaRecorder=new MediaRecorder(e.stream.getMediaStream(),o),e.mediaRecorder.start(10)}catch(a){r(a)}e.mediaRecorder.ondataavailable=function(t){e.chunks.push(t.data)},e.mediaRecorder.onerror=function(t){console.error("MediaRecorder error: ",t)},e.mediaRecorder.onstart=function(){console.log("MediaRecorder started (state="+e.mediaRecorder.state+")")},e.mediaRecorder.onstop=function(){e.onStopDefault()},e.mediaRecorder.onpause=function(){console.log("MediaRecorder paused (state="+e.mediaRecorder.state+")")},e.mediaRecorder.onresume=function(){console.log("MediaRecorder resumed (state="+e.mediaRecorder.state+")")},e.mediaRecorder.onwarning=function(t){console.log("MediaRecorder warning: "+t)},e.state=i.LocalRecorderState.RECORDING,n()}))},t.prototype.stop=function(){var t=this;return new Promise((function(e,n){try{if(t.state===i.LocalRecorderState.READY||t.state===i.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+t.state+"'). Call 'LocalRecorder.start()' before");t.mediaRecorder.onstop=function(){t.onStopDefault(),e()},t.mediaRecorder.stop()}catch(r){n(r)}}))},t.prototype.pause=function(){var t=this;return new Promise((function(e,n){try{t.state!==i.LocalRecorderState.RECORDING&&n(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+t.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")),t.mediaRecorder.pause(),t.state=i.LocalRecorderState.PAUSED}catch(r){n(r)}}))},t.prototype.resume=function(){var t=this;return new Promise((function(e,n){try{if(t.state!==i.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+t.state+"'). Call 'LocalRecorder.pause()' before");t.mediaRecorder.resume(),t.state=i.LocalRecorderState.RECORDING}catch(r){n(r)}}))},t.prototype.preview=function(t){if(this.state!==i.LocalRecorderState.FINISHED)throw Error("'LocalRecord.preview()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");if(this.videoPreview=document.createElement("video"),this.videoPreview.id=this.id,this.videoPreview.autoplay=!0,"Safari"===r.name&&this.videoPreview.setAttribute("playsinline","true"),"string"==typeof t){var e=document.getElementById(t);e&&(this.videoPreview=e.appendChild(this.videoPreview))}else this.videoPreview=t.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},t.prototype.clean=function(){var t=this,e=function(){delete t.blob,t.chunks=[],delete t.mediaRecorder,t.state=i.LocalRecorderState.READY};this.state===i.LocalRecorderState.RECORDING||this.state===i.LocalRecorderState.PAUSED?this.stop().then((function(){return e()})).catch((function(){return e()})):e()},t.prototype.download=function(){if(this.state!==i.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var t=document.createElement("a");t.style.display="none",document.body.appendChild(t);var e=window.URL.createObjectURL(this.blob);t.href=e,t.download=this.id+".webm",t.click(),window.URL.revokeObjectURL(e),document.body.removeChild(t)},t.prototype.getBlob=function(){if(this.state!==i.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},t.prototype.uploadAsBinary=function(t,e){var n=this;return new Promise((function(r,o){if(n.state!==i.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var a=new XMLHttpRequest;if(a.open("POST",t,!0),"object"==typeof e)for(var s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];a.setRequestHeader(u,e[u])}a.onreadystatechange=function(){4===a.readyState&&("2"===a.status.toString().charAt(0)?r(a.responseText):o(a.status))},a.send(n.blob)}}))},t.prototype.uploadAsMultipartfile=function(t,e){var n=this;return new Promise((function(r,o){if(n.state!==i.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var a=new XMLHttpRequest;if(a.open("POST",t,!0),"object"==typeof e)for(var s=0,c=Object.keys(e);s<c.length;s++){var u=c[s];a.setRequestHeader(u,e[u])}var l=new FormData;l.append("file",n.blob,n.id+".webm"),a.onreadystatechange=function(){4===a.readyState&&("2"===a.status.toString().charAt(0)?r(a.responseText):o(a.status))},a.send(l)}}))},t.prototype.onStopDefault=function(){console.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:"video/webm"}),this.chunks=[],this.videoPreviewSrc=window.URL.createObjectURL(this.blob),this.state=i.LocalRecorderState.FINISHED},t}();e.LocalRecorder=o},tMSY:function(t,e){function n(){}t.exports=n,n.mixin=function(t){var e=t.prototype||t;e.isWildEmitter=!0,e.on=function(t,e,n){this.callbacks=this.callbacks||{};var i=3===arguments.length,r=i?arguments[1]:void 0,o=i?arguments[2]:arguments[1];return o._groupName=r,(this.callbacks[t]=this.callbacks[t]||[]).push(o),this},e.once=function(t,e,n){var i=this,r=3===arguments.length,o=r?arguments[1]:void 0,a=r?arguments[2]:arguments[1];function s(){i.off(t,s),a.apply(this,arguments)}return this.on(t,o,s),this},e.releaseGroup=function(t){var e,n,i,r;for(e in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,i=(r=this.callbacks[e]).length;n<i;n++)r[n]._groupName===t&&(r.splice(n,1),n--,i--);return this},e.off=function(t,e){this.callbacks=this.callbacks||{};var n,i=this.callbacks[t];return i?1===arguments.length?(delete this.callbacks[t],this):(-1!==(n=i.indexOf(e))&&(i.splice(n,1),0===i.length&&delete this.callbacks[t]),this):this},e.emit=function(t){this.callbacks=this.callbacks||{};var e,n,i,r=[].slice.call(arguments,1),o=this.callbacks[t],a=this.getWildcardCallbacks(t);if(o)for(e=0,n=(i=o.slice()).length;e<n&&i[e];++e)i[e].apply(this,r);if(a)for(n=a.length,e=0,n=(i=a.slice()).length;e<n&&i[e];++e)i[e].apply(this,[t].concat(r));return this},e.getWildcardCallbacks=function(t){this.callbacks=this.callbacks||{};var e,n,i=[];for(e in this.callbacks)n=e.split("*"),("*"===e||2===n.length&&t.slice(0,n[0].length)===n[0])&&(i=i.concat(this.callbacks[e]));return i}},n.mixin(n)},ttXH:function(t,e,n){var i,r=n("tMSY");"undefined"!=typeof window&&(i=window.AudioContext||window.webkitAudioContext);var o=null;t.exports=function(t,e){var n=new r;if(!i)return n;var a,s,c,u=(e=e||{}).smoothing||.1,l=e.interval||50,d=e.threshold,p=e.play,h=e.history||10,f=!0;o=e.audioContext||o||new i,(c=o.createAnalyser()).fftSize=512,c.smoothingTimeConstant=u,s=new Float32Array(c.frequencyBinCount),t.jquery&&(t=t[0]),t instanceof HTMLAudioElement||t instanceof HTMLVideoElement?(a=o.createMediaElementSource(t),void 0===p&&(p=!0),d=d||-50):(a=o.createMediaStreamSource(t),d=d||-50),a.connect(c),p&&c.connect(o.destination),n.speaking=!1,n.suspend=function(){return o.suspend()},n.resume=function(){return o.resume()},Object.defineProperty(n,"state",{get:function(){return o.state}}),o.onstatechange=function(){n.emit("state_change",o.state)},n.setThreshold=function(t){d=t},n.setInterval=function(t){l=t},n.stop=function(){f=!1,n.emit("volume_change",-100,d),n.speaking&&(n.speaking=!1,n.emit("stopped_speaking")),c.disconnect(),a.disconnect()},n.speakingHistory=[];for(var m=0;m<h;m++)n.speakingHistory.push(0);var g=function(){setTimeout((function(){if(f){var t=function(t,e){var n=-1/0;t.getFloatFrequencyData(e);for(var i=4,r=e.length;i<r;i++)e[i]>n&&e[i]<0&&(n=e[i]);return n}(c,s);n.emit("volume_change",t,d);var e=0;if(t>d&&!n.speaking){for(var i=n.speakingHistory.length-3;i<n.speakingHistory.length;i++)e+=n.speakingHistory[i];e>=2&&(n.speaking=!0,n.emit("speaking"))}else if(t<d&&n.speaking){for(i=0;i<n.speakingHistory.length;i++)e+=n.speakingHistory[i];0==e&&(n.speaking=!1,n.emit("stopped_speaking"))}n.speakingHistory.shift(),n.speakingHistory.push(0+(t>d)),g()}}),l)};return g(),n}},"txJ/":function(t,e){var n=Object.create||function(t){var e=function(){};return e.prototype=t,new e},i=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return n},r=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var a,s=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),a=0===c.x}catch(w){a=!1}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function l(t,e,n){if(e)t.call(n);else for(var i=t.length,r=_(t,i),o=0;o<i;++o)r[o].call(n)}function d(t,e,n,i){if(e)t.call(n,i);else for(var r=t.length,o=_(t,r),a=0;a<r;++a)o[a].call(n,i)}function p(t,e,n,i,r){if(e)t.call(n,i,r);else for(var o=t.length,a=_(t,o),s=0;s<o;++s)a[s].call(n,i,r)}function h(t,e,n,i,r,o){if(e)t.call(n,i,r,o);else for(var a=t.length,s=_(t,a),c=0;c<a;++c)s[c].call(n,i,r,o)}function f(t,e,n,i){if(e)t.apply(n,i);else for(var r=t.length,o=_(t,r),a=0;a<r;++a)o[a].apply(n,i)}function m(t,e,i,r){var o,a,s;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),a=t._events),s=a[e]):(a=t._events=n(null),t._eventsCount=0),s){if("function"==typeof s?s=a[e]=r?[i,s]:[s,i]:r?s.unshift(i):s.push(i),!s.warned&&(o=u(t))&&o>0&&s.length>o){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else s=a[e]=i,++t._eventsCount;return t}function g(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function v(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=r.call(g,i);return o.listener=n,i.wrapFn=o,o}function y(t,e,n){var i=t._events;if(!i)return[];var r=i[e];return r?"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):_(r,r.length):[]}function b(t){var e=this._events;if(e){var n=e[t];if("function"==typeof n)return 1;if(n)return n.length}return 0}function _(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}a?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');s=t}}):o.defaultMaxListeners=s,o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){var e,n,i,r,o,a,s="error"===t;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(arguments.length>1&&(e=arguments[1]),e instanceof Error)throw e;var c=new Error('Unhandled "error" event. ('+e+")");throw c.context=e,c}if(!(n=a[t]))return!1;var u="function"==typeof n;switch(i=arguments.length){case 1:l(n,u,this);break;case 2:d(n,u,this,arguments[1]);break;case 3:p(n,u,this,arguments[1],arguments[2]);break;case 4:h(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(r=new Array(i-1),o=1;o<i;o++)r[o-1]=arguments[o];f(n,u,this,r)}return!0},o.prototype.on=o.prototype.addListener=function(t,e){return m(this,t,e,!1)},o.prototype.prependListener=function(t,e){return m(this,t,e,!0)},o.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,v(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,v(this,t,e)),this},o.prototype.removeListener=function(t,e){var i,r,o,a,s;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(i=r[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=n(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(o=-1,a=i.length-1;a>=0;a--)if(i[a]===e||i[a].listener===e){s=i[a].listener,o=a;break}if(o<0)return this;0===o?i.shift():function(t,e){for(var n=e,i=n+1,r=t.length;i<r;n+=1,i+=1)t[n]=t[i];t.pop()}(i,o),1===i.length&&(r[t]=i[0]),r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.removeAllListeners=function(t){var e,r,o;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=n(null):delete r[t]),this;if(0===arguments.length){var a,s=i(r);for(o=0;o<s.length;++o)"removeListener"!==(a=s[o])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)for(o=e.length-1;o>=0;o--)this.removeListener(t,e[o]);return this},o.prototype.listeners=function(t){return y(this,t,!0)},o.prototype.rawListeners=function(t){return y(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},o.prototype.listenerCount=b,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},vqFl:function(t){t.exports=JSON.parse('{"_args":[["openvidu-browser@2.12.0","/opt/front/openvidu-call"]],"_from":"openvidu-browser@2.12.0","_id":"openvidu-browser@2.12.0","_inBundle":false,"_integrity":"sha512-dv3qk61uztJZc9awNwMhZ+n3EXJufCyTUOmJo4PxHZX5A/lBw2lASMOm/BrJD0aKOQa5WR8Bzfrbaww3vfikWA==","_location":"/openvidu-browser","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"openvidu-browser@2.12.0","name":"openvidu-browser","escapedName":"openvidu-browser","rawSpec":"2.12.0","saveSpec":null,"fetchSpec":"2.12.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.12.0.tgz","_spec":"2.12.0","_where":"/opt/front/openvidu-call","author":{"name":"OpenVidu"},"bugs":{"url":"https://github.com/OpenVidu/openvidu/issues"},"dependencies":{"@types/node":"13.7.1","@types/platform":"1.3.2","freeice":"2.2.2","hark":"1.2.3","platform":"1.3.5","uuid":"3.4.0","wolfy87-eventemitter":"5.2.9"},"description":"OpenVidu Browser","devDependencies":{"browserify":"16.5.0","grunt":"1.0.4","grunt-cli":"1.3.2","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"1.0.0","grunt-contrib-uglify":"4.0.1","grunt-contrib-watch":"1.1.0","grunt-postcss":"0.9.0","grunt-string-replace":"1.3.1","grunt-ts":"6.0.0-beta.22","tsify":"4.0.1","tslint":"6.0.0","typedoc":"0.16.10","typescript":"3.7.5","uglify-js":"3.8.0"},"homepage":"https://github.com/OpenVidu/openvidu#readme","license":"Apache-2.0","main":"lib/index.js","name":"openvidu-browser","repository":{"type":"git","url":"git://github.com/OpenVidu/openvidu.git"},"scripts":{"browserify":"VERSION=${VERSION:-dev}; cd src && ../node_modules/browserify/bin/cmd.js Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/openvidu-browser-$VERSION.js -v","browserify-prod":"VERSION=${VERSION:-dev}; cd src && ../node_modules/browserify/bin/cmd.js --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | ../node_modules/uglify-js/bin/uglifyjs --source-map content=inline --output ../static/js/openvidu-browser-$VERSION.min.js","build":"cd src/OpenVidu && ./../../node_modules/typescript/bin/tsc && cd ../.. && ./node_modules/typescript/bin/tsc --declaration src/index.ts --outDir ./lib --sourceMap --lib dom,es5,es2015.promise,scripthost","docs":"./node_modules/typedoc/bin/typedoc --options ./config/typedoc.js --out ./docs ./src && rm -rf ../../openvidu.io/api/openvidu-browser/* && cp -R ./docs/. ../../openvidu.io/api/openvidu-browser"},"types":"lib/index.d.ts","version":"2.12.0"}')},vqGb:function(t,e,n){"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var i=n("RvMX"),r=n("JUw6"),o=n("dlaP");function a(t){return t instanceof o.DOMAIN||t instanceof o.TLD}var s=(0,i.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};var c=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"email",isLink:!0}),u=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"text"}),d=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"nl"}),p=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,i=this.v,r=[],s=0;i[s]instanceof o.PROTOCOL;)e=!0,r.push(i[s].toString().toLowerCase()),s++;for(;i[s]instanceof o.SLASH;)n=!0,r.push(i[s].toString()),s++;for(;a(i[s]);)r.push(i[s].toString().toLowerCase()),s++;for(;s<i.length;s++)r.push(i[s].toString());return r=r.join(""),e||n||(r=t+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});e.Base=s,e.MAILTOEMAIL=c,e.EMAIL=u,e.NL=d,e.TEXT=l,e.URL=p},zUnb:function(t,e,n){"use strict";n.r(e);var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}function u(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var l=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function d(t){return null!==t&&"object"==typeof t}function p(t){return"function"==typeof t}var h=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),f=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,i=this._unsubscribe,r=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var o=0;o<n.length;++o)n[o].remove(this);if(p(i))try{i.call(this)}catch(c){e=c instanceof h?m(c.errors):[c]}if(l(r)){o=-1;for(var a=r.length;++o<a;){var s=r[o];if(d(s))try{s.unsubscribe()}catch(c){e=e||[],c instanceof h?e=e.concat(m(c.errors)):e.push(c)}}}if(e)throw new h(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var i=n;(n=new t)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function m(t){return t.reduce((function(t,e){return t.concat(e instanceof h?e.errors:e)}),[])}var g=!1,v={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){g=t},get useDeprecatedSynchronousErrorHandling(){return g}};function y(t){setTimeout((function(){throw t}),0)}var b={closed:!0,next:function(t){},error:function(t){if(v.useDeprecatedSynchronousErrorHandling)throw t;y(t)},complete:function(){}},_=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),w=function(t){function e(n,i,r){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=b;break;case 1:if(!n){o.destination=b;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new S(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new S(o,n,i,r)}return o}return r(e,t),e.prototype[_]=function(){return this},e.create=function(t,n,i){var r=new e(t,n,i);return r.syncErrorThrowable=!1,r},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(f),S=function(t){function e(e,n,i,r){var o,a=t.call(this)||this;a._parentSubscriber=e;var s=a;return p(n)?o=n:n&&(o=n.next,i=n.error,r=n.complete,n!==b&&(p((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=o,a._error=i,a._complete=r,a}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):y(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;y(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),v.useDeprecatedSynchronousErrorHandling)throw n;y(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(y(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(w),C=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function E(){}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return k(t)}function k(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:E}var O=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var i=this.operator,r=function(t,e,n){if(t){if(t instanceof w)return t;if(t[_])return t[_]()}return t||e||n?new w(t,e,n):new w(b)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||v.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),v.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof w?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=T(e))((function(e,i){var r;r=n.subscribe((function(e){try{t(e)}catch(n){i(n),r&&r.unsubscribe()}}),i,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[C]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:k(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=T(t))((function(t,n){var i;e.subscribe((function(t){return i=t}),(function(t){return n(t)}),(function(){return t(i)}))}))},t.create=function(e){return new t(e)},t}();function T(t){if(t||(t=v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var I=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),A=function(t){function e(e,n){var i=t.call(this)||this;return i.subject=e,i.subscriber=n,i.closed=!1,i}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(f),P=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r(e,t),e}(w),M=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r(e,t),e.prototype[_]=function(){return new P(this)},e.prototype.lift=function(t){var e=new R(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new I;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].next(t)},e.prototype.error=function(t){if(this.closed)throw new I;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new I;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new I;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new I;return this.hasError?(t.error(this.thrownError),f.EMPTY):this.isStopped?(t.complete(),f.EMPTY):(this.observers.push(t),new A(this,t))},e.prototype.asObservable=function(){var t=new O;return t.source=this,t},e.create=function(t,e){return new R(t,e)},e}(O),R=function(t){function e(e,n){var i=t.call(this)||this;return i.destination=e,i.source=n,i}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):f.EMPTY},e}(M);function N(t){return t&&"function"==typeof t.schedule}var D=function(t){function e(e,n,i){var r=t.call(this)||this;return r.parent=e,r.outerValue=n,r.outerIndex=i,r.index=0,r}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(w),L=function(t){return function(e){for(var n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}};function j(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var V=j(),F=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function B(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var U=function(t){if(t&&"function"==typeof t[C])return i=t,function(t){var e=i[C]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(F(t))return L(t);if(B(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,y),t};if(t&&"function"==typeof t[V])return e=t,function(t){for(var n=e[V]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,i,r=d(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+r+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function z(t,e,n,i,r){if(void 0===r&&(r=new D(t,n,i)),!r.closed)return e instanceof O?e.subscribe(r):U(e)(r)}var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(w);function W(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new G(t,e))}}var G=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new q(t,this.project,this.thisArg))},t}(),q=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return r(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(w);function Z(t,e){return new O((function(n){var i=new f,r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}function Y(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[C]}(t))return function(t,e){return new O((function(n){var i=new f;return i.add(e.schedule((function(){var r=t[C]();i.add(r.subscribe({next:function(t){i.add(e.schedule((function(){return n.next(t)})))},error:function(t){i.add(e.schedule((function(){return n.error(t)})))},complete:function(){i.add(e.schedule((function(){return n.complete()})))}}))}))),i}))}(t,e);if(B(t))return function(t,e){return new O((function(n){var i=new f;return i.add(e.schedule((function(){return t.then((function(t){i.add(e.schedule((function(){n.next(t),i.add(e.schedule((function(){return n.complete()})))})))}),(function(t){i.add(e.schedule((function(){return n.error(t)})))}))}))),i}))}(t,e);if(F(t))return Z(t,e);if(function(t){return t&&"function"==typeof t[V]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new O((function(n){var i,r=new f;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(e.schedule((function(){i=t[V](),r.add(e.schedule((function(){if(!n.closed){var t,e;try{var r=i.next();t=r.value,e=r.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),r}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof O?t:new O(U(t))}function Q(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(i){return i.pipe(Q((function(n,i){return Y(t(n,i)).pipe(W((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new K(t,n))})}var K=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new X(t,this.project,this.concurrent))},t}(),X=function(t){function e(e,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=t.call(this,e)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return r(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=new D(this,e,n),r=this.destination;r.add(i);var o=z(this,t,void 0,void 0,i);o!==i&&r.add(o)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(H);function J(t){return t}function tt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Q(J,t)}function et(t,e){return e?Z(t,e):new O(L(t))}function nt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,i=null,r=t[t.length-1];return N(r)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof r&&(n=t.pop()),null===i&&1===t.length&&t[0]instanceof O?t[0]:tt(n)(et(t,i))}function it(){return function(t){return t.lift(new rt(t))}}var rt=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new ot(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),ot=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(w),at=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new f).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed&&(this._connection=null,t=f.EMPTY)),t},e.prototype.refCount=function(){return it()(this)},e}(O),st=function(){var t=at.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),ct=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(P);function ut(){return new M}function lt(){return function(t){return it()((e=ut,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,st);return i.source=t,i.subjectFactory=n,i})(t));var e}}function dt(t){return{toString:t}.toString()}var pt="__parameters__";function ht(t,e,n){return dt((function(){var i=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var i=t.apply(void 0,c(e));for(var r in i)this[r]=i[r]}}}(e);function r(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=new((t=r).bind.apply(t,c([void 0],e)));return a.annotation=o,a;function a(t,e,n){for(var i=t.hasOwnProperty(pt)?t[pt]:Object.defineProperty(t,pt,{value:[]})[pt];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r}))}var ft=ht("Inject",(function(t){return{token:t}})),mt=ht("Optional"),gt=ht("Self"),vt=ht("SkipSelf"),yt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function bt(t){for(var e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function _t(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function wt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function St(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function Ct(t){return Et(t,t[kt])||Et(t,t[It])}function Et(t,e){return e&&e.token===t?e:null}function xt(t){return t&&(t.hasOwnProperty(Ot)||t.hasOwnProperty(At))?t[Ot]:null}var kt=bt({"\u0275prov":bt}),Ot=bt({"\u0275inj":bt}),Tt=bt({"\u0275provFallback":bt}),It=bt({ngInjectableDef:bt}),At=bt({ngInjectorDef:bt});function Pt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Mt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var Rt=bt({__forward_ref__:bt});function Nt(t){return t.__forward_ref__=Nt,t.toString=function(){return Pt(this())},t}function Dt(t){return Lt(t)?t():t}function Lt(t){return"function"==typeof t&&t.hasOwnProperty(Rt)&&t.__forward_ref__===Nt}var jt,Vt="undefined"!=typeof globalThis&&globalThis,Ft="undefined"!=typeof window&&window,Bt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ut="undefined"!=typeof global&&global,zt=Vt||Ut||Ft||Bt,Ht=bt({"\u0275cmp":bt}),Wt=bt({"\u0275dir":bt}),Gt=bt({"\u0275pipe":bt}),qt=bt({"\u0275mod":bt}),Zt=bt({"\u0275loc":bt}),Yt=bt({"\u0275fac":bt}),Qt=bt({__NG_ELEMENT_ID__:bt}),Kt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=wt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Xt=new Kt("INJECTOR",-1),Jt={},$t=/\n/gm,te=bt({provide:String,useValue:bt}),ee=void 0;function ne(t){var e=ee;return ee=t,e}function ie(t){var e=jt;return jt=t,e}function re(t,e){if(void 0===e&&(e=yt.Default),void 0===ee)throw new Error("inject() must be called from an injection context");return null===ee?se(t,void 0,e):ee.get(t,e&yt.Optional?null:void 0,e)}function oe(t,e){return void 0===e&&(e=yt.Default),(jt||re)(Dt(t),e)}var ae=oe;function se(t,e,n){var i=Ct(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&yt.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND ["+Pt(t)+"]")}function ce(t){for(var e=[],n=0;n<t.length;n++){var i=Dt(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=yt.Default,a=0;a<i.length;a++){var s=i[a];s instanceof mt||"Optional"===s.ngMetadataName||s===mt?o|=yt.Optional:s instanceof vt||"SkipSelf"===s.ngMetadataName||s===vt?o|=yt.SkipSelf:s instanceof gt||"Self"===s.ngMetadataName||s===gt?o|=yt.Self:r=s instanceof ft||s===ft?s.token:s}e.push(oe(r,o))}else e.push(oe(i))}return e}var ue=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Jt),e===Jt){var n=new Error("NullInjectorError: No provider for "+Pt(t)+"!");throw n.name="NullInjectorError",n}return e},t}();var le=function(){return function(){}}(),de=function(){return function(){}}();function pe(t,e){t.forEach((function(t){return Array.isArray(t)?pe(t,e):e(t)}))}function he(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function fe(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function me(t,e){for(var n=[],i=0;i<t;i++)n.push(e);return n}function ge(t,e,n){var i=ye(t,e);return i>=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function ve(t,e){var n=ye(t,e);if(n>=0)return t[1|n]}function ye(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var o=i+(r-i>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:i=o+1}return~(r<<1)}(t,e)}var be=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),_e=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),we={},Se=[],Ce=0;function Ee(t){return dt((function(){var e=t.type,n=e.prototype,i={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.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:t.changeDetection===be.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Se,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||_e.Emulated,id:"c",styles:t.styles||Se,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,a=t.features,s=t.pipes;return r.id+=Ce++,r.inputs=Ie(t.inputs,i),r.outputs=Ie(t.outputs),a&&a.forEach((function(t){return t(r)})),r.directiveDefs=o?function(){return("function"==typeof o?o():o).map(xe)}:null,r.pipeDefs=s?function(){return("function"==typeof s?s():s).map(ke)}:null,r}))}function xe(t){return Me(t)||function(t){return t[Wt]||null}(t)}function ke(t){return function(t){return t[Gt]||null}(t)}var Oe={};function Te(t){var e={type:t.type,bootstrap:t.bootstrap||Se,declarations:t.declarations||Se,imports:t.imports||Se,exports:t.exports||Se,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&dt((function(){Oe[t.id]=t.type})),e}function Ie(t,e){if(null==t)return we;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}var Ae=Ee;function Pe(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Me(t){return t[Ht]||null}function Re(t,e){return t.hasOwnProperty(Yt)?t[Yt]:null}function Ne(t,e){var n=t[qt]||null;if(!n&&!0===e)throw new Error("Type "+Pt(t)+" does not have '\u0275mod' property.");return n}function De(t){return Array.isArray(t)&&"object"==typeof t[1]}function Le(t){return Array.isArray(t)&&!0===t[1]}function je(t){return 0!=(8&t.flags)}function Ve(t){return 2==(2&t.flags)}function Fe(t){return 1==(1&t.flags)}function Be(t){return null!==t.template}function Ue(t){return 0!=(512&t[2])}var ze={lFrame:un(null),bindingsEnabled:!0,checkNoChangesMode:!1};function He(){return ze.bindingsEnabled}function We(){return ze.lFrame.lView}function Ge(){return ze.lFrame.tView}function qe(t){ze.lFrame.contextLView=t}function Ze(){return ze.lFrame.previousOrParentTNode}function Ye(t,e){ze.lFrame.previousOrParentTNode=t,ze.lFrame.isParent=e}function Qe(){return ze.lFrame.isParent}function Ke(){ze.lFrame.isParent=!1}function Xe(){return ze.checkNoChangesMode}function Je(t){ze.checkNoChangesMode=t}function $e(){var t=ze.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function tn(){return ze.lFrame.bindingIndex++}function en(t){var e=ze.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function nn(t,e){var n=ze.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function rn(){return ze.lFrame.currentQueryIndex}function on(t){ze.lFrame.currentQueryIndex=t}function an(t,e){var n=cn();ze.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function sn(t,e){var n=cn(),i=t[1];ze.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function cn(){var t=ze.lFrame,e=null===t?null:t.child;return null===e?un(t):e}function un(t){var e={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:t,child:null};return null!==t&&(t.child=e),e}function ln(){var t=ze.lFrame;return ze.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var dn=ln;function pn(){var t=ln();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function hn(){return ze.lFrame.selectedIndex}function fn(t){ze.lFrame.selectedIndex=t}function mn(){ze.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function gn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n<i;n++){var r=t.data[n];r.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,r.afterContentInit),r.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,r.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r.afterContentChecked)),r.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,r.afterViewInit),r.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,r.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,r.afterViewChecked)),null!=r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,r.onDestroy)}}function vn(t,e,n){_n(t,e,3,n)}function yn(t,e,n,i){(3&t[2])===n&&_n(t,e,n,i)}function bn(t,e){var n=t[2];(3&n)===e&&(n&=1023,t[2]=n+=1)}function _n(t,e,n,i){for(var r=null!=i?i:-1,o=0,a=void 0!==i?65535&t[18]:0;a<e.length;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<r||-1==r)&&(wn(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function wn(t,e,n,i){var r=n[i]<0,o=n[i+1],a=t[r?-n[i]:n[i]];r?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,o.call(a)):o.call(a)}var Sn=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}(),Cn=void 0;function En(){return void 0!==Cn?Cn:"undefined"!=typeof document?document:void 0}function xn(t){return!!t.listen}var kn={createRenderer:function(t,e){return En()}};function On(t,e,n){for(var i=xn(t),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],c=n[r++];i?t.setAttribute(e,s,c,a):e.setAttributeNS(a,s,c)}else c=n[++r],In(s=o)?i&&t.setProperty(e,s,c):i?t.setAttribute(e,s,c):e.setAttribute(s,c),r++}return r}function Tn(t){return 3===t||4===t||6===t}function In(t){return 64===t.charCodeAt(0)}function An(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else for(var n=-1,i=0;i<e.length;i++){var r=e[i];"number"==typeof r?n=r:0===n||Pn(t,n,r,null,-1===n||2===n?e[++i]:null)}return t}function Pn(t,e,n,i,r){var o=0,a=t.length;if(-1===e)a=-1;else for(;o<t.length;){var s=t[o++];if("number"==typeof s){if(s===e){a=-1;break}if(s>e){a=o-1;break}}}for(;o<t.length;){var c=t[o];if("number"==typeof c)break;if(c===n){if(null===i)return void(null!==r&&(t[o+1]=r));if(i===t[o+1])return void(t[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(t.splice(a,0,e),o=a+1),t.splice(o++,0,n),null!==i&&t.splice(o++,0,i),null!==r&&t.splice(o++,0,r)}function Mn(t){return-1!==t}function Rn(t){return 32767&t}function Nn(t){return t>>16}function Dn(t,e){for(var n=Nn(t),i=e;n>0;)i=i[15],n--;return i}function Ln(t){return"string"==typeof t?t:null==t?"":""+t}function jn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ln(t)}var Vn=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(zt)}();function Fn(t){return{name:"window",target:t.ownerDocument.defaultView}}function Bn(t){return{name:"document",target:t.ownerDocument}}function Un(t){return{name:"body",target:t.ownerDocument.body}}function zn(t){return t instanceof Function?t():t}var Hn=!0;function Wn(t){var e=Hn;return Hn=t,e}var Gn=0;function qn(t,e){var n=Yn(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Zn(i.data,t),Zn(e,null),Zn(i.blueprint,null));var r=Qn(t,e),o=t.injectorIndex;if(Mn(r))for(var a=Rn(r),s=Dn(r,e),c=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|c[a+u];return e[o+8]=r,o}function Zn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Yn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Qn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],i=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Kn(t,e,n){!function(t,e,n){var i="string"!=typeof n?n[Qt]:n.charCodeAt(0)||0;null==i&&(i=n[Qt]=Gn++);var r=255&i,o=1<<r,a=64&r,s=32&r,c=e.data;128&r?a?s?c[t+7]|=o:c[t+6]|=o:s?c[t+5]|=o:c[t+4]|=o:a?s?c[t+3]|=o:c[t+2]|=o:s?c[t+1]|=o:c[t]|=o}(t,e,n)}function Xn(t,e,n,i,r){if(void 0===i&&(i=yt.Default),null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t[Qt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof o){an(e,t);try{var a=o();if(null!=a||i&yt.Optional)return a;throw new Error("No provider for "+jn(n)+"!")}finally{dn()}}else if("number"==typeof o){if(-1===o)return new ri(t,e);var s=null,c=Yn(t,e),u=-1,l=i&yt.Host?e[16][6]:null;for((-1===c||i&yt.SkipSelf)&&(u=-1===c?Qn(t,e):e[c+8],ii(i,!1)?(s=e[1],c=Rn(u),e=Dn(u,e)):c=-1);-1!==c;){u=e[c+8];var d=e[1];if(ni(o,c,d.data)){var p=$n(c,e,n,s,i,l);if(p!==Jn)return p}ii(i,e[1].data[c+8]===l)&&ni(o,c,e)?(s=d,c=Rn(u),e=Dn(u,e)):c=-1}}}if(i&yt.Optional&&void 0===r&&(r=null),0==(i&(yt.Self|yt.Host))){var h=e[9],f=ie(void 0);try{return h?h.get(n,r,i&yt.Optional):se(n,r,i&yt.Optional)}finally{ie(f)}}if(i&yt.Optional)return r;throw new Error("NodeInjector: NOT_FOUND ["+jn(n)+"]")}var Jn={};function $n(t,e,n,i,r,o){var a=e[1],s=a.data[t+8],c=ti(s,a,n,null==i?Ve(s)&&Hn:i!=a&&3===s.type,r&yt.Host&&o===s);return null!==c?ei(e,a,c,s):Jn}function ti(t,e,n,i,r){for(var o=t.providerIndexes,a=e.data,s=65535&o,c=t.directiveStart,u=o>>16,l=r?s+u:t.directiveEnd,d=i?s:s+u;d<l;d++){var p=a[d];if(d<c&&n===p||d>=c&&p.type===n)return d}if(r){var h=a[c];if(h&&Be(h)&&h.type===n)return c}return null}function ei(t,e,n,i){var r=t[n],o=e.data;if(r instanceof Sn){var a=r;if(a.resolving)throw new Error("Circular dep for "+jn(o[n]));var s=Wn(a.canSeeViewProviders);a.resolving=!0;var c=void 0;a.injectImpl&&(c=ie(a.injectImpl)),an(t,i);try{r=t[n]=a.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.onChanges,r=e.onInit,o=e.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{a.injectImpl&&ie(c),Wn(s),a.resolving=!1,dn()}}return r}function ni(t,e,n){var i=64&t,r=32&t;return!!((128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e])&1<<t)}function ii(t,e){return!(t&yt.Self||t&yt.Host&&e)}var ri=function(){function t(t,e){this._tNode=t,this._lView=e}return t.prototype.get=function(t,e){return Xn(this._tNode,this._lView,t,void 0,e)},t}();function oi(t){return dt((function(){var e=Object.getPrototypeOf(t.prototype).constructor,n=e[Yt]||function t(e){var n=e;if(Lt(e))return function(){var e=t(Dt(n));return e?e():null};var i=Re(n);if(null===i){var r=xt(n);i=r&&r.factory}return i||null}(e);return null!==n?n:function(t){return new t}}))}function ai(t){return t.ngDebugContext}function si(t){return t.ngOriginalError}function ci(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,c(e))}var ui=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ci}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?ai(t)?ai(t):this._findContext(si(t)):null},t.prototype._findOriginalError=function(t){for(var e=si(t);e&&si(e);)e=si(e);return e},t}(),li=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),di=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(li),pi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Style"},e}(li),hi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Script"},e}(li),fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"URL"},e}(li),mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(li);function gi(t){return t instanceof li?t.changingThisBreaksApplicationSecurity:t}function vi(t,e){var n=yi(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe "+e+", got a "+n+" (see http://g.co/ng/security#xss)")}return n===e}function yi(t){return t instanceof li&&t.getTypeName()||null}var bi=!0,_i=!1;function wi(){return _i=!0,bi}var Si=function(){function t(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");var e=this.inertDocument.body;if(null==e){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n),e=this.inertDocument.createElement("body"),n.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(i){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var i=e.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.removeAttribute(i)}for(var r=t.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling},t}(),Ci=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ei=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function xi(t){return(t=String(t)).match(Ci)||t.match(Ei)?t:(wi()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function ki(t){var e,n,i={};try{for(var r=a(t.split(",")),o=r.next();!o.done;o=r.next())i[o.value]=!0}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return i}function Oi(){for(var t,e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r={};try{for(var o=a(n),s=o.next();!s.done;s=o.next()){var c=s.value;for(var u in c)c.hasOwnProperty(u)&&(r[u]=!0)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return r}var Ti,Ii=ki("area,br,col,hr,img,wbr"),Ai=ki("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pi=ki("rp,rt"),Mi=Oi(Pi,Ai),Ri=Oi(Ii,Oi(Ai,ki("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Oi(Pi,ki("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Mi),Ni=ki("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Di=ki("srcset"),Li=Oi(Ni,Di,ki("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ki("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),ji=ki("script,style,template"),Vi=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild,n=!0;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var i=this.checkClobberedElement(e,e.nextSibling);if(i){e=i;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var e,n=t.nodeName.toLowerCase();if(!Ri.hasOwnProperty(n))return this.sanitizedSomething=!0,!ji.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=t.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(Li.hasOwnProperty(s)){var c=o.value;Ni[s]&&(c=xi(c)),Di[s]&&(e=c,c=(e=String(e)).split(",").map((function(t){return xi(t.trim())})).join(", ")),this.buf.push(" ",a,'="',Ui(c),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Ri.hasOwnProperty(e)&&!Ii.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Ui(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),Fi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bi=/([^\#-~ |!])/g;function Ui(t){return t.replace(/&/g,"&amp;").replace(Fi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Bi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function zi(t,e){var n=null;try{Ti=Ti||new Si(t);var i=e?String(e):"";n=Ti.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Ti.getInertBodyElement(i)}while(i!==o);var a=new Vi,s=a.sanitizeChildren(Hi(n)||n);return wi()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var c=Hi(n)||n;c.firstChild;)c.removeChild(c.firstChild)}}function Hi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Wi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Gi=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"),qi=/^url\(([^)]+)\)$/;function Zi(t){if(!(t=String(t).trim()))return"";var e=t.match(qi);return e&&xi(e[1])===e[1]||t.match(Gi)&&function(t){for(var e=!0,n=!0,i=0;i<t.length;i++){var r=t.charAt(i);"'"===r&&n?e=!e:'"'===r&&e&&(n=!n)}return e&&n}(t)?t:(wi()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function Yi(t){var e=Ji();return e?e.sanitize(Wi.HTML,t)||"":vi(t,"HTML")?gi(t):zi(En(),Ln(t))}function Qi(t){var e=Ji();return e?e.sanitize(Wi.STYLE,t)||"":vi(t,"Style")?gi(t):Zi(Ln(t))}function Ki(t){var e=Ji();return e?e.sanitize(Wi.URL,t)||"":vi(t,"URL")?gi(t):xi(Ln(t))}var Xi=function(t,e,n){if(void 0===e&&void 0===n)return Qi(t);var i=!0;return 1&(n=n||3)&&(i=function(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}(t)),2&n?i?Qi(e):gi(e):i};function Ji(){var t=We();return t&&t[12]}function $i(t){for(;Array.isArray(t);)t=t[0];return t}function tr(t,e){return $i(e[t+19])}function er(t,e){return $i(e[t.index])}function nr(t,e){return t.data[e+19]}function ir(t,e){return t[e+19]}function rr(t,e){var n=e[t];return De(n)?n:n[0]}function or(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ar(t){return 4==(4&t[2])}function sr(t){return 128==(128&t[2])}function cr(t,e){return null===t||null==e?null:t[e]}function ur(t){t[18]=0}function lr(t,e){t.__ngContext__=e}function dr(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function pr(){throw new Error("Cannot mix multi providers and regular providers")}function hr(t,e,n){for(var i=t.length;;){var r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){var o=e.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}n=r+1}}function fr(t,e,n){for(var i=0;i<t.length;){var r=t[i++];if(n&&"class"===r){if(-1!==hr((r=t[i]).toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function mr(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function gr(t,e,n){for(var i=4,r=t.attrs||[],o=function(t){for(var e=0;e<t.length;e++)if(Tn(t[e]))return e;return t.length}(r),a=!1,s=0;s<e.length;s++){var c=e[s];if("number"!=typeof c){if(!a)if(4&i){if(i=2|1&i,""!==c&&!mr(t,c,n)||""===c&&1===e.length){if(vr(i))return!1;a=!0}}else{var u=8&i?c:e[++s];if(8&i&&null!==t.attrs){if(!fr(t.attrs,u,n)){if(vr(i))return!1;a=!0}continue}var l=yr(8&i?"class":c,r,0==t.type&&"ng-template"!==t.tagName,n);if(-1===l){if(vr(i))return!1;a=!0;continue}if(""!==u){var d;d=l>o?"":r[l+1].toLowerCase();var p=8&i?d:null;if(p&&-1!==hr(p,u,0)||2&i&&u!==d){if(vr(i))return!1;a=!0}}}}else{if(!a&&!vr(i)&&!vr(c))return!1;if(a&&vr(c))continue;a=!1,i=c|1&i}}return vr(i)||a}function vr(t){return 0==(1&t)}function yr(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var o=!1;r<e.length;){var a=e[r];if(a===t)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=e[++r];"string"==typeof s;)s=e[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(t,e){var n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){if(t[n]===e)return n;n++}return-1}(e,t)}function br(t,e,n){void 0===n&&(n=!1);for(var i=0;i<e.length;i++)if(gr(t,e[i],n))return!0;return!1}function _r(t,e){t:for(var n=0;n<e.length;n++){var i=e[n];if(t.length===i.length){for(var r=0;r<t.length;r++)if(t[r]!==i[r])continue t;return!0}}return!1}function wr(t,e){return t?":not("+e.trim()+")":e}function Sr(t){for(var e=t[0],n=1,i=2,r="",o=!1;n<t.length;){var a=t[n];if("string"==typeof a)if(2&i){var s=t[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||vr(a)||(e+=wr(o,r),r=""),i=a,o=o||!vr(i);n++}return""!==r&&(e+=wr(o,r)),e}var Cr={};function Er(t){var e=t[3];return Le(e)?e[3]:e}function xr(t){kr(Ge(),We(),hn()+t,Xe())}function kr(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&vn(e,r,n)}else{var o=t.preOrderHooks;null!==o&&yn(e,o,0,n)}fn(n)}function Or(t,e){return t<<17|e<<2}function Tr(t){return t>>17&32767}function Ir(t){return 2|t}function Ar(t){return(131068&t)>>2}function Pr(t,e){return-131069&t|e<<2}function Mr(t){return 1|t}function Rr(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var o=t.data[r];on(n[i]),o.contentQueries(2,e[r],r)}}}function Nr(t,e,n){return xn(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Dr(t,e,n,i,r,o,a,s,c,u){var l=e.blueprint.slice();return l[0]=r,l[2]=140|i,ur(l),l[3]=l[15]=t,l[8]=n,l[10]=a||t&&t[10],l[11]=s||t&&t[11],l[12]=c||t&&t[12]||null,l[9]=u||t&&t[9]||null,l[6]=o,l[16]=2==e.type?t[16]:l,l}function Lr(t,e,n,i,r,o){var a=n+19,s=t.data[a]||function(t,e,n,i,r,o){var a=Ze(),s=Qe(),c=s?a:a&&a.parent,u=t.data[n]=qr(0,c&&c!==e?c:null,i,n,r,o);return null===t.firstChild&&(t.firstChild=u),a&&(!s||null!=a.child||null===u.parent&&2!==a.type?s||(a.next=u):a.child=u),u}(t,e,a,i,r,o);return Ye(s,!0),s}function jr(t,e,n){sn(e,e[6]);try{var i=t.viewQuery;null!==i&&go(1,i,n);var r=t.template;null!==r&&Br(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Rr(t,e),t.staticViewQueries&&go(2,t.viewQuery,n);var o=t.components;null!==o&&function(t,e){for(var n=0;n<e.length;n++)lo(t,e[n])}(e,o)}finally{e[2]&=-5,pn()}}function Vr(t,e,n,i){var r=e[2];if(256!=(256&r)){sn(e,e[6]);var o=Xe();try{ur(e),ze.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Br(t,e,n,2,i);var a=3==(3&r);if(!o)if(a){var s=t.preOrderCheckHooks;null!==s&&vn(e,s,null)}else{var c=t.preOrderHooks;null!==c&&yn(e,c,0,null),bn(e,0)}if(function(t){for(var e=t[13];null!==e;){var n=void 0;if(Le(e)&&(n=e[2])>>1==-1){for(var i=9;i<e.length;i++){var r=e[i],o=r[1];sr(r)&&Vr(o,r,o.template,r[8])}0!=(1&n)&&co(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&Rr(t,e),!o)if(a){var u=t.contentCheckHooks;null!==u&&vn(e,u)}else{var l=t.contentHooks;null!==l&&yn(e,l,1),bn(e,1)}!function(t,e){try{var n=t.expandoInstructions;if(null!==n)for(var i=t.expandoStartIndex,r=-1,o=0;o<n.length;o++){var a=n[o];"number"==typeof a?a<=0?(fn(0-a),r=i+=9+n[++o]):i+=a:(null!==a&&(nn(i,r),a(2,e[r])),r++)}}finally{fn(-1)}}(t,e);var d=t.components;null!==d&&function(t,e){for(var n=0;n<e.length;n++)uo(t,e[n])}(e,d);var p=t.viewQuery;if(null!==p&&go(2,p,i),!o)if(a){var h=t.viewCheckHooks;null!==h&&vn(e,h)}else{var f=t.viewHooks;null!==f&&yn(e,f,2),bn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73)}finally{pn()}}}function Fr(t,e,n,i){var r=e[10],o=!Xe(),a=ar(e);try{o&&!a&&r.begin&&r.begin(),a&&jr(t,e,i),Vr(t,e,n,i)}finally{o&&!a&&r.end&&r.end()}}function Br(t,e,n,i,r){var o=hn();try{fn(-1),2&i&&e.length>19&&kr(t,e,0,Xe()),n(i,r)}finally{fn(o)}}function Ur(t,e,n){if(je(e))for(var i=e.directiveEnd,r=e.directiveStart;r<i;r++){var o=t.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function zr(t,e,n){He()&&(function(t,e,n,i){var r=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||qn(n,e),lr(i,e);for(var a=n.initialInputs,s=r;s<o;s++){var c=t.data[s],u=Be(c);u&&ro(e,n,c);var l=ei(e,t,s,n);lr(l,e),null!==a&&oo(0,s-r,l,c,0,a),u&&(rr(n.index,e)[8]=l)}}(t,e,n,er(n,e)),128==(128&n.flags)&&function(t,e,n){var i=n.directiveStart,r=n.directiveEnd,o=t.expandoInstructions,a=t.firstCreatePass,s=n.index-19;try{fn(s);for(var c=i;c<r;c++){var u=t.data[c];null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs?Jr(u,e[c]):a&&o.push(null)}}finally{fn(-1)}}(t,e,n))}function Hr(t,e,n){void 0===n&&(n=er);var i=e.localNames;if(null!==i)for(var r=e.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(e,t):t[a];t[r++]=s}}function Wr(t){return t.tView||(t.tView=Gr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function Gr(t,e,n,i,r,o,a,s,c,u){var l=19+i,d=l+r,p=function(t,e){for(var n=[],i=0;i<e;i++)n.push(i<t?null:Cr);return n}(l,d);return p[1]={type:t,id:e,blueprint:p,template:n,queries:null,viewQuery:s,node:null,data:p.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:d,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:c,consts:u}}function qr(t,e,n,i,r,o){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Zr(t,e,n){for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function Yr(t,e,n,i,r,o,a,s){var c,u,l=tr(n,e),d=nr(t,n),p=d.inputs;if(!a&&null!=p&&(c=p[i]))So(t,e,c,i,r),Ve(d)&&function(t,e){var n=rr(e,t);16&n[2]||(n[2]|=64)}(e,n+19);else if(3===d.type){i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u;var h=s?s(d,e):e[11];r=null!=o?o(r,d.tagName||"",i):r,xn(h)?h.setProperty(l,i,r):In(i)||(l.setProperty?l.setProperty(i,r):l[i]=r)}}function Qr(t,e,n,i){var r=!1;if(He()){var o=function(t,e,n){var i=t.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];br(n,a.selectors,!1)&&(r||(r=[]),Kn(qn(n,e),t,a.type),Be(a)?(2&n.flags&&dr(n),to(t,n),r.unshift(a)):r.push(a))}return r}(t,e,n),a=null===i?null:{"":-1};if(null!==o){var s=0;r=!0,no(n,t.data.length,o.length);for(var c=0;c<o.length;c++)(d=o[c]).providersResolver&&d.providersResolver(d);$r(t,n,o.length);var u=!1,l=!1;for(c=0;c<o.length;c++){var d;n.mergedAttrs=An(n.mergedAttrs,(d=o[c]).hostAttrs),io(t,e,d),eo(t.data.length-1,d,a),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128),!u&&(d.onChanges||d.onInit||d.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-19),u=!0),l||!d.onChanges&&!d.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-19),l=!0),Kr(t,d),s+=d.hostVars}!function(t,e){for(var n=e.directiveEnd,i=t.data,r=e.attrs,o=[],a=null,s=null,c=e.directiveStart;c<n;c++){var u=i[c],l=u.inputs;o.push(null!==r?ao(l,r):null),a=Zr(l,c,a),s=Zr(u.outputs,c,s)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=s}(t,n),Xr(t,e,s)}a&&function(t,e,n){if(e)for(var i=t.localNames=[],r=0;r<e.length;r+=2){var o=n[e[r+1]];if(null==o)throw new Error("Export of name '"+e[r+1]+"' not found!");i.push(e[r],o)}}(n,i,a)}return n.mergedAttrs=An(n.mergedAttrs,n.attrs),r}function Kr(t,e){var n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Xr(t,e,n){for(var i=0;i<n;i++)e.push(Cr),t.blueprint.push(Cr),t.data.push(null)}function Jr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function $r(t,e,n){var i=19-e.index,r=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,r,n)}function to(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function eo(t,e,n){if(n){if(e.exportAs)for(var i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Be(e)&&(n[""]=t)}}function no(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function io(t,e,n){t.data.push(n);var i=n.factory||(n.factory=Re(n.type)),r=new Sn(i,Be(n),null);t.blueprint.push(r),e.push(r)}function ro(t,e,n){var i=er(e,t),r=Wr(n),o=t[10],a=po(t,Dr(t,r,null,n.onPush?64:16,i,e,o,o.createRenderer(i,n)));t[e.index]=a}function oo(t,e,n,i,r,o){var a=o[e];if(null!==a)for(var s=i.setInput,c=0;c<a.length;){var u=a[c++],l=a[c++],d=a[c++];null!==s?i.setInput(n,d,u,l):n[l]=d}}function ao(t,e){for(var n=null,i=0;i<e.length;){var r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function so(t,e,n,i){return new Array(t,!0,-2,e,null,null,i,n,null)}function co(t,e){for(var n=t[5],i=0;i<n.length;i++){var r=n[i],o=r[3][3][16];if(o!==e&&0==(16&o[2])){var a=r[1];Vr(a,r,a.template,r[8])}}}function uo(t,e){var n=rr(e,t);if(sr(n)&&80&n[2]){var i=n[1];Vr(i,n,i.template,n[8])}}function lo(t,e){var n=rr(e,t),i=n[1];!function(t,e){for(var n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),jr(i,n,n[8])}function po(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function ho(t){for(;t;){t[2]|=64;var e=Er(t);if(Ue(t)&&!e)return t;t=e}return null}function fo(t,e,n){var i=e[10];i.begin&&i.begin();try{Vr(t,e,t.template,n)}catch(r){throw wo(e,r),r}finally{i.end&&i.end()}}function mo(t){!function(t){for(var e=0;e<t.components.length;e++){var n=t.components[e],i=or(n),r=i[1];Fr(r,i,r.template,n)}}(t[8])}function go(t,e,n){on(0),e(t,n)}var vo=function(){return Promise.resolve(null)}();function yo(t){return t[7]||(t[7]=[])}function bo(t){return t.cleanup||(t.cleanup=[])}function _o(t,e){return function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[t.index])[11]}function wo(t,e){var n=t[9],i=n?n.get(ui,null):null;i&&i.handleError(e)}function So(t,e,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],c=e[a],u=t.data[a];null!==u.setInput?u.setInput(c,r,i,s):c[s]=r}}function Co(t,e){var n=e[3];return-1===t.index?Le(n)?n:null:n}function Eo(t,e){var n=Co(t,e);return n?Lo(e[11],n[7]):null}function xo(t,e,n,i,r){if(null!=i){var o=void 0,a=!1;Le(i)?o=i:De(i)&&(a=!0,i=i[0]);var s=$i(i);0===t&&null!==n?null==r?No(e,n,s):Ro(e,n,s,r||null):1===t&&null!==n?Ro(e,n,s,r||null):2===t?function(t,e,n){var i=Lo(t,e);i&&function(t,e,n,i){xn(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,s,a):3===t&&e.destroyNode(s),null!=o&&function(t,e,n,i,r){var o=n[7];o!==$i(n)&&xo(e,t,i,o,r);for(var a=9;a<n.length;a++){var s=n[a];Uo(s[1],s,t,e,i,o)}}(e,t,o,n,r)}}function ko(t,e,n,i){var r=Eo(t.node,e);r&&Uo(t,e,e[11],n?1:2,r,i)}function Oo(t,e){var n=t[5],i=n.indexOf(e);n.splice(i,1)}function To(t,e){if(!(t.length<=9)){var n=9+e,i=t[n];if(i){var r=i[17];null!==r&&r!==t&&Oo(r,i),e>0&&(t[n-1][4]=i[4]);var o=fe(t,9+e);ko(i[1],i,!1,null);var a=o[5];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Io(t,e){if(!(256&e[2])){var n=e[11];xn(n)&&n.destroyNode&&Uo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Po(t[1],t);for(;e;){var n=null;if(De(e))n=e[13];else{var i=e[9];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)De(e)&&Po(e[1],e),e=Ao(e,t);null===e&&(e=t),De(e)&&Po(e[1],e),n=e&&e[4]}e=n}}(e)}}function Ao(t,e){var n;return De(t)&&(n=t[6])&&2===n.type?Co(n,t):t[3]===e?null:t[3]}function Po(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i<n.length;i+=2){var r=e[n[i]];r instanceof Sn||n[i+1].call(r)}}(t,e),function(t,e){var n=t.cleanup;if(null!==n){for(var i=e[7],r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){var o=n[r+1],a="function"==typeof o?o(e):$i(e[o]),s=n[r+3];"boolean"==typeof s?a.removeEventListener(n[r],i[n[r+2]],s):s>=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&xn(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&Le(e[3])){i!==e[3]&&Oo(i,e);var r=e[5];null!==r&&r.detachView(t)}}}function Mo(t,e,n){for(var i=e.parent;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){var r=n[6];return 2===r.type?Eo(r,n):n[0]}if(e&&5===e.type&&4&e.flags)return er(e,n).parentNode;if(2&i.flags){var o=t.data,a=o[o[i.index].directiveStart].encapsulation;if(a!==_e.ShadowDom&&a!==_e.Native)return null}return er(i,n)}function Ro(t,e,n,i){xn(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function No(t,e,n){xn(t)?t.appendChild(e,n):e.appendChild(n)}function Do(t,e,n,i){null!==i?Ro(t,e,n,i):No(t,e,n)}function Lo(t,e){return xn(t)?t.parentNode(e):e.parentNode}function jo(t,e){if(2===t.type){var n=Co(t,e);return null===n?null:Fo(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?er(t,e):null}function Vo(t,e,n,i){var r=Mo(t,i,e);if(null!=r){var o=e[11],a=jo(i.parent||e[6],e);if(Array.isArray(n))for(var s=0;s<n.length;s++)Do(o,r,n[s],a);else Do(o,r,n,a)}}function Fo(t,e){var n=9+t+1;if(n<e.length){var i=e[n],r=i[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){var i=n.type;if(3===i)return er(n,e);if(0===i)return Fo(-1,e[n.index]);if(4===i||5===i){var r=n.child;if(null!==r)return t(e,r);var o=e[n.index];return Le(o)?Fo(-1,o):$i(o)}var a=e[16],s=a[6],c=Er(a),u=s.projection[n.projection];return null!=u?t(c,u):t(e,n.next)}return null}(i,r)}return e[7]}function Bo(t,e,n,i,r,o,a){for(;null!=n;){var s=i[n.index],c=n.type;a&&0===e&&(s&&lr($i(s),i),n.flags|=4),64!=(64&n.flags)&&(4===c||5===c?(Bo(t,e,n.child,i,r,o,!1),xo(e,t,r,s,o)):1===c?zo(t,e,i,n,r,o):xo(e,t,r,s,o)),n=a?n.projectionNext:n.next}}function Uo(t,e,n,i,r,o){Bo(n,i,t.node.child,e,r,o,!1)}function zo(t,e,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var c=0;c<s.length;c++)xo(e,t,r,s[c],o);else Bo(t,e,s,a[3],r,o,!0)}function Ho(t,e,n){xn(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Wo(t,e,n){xn(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}var Go,qo,Zo,Yo=function(){function t(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){var t=this._lView;return null==t[0]?function t(e,n,i,r,o){for(void 0===o&&(o=!1);null!==i;){var a=n[i.index];if(null!==a&&r.push($i(a)),Le(a))for(var s=9;s<a.length;s++){var c=a[s],u=c[1].firstChild;null!==u&&t(c[1],c,u,r)}var l=i.type;if(4===l||5===l)t(e,n,i.child,r);else if(1===l){var d=n[16],p=d[6],h=Er(d),f=p.projection[i.projection];null!==f&&null!==h&&t(h[1],h,f,r,!0)}i=o?i.projectionNext:i.next}return r}(t[1],t,t[6].child,[]):[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._lView[8]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 256==(256&this._lView[2])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Io(this._lView[1],this._lView)},t.prototype.onDestroy=function(t){var e,n,i;e=this._lView[1],i=t,yo(n=this._lView).push(i),e.firstCreatePass&&bo(e).push(n[7].length-1,null)},t.prototype.markForCheck=function(){ho(this._cdRefInjectingView||this._lView)},t.prototype.detach=function(){this._lView[2]&=-129},t.prototype.reattach=function(){this._lView[2]|=128},t.prototype.detectChanges=function(){fo(this._lView[1],this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t,e,n){Je(!0);try{fo(t,e,n)}finally{Je(!1)}}(this._lView[1],this._lView,this.context)},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){var t;this._appRef=null,Uo(this._lView[1],t=this._lView,t[11],2,null,null)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t}(),Qo=function(t){function e(e){var n=t.call(this,e)||this;return n._view=e,n}return r(e,t),e.prototype.detectChanges=function(){mo(this._view)},e.prototype.checkNoChanges=function(){!function(t){Je(!0);try{mo(t)}finally{Je(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(Yo);function Ko(t,e,n){return Go||(Go=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(t)),new Go(er(e,n))}function Xo(t,e,n,i){return qo||(qo=function(t){function e(e,n,i){var r=t.call(this)||this;return r._declarationView=e,r._declarationTContainer=n,r.elementRef=i,r}return r(e,t),e.prototype.createEmbeddedView=function(t){var e=this._declarationTContainer.tViews,n=Dr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[5];null!==i&&(n[5]=i.createEmbeddedView(e)),jr(e,n,t);var r=new Yo(n);return r._tViewNode=n[6],r},e}(t)),0===n.type?new qo(i,n,Ko(e,n,i)):null}function Jo(t,e,n,i){var o;Zo||(Zo=function(t){function n(e,n,i){var r=t.call(this)||this;return r._lContainer=e,r._hostTNode=n,r._hostView=i,r}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return Ko(e,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new ri(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var t=Qn(this._hostTNode,this._hostView),e=Dn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var o=Nn(t),a=e,s=e[6];o>1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return Mn(t)&&null!=n?new ri(n,e):new ri(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this.length>0;)this.remove(this.length-1)},n.prototype.get=function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer.length-9},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i},n.prototype.createComponent=function(t,e,n,i,r){var o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(le,null);a&&(r=a)}var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s},n.prototype.insert=function(t,e){var n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Le(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=n[3],a=new Zo(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,i){var r=9+i,o=n.length;i>0&&(n[r-1][4]=e),i<o-9?(e[4]=n[r],he(n,9+i,e)):(n.push(e),e[4]=null),e[3]=n;var a=e[17];null!==a&&n!==a&&function(t,e){var n=t[5],i=e[3][3][16];16!=(16&i[2])&&e[16]!==i&&(t[2]|=1),null===n?t[5]=[e]:n.push(e)}(a,e);var s=e[5];null!==s&&s.insertView(t),e[2]|=128}(i,n,this._lContainer,s),ko(i,n,!0,Fo(s,this._lContainer)),t.attachToViewContainerRef(this),he(this._lContainer[8],s,t),t},n.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)},n.prototype.indexOf=function(t){var e=this._lContainer[8];return null!==e?e.indexOf(t):-1},n.prototype.remove=function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1);(function(t,e){var n=To(t,e);n&&Io(n[1],n)})(this._lContainer,e),fe(this._lContainer[8],e)},n.prototype.detach=function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1),n=To(this._lContainer,e);return n&&null!=fe(this._lContainer[8],e)?new Yo(n):null},n.prototype._adjustIndex=function(t,e){return void 0===e&&(e=0),null==t?this.length+e:t},n.prototype.allocateContainerIfNeeded=function(){null===this._lContainer[8]&&(this._lContainer[8]=[])},n}(t));var a=i[n.index];if(Le(a))!function(t,e){t[2]=-2}(o=a);else{var s=void 0;if(4===n.type)s=$i(a);else if(s=i[11].createComment(""),Ue(i)){var c=i[11],u=er(n,i);Ro(c,Lo(c,u),s,function(t,e){return xn(t)?t.nextSibling(e):e.nextSibling}(c,u))}else Vo(i[1],i,s,n);i[n.index]=o=so(a,i,s,n),po(i,o)}return new Zo(o,n,i)}function $o(t){return void 0===t&&(t=!1),function(t,e,n){if(!n&&Ve(t)){var i=rr(t.index,e);return new Yo(i,i)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Yo(e[16],e):null}(Ze(),We(),t)}var ta=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ea()},t}(),ea=$o,na=new Kt("Set Injector scope."),ia={},ra={},oa=[],aa=void 0;function sa(){return void 0===aa&&(aa=new ue),aa}function ca(t,e,n,i){return void 0===e&&(e=null),void 0===n&&(n=null),new ua(t,n,e||sa(),i)}var ua=function(){function t(t,e,n,i){var r=this;void 0===i&&(i=null),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];e&&pe(e,(function(n){return r.processProvider(n,t,e)})),pe([t],(function(t){return r.processInjectorType(t,[],o)})),this.records.set(Xt,pa(void 0,this));var a=this.records.get(na);this.scope=null!=a?a.value:null,this.source=i||("object"==typeof t?null:Pt(t))}return Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=Jt),void 0===n&&(n=yt.Default),this.assertNotDestroyed();var i,r=ne(this);try{if(!(n&yt.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Kt)&&Ct(t);o=a&&this.injectableDefInScope(a)?pa(la(t),ia):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&yt.Self?sa():this.parent).get(t,e=n&yt.Optional&&e===Jt?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Pt(t)),r)throw s;return function(t,e,n,i){var r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,i){void 0===i&&(i=null),t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=Pt(e);if(Array.isArray(e))r=e.map(Pt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Pt(s)))}r="{"+o.join(", ")+"}"}return n+(i?"("+i+")":"")+"["+r+"]: "+t.replace($t,"\n ")}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{ne(r)}},t.prototype._resolveInjectorDefTypes=function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))},t.prototype.toString=function(){var t=[];return this.records.forEach((function(e,n){return t.push(Pt(n))})),"R3Injector["+t.join(", ")+"]"},t.prototype.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var i=this;if(!(t=Dt(t)))return!1;var r=xt(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=xt(o)),null==r)return!1;if(null!=r.imports&&!s){var c;n.push(a);try{pe(r.imports,(function(t){i.processInjectorType(t,e,n)&&(void 0===c&&(c=[]),c.push(t))}))}finally{}if(void 0!==c)for(var u=function(t){var e=c[t],n=e.ngModule,r=e.providers;pe(r,(function(t){return i.processProvider(t,n,r||oa)}))},l=0;l<c.length;l++)u(l)}this.injectorDefTypes.add(a),this.records.set(a,pa(r.factory,ia));var d=r.providers;if(null!=d&&!s){var p=t;pe(d,(function(t){return i.processProvider(t,p,d)}))}return void 0!==o&&void 0!==t.providers},t.prototype.processProvider=function(t,e,n){var i=fa(t=Dt(t))?t:Dt(t&&t.provide),r=function(t,e,n){return ha(t)?pa(void 0,t.useValue):pa(da(t,e,n),ia)}(t,e,n);if(fa(t)||!0!==t.multi){var o=this.records.get(i);o&&void 0!==o.multi&&pr()}else{var a=this.records.get(i);a?void 0===a.multi&&pr():((a=pa(void 0,ia,!0)).factory=function(){return ce(a.multi)},this.records.set(i,a)),i=t,a.multi.push(t)}this.records.set(i,r)},t.prototype.hydrate=function(t,e){var n;return e.value===ra?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(Pt(t)):e.value===ia&&(e.value=ra,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))},t}();function la(t){var e=Ct(t),n=null!==e?e.factory:Re(t);if(null!==n)return n;var i=xt(t);if(null!==i)return i.factory;if(t instanceof Kt)throw new Error("Token "+Pt(t)+" is missing a \u0275prov definition.");if(t instanceof Function)return function(t){var e=t.length;if(e>0){var n=me(e,"?");throw new Error("Can't resolve all parameters for "+Pt(t)+": ("+n.join(", ")+").")}var i=function(t){var e=t&&(t[kt]||t[It]||t[Tt]&&t[Tt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+n+'" class.'),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function da(t,e,n){var i,r=void 0;if(fa(t)){var o=Dt(t);return Re(o)||la(o)}if(ha(t))r=function(){return Dt(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,c(ce(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return oe(Dt(t.useExisting))};else{var a=Dt(t&&(t.useClass||t.provide));if(a||function(t,e,n){var i="";throw t&&e&&(i=" - only instances of Provider and Type are allowed, got: ["+e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+Pt(t)+"'"+i)}(e,n,t),!function(t){return!!t.deps}(t))return Re(a)||la(a);r=function(){return new(a.bind.apply(a,c([void 0],ce(t.deps))))}}return r}function pa(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function ha(t){return null!==t&&"object"==typeof t&&te in t}function fa(t){return"function"==typeof t}var ma=function(t,e,n){return function(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=null);var r=ca(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)},ga=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?ma(t,e,""):ma(t.providers,t.parent,t.name||"")},t.THROW_IF_NOT_FOUND=Jt,t.NULL=new ue,t.\u0275prov=wt({token:t,providedIn:"any",factory:function(){return oe(Xt)}}),t.__NG_ELEMENT_ID__=-1,t}(),va=new Kt("AnalyzeForEntryComponents"),ya=new Map,ba=new Set;function _a(t){return"string"==typeof t?t:t.text()}function wa(t,e){for(var n=t.styles,i=t.classes,r=0,o=0;o<e.length;o++){var a=e[o];"number"==typeof a?r=a:1==r?i=Mt(i,a):2==r&&(n=Mt(n,a+": "+e[++o]+";"))}null!==n&&(t.styles=n),null!==i&&(t.classes=i)}var Sa=null;function Ca(){if(!Sa){var t=zt.Symbol;if(t&&t.iterator)Sa=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var i=e[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Sa=i)}}return Sa}function Ea(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}var xa=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}();function ka(t){return!!Oa(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ca()in t)}function Oa(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ta(t,e,n){return t[e]=n}function Ia(t,e){return t[e]}function Aa(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Pa(t,e,n,i){var r=We();return Aa(r,tn(),e)&&function(t,e,n,i,r,o,a){var s=tr(t,r),c=r[11];if(null==n)xn(c)?c.removeAttribute(s,e,a):s.removeAttribute(e);else{var u=nr(i,t),l=null==o?Ln(n):o(n,u.tagName||"",e);xn(c)?c.setAttribute(s,e,l,a):a?s.setAttributeNS(a,e,l):s.setAttribute(e,l)}}(hn(),t,e,Ge(),r,n,i),Pa}function Ma(t,e,n,i){return Aa(t,tn(),n)?e+Ln(n)+i:Cr}function Ra(t,e,n,i,r,o,a,s){var c=We(),u=Ge(),l=t+19,d=u.firstCreatePass?function(t,e,n,i,r,o,a,s,c){var u=e.consts,l=Lr(e,n[6],t,0,a||null,cr(u,s));Qr(e,n,l,cr(u,c)),gn(e,l);var d=l.tViews=Gr(2,-1,i,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u),p=qr(0,null,2,-1,null,null);return p.injectorIndex=l.injectorIndex,d.node=p,null!==e.queries&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}(t,u,c,e,n,i,r,o,a):u.data[l];Ye(d,!1);var p=c[11].createComment("");Vo(u,c,p,d),lr(p,c),po(c,c[l]=so(p,c,p,d)),Fe(d)&&zr(u,c,d),null!=a&&Hr(c,d,s)}function Na(t,e){void 0===e&&(e=yt.Default);var n=We();return null==n?oe(t,e):Xn(Ze(),n,Dt(t),e)}function Da(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(Tn(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===e)return n[r+1];r+=2}}return null}(Ze(),t)}function La(){throw new Error("invalid")}function ja(t,e,n){var i=We();if(Aa(i,tn(),e)){var r=hn();Yr(Ge(),i,r,t,e,n)}return ja}function Va(t,e,n,i,r){var o=r?"class":"style";So(t,n,e.inputs[o],o,i)}function Fa(t,e,n,i){var r=We(),o=Ge(),a=19+t,s=r[11],c=r[a]=Nr(e,s,ze.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,n,i,r,o,a){var s=e.consts,c=cr(s,o),u=Lr(e,n[6],t,3,r,c);return Qr(e,n,u,cr(s,a)),null!==u.mergedAttrs&&wa(u,u.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,u),u}(t,o,r,0,e,n,i):o.data[a];Ye(u,!0);var l=u.mergedAttrs;null!==l&&On(s,c,l);var d=u.classes;null!==d&&Wo(s,c,d);var p=u.styles;null!==p&&Ho(s,c,p),Vo(o,r,c,u),0===ze.lFrame.elementDepthCount&&lr(c,r),ze.lFrame.elementDepthCount++,Fe(u)&&(zr(o,r,u),Ur(o,u,r)),null!==i&&Hr(r,u)}function Ba(){var t=Ze();Qe()?Ke():Ye(t=t.parent,!1);var e=t;ze.lFrame.elementDepthCount--;var n=Ge();n.firstCreatePass&&(gn(n,t),je(t)&&n.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&Va(n,e,We(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&Va(n,e,We(),e.styles,!1)}function Ua(t,e,n,i){Fa(t,e,n,i),Ba()}function za(t,e,n){var i=We(),r=Ge(),o=t+19,a=r.firstCreatePass?function(t,e,n,i,r){var o=e.consts,a=cr(o,i),s=Lr(e,n[6],t,4,"ng-container",a);return null!==a&&wa(s,a),Qr(e,n,s,cr(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(t,r,i,e,n):r.data[o];Ye(a,!0);var s=i[o]=i[11].createComment("");Vo(r,i,s,a),lr(s,i),Fe(a)&&(zr(r,i,a),Ur(r,a,i)),null!=n&&Hr(i,a)}function Ha(){var t=Ze(),e=Ge();Qe()?Ke():Ye(t=t.parent,!1),e.firstCreatePass&&(gn(e,t),je(t)&&e.queries.elementEnd(t))}function Wa(){return We()}function Ga(t){return!!t&&"function"==typeof t.then}function qa(t){return!!t&&"function"==typeof t.subscribe}function Za(t,e,n,i){void 0===n&&(n=!1);var r=We(),o=Ge(),a=Ze();return Qa(o,r,r[11],a,t,e,n,i),Za}function Ya(t,e,n,i){void 0===n&&(n=!1);var r=Ze(),o=We(),a=_o(r,o);return Qa(Ge(),o,a,r,t,e,n,i),Ya}function Qa(t,e,n,i,r,o,a,s){void 0===a&&(a=!1);var c=Fe(i),u=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=yo(e),d=!0;if(3===i.type){var p=er(i,e),h=s?s(p):we,f=h.target||p,m=l.length,g=s?function(t){return s($i(t[i.index])).target}:i.index;if(xn(n)){var v=null;if(!s&&c&&(v=function(t,e,n,i){var r=t.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=e[7],c=r[o+2];return s.length>c?s[c]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,i.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=o,v.__ngLastListenerFn__=o,d=!1;else{o=Xa(i,e,o,!1);var y=n.listen(h.name||f,r,o);l.push(o,y),u&&u.push(r,g,m,m+1)}}else o=Xa(i,e,o,!0),f.addEventListener(r,o,a),l.push(o),u&&u.push(r,g,m,a)}var b,_=i.outputs;if(d&&null!==_&&(b=_[r])){var w=b.length;if(w)for(var S=0;S<w;S+=2){var C=e[b[S]][b[S+1]].subscribe(o),E=l.length;l.push(o,C),u&&u.push(r,i.index,E,-(E+1))}}}function Ka(t,e,n){try{return!1!==e(n)}catch(i){return wo(t,i),!1}}function Xa(t,e,n,i){return function r(o){if(o===Function)return n;var a=2&t.flags?rr(t.index,e):e;0==(32&e[2])&&ho(a);for(var s=Ka(e,n,o),c=r.__ngNextListenerFn__;c;)s=Ka(e,c,o)&&s,c=c.__ngNextListenerFn__;return i&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function Ja(t){return void 0===t&&(t=1),function(t){return(ze.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,ze.lFrame.contextLView))[8]}(t)}function $a(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r<e.length;r++){var o=e[r];if("*"!==o){if(null===i?br(t,o,!0):_r(i,o))return r}else n=r}return n}function ts(t){var e=We()[16][6];if(!e.projection)for(var n=e.projection=me(t?t.length:1,null),i=n.slice(),r=e.child;null!==r;){var o=t?$a(r,t):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function es(t,e,n){void 0===e&&(e=0);var i=We(),r=Ge(),o=Lr(r,i[6],t,1,null,n||null);null===o.projection&&(o.projection=e),Ke(),function(t,e,n){zo(e[11],0,e,n,Mo(t,n,e),jo(n.parent||e[6],e))}(r,i,o)}function ns(t,e,n){return is(t,"",e,"",n),ns}function is(t,e,n,i,r){var o=We(),a=Ma(o,e,n,i);if(a!==Cr){var s=hn();Yr(Ge(),o,s,t,a,r)}return is}var rs=[];function os(t,e,n,i,r){for(var o=t[n+1],a=null===e,s=i?Tr(o):Ar(o),c=!1;0!==s&&(!1===c||a);){var u=t[s+1];as(t[s],e)&&(c=!0,t[s+1]=i?Mr(u):Ir(u)),s=i?Tr(u):Ar(u)}c&&(t[n+1]=i?Ir(o):Mr(o))}function as(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ye(t,e)>=0}var ss={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function cs(t){return t.substring(ss.key,ss.keyEnd)}function us(t,e){var n=ss.textEnd;return n===e?-1:(e=ss.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,ss.key=e,n),ls(t,e,n))}function ls(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function ds(t,e,n){return fs(t,e,n,!1),ds}function ps(t,e){return fs(t,e,null,!0),ps}function hs(t,e){for(var n=function(t){return function(t){ss.key=0,ss.keyEnd=0,ss.value=0,ss.valueEnd=0,ss.textEnd=t.length}(t),us(t,ls(t,0,ss.textEnd))}(e);n>=0;n=us(e,n))ge(t,cs(e),!0)}function fs(t,e,n,i){var r,o=We(),a=Ge(),s=en(2);if(a.firstUpdatePass&&gs(a,t,s,i),e!==Cr&&Aa(o,s,e)){var c=void 0;null==n&&(c=null===(r=ze.lFrame)?null:r.currentSanitizer)&&(n=c),bs(a,a.data[hn()+19],o,o[11],t,o[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Pt(gi(t)))),t}(e,n),i,s)}}function ms(t,e){return e>=t.expandoStartIndex}function gs(t,e,n,i){var r=t.data;if(null===r[n+1]){var o=r[hn()+19],a=ms(t,n);Ss(o,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var r=function(t){var e=ze.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ys(n=vs(null,t,e,n,i),e.attrs,i),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(n=vs(r,t,e,n,i),null===o){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Ar(i))return t[Tr(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Tr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=ys(s=vs(null,t,e,s[1],i),e.attrs,i))}else o=function(t,e,n){for(var i=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o<r;o++)i=ys(i,t[o].hostAttrs,n);return ys(i,e.attrs,n)}(t,e,i)}return void 0!==o&&(i?e.residualClasses=o:e.residualStyles=o),n}(r,o,e,i),function(t,e,n,i,r,o){var a=o?e.classBindings:e.styleBindings,s=Tr(a),c=Ar(a);t[i]=n;var u,l=!1;if(Array.isArray(n)?(null===(u=n[1])||ye(n,u)>0)&&(l=!0):u=n,r)if(0!==c){var d=Tr(t[s+1]);t[i+1]=Or(d,s),0!==d&&(t[d+1]=Pr(t[d+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Or(s,0),0!==s&&(t[s+1]=Pr(t[s+1],i)),s=i;else t[i+1]=Or(c,0),0===s?s=i:t[c+1]=Pr(t[c+1],i),c=i;l&&(t[i+1]=Ir(t[i+1])),os(t,u,i,!0),os(t,u,i,!1),function(t,e,n,i,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ye(o,e)>=0&&(n[i+1]=Mr(n[i+1]))}(e,u,t,i,o),a=Or(s,c),o?e.classBindings=a:e.styleBindings=a}(r,o,e,n,a,i)}}function vs(t,e,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=ys(i,(o=e[s]).hostAttrs,r),o!==t);)s++;return null!==t&&(n.directiveStylingLast=s),i}function ys(t,e,n){var i=n?1:2,r=-1;if(null!==e)for(var o=0;o<e.length;o++){var a=e[o];"number"==typeof a?r=a:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ge(t,a,!!n||e[++o]))}return void 0===t?null:t}function bs(t,e,n,i,r,o,a,s){if(3===e.type){var c=t.data,u=c[s+1];ws(1==(1&u)?_s(c,e,n,r,Ar(u),a):void 0)||(ws(o)||function(t){return 2==(2&t)}(u)&&(o=_s(c,null,n,r,s,a)),function(t,e,n,i,r){var o=xn(t);if(e)r?o?t.addClass(n,i):n.classList.add(i):o?t.removeClass(n,i):n.classList.remove(i);else{var a=-1==i.indexOf("-")?void 0:2;null==r?o?t.removeStyle(n,i,a):n.style.removeProperty(i):o?t.setStyle(n,i,r,a):n.style.setProperty(i,r)}}(i,a,tr(hn(),n),r,o))}}function _s(t,e,n,i,r,o){for(var a=null===e,s=void 0;r>0;){var c=t[r],u=Array.isArray(c),l=u?c[1]:c,d=null===l,p=n[r+1];p===Cr&&(p=d?rs:void 0);var h=d?ve(p,i):l===i?p:void 0;if(u&&!ws(h)&&(h=ve(c,i)),ws(h)&&(s=h,a))return s;var f=t[r+1];r=a?Tr(f):Ar(f)}if(null!==e){var m=o?e.residualClasses:e.residualStyles;null!=m&&(s=ve(m,i))}return s}function ws(t){return void 0!==t}function Ss(t,e){return 0!=(t.flags&(e?16:32))}function Cs(t,e){void 0===e&&(e="");var n=We(),i=Ge(),r=t+19,o=i.firstCreatePass?Lr(i,n[6],t,3,null,null):i.data[r],a=n[r]=function(t,e){return xn(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Vo(i,n,a,o),Ye(o,!1)}function Es(t){return xs("",t,""),Es}function xs(t,e,n){var i=We(),r=Ma(i,t,e,n);return r!==Cr&&function(t,e,n){var i=tr(e,t),r=t[11];xn(r)?r.setValue(i,n):i.textContent=n}(i,hn(),r),xs}function ks(t,e,n){var i=We();if(Aa(i,tn(),e)){var r=hn();Yr(Ge(),i,r,t,e,n,!0)}return ks}function Os(t,e,n){var i=We();if(Aa(i,tn(),e)){var r=hn();Yr(Ge(),i,r,t,e,n,!0,_o)}return Os}function Ts(t,e){var n=or(t)[1],i=n.data.length-1;gn(n,{directiveStart:i,directiveEnd:i+1})}function Is(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Be(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var o=t;o.inputs=As(t.inputs),o.declaredInputs=As(t.declaredInputs),o.outputs=As(t.outputs);var a=r.hostBindings;a&&Rs(t,a);var s=r.viewQuery,c=r.contentQueries;if(s&&Ps(t,s),c&&Ms(t,c),_t(t.inputs,r.inputs),_t(t.declaredInputs,r.declaredInputs),_t(t.outputs,r.outputs),Be(r)&&r.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}o.afterContentChecked=o.afterContentChecked||r.afterContentChecked,o.afterContentInit=t.afterContentInit||r.afterContentInit,o.afterViewChecked=t.afterViewChecked||r.afterViewChecked,o.afterViewInit=t.afterViewInit||r.afterViewInit,o.doCheck=t.doCheck||r.doCheck,o.onDestroy=t.onDestroy||r.onDestroy,o.onInit=t.onInit||r.onInit}var l=r.features;if(l)for(var d=0;d<l.length;d++){var p=l[d];p&&p.ngInherit&&p(t),p===Is&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){for(var e=0,n=null,i=t.length-1;i>=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=An(r.hostAttrs,n=An(n,r.hostAttrs))}}(i)}function As(t){return t===we?{}:t===Se?[]:t}function Ps(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Ms(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function Rs(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Ns=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Ds(t){t.type.prototype.ngOnChanges&&(t.setInput=Ls,t.onChanges=function(){var t=js(this),e=t&&t.current;if(e){var n=t.previous;if(n===we)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}})}function Ls(t,e,n,i){var r=js(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:we,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],c=a[s];o[s]=new Ns(c&&c.currentValue,e,a===we),t[i]=e}function js(t){return t.__ngSimpleChanges__||null}function Vs(t,e,n,i,r){if(t=Dt(t),Array.isArray(t))for(var o=0;o<t.length;o++)Vs(t[o],e,n,i,r);else{var a=Ge(),s=We(),c=fa(t)?t:Dt(t.provide),u=da(t),l=Ze(),d=65535&l.providerIndexes,p=l.directiveStart,h=l.providerIndexes>>16;if(fa(t)||!t.multi){var f=new Sn(u,r,Na),m=Us(c,e,r?d:d+h,p);-1===m?(Kn(qn(l,s),a,c),Fs(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=65536),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{var g=Us(c,e,d+h,p),v=Us(c,e,d,d+h),y=v>=0&&n[v];r&&!y||!r&&!(g>=0&&n[g])?(Kn(qn(l,s),a,c),f=function(t,e,n,i,r){var o=new Sn(t,n,Na);return o.multi=[],o.index=e,o.componentProviders=0,Bs(o,r,i&&!n),o}(r?Hs:zs,n.length,r,i,u),!r&&y&&(n[v].providerFactory=f),Fs(a,t,e.length),e.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=65536),n.push(f),s.push(f)):(Fs(a,t,g>-1?g:v),Bs(n[r?v:g],u,!r&&i)),!r&&i&&y&&n[v].componentProviders++}}}function Fs(t,e,n){if(fa(e)||e.useClass){var i=(e.useClass||e).prototype.ngOnDestroy;i&&(t.destroyHooks||(t.destroyHooks=[])).push(n,i)}}function Bs(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Us(t,e,n,i){for(var r=n;r<i;r++)if(e[r]===t)return r;return-1}function zs(t,e,n,i){return Ws(this.multi,[])}function Hs(t,e,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=ei(n,n[1],this.providerFactory.index,i);Ws(o,r=s.slice(0,a));for(var c=a;c<s.length;c++)r.push(s[c])}else Ws(o,r=[]);return r}function Ws(t,e){for(var n=0;n<t.length;n++)e.push((0,t[n])());return e}function Gs(t,e){return void 0===e&&(e=[]),function(n){n.providersResolver=function(n,i){return function(t,e,n){var i=Ge();if(i.firstCreatePass){var r=Be(t);Vs(n,i.data,i.blueprint,r,!0),Vs(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}}Ds.ngInherit=!0;var qs=function(){return function(){}}(),Zs=function(){return function(){}}(),Ys=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw function(t){var e=Error("No component factory found for "+Pt(t)+". Did you add it to @NgModule.entryComponents?");return e.ngComponent=t,e}(t)},t}(),Qs=function(){function t(){}return t.NULL=new Ys,t}(),Ks=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return Xs(t)},t}(),Xs=function(t){return Ko(t,Ze(),We())},Js=function(){return function(){}}(),$s=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),tc=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ec()},t}(),ec=function(){var t=We(),e=rr(Ze().index,t);return function(t){var e=t[11];if(xn(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(De(e)?e:t)},nc=function(){function t(){}return t.\u0275prov=wt({token:t,providedIn:"root",factory:function(){return null}}),t}(),ic=function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}(),rc=new ic("9.0.6"),oc=function(){function t(){}return t.prototype.supports=function(t){return ka(t)},t.prototype.create=function(t){return new sc(t)},t}(),ac=function(t,e){return e},sc=function(){function t(t){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||ac}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var o=!n||e&&e.currentIndex<dc(n,i,r)?e:n,a=dc(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)i++;else{r||(r=[]);var c=a-i,u=s-i;if(c!=u){for(var l=0;l<c;l++){var d=l<r.length?r[l]:r[l]=0,p=d+l;u<=p&&p<c&&(r[l]=d+1)}r[o.previousIndex]=u-c}}a!==s&&t(o,a,s)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!ka(t))throw new Error("Error trying to diff '"+Pt(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=t[s]),null!==o&&Ea(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Ea(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var i=t[Ca()](),r=void 0;!(r=i.next()).done;)e(r.value)}(t,(function(t){r=e._trackByFn(n,t),null!==o&&Ea(o.trackById,r)?(a&&(o=e._verifyReinsertion(o,t,r,n)),Ea(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,r,n),a=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,i){var r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Ea(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ea(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new cc(e,n),r,i),t},t.prototype._verifyReinsertion=function(t,e,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new lc),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new lc),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),cc=function(){return function(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),uc=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Ea(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),lc=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new uc,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function dc(t,e,n){var i=t.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+e+r}var pc=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Oa(t)},t.prototype.create=function(){return new hc},t}(),hc=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Oa(t)))throw new Error("Error trying to diff '"+Pt(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(function(t,i){if(n&&n.key===i)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var r=e._getOrCreateRecordForKey(i,t);n=e._insertBeforeOrAppend(n,r)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new fc(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){Ea(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((function(n){return e(t[n],n)}))},t}(),fc=function(){return function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),mc=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var i=n.factories.slice();e=e.concat(i)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new vt,new mt]]}},t.prototype.find=function(t){var e,n=this.factories.find((function(e){return e.supports(t)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t.\u0275prov=wt({token:t,providedIn:"root",factory:function(){return new t([new oc])}}),t}(),gc=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var i=n.factories.slice();e=e.concat(i)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new vt,new mt]]}},t.prototype.find=function(t){var e=this.factories.find((function(e){return e.supports(t)}));if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t.\u0275prov=wt({token:t,providedIn:"root",factory:function(){return new t([new pc])}}),t}(),vc=[new pc],yc=new mc([new oc]),bc=new gc(vc),_c=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return wc(t,Ks)},t}(),wc=function(t,e){return Xo(t,e,Ze(),We())},Sc=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Cc(t,Ks)},t}(),Cc=function(t,e){return Jo(t,e,Ze(),We())},Ec={},xc=function(t){function e(e){var n=t.call(this)||this;return n.ngModule=e,n}return r(e,t),e.prototype.resolveComponentFactory=function(t){var e=Me(t);return new Tc(e,this.ngModule)},e}(Qs);function kc(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Oc=new Kt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Vn}}),Tc=function(t){function e(e,n){var i=t.call(this)||this;return i.componentDef=e,i.ngModule=n,i.componentType=e.type,i.selector=e.selectors.map(Sr).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!n,i}return r(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return kc(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return kc(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,i){var r,o,a=(i=i||this.ngModule)?function(t,e){return{get:function(n,i,r){var o=t.get(n,Ec,r);return o!==Ec||i===Ec?o:e.get(n,i,r)}}}(t,i.injector):t,s=a.get(Js,kn),c=a.get(nc,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",d=n?function(t,e,n){if(xn(t))return t.selectRootElement(e,n===_e.ShadowDom);var i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Nr(l,s.createRenderer(null,this.componentDef),function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),p=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),f={components:[],scheduler:Vn,clean:vo,playerHandler:null,flags:0},m=Gr(0,-1,null,1,0,null,null,null,null,null),g=Dr(null,m,f,p,null,null,s,u,c,a);sn(g,null);try{var v=function(t,e,n,i,r,o){var a=n[1];n[19]=t;var s=Lr(a,null,0,3,null,null),c=s.mergedAttrs=e.hostAttrs;null!==c&&(wa(s,c),null!==t&&(On(r,t,c),null!==s.classes&&Wo(r,t,s.classes),null!==s.styles&&Ho(r,t,s.styles)));var u=i.createRenderer(t,e),l=Dr(n,Wr(e),null,e.onPush?64:16,n[19],s,i,u,void 0);return a.firstCreatePass&&(Kn(qn(s,n),a,e.type),to(a,s),no(s,n.length,1)),po(n,l),n[19]=l}(d,this.componentDef,g,s,u);if(d)if(n)On(u,d,["ng-version",rc.full]);else{var y=function(t){for(var e=[],n=[],i=1,r=2;i<t.length;){var o=t[i];if("string"==typeof o)2===r?""!==o&&e.push(o,t[++i]):8===r&&n.push(o);else{if(!vr(r))break;r=o}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]),b=y.attrs,_=y.classes;b&&On(u,d,b),_&&_.length>0&&Wo(u,d,_.join(" "))}o=nr(g[1],0),e&&(o.projection=e.map((function(t){return Array.from(t)}))),r=function(t,e,n,i,r){var o=n[1],a=function(t,e,n){var i=Ze();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),$r(t,i,1),io(t,e,n));var r=ei(e,t,e.length-1,i);lr(r,e);var o=er(i,e);return o&&lr(o,e),r}(o,n,e);i.components.push(a),t[8]=a,r&&r.forEach((function(t){return t(a,e)})),e.contentQueries&&e.contentQueries(1,a,n.length-1);var s=Ze();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){fn(s.index-19);var c=n[1];Kr(c,e),Xr(c,n,e.hostVars),Jr(e,a)}return a}(v,this.componentDef,g,f,[Ts]),jr(m,g,null)}finally{pn()}var w=new Ic(this.componentType,r,Ko(Ks,o,g),g,o);return n&&!h||(w.hostView._tViewNode.child=o),w},e}(Zs),Ic=function(t){function e(e,n,i,r,o){var a,s,c,u=t.call(this)||this;return u.location=i,u._rootLView=r,u._tNode=o,u.destroyCbs=[],u.instance=n,u.hostView=u.changeDetectorRef=new Qo(r),u.hostView._tViewNode=(null,-1,s=r,null==(c=(a=r[1]).node)&&(a.node=c=qr(0,null,2,-1,null,null)),s[6]=c),u.componentType=e,u}return r(e,t),Object.defineProperty(e.prototype,"injector",{get:function(){return new ri(this._tNode,this._rootLView)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.destroyCbs&&(this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())},e.prototype.onDestroy=function(t){this.destroyCbs&&this.destroyCbs.push(t)},e}(qs),Ac=void 0,Pc=["en",[["a","p"],["AM","PM"],Ac],[["AM","PM"],Ac,Ac],[["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"]],Ac,[["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"]],Ac,[["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}",Ac,"{1} 'at' {0}",Ac],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Mc={};function Rc(t){return t in Mc||(Mc[t]=zt.ng&&zt.ng.common&&zt.ng.common.locales&&zt.ng.common.locales[t]),Mc[t]}var Nc=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.PluralCase=19]="PluralCase",t[t.ExtraData=20]="ExtraData",t}({});function Dc(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+" [Expected=> null != "+e+" <=Actual]")}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var Lc=new Map,jc=function(t){function e(e,n){var i=t.call(this)||this;i._parent=n,i._bootstrapComponents=[],i.injector=i,i.destroyCbs=[],i.componentFactoryResolver=new xc(i);var r=Ne(e),o=e[Zt]||null;return o&&Dc(o),i._bootstrapComponents=zn(r.bootstrap),i._r3Injector=ca(e,n,[{provide:le,useValue:i},{provide:Qs,useValue:i.componentFactoryResolver}],Pt(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return r(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=ga.THROW_IF_NOT_FOUND),void 0===n&&(n=yt.Default),t===ga||t===le||t===Xt?this:this._r3Injector.get(t,e,n)},e.prototype.destroy=function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(le),Vc=function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,null!==Ne(e)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for "+t+" - "+Pt(e)+" vs "+Pt(e.name))})(n,Lc.get(n),e),Lc.set(n,e)}var i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(e){return t(e)}))}(e),n}return r(e,t),e.prototype.create=function(t){return new jc(this.moduleType,t)},e}(de);function Fc(t,e,n,i){return Bc(We(),$e(),t,e,n,i)}function Bc(t,e,n,i,r,o){var a=e+n;return Aa(t,a,r)?Ta(t,a+1,o?i.call(o,r):i(r)):Ia(t,a+1)}function Uc(t,e){var n,i=Ge(),r=t+19;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new Error("The pipe '"+t+"' could not be found!")}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Re(n.type)),a=ie(Na),s=o();return ie(a),function(t,e,n,i){var r=n+19;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(i,We(),t,s),s}function zc(t,e,n){var i=We(),r=ir(i,t);return function(t,e){return xa.isWrapped(e)&&(e=xa.unwrap(e),t[ze.lFrame.bindingIndex]=Cr),e}(i,function(t,e){return t[1].data[e+19].pure}(i,t)?Bc(i,$e(),e,r.transform,n,r):r.transform(n))}var Hc=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,i){var r,o=function(t){return null},a=function(){return null};e&&"object"==typeof e?(r=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()})):(r=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout((function(){return n(t)}))}:function(t){n(t)}),i&&(a=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var s=t.prototype.subscribe.call(this,r,o,a);return e instanceof f&&e.add(s),s},e}(M);function Wc(){return this._results[Ca()]()}var Gc=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Hc,this.length=0;var e=Ca(),n=t.prototype;n[e]||(n[e]=Wc)}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var i=0;i<e.length;i++){var r=e[i];Array.isArray(r)?(n===e&&(n=e.slice(0,i)),t(r,n)):n!==e&&n.push(r)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),qc=function(){function t(t){this.queryList=t,this.matches=null}return t.prototype.clone=function(){return new t(this.queryList)},t.prototype.setDirty=function(){this.queryList.setDirty()},t}(),Zc=function(){function t(t){void 0===t&&(t=[]),this.queries=t}return t.prototype.createEmbeddedView=function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new t(r)}return null},t.prototype.insertView=function(t){this.dirtyQueriesWithMatches(t)},t.prototype.detachView=function(t){this.dirtyQueriesWithMatches(t)},t.prototype.dirtyQueriesWithMatches=function(t){for(var e=0;e<this.queries.length;e++)null!==lu(t,e).matches&&this.queries[e].setDirty()},t}(),Yc=function(){return function(t,e,n,i){void 0===i&&(i=null),this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}(),Qc=function(){function t(t){void 0===t&&(t=[]),this.queries=t}return t.prototype.elementStart=function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)},t.prototype.elementEnd=function(t){for(var e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)},t.prototype.embeddedTView=function(e){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(e,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new t(n):null},t.prototype.template=function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].template(t,e)},t.prototype.getByIndex=function(t){return this.queries[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this.queries.length},enumerable:!0,configurable:!0}),t.prototype.track=function(t){this.queries.push(t)},t}(),Kc=function(){function t(t,e){void 0===e&&(e=-1),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}return t.prototype.elementStart=function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)},t.prototype.elementEnd=function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)},t.prototype.template=function(t,e){this.elementStart(t,e)},t.prototype.embeddedTView=function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null},t.prototype.isApplyingToNode=function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode},t.prototype.matchTNode=function(t,e){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,i=0;i<n.length;i++)this.matchTNodeWithReadOption(t,e,Xc(e,n[i]));else{var r=this.metadata.predicate;r===_c?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,ti(e,t,r,!1,!1))}},t.prototype.matchTNodeWithReadOption=function(t,e,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Ks||i===Sc||i===_c&&0===e.type)this.addMatch(e.index,-2);else{var r=ti(e,t,i,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,n)}},t.prototype.addMatch=function(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)},t}();function Xc(t,e){var n=t.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Jc(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?Ko(Ks,t,e):0===t.type?Xo(_c,Ks,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ks?Ko(Ks,e,t):n===_c?Xo(_c,Ks,e,t):n===Sc?Jo(Sc,Ks,e,t):void 0}(t,e,i):ei(t,t[1],n,e)}function $c(t,e,n,i){var r=e[5].queries[i];if(null===r.matches){for(var o=t.data,a=n.matches,s=[],c=0;c<a.length;c+=2){var u=a[c];s.push(u<0?null:Jc(e,o[u],a[c+1],n.metadata.read))}r.matches=s}return r.matches}function tu(t){var e=We(),n=Ge(),i=rn();on(i+1);var r=lu(n,i);if(t.dirty&&ar(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{var o=r.crossesNgTemplate?function t(e,n,i,r){var o=e.queries.getByIndex(i),a=o.matches;if(null!==a)for(var s=$c(e,n,o,i),c=0;c<a.length;c+=2){var u=a[c];if(u>0)r.push(s[c/2]);else{for(var l=a[c+1],d=n[-u],p=9;p<d.length;p++)(m=d[p])[17]===m[3]&&t(m[1],m,l,r);if(null!==d[5])for(var h=d[5],f=0;f<h.length;f++){var m;t((m=h[f])[1],m,l,r)}}}return r}(n,e,i,[]):$c(n,e,r,i);t.reset(o),t.notifyOnChanges()}return!0}return!1}function eu(t,e,n){iu(Ge(),We(),t,e,n,!0)}function nu(t,e,n){iu(Ge(),We(),t,e,n,!1)}function iu(t,e,n,i,r,o){t.firstCreatePass&&(uu(t,new Yc(n,i,o,r),-1),o&&(t.staticViewQueries=!0)),cu(t,e)}function ru(t,e,n,i){au(Ge(),We(),e,n,i,!1,Ze(),t)}function ou(t,e,n,i){au(Ge(),We(),e,n,i,!0,Ze(),t)}function au(t,e,n,i,r,o,a,s){t.firstCreatePass&&(uu(t,new Yc(n,i,o,r),a.index),function(t,e){var n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,s),o&&(t.staticContentQueries=!0)),cu(t,e)}function su(){return t=We(),e=rn(),t[5].queries[e].queryList;var t,e}function cu(t,e){var n=new Gc;!function(t,e,n,i){var r=yo(e);r.push(n),t.firstCreatePass&&bo(t).push(i,r.length-1)}(t,e,n,n.destroy),null===e[5]&&(e[5]=new Zc),e[5].queries.push(new qc(n))}function uu(t,e,n){null===t.queries&&(t.queries=new Qc),t.queries.track(new Kc(e,n))}function lu(t,e){return t.queries.getByIndex(e)}var du=new Kt("Application Initializer"),pu=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();Ga(r)&&e.push(r)}Promise.all(e).then((function(){n()})).catch((function(e){t.reject(e)})),0===e.length&&n(),this.initialized=!0}},t.\u0275fac=function(e){return new(e||t)(oe(du,8))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),hu=new Kt("AppId"),fu={provide:hu,useFactory:function(){return""+mu()+mu()+mu()},deps:[]};function mu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var gu=new Kt("Platform Initializer"),vu=new Kt("Platform ID"),yu=new Kt("appBootstrapListener"),bu=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),_u=new Kt("LocaleId"),wu=new Kt("DefaultCurrencyCode"),Su=function(){return function(t,e){this.ngModuleFactory=t,this.componentFactories=e}}(),Cu=function(t){return new Vc(t)},Eu=Cu,xu=function(t){return Promise.resolve(Cu(t))},ku=function(t){var e=Cu(t),n=zn(Ne(t).declarations).reduce((function(t,e){var n=Me(e);return n&&t.push(new Tc(n)),t}),[]);return new Su(e,n)},Ou=ku,Tu=function(t){return Promise.resolve(ku(t))},Iu=function(){function t(){this.compileModuleSync=Eu,this.compileModuleAsync=xu,this.compileModuleAndAllComponentsSync=Ou,this.compileModuleAndAllComponentsAsync=Tu}return t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Au=new Kt("compilerOptions"),Pu=function(){return Promise.resolve(0)}();function Mu(t){"undefined"==typeof Zone?Pu.then((function(){t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}var Ru=function(){function t(t){var e,n,i=t.enableLongStackTrace,r=void 0!==i&&i,o=t.shouldCoalesceEventChangeDetection,a=void 0!==o&&o;if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Hc(!1),this.onMicrotaskEmpty=new Hc(!1),this.onStable=new Hc(!1),this.onError=new Hc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=a,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var t=zt.requestAnimationFrame,e=zt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){var n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);var i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,n=!!(e=this).shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&function(){!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(zt,(function(){t.lastRequestAnimationFrameId=-1,ju(t),Lu(t)})),ju(t))}(e)},e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:n},onInvokeTask:function(t,i,r,o,a,s){try{return Vu(e),t.invokeTask(r,o,a,s)}finally{n&&"eventTask"===o.type&&n(),Fu(e)}},onInvoke:function(t,n,i,r,o,a,s){try{return Vu(e),t.invoke(i,r,o,a,s)}finally{Fu(e)}},onHasTask:function(t,n,i,r){t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,ju(e),Lu(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:function(t,n,i,r){return t.handleError(i,r),e.runOutsideAngular((function(){return e.onError.emit(r)})),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,t,Du,Nu,Nu);try{return r.runTask(o,e,n)}finally{r.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Nu(){}var Du={};function Lu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular((function(){return t.onStable.emit(null)}))}finally{t.isStable=!0}}}function ju(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Vu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Fu(t){t._nesting--,Lu(t)}var Bu,Uu=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Hc,this.onMicrotaskEmpty=new Hc,this.onStable=new Hc,this.onError=new Hc}return t.prototype.run=function(t,e,n){return t.apply(e,n)},t.prototype.runGuarded=function(t,e,n){return t.apply(e,n)},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t,e,n,i){return t.apply(e,n)},t}(),zu=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){e.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.subscribe({next:function(){Ru.assertNotInAngularZone(),Mu((function(){t._isZoneStable=!0,t._runCallbacksIfReady()}))}})}))},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())Mu((function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1}));else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)})),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}})):[]},t.prototype.addCallback=function(t,e,n){var i=this,r=-1;e&&e>0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(t){return t.timeoutId!==r})),t(i._didWork,i.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})},t.prototype.whenStable=function(t,e,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(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t.\u0275fac=function(e){return new(e||t)(oe(Ru))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Hu=function(){function t(){this._applications=new Map,Wu.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Wu.findTestabilityInTree(this,t,e)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Wu=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Gu=function(t,e,n){var i=new Vc(n);if(0===ya.size)return Promise.resolve(i);var r,o,a=(r=t.get(Au,[]).concat(e).map((function(t){return t.providers})),o=[],r.forEach((function(t){return t&&o.push.apply(o,c(t))})),o);if(0===a.length)return Promise.resolve(i);var s=function(){var t=zt.ng;if(!t||!t.\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 t.\u0275compilerFacade}(),u=ga.create({providers:a}).get(s.ResourceLoader);return function(t){var e=[],n=new Map;function i(t){var e=n.get(t);if(!e){var i=function(t){return Promise.resolve(u.get(t))}(t);n.set(t,e=i.then(_a))}return e}return ya.forEach((function(t,n){var r=[];t.templateUrl&&r.push(i(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,a=t.styles||(t.styles=[]),s=t.styles.length;o&&o.forEach((function(e,n){a.push(""),r.push(i(e).then((function(i){a[s+n]=i,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var c=Promise.all(r).then((function(){return function(t){ba.delete(t)}(n)}));e.push(c)})),ya=new Map,Promise.all(e).then((function(){}))}().then((function(){return i}))},qu=new Kt("AllowMultipleToken"),Zu=function(){return function(t,e){this.name=t,this.token=e}}();function Yu(t,e,n){void 0===n&&(n=[]);var i="Platform: "+e,r=new Kt(i);return function(e){void 0===e&&(e=[]);var o=Qu();if(!o||o.injector.get(qu,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0},{provide:na,useValue:"platform"});!function(t){if(Bu&&!Bu.destroyed&&!Bu.injector.get(qu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Bu=t.get(Ku);var e=t.get(gu,null);e&&e.forEach((function(t){return t()}))}(ga.create({providers:a,name:i}))}return function(t){var e=Qu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Qu(){return Bu&&!Bu.destroyed?Bu:null}var Ku=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,i,r=this,o=(i=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new Uu:("zone.js"===n?void 0:n)||new Ru({enableLongStackTrace:wi(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Ru,useValue:o}];return o.run((function(){var e=ga.create({providers:a,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(ui,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return $u(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){i.handleError(t)}})})),function(t,e,i){try{var o=((a=n.injector.get(pu)).runInitializers(),a.donePromise.then((function(){return Dc(n.injector.get(_u,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return Ga(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(i,o)}))},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var i=Xu({},e);return Gu(this.injector,i,t).then((function(t){return n.bootstrapModuleFactory(t,i)}))},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ju);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Pt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(oe(ga))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Xu(t,e){return Array.isArray(e)?e.reduce(Xu,t):o(o({},t),e)}var Ju=function(){function t(t,e,n,i,r,o){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=wi(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var s=new O((function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){t.next(a._stable),t.complete()}))})),c=new O((function(t){var e;a._zone.runOutsideAngular((function(){e=a._zone.onStable.subscribe((function(){Ru.assertNotInAngularZone(),Mu((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Ru.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=nt(s,c.pipe(lt()))}return t.prototype.bootstrap=function(t,e){var n,i=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=t instanceof Zs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(le),o=n.create(ga.NULL,[],e||n.selector,r);o.onDestroy((function(){i._unloadComponent(o)}));var a=o.injector.get(zu,null);return a&&o.injector.get(Hu).registerApplication(o.location.nativeElement,a),this._loadComponent(o),wi()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t,e,n,i,r=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;try{for(var o=a(this._views),s=o.next();!s.done;s=o.next())s.value.detectChanges()}catch(l){t={error:l}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var c=a(this._views),u=c.next();!u.done;u=c.next())u.value.checkNoChanges()}catch(d){n={error:d}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}catch(p){this._zone.runOutsideAngular((function(){return r._exceptionHandler.handleError(p)}))}finally{this._runningTick=!1}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;$u(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(yu,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),$u(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach((function(t){return t.destroy()}))},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(oe(Ru),oe(bu),oe(ga),oe(ui),oe(Qs),oe(pu))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function $u(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var tl=function(){return function(){}}(),el=function(){return function(){}}(),nl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},il=function(){function t(t,e){this._compiler=t,this._config=e||nl}return t.prototype.load=function(t){return this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=s(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n("crnd")(r).then((function(t){return t[o]})).then((function(t){return rl(t,r,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))},t.prototype.loadFactory=function(t){var e=s(t.split("#"),2),i=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(t){return t[r+o]})).then((function(t){return rl(t,i,r)}))},t.\u0275fac=function(e){return new(e||t)(oe(Iu),oe(el,8))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function rl(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var ol=Yu(null,"core",[{provide:vu,useValue:"unknown"},{provide:Ku,deps:[ga]},{provide:Hu,deps:[]},{provide:bu,deps:[]}]),al=[{provide:Ju,useClass:Ju,deps:[Ru,bu,ga,ui,Qs,pu]},{provide:Oc,deps:[Ru],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:pu,useClass:pu,deps:[[new mt,du]]},{provide:Iu,useClass:Iu,deps:[]},fu,{provide:mc,useFactory:function(){return yc},deps:[]},{provide:gc,useFactory:function(){return bc},deps:[]},{provide:_u,useFactory:function(t){return Dc(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new ft(_u),new mt,new vt]]},{provide:wu,useValue:"USD"}],sl=function(){function t(t){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)(oe(Ju))},providers:al}),t}(),cl=null;function ul(){return cl}var ll=function(){return function(){}}(),dl=new Kt("DocumentToken"),pl=function(){function t(){}return t.\u0275prov=wt({factory:hl,token:t,providedIn:"platform"}),t.\u0275fac=function(e){return new(e||t)},t}();function hl(){return oe(ml)}var fl=new Kt("Location Initialized"),ml=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return r(e,t),e.prototype._init=function(){this.location=ul().getLocation(),this._history=ul().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return ul().getBaseHref(this._doc)},e.prototype.onPopState=function(t){ul().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){ul().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){gl()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){gl()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.prototype.getState=function(){return this._history.state},e.\u0275prov=wt({factory:vl,token:e,providedIn:"platform"}),e.\u0275fac=function(t){return new(t||e)(oe(dl))},e}(pl);function gl(){return!!window.history.pushState}function vl(){return new ml(oe(dl))}function yl(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function bl(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _l(t){return t&&"?"!==t[0]?"?"+t:t}var wl=function(){function t(){}return t.\u0275prov=wt({factory:Sl,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}();function Sl(t){var e=oe(dl).location;return new El(oe(pl),e&&e.origin||"")}var Cl=new Kt("appBaseHref"),El=function(t){function e(e,n){var i=t.call(this)||this;if(i._platformLocation=e,null==n&&(n=i._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=n,i}return r(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return yl(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+_l(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+_l(i));this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+_l(i));this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(oe(pl),oe(Cl,8))},e.\u0275prov=wt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(wl),xl=function(t){function e(e,n){var i=t.call(this)||this;return i._platformLocation=e,i._baseHref="",null!=n&&(i._baseHref=n),i}return r(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=yl(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+_l(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+_l(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(oe(pl),oe(Cl,8))},e.\u0275prov=wt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(wl),kl=function(){function t(t,e){var n=this;this._subject=new Hc,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=bl(Tl(i)),this._platformStrategy.onPopState((function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})}))}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.getState=function(){return this._platformLocation.getState()},t.prototype.isCurrentPathEqualTo=function(t,e){return void 0===e&&(e=""),this.path()==this.normalize(t+_l(e))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Tl(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_l(e)),n)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_l(e)),n)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.onUrlChange=function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))},t.prototype._notifyUrlChangeListeners=function(t,e){void 0===t&&(t=""),this._urlChangeListeners.forEach((function(n){return n(t,e)}))},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=_l,t.joinWithSlash=yl,t.stripTrailingSlash=bl,t.\u0275prov=wt({factory:Ol,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(wl),oe(pl))},t}();function Ol(){return new kl(oe(wl),oe(pl))}function Tl(t){return t.replace(/\/index.html$/,"")}var Il=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Al=function(){return function(){}}(),Pl=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return r(e,t),e.prototype.getPluralCategory=function(t,e){switch(function(t){return function(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=Rc(e);if(n)return n;var i=e.split("-")[0];if(n=Rc(i))return n;if("en"===i)return Pc;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[Nc.PluralCase]}(e||this.locale)(t)){case Il.Zero:return"zero";case Il.One:return"one";case Il.Two:return"two";case Il.Few:return"few";case Il.Many:return"many";default:return"other"}},e.\u0275fac=function(t){return new(t||e)(oe(_u))},e.\u0275prov=wt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Al);function Ml(t,e){var n,i;e=encodeURIComponent(e);try{for(var r=a(t.split(";")),o=r.next();!o.done;o=r.next()){var c=o.value,u=c.indexOf("="),l=s(-1==u?[c,""]:[c.slice(0,u),c.slice(u+1)],2),d=l[1];if(l[0].trim()===e)return decodeURIComponent(d)}}catch(p){n={error:p}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return null}var Rl=function(){function t(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(ka(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Pt(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))},t.\u0275fac=function(e){return new(e||t)(Na(mc),Na(gc),Na(Ks),Na(tc))},t.\u0275dir=Ae({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Nl=function(){function t(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Dl=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){wi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation((function(t,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Nl(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new Ll(t,o);n.push(a)}else null==r?e._viewContainer.remove(null===i?void 0:i):null!==i&&(o=e._viewContainer.get(i),e._viewContainer.move(o,r),a=new Ll(t,o),n.push(a))}));for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);i=0;for(var r=this._viewContainer.length;i<r;i++){var o=this._viewContainer.get(i);o.context.index=i,o.context.count=r,o.context.ngForOf=this._ngForOf}t.forEachIdentityChange((function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item}))},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.ngTemplateContextGuard=function(t,e){return!0},t.\u0275fac=function(e){return new(e||t)(Na(Sc),Na(_c),Na(mc))},t.\u0275dir=Ae({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t}(),Ll=function(){return function(t,e){this.record=t,this.view=e}}(),jl=function(){function t(t,e){this._viewContainer=t,this._context=new Vl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){Fl("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){Fl("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t.ngTemplateContextGuard=function(t,e){return!0},t.\u0275fac=function(e){return new(e||t)(Na(Sc),Na(_c))},t.\u0275dir=Ae({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t}(),Vl=function(){return function(){this.$implicit=null,this.ngIf=null}}();function Fl(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Pt(e)+"'.")}var Bl=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Ul=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t}(),zl=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Bl(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t.\u0275fac=function(e){return new(e||t)(Na(Sc),Na(_c),Na(Ul,1))},t.\u0275dir=Ae({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t}(),Hl=function(){function t(t,e,n){n._addDefault(new Bl(t,e))}return t.\u0275fac=function(e){return new(e||t)(Na(Sc),Na(_c),Na(Ul,1))},t.\u0275dir=Ae({type:t,selectors:[["","ngSwitchDefault",""]]}),t}(),Wl=function(){function t(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._setStyle=function(t,e){var n=s(t.split("."),2),i=n[0],r=n[1];null!=(e=null!=e&&r?""+e+r:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem((function(t){return e._setStyle(t.key,null)})),t.forEachAddedItem((function(t){return e._setStyle(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._setStyle(t.key,t.currentValue)}))},t.\u0275fac=function(e){return new(e||t)(Na(Ks),Na(gc),Na(tc))},t.\u0275dir=Ae({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t}(),Gl=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),ql=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,(function(t){throw t}))},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),Zl=new Gl,Yl=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var e;return e=t,t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):Ea(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,xa.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,(function(n){return e._updateLatestValue(t,n)}))},t.prototype._selectStrategy=function(t){if(Ga(t))return ql;if(qa(t))return Zl;throw Error("InvalidPipeArgument: '"+t+"' for pipe '"+Pt(e)+"'")},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t.\u0275fac=function(e){return new(e||t)(function(t){void 0===t&&(t=yt.Default);var e=$o(!0);if(null!=e||t&yt.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=Pe({name:"async",type:t,pure:!1}),t}(),Ql=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[{provide:Al,useClass:Pl}]}),t}();function Kl(t){return"browser"===t}function Xl(t){return"server"===t}var Jl,$l=function(){function t(){}return t.\u0275prov=wt({token:t,providedIn:"root",factory:function(){return new td(oe(dl),window,oe(ui))}}),t}(),td=function(){function t(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=function(){return[0,0]}}return t.prototype.setOffset=function(t){this.offset=Array.isArray(t)?function(){return t}:t},t.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},t.prototype.scrollToPosition=function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])},t.prototype.scrollToAnchor=function(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='"+t+"']");if(n)return void this.scrollToElement(n)}catch(i){this.errorHandler.handleError(i)}}},t.prototype.setHistoryScrollRestoration=function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}},t.prototype.scrollToElement=function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])},t.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}},t}(),ed=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.makeCurrent=function(){var t;t=new e,cl||(cl=t)},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.getValue=function(t){return t.value},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=nd||(nd=document.querySelector("base"))?nd.getAttribute("href"):null;return null==n?null:(e=n,Jl||(Jl=document.createElement("a")),Jl.setAttribute("href",e),"/"===Jl.pathname.charAt(0)?Jl.pathname:"/"+Jl.pathname)},e.prototype.resetBaseElement=function(){nd=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Ml(document.cookie,t)},e}(function(t){function e(){return t.call(this)||this}return r(e,t),e.prototype.supportsDOMEvents=function(){return!0},e}(ll)),nd=null,id=new Kt("TRANSITION_ID"),rd=[{provide:du,useFactory:function(t,e,n){return function(){n.get(pu).donePromise.then((function(){var n=ul();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return n.remove(t)}))}))}},deps:[id,dl,ga],multi:!0}],od=function(){function t(){}return t.init=function(){var e;e=new t,Wu=e},t.prototype.addToWindow=function(t){zt.getAngularTestability=function(e,n){void 0===n&&(n=!0);var i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},zt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},zt.getAllAngularRootElements=function(){return t.getAllRootElements()},zt.frameworkStabilizers||(zt.frameworkStabilizers=[]),zt.frameworkStabilizers.push((function(t){var e=zt.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach((function(t){t.whenStable(r)}))}))},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?ul().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null},t}(),ad=new Kt("EventManagerPlugins"),sd=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach((function(t){return t.manager=n})),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(t))return this._eventNameToPlugin.set(t,r),r}throw new Error("No event manager plugin found for event "+t)},t.\u0275fac=function(e){return new(e||t)(oe(ad),oe(Ru))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),cd=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var i=ul().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target "+i+" for event "+e);return this.addEventListener(i,e,n)},t}(),ud=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach((function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))})),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),ld=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return r(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach((function(t){var i=n._doc.createElement("style");i.textContent=t,n._styleNodes.add(e.appendChild(i))}))},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach((function(n){return e._addStylesToHost(t,n)}))},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(t){return ul().remove(t)}))},e.\u0275fac=function(t){return new(t||e)(oe(dl))},e.\u0275prov=wt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(ud),dd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pd=/%COMP%/g;function hd(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];Array.isArray(r)?hd(t,r,n):(r=r.replace(pd,t),n.push(r))}return n}function fd(t){return function(e){if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var md=function(){function t(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new gd(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case _e.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new vd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case _e.Native:case _e.ShadowDom:return new yd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var i=hd(e.id,e.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t.\u0275fac=function(e){return new(e||t)(oe(sd),oe(ld),oe(hu))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),gd=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(dd[e]||e,t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,i){if(i){e=i+":"+e;var r=dd[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var i=dd[n];i?t.removeAttributeNS(i,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,i){i&$s.DashCase?t.style.setProperty(e,n,i&$s.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&$s.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,fd(n)):this.eventManager.addEventListener(t,e,fd(n))},t}(),vd=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;o.component=i;var a=hd(r+"-"+i.id,i.styles,[]);return n.addStyles(a),o.contentAttr="_ngcontent-%COMP%".replace(pd,r+"-"+i.id),o.hostAttr=function(t){return"_nghost-%COMP%".replace(pd,t)}(r+"-"+i.id),o}return r(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var i=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,i,this.contentAttr,""),i},e}(gd),yd=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=i,o.component=r,o.shadowRoot=r.encapsulation===_e.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=hd(r.id,r.styles,[]),s=0;s<a.length;s++){var c=document.createElement("style");c.textContent=a[s],o.shadowRoot.appendChild(c)}return o}return r(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,i){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,i)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(gd),bd=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var i=this;return t.addEventListener(e,n,!1),function(){return i.removeEventListener(t,e,n)}},e.prototype.removeEventListener=function(t,e,n){return t.removeEventListener(e,n)},e.\u0275fac=function(t){return new(t||e)(oe(dl))},e.\u0275prov=wt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(cd),_d=["alt","control","meta","shift"],wd={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Sd={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Cd={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Ed=function(t){function e(e){return t.call(this,e)||this}var n;return r(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,i){var r=n.parseEventName(e),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return ul().onAndCancel(t,r.domEventName,o)}))},e.parseEventName=function(t){var e=t.toLowerCase().split("."),i=e.shift();if(0===e.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(e.pop()),o="";if(_d.forEach((function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")})),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Sd.hasOwnProperty(e)&&(e=Sd[e]))}return wd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),_d.forEach((function(i){i!=n&&(0,Cd[i])(t)&&(e+=i+".")})),e+=n},e.eventCallback=function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded((function(){return e(r)}))}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.\u0275fac=function(t){return new(t||e)(oe(dl))},e.\u0275prov=wt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(cd),xd=function(){function t(){}return t.\u0275prov=wt({factory:function(){return oe(kd)},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),kd=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return r(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Wi.NONE:return e;case Wi.HTML:return vi(e,"HTML")?gi(e):zi(this._doc,String(e));case Wi.STYLE:return vi(e,"Style")?gi(e):Zi(e);case Wi.SCRIPT:if(vi(e,"Script"))return gi(e);throw new Error("unsafe value used in a script context");case Wi.URL:return yi(e),vi(e,"URL")?gi(e):xi(String(e));case Wi.RESOURCE_URL:if(vi(e,"ResourceURL"))return gi(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.bypassSecurityTrustHtml=function(t){return new di(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new pi(t)},e.prototype.bypassSecurityTrustScript=function(t){return new hi(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new fi(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new mi(t)},e.\u0275prov=wt({factory:function(){return t=oe(Xt),new kd(t.get(dl));var t},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(oe(dl))},e}(xd),Od=Yu(ol,"browser",[{provide:vu,useValue:"browser"},{provide:gu,useValue:function(){ed.makeCurrent(),od.init()},multi:!0},{provide:dl,useFactory:function(){return function(t){Cn=t}(document),document},deps:[]}]),Td=[[],{provide:na,useValue:"root"},{provide:ui,useFactory:function(){return new ui},deps:[]},{provide:ad,useClass:bd,multi:!0,deps:[dl,Ru,vu]},{provide:ad,useClass:Ed,multi:!0,deps:[dl]},[],{provide:md,useClass:md,deps:[sd,ld,hu]},{provide:Js,useExisting:md},{provide:ud,useExisting:ld},{provide:ld,useClass:ld,deps:[dl]},{provide:zu,useClass:zu,deps:[Ru]},{provide:sd,useClass:sd,deps:[ad,Ru]},[]],Id=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:hu,useValue:t.appId},{provide:id,useExisting:hu},rd]}},t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(n){return new(n||t)(oe(e,12))},providers:Td,imports:[Ql,sl]}),t}();function Ad(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if(l(n))return Pd(n,null);if(d(n)&&Object.getPrototypeOf(n)===Object.prototype){var i=Object.keys(n);return Pd(i.map((function(t){return n[t]})),i)}}if("function"==typeof t[t.length-1]){var r=t.pop();return Pd(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(W((function(t){return r.apply(void 0,t)})))}return Pd(t,null)}function Pd(t,e){return new O((function(n){var i=t.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var c=Y(t[s]),u=!1;n.add(c.subscribe({next:function(t){u||(u=!0,a++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==i&&u||(a===i&&n.next(e?e.reduce((function(t,e,n){return t[e]=r[n],t}),{}):r),n.complete())}}))},c=0;c<i;c++)s(c);else n.complete()}))}"undefined"!=typeof window&&window;var Md=new Kt("NgValueAccessor"),Rd={provide:Md,useExisting:Nt((function(){return Nd})),multi:!0},Nd=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Na(tc),Na(Ks))},t.\u0275dir=Ae({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Za("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Gs([Rd])]}),t}(),Dd={provide:Md,useExisting:Nt((function(){return jd})),multi:!0},Ld=new Kt("CompositionEventMode"),jd=function(){function t(t,e,n){var i;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=ul()?ul().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t.\u0275fac=function(e){return new(e||t)(Na(tc),Na(Ks),Na(Ld,8))},t.\u0275dir=Ae({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Za("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Gs([Dd])]}),t}(),Vd=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t}),t}(),Fd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({type:e,features:[Is]});var n=oi(e);return e}(Vd);function Bd(){throw new Error("unimplemented")}var Ud=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return r(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return Bd()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Bd()},enumerable:!0,configurable:!0}),e}(Vd),zd=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),Hd=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Na(Ud,2))},e.\u0275dir=Ae({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ps("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Is]}),e}(zd),Wd=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Na(Fd,2))},e.\u0275dir=Ae({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ps("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Is]}),e}(zd);function Gd(t){return null==t||0===t.length}var qd=new Kt("NgValidators"),Zd=new Kt("NgAsyncValidators"),Yd=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Qd=function(){function t(){}return t.min=function(t){return function(e){if(Gd(e.value)||Gd(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(Gd(e.value)||Gd(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Gd(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Gd(t.value)?null:Yd.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Gd(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(Gd(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(Kd);return 0==e.length?null:function(t){return Jd(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Kd);return 0==e.length?null:function(t){return Ad(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(Xd)).pipe(W(Jd))}},t}();function Kd(t){return null!=t}function Xd(t){var e=Ga(t)?Y(t):t;if(!qa(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Jd(t){var e={};return t.forEach((function(t){e=null!=t?o(o({},e),t):e})),0===Object.keys(e).length?null:e}function $d(t){return t.validate?function(e){return t.validate(e)}:t}function tp(t){return t.validate?function(e){return t.validate(e)}:t}var ep={provide:Md,useExisting:Nt((function(){return np})),multi:!0},np=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Na(tc),Na(Ks))},t.\u0275dir=Ae({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Za("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Gs([ep])]}),t}(),ip={provide:Md,useExisting:Nt((function(){return op})),multi:!0},rp=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),op=function(){function t(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Ud),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t.\u0275fac=function(e){return new(e||t)(Na(tc),Na(Ks),Na(rp),Na(ga))},t.\u0275dir=Ae({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Za("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Gs([ip])]}),t}(),ap={provide:Md,useExisting:Nt((function(){return sp})),multi:!0},sp=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Na(tc),Na(Ks))},t.\u0275dir=Ae({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Za("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Gs([ap])]}),t}(),cp='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',up='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',lp='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',dp=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+cp)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+up+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+lp)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+cp)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+up)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}(),pp={provide:Md,useExisting:Nt((function(){return hp})),multi:!0},hp=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ea}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var i=a(Array.from(this._optionMap.keys())),r=i.next();!r.done;r=i.next()){var o=r.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(s){e={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t.\u0275fac=function(e){return new(e||t)(Na(tc),Na(Ks))},t.\u0275dir=Ae({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Za("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Gs([pp])]}),t}(),fp={provide:Md,useExisting:Nt((function(){return mp})),multi:!0},mp=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ea}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var i=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(i.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=e._getOptionValue(a.value);i.push(s)}else for(r=n.options,o=0;o<r.length;o++)(a=r.item(o)).selected&&(s=e._getOptionValue(a.value),i.push(s));e.value=i,t(i)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){var e,n;try{for(var i=a(Array.from(this._optionMap.keys())),r=i.next();!r.done;r=i.next()){var o=r.value;if(this._compareWith(this._optionMap.get(o)._value,t))return o}}catch(s){e={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t.\u0275fac=function(e){return new(e||t)(Na(tc),Na(Ks))},t.\u0275dir=Ae({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Za("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Gs([fp])]}),t}();function gp(t,e){return c(e.path,[t])}function vp(t,e){t||wp(e,"Cannot find control with"),e.valueAccessor||wp(e,"No value accessor for form control with"),t.validator=Qd.compose([t.validator,e.validator]),t.asyncValidator=Qd.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&yp(t,e)}))}(t,e),function(t,e){t.registerOnChange((function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&yp(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange((function(t){e.valueAccessor.setDisabledState(t)})),e._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))})),e._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))}))}function yp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function bp(t,e){null==t&&wp(e,"Cannot find control with"),t.validator=Qd.compose([t.validator,e.validator]),t.asyncValidator=Qd.composeAsync([t.asyncValidator,e.asyncValidator])}function _p(t){return wp(t,"There is no FormControl instance attached to form control element with")}function wp(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Sp(t){return null!=t?Qd.compose(t.map($d)):null}function Cp(t){return null!=t?Qd.composeAsync(t.map(tp)):null}function Ep(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Ea(e,n.currentValue)}var xp=[Nd,sp,np,hp,mp,op];function kp(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function Op(t,e){if(!e)return null;Array.isArray(e)||wp(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach((function(e){var o;e.constructor===jd?n=e:(o=e,xp.some((function(t){return o.constructor===t}))?(i&&wp(t,"More than one built-in value accessor matches form control with"),i=e):(r&&wp(t,"More than one custom value accessor matches form control with"),r=e))})),r||i||n||(wp(t,"No valid value accessor for form control with"),null)}function Tp(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function Ip(t,e,n,i){wi()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(dp.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function Ap(t){var e=Mp(t)?t.validators:t;return Array.isArray(e)?Sp(e):e||null}function Pp(t,e){var n=Mp(e)?e.asyncValidators:t;return Array.isArray(n)?Cp(n):n||null}function Mp(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Rp=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=Ap(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=Pp(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(o(o({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))},t.prototype.enable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(o(o({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=Xd(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach((function(t){i=i instanceof Dp?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Lp&&i.at(t)||null})),i}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new Hc,this.statusChanges=new Hc},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls((function(e){return e.status===t}))},t.prototype._anyControlsDirty=function(){return this._anyControls((function(t){return t.dirty}))},t.prototype._anyControlsTouched=function(){return this._anyControls((function(t){return t.touched}))},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){Mp(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t.prototype._parentMarkedDirty=function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},t}(),Np=function(t){function e(e,n,i){void 0===e&&(e=null);var r=t.call(this,Ap(n),Pp(i,n))||this;return r._onChange=[],r._applyFormState(e),r._setUpdateStrategy(n),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r._initObservables(),r}return r(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach((function(t){return t(n.value,!1!==e.emitViewToModelChange)})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(Rp),Dp=function(t){function e(e,n,i){var r=t.call(this,Ap(n),Pp(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach((function(i){n._throwIfControlMissing(i),n.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach((function(i){n.controls[i]&&n.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof Np?e.value:e.getRawValue(),t}))},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){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[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild((function(i,r){n=n||e.contains(r)&&t(i)})),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},(function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e}))},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild((function(t,i){n=e(n,t,i)})),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=a(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(r){t={error:r}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},e}(Rp),Lp=function(t){function e(e,n,i){var r=t.call(this,Ap(n),Pp(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach((function(t,i){n._throwIfControlMissing(i),n.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach((function(t,i){n.at(i)&&n.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map((function(t){return t instanceof Np?t.value:t.getRawValue()}))},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},e.prototype._syncPendingControls=function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach((function(e,n){t(e,n)}))},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))},e.prototype._anyControls=function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=a(this.controls),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(r){t={error:r}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Rp),jp={provide:Fd,useExisting:Nt((function(){return Fp}))},Vp=function(){return Promise.resolve(null)}(),Fp=function(t){function e(e,n){var i=t.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new Hc,i.form=new Dp({},Sp(e),Cp(n)),i}return r(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Vp.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),vp(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Vp.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Tp(e._directives,t)}))},e.prototype.addFormGroup=function(t){var e=this;Vp.then((function(){var n=e._findContainer(t.path),i=new Dp({});bp(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))},e.prototype.removeFormGroup=function(t){var e=this;Vp.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Vp.then((function(){n.form.get(t.path).setValue(e)}))},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,kp(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.\u0275fac=function(t){return new(t||e)(Na(qd,10),Na(Zd,10))},e.\u0275dir=Ae({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Za("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Gs([jp]),Is]}),e}(Fd),Bp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return gp(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Sp(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Cp(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({type:e,features:[Is]});var n=oi(e);return e}(Fd),Up=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+cp+'\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 <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+up+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+lp)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+up+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+lp)},t}(),zp={provide:Fd,useExisting:Nt((function(){return Hp}))},Hp=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}var n;return r(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Fp||Up.modelGroupParentException()},e.\u0275fac=function(t){return new(t||e)(Na(Fd,5),Na(qd,10),Na(Zd,10))},e.\u0275dir=Ae({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Gs([zp]),Is]}),e}(Bp),Wp={provide:Ud,useExisting:Nt((function(){return qp}))},Gp=function(){return Promise.resolve(null)}(),qp=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.control=new Np,o._registered=!1,o.update=new Hc,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=i||[],o.valueAccessor=Op(o,r),o}return r(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Ep(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?gp(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Sp(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Cp(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){vp(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Hp)&&this._parent instanceof Bp?Up.formGroupNameException():this._parent instanceof Hp||this._parent instanceof Fp||Up.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Up.missingNameException()},e.prototype._updateValue=function(t){var e=this;Gp.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;Gp.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))},e.\u0275fac=function(t){return new(t||e)(Na(Fd,9),Na(qd,10),Na(Zd,10),Na(Md,10))},e.\u0275dir=Ae({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Gs([Wp]),Is,Ds]}),e}(Ud),Zp=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),Yp=new Kt("NgModelWithFormControlWarning"),Qp={provide:Ud,useExisting:Nt((function(){return Kp}))},Kp=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._ngModelWarningConfig=r,o.update=new Hc,o._ngModelWarningSent=!1,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=Op(o,i),o}var n;return r(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){dp.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(vp(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Ep(t,this.viewModel)&&(Ip("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Sp(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Cp(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(Na(qd,10),Na(Zd,10),Na(Md,10),Na(Yp,8))},e.\u0275dir=Ae({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Gs([Qp]),Is,Ds]}),e}(Ud),Xp={provide:Fd,useExisting:Nt((function(){return Jp}))},Jp=function(t){function e(e,n){var i=t.call(this)||this;return i._validators=e,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new Hc,i}return r(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return vp(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){Tp(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);bp(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);bp(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,kp(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return _p(e)})),e.valueAccessor.registerOnTouched((function(){return _p(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&vp(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=Sp(this._validators);this.form.validator=Qd.compose([this.form.validator,t]);var e=Cp(this._asyncValidators);this.form.asyncValidator=Qd.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||dp.missingFormException()},e.\u0275fac=function(t){return new(t||e)(Na(qd,10),Na(Zd,10))},e.\u0275dir=Ae({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Za("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Gs([Xp]),Is,Ds]}),e}(Fd),$p={provide:Fd,useExisting:Nt((function(){return th}))},th=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return r(e,t),e.prototype._checkParentType=function(){ih(this._parent)&&dp.groupParentException()},e.\u0275fac=function(t){return new(t||e)(Na(Fd,13),Na(qd,10),Na(Zd,10))},e.\u0275dir=Ae({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Gs([$p]),Is]}),e}(Bp),eh={provide:Fd,useExisting:Nt((function(){return nh}))},nh=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return gp(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Sp(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Cp(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){ih(this._parent)&&dp.arrayParentException()},e.\u0275fac=function(t){return new(t||e)(Na(Fd,13),Na(qd,10),Na(Zd,10))},e.\u0275dir=Ae({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Gs([eh]),Is]}),e}(Fd);function ih(t){return!(t instanceof th||t instanceof Jp||t instanceof nh)}var rh={provide:Ud,useExisting:Nt((function(){return oh}))},oh=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._ngModelWarningConfig=o,a._added=!1,a.update=new Hc,a._ngModelWarningSent=!1,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=Op(a,r),a}var n;return r(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){dp.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),Ep(t,this.viewModel)&&(Ip("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return gp(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Sp(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Cp(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof th)&&this._parent instanceof Bp?dp.ngModelGroupException():this._parent instanceof th||this._parent instanceof Jp||this._parent instanceof nh||dp.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(Na(Fd,13),Na(qd,10),Na(Zd,10),Na(Md,10),Na(Yp,8))},e.\u0275dir=Ae({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Gs([rh]),Is,Ds]}),e}(Ud),ah=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)}}),t}(),sh=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),i=null,r=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new Dp(n,{asyncValidators:r,updateOn:o,validators:i})},t.prototype.control=function(t,e,n){return new Np(t,e,n)},t.prototype.array=function(t,e,n){var i=this,r=t.map((function(t){return i._createControl(t)}));return new Lp(r,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n},t.prototype._createControl=function(t){return t instanceof Np||t instanceof Dp||t instanceof Lp?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),ch=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[rp],imports:[ah]}),t}(),uh=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:Yp,useValue:t.warnOnNgModelWithFormControl}]}},t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[sh,rp],imports:[ah]}),t}(),lh=function(){return function(){}}(),dh=function(){return function(){}}();function ph(t,e){return{type:7,name:t,definitions:e,options:{}}}function hh(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function fh(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function mh(t){return{type:6,styles:t,offset:null}}function gh(t,e,n){return{type:0,name:t,styles:e,options:n}}function vh(t){return{type:5,steps:t}}function yh(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function bh(t){return void 0===t&&(t=null),{type:9,options:t}}function _h(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}}function wh(t){Promise.resolve(null).then(t)}var Sh=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;wh((function(){return t._onFinish()}))},t.prototype._onStart=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),Ch=function(){function t(t){var e=this;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 n=0,i=0,r=0,o=this.players.length;0==o?wh((function(){return e._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++n==o&&e._onFinish()})),t.onDestroy((function(){++i==o&&e._onDestroy()})),t.onStart((function(){++r==o&&e._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach((function(t){return t.init()}))},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))},t.prototype.pause=function(){this.players.forEach((function(t){return t.pause()}))},t.prototype.restart=function(){this.players.forEach((function(t){return t.restart()}))},t.prototype.finish=function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))},t.prototype.getPosition=function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t},t.prototype.beforeDestroy=function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}();function Eh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function xh(t){switch(t.length){case 0:return new Sh;case 1:return t[0];default:return new Ch(t)}}function kh(t,e,n,i,r,o){void 0===r&&(r={}),void 0===o&&(o={});var a=[],s=[],c=-1,u=null;if(i.forEach((function(t){var n=t.offset,i=n==c,l=i&&u||{};Object.keys(t).forEach((function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),s){case"!":s=r[n];break;case"*":s=o[n];break;default:s=e.normalizeStyleValue(n,i,s,a)}l[i]=s})),i||s.push(l),u=l,c=n})),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function Oh(t,e,n,i){switch(e){case"start":t.onStart((function(){return i(n&&Th(n,"start",t))}));break;case"done":t.onDone((function(){return i(n&&Th(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return i(n&&Th(n,"destroy",t))}))}}function Th(t,e,n){var i=n.totalTime,r=Ih(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function Ih(t,e,n,i,r,o,a){return void 0===r&&(r=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Ah(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Ph(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var Mh=function(t,e){return!1},Rh=function(t,e){return!1},Nh=function(t,e,n){return[]},Dh=Eh();(Dh||"undefined"!=typeof Element)&&(Mh=function(t,e){return t.contains(e)},Rh=function(){if(Dh||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:Rh}(),Nh=function(t,e,n){var i=[];if(n)i.push.apply(i,c(t.querySelectorAll(e)));else{var r=t.querySelector(e);r&&i.push(r)}return i});var Lh=null,jh=!1;function Vh(t){Lh||(Lh=("undefined"!=typeof document?document.body:null)||{},jh=!!Lh.style&&"WebkitAppearance"in Lh.style);var e=!0;return Lh.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in Lh.style)&&jh&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Lh.style),e}var Fh=Rh,Bh=Mh,Uh=Nh;function zh(t){var e={};return Object.keys(t).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}var Hh=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return Vh(t)},t.prototype.matchesElement=function(t,e){return Fh(t,e)},t.prototype.containsElement=function(t,e){return Bh(t,e)},t.prototype.query=function(t,e,n){return Uh(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,i,r,o,a){return void 0===o&&(o=[]),new Sh(n,i)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Wh=function(){function t(){}return t.NOOP=new Hh,t}();function Gh(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qh(parseFloat(e[1]),e[2])}function qh(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Zh(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,r=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};i=qh(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=qh(parseFloat(s),a[4]));var c=a[5];c&&(o=c)}else i=t;if(!n){var u=!1,l=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(l,0,'The provided timing value "'+t+'" is invalid.')}return{duration:i,delay:r,easing:o}}(t,e,n)}function Yh(t,e){return void 0===e&&(e={}),Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function Qh(t,e,n){if(void 0===n&&(n={}),e)for(var i in t)n[i]=t[i];else Yh(t,n);return n}function Kh(t,e,n){return n?e+":"+n+";":""}function Xh(t){for(var e="",n=0;n<t.style.length;n++)e+=Kh(0,i=t.style.item(n),t.style.getPropertyValue(i));for(var i in t.style)t.style.hasOwnProperty(i)&&!i.startsWith("_")&&(e+=Kh(0,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[i]));t.setAttribute("style",e)}function Jh(t,e,n){t.style&&(Object.keys(e).forEach((function(i){var r=sf(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]})),Eh()&&Xh(t))}function $h(t,e){t.style&&(Object.keys(e).forEach((function(e){var n=sf(e);t.style[n]=""})),Eh()&&Xh(t))}function tf(t){return Array.isArray(t)?1==t.length?t[0]:fh(t):t}var ef=new RegExp("{{\\s*(.+?)\\s*}}","g");function nf(t){var e=[];if("string"==typeof t){for(var n=void 0;n=ef.exec(t);)e.push(n[1]);ef.lastIndex=0}return e}function rf(t,e,n){var i=t.toString(),r=i.replace(ef,(function(t,i){var r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()}));return r==i?t:r}function of(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var af=/-+([a-z0-9])/g;function sf(t){return t.replace(af,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()}))}function cf(t,e){return 0===t||0===e}function uf(t,e,n){var i=Object.keys(n);if(i.length&&e.length){var r=e[0],o=[];if(i.forEach((function(t){r.hasOwnProperty(t)||o.push(t),r[t]=n[t]})),o.length)for(var a=function(){var n=e[s];o.forEach((function(e){n[e]=df(t,e)}))},s=1;s<e.length;s++)a()}return e}function lf(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function df(t,e){return window.getComputedStyle(t)[e]}var pf=new Set(["true","1"]),hf=new Set(["false","0"]);function ff(t,e){var n=pf.has(t)||hf.has(t),i=pf.has(e)||hf.has(e);return function(r,o){var a="*"==t||t==r,s="*"==e||e==o;return!a&&n&&"boolean"==typeof r&&(a=r?pf.has(t):hf.has(t)),!s&&i&&"boolean"==typeof o&&(s=o?pf.has(e):hf.has(e)),a&&s}}var mf=new RegExp("s*:selfs*,?","g");function gf(t,e,n){return new vf(t).build(e,n)}var vf=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new yf(e);return this._resetContextStyleTimingState(n),lf(this,tf(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,i=e.queryCount=0,r=e.depCount=0,o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach((function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,c=s.name;c.toString().split(/\s*,\s*/).forEach((function(t){s.name=t,o.push(n.visitState(s,e))})),s.name=c}else if(1==t.type){var u=n.visitTransition(t,e);i+=u.queryCount,r+=u.depCount,a.push(u)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:t.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach((function(t){if(bf(t)){var e=t;Object.keys(e).forEach((function(t){nf(e[t]).forEach((function(t){o.hasOwnProperty(t)||r.add(t)}))}))}})),r.size){var a=of(r.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n,i,r,o=lf(this,tf(t.animation),e);return{type:1,matchers:(n=t.expr,i=e.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach((function(t){return function(t,e,n){if(":"==t[0]){var i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=r[1],a=r[2],s=r[3];e.push(ff(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(ff(s,o))}(t,r,i)})):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:_f(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return lf(n,t,e)})),options:_f(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map((function(t){e.currentTime=i;var o=lf(n,t,e);return r=Math.max(r,e.currentTime),o}));return e.currentTime=r,{type:3,steps:o,options:_f(t.options)}},t.prototype.visitAnimate=function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return wf(Zh(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=wf(0,0,"");return r.dynamic=!0,r.strValue=i,r}return wf((n=n||Zh(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:mh({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=mh(s)}e.currentTime+=i.duration+i.delay;var c=this.visitStyle(o,e);c.isEmptyStep=a,n=c}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)})):n.push(t.styles);var i=!1,r=null;return n.forEach((function(t){if(bf(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var a,s,c,u=e.collectedStyles[e.currentQuerySelector],l=u[i],d=!0;l&&(o!=r&&o>=l.startTime&&r<=l.endTime&&(e.errors.push('The CSS property "'+i+'" that exists between the times of "'+l.startTime+'ms" and "'+l.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),d=!1),o=l.startTime),d&&(u[i]={startTime:o,endTime:r}),e.options&&(a=e.errors,s=e.options.params||{},(c=nf(t[i])).length&&c.forEach((function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")})))}else e.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')}))}))},t.prototype.visitKeyframes=function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,c=0,u=t.steps.map((function(t){var i=n._makeStyleAst(t,e),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(bf(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(bf(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),l=0;return null!=u&&(r++,l=i.offset=u),s=s||l<0||l>1,a=a||l<c,c=l,o.push(l),i}));s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var l=t.steps.length,d=0;r>0&&r<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(d=1/(l-1));var p=l-1,h=e.currentTime,f=e.currentAnimateTimings,m=f.duration;return u.forEach((function(t,r){var a=d>0?r==p?1:d*r:o[r],s=a*m;e.currentTime=h+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)})),i},t.prototype.visitReference=function(t,e){return{type:8,animation:lf(this,tf(t.animation),e),options:_f(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:_f(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:_f(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=s(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(mf,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=n.length?n+" "+o:o,Ah(e.collectedStyles,e.currentQuerySelector,{});var c=lf(this,tf(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:c,originalSelector:t.selector,options:_f(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Zh(t.timings,e.errors,!0);return{type:12,animation:lf(this,tf(t.animation),e),timings:n,options:null}},t}(),yf=function(){return function(t){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 bf(t){return!Array.isArray(t)&&"object"==typeof t}function _f(t){var e;return t?(t=Yh(t)).params&&(t.params=(e=t.params)?Yh(e):null):t={},t}function wf(t,e,n){return{duration:t,delay:e,easing:n}}function Sf(t,e,n,i,r,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Cf=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,c(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Ef=new RegExp(":enter","g"),xf=new RegExp(":leave","g");function kf(t,e,n,i,r,o,a,s,c,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new Of).buildKeyframes(t,e,n,i,r,o,a,s,c,u)}var Of=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,i,r,o,a,s,c,u){void 0===u&&(u=[]),c=c||new Cf;var l=new If(t,e,c,i,r,u,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),lf(this,n,l);var d=l.timelines.filter((function(t){return t.containsAnimation()}));if(d.length&&Object.keys(a).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,l.errors,s)}return d.length?d.map((function(t){return t.buildKeyframes()})):[Sf(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?Gh(n.duration):null,o=null!=n.delay?Gh(n.delay):null;return 0!==r&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)})),i},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),lf(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Tf);var a=Gh(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach((function(t){return lf(n,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Gh(t.options.delay):0;t.steps.forEach((function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),lf(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return Zh(e.params?rf(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Gh(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Tf);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var c=null;s.forEach((function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(c=s.currentTimeline),lf(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=e.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;lf(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)},t}(),Tf={},If=function(){function t(t,e,n,i,r,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Tf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new Af(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=Gh(i.duration)),null!=i.delay&&(r.delay=Gh(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(t){e&&a.hasOwnProperty(t)||(a[t]=rf(o[t],a,n.errors))}))}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t},t.prototype.createSubContext=function(e,n,i){void 0===e&&(e=null);var r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Tf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Pf(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,i,r,o){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(Ef,"."+this._enterClassName)).replace(xf,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,c(s))}return r||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),Af=function(){function t(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]="*"})):Qh(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(a).forEach((function(t){var e=rf(a[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:"*"),r._updateStyle(t,e)}))},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)}))},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,a){var s=Qh(o,!0);Object.keys(s).forEach((function(t){var i=s[t];"!"==i?e.add(t):"*"==i&&n.add(t)})),i||(s.offset=a/t.duration),r.push(s)}));var o=e.size?of(e.values()):[],a=n.size?of(n.values()):[];if(i){var s=r[0],c=Yh(s);s.offset=0,c.offset=1,r=[s,c]}return Sf(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)},t}(),Pf=function(t){function e(e,n,i,r,o,a,s){void 0===s&&(s=!1);var c=t.call(this,e,n,a.delay)||this;return c.element=n,c.keyframes=i,c.preStyleProps=r,c.postStyleProps=o,c._stretchStartingKeyframe=s,c.timings={duration:a.duration,delay:a.delay,easing:a.easing},c}return r(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,c=Qh(t[0],!1);c.offset=0,o.push(c);var u=Qh(t[0],!1);u.offset=Mf(s),o.push(u);for(var l=t.length-1,d=1;d<=l;d++){var p=Qh(t[d],!1);p.offset=Mf((n+p.offset*i)/a),o.push(p)}i=a,n=0,r="",t=o}return Sf(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)},e}(Af);function Mf(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var Rf=function(){return function(){}}(),Nf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.normalizePropertyName=function(t,e){return sf(t)},e.prototype.normalizeStyleValue=function(t,e,n,i){var r="",o=n.toString().trim();if(Df[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for "+t+":"+n)}return o+r},e}(Rf),Df=function(){return t="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(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function Lf(t,e,n,i,r,o,a,s,c,u,l,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:d,errors:p}}var jf={},Vf=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,i){return function(t,e,n,i,r){return t.some((function(t){return t(e,n,i,r)}))}(this.ast.matchers,t,e,n,i)},t.prototype.buildStyles=function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o},t.prototype.build=function(t,e,n,i,r,a,s,c,u,l){var d=[],p=this.ast.options&&this.ast.options.params||jf,h=this.buildStyles(n,s&&s.params||jf,d),f=c&&c.params||jf,m=this.buildStyles(i,f,d),g=new Set,v=new Map,y=new Map,b="void"===i,_={params:o(o({},p),f)},w=l?[]:kf(t,e,this.ast.animation,r,a,h,m,_,u,d),S=0;if(w.forEach((function(t){S=Math.max(t.duration+t.delay,S)})),d.length)return Lf(e,this._triggerName,n,i,b,h,m,[],[],v,y,S,d);w.forEach((function(t){var n=t.element,i=Ah(v,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var r=Ah(y,n,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),n!==e&&g.add(n)}));var C=of(g.values());return Lf(e,this._triggerName,n,i,b,h,m,w,C,v,y,S)},t}(),Ff=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},i=Yh(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var o=r[t];o.length>1&&(o=rf(o,i,e)),n[t]=o}))}})),n},t}(),Bf=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach((function(t){n.states[t.name]=new Ff(t.style,t.options&&t.options.params||{})})),Uf(this.states,"true","1"),Uf(this.states,"false","0"),e.transitions.forEach((function(e){n.transitionFactories.push(new Vf(t,e,n.states))})),this.fallbackTransition=new Vf(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,i){return this.transitionFactories.find((function(r){return r.match(t,e,n,i)}))||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Uf(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var zf=new Cf,Hf=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],i=gf(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i},t.prototype._buildPlayer=function(t,e,n){var i=t.element,r=kh(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var i=this;void 0===n&&(n={});var r,o=[],a=this._animations[t],s=new Map;if(a?(r=kf(this._driver,e,a,"ng-enter","ng-leave",{},{},n,zf,o)).forEach((function(t){var e=Ah(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),r=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,"*")}))}));var c=xh(r.map((function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)})));return this._playersById[t]=c,c.onDestroy((function(){return i.destroy(t)})),this.players.push(c),c},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,i){var r=Ih(e,"","","");return Oh(this._getPlayer(t),n,r,i),function(){}},t.prototype.command=function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])},t}(),Wf=[],Gf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zf=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){var r=Yh(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}},t}(),Yf=new Zf("void"),Qf=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,nm(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=Ah(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var c=Ah(this._engine.statesByElement,t,{});return c.hasOwnProperty(e)||(nm(t,"ng-trigger"),nm(t,"ng-trigger-"+e),c[e]=Yf),function(){o._engine.afterFlush((function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete c[e]}))}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,i){var r=this;void 0===i&&(i=!0);var o=this._getTrigger(e),a=new Xf(this.id,e,t),s=this._engine.statesByElement.get(t);s||(nm(t,"ng-trigger"),nm(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var c=s[e],u=new Zf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),s[e]=u,c||(c=Yf),"void"===u.value||c.value!==u.value){var l=Ah(this._engine.playersByElement,t,[]);l.forEach((function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()}));var d=o.matchTransition(c.value,u.value,t,u.params),p=!1;if(!d){if(!i)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:c,toState:u,player:a,isFallbackTransition:p}),p||(nm(t,"ng-animate-queued"),a.onStart((function(){im(t,"ng-animate-queued")}))),a.onDone((function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),l.push(a),a}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(c.params,u.params)){var h=[],f=o.matchStyles(c.value,c.params,h),m=o.matchStyles(u.value,u.params,h);h.length?this._engine.reportError(h):this._engine.afterFlush((function(){$h(t,f),Jh(t,m)}))}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach((function(e,n){delete e[t]})),this._elementListeners.forEach((function(n,i){e._elementListeners.set(i,n.filter((function(e){return e.name!=t})))}))},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach((function(t){return t.destroy()})),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e){var n=this,i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach((function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach((function(n){return n.triggerLeaveAnimation(t,e,!1,!0)})):n.clearElementCache(t)}})),this._engine.afterFlushAnimationsDone((function(){return i.forEach((function(t){return n.clearElementCache(t)}))}))},t.prototype.triggerLeaveAnimation=function(t,e,n,i){var r=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach((function(e){if(r._triggers[e]){var n=r.trigger(t,e,"void",i);n&&a.push(n)}})),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&xh(a).onDone((function(){return r._engine.processLeaveNode(t)})),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var i=new Set;n.forEach((function(n){var r=n.name;if(!i.has(r)){i.add(r);var o=e._triggers[r].fallbackTransition,a=e._engine.statesByElement.get(t)[r]||Yf,s=new Zf("void"),c=new Xf(e.id,r,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:r,transition:o,fromState:a,toState:s,player:c,isFallbackTransition:!0})}}))}},t.prototype.removeNode=function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else for(var a=t;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==Gf||(i.afterFlush((function(){return n.clearElementCache(t)})),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}},t.prototype.insertNode=function(t,e){nm(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach((function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=e._elementListeners.get(o);a&&a.forEach((function(e){if(e.name==i.triggerName){var n=Ih(o,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Oh(i.player,e.phase,n,e.callback)}})),r.markedForDestroy?e._engine.afterFlush((function(){r.destroy()})):n.push(i)}})),this._queue=[],n.sort((function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1}))},t.prototype.destroy=function(t){this.players.forEach((function(t){return t.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find((function(e){return e.element===t}))||e},t}(),Kf=function(){function t(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new Qf(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&e.add(a)}}return e},t.prototype.trigger=function(t,e,n,i){if(Jf(e)){var r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1},t.prototype.insertNode=function(t,e,n,i){if(Jf(e)){var r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),nm(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),im(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,i){if(Jf(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)},t.prototype.markElementAsRemoved=function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,i,r){return Jf(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}},t.prototype._buildInstruction=function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))},t.prototype.whenRenderingDone=function(){var t=this;return new Promise((function(e){if(t.players.length)return xh(t.players).onDone((function(){return e()}));e()}))},t.prototype.processLeaveNode=function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=Gf,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var 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 i=0;i<this.collectedEnterElements.length;i++)nm(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(i=0;i<r.length;i++)r[i]()}}else for(i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(t){return t()})),this._flushFns=[],this._whenQuietFns.length){var o=this._whenQuietFns;this._whenQuietFns=[],n.length?xh(n).onDone((function(){o.forEach((function(t){return t()}))})):o.forEach((function(t){return t()}))}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,e){var n=this,i=new Cf,r=[],a=new Map,s=[],u=new Map,l=new Map,d=new Map,p=new Set;this.disabledNodes.forEach((function(t){p.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),i=0;i<e.length;i++)p.add(e[i])}));var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),m=em(f,this.collectedEnterElements),g=new Map,v=0;m.forEach((function(t,e){var n="ng-enter"+v++;g.set(e,n),t.forEach((function(t){return nm(t,n)}))}));for(var y=[],b=new Set,_=new Set,w=0;w<this.collectedLeaveElements.length;w++)(V=(j=this.collectedLeaveElements[w]).__ng_removed)&&V.setForRemoval&&(y.push(j),b.add(j),V.hasAnimation?this.driver.query(j,".ng-star-inserted",!0).forEach((function(t){return b.add(t)})):_.add(j));var S=new Map,C=em(f,Array.from(b));C.forEach((function(t,e){var n="ng-leave"+v++;S.set(e,n),t.forEach((function(t){return nm(t,n)}))})),t.push((function(){m.forEach((function(t,e){var n=g.get(e);t.forEach((function(t){return im(t,n)}))})),C.forEach((function(t,e){var n=S.get(e);t.forEach((function(t){return im(t,n)}))})),y.forEach((function(t){n.processLeaveNode(t)}))}));for(var E=[],x=[],k=this._namespaceList.length-1;k>=0;k--)this._namespaceList[k].drainQueuedTransitions(e).forEach((function(t){var e=t.player,o=t.element;if(E.push(e),n.collectedEnterElements.length){var a=o.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var c=!h||!n.driver.containsElement(h,o),p=S.get(o),f=g.get(o),m=n._buildInstruction(t,i,f,p,c);if(m.errors&&m.errors.length)x.push(m);else{if(c)return e.onStart((function(){return $h(o,m.fromStyles)})),e.onDestroy((function(){return Jh(o,m.toStyles)})),void r.push(e);if(t.isFallbackTransition)return e.onStart((function(){return $h(o,m.fromStyles)})),e.onDestroy((function(){return Jh(o,m.toStyles)})),void r.push(e);m.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(o,m.timelines),s.push({instruction:m,player:e,element:o}),m.queriedElements.forEach((function(t){return Ah(u,t,[]).push(e)})),m.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),m.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=d.get(e);i||d.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}))}}));if(x.length){var O=[];x.forEach((function(t){O.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach((function(t){return O.push("- "+t+"\n")}))})),E.forEach((function(t){return t.destroy()})),this.reportError(O)}var T=new Map,I=new Map;s.forEach((function(t){var e=t.element;i.has(e)&&(I.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,T))})),r.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){Ah(T,e,[]).push(t),t.destroy()}))}));var A=y.filter((function(t){return om(t,l,d)})),P=new Map;tm(P,this.driver,_,d,"*").forEach((function(t){om(t,l,d)&&A.push(t)}));var M=new Map;m.forEach((function(t,e){tm(M,n.driver,new Set(t),l,"!")})),A.forEach((function(t){var e=P.get(t),n=M.get(t);P.set(t,o(o({},e),n))}));var R=[],N=[],D={};s.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(p.has(e))return o.onDestroy((function(){return Jh(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var c=D;if(I.size>1){for(var u=e,l=[];u=u.parentNode;){var d=I.get(u);if(d){c=d;break}l.push(u)}l.forEach((function(t){return I.set(t,c)}))}var h=n._buildAnimation(o.namespaceId,s,T,a,M,P);if(o.setRealPlayer(h),c===D)R.push(o);else{var f=n.playersByElement.get(c);f&&f.length&&(o.parentPlayer=xh(f)),r.push(o)}}else $h(e,s.fromStyles),o.onDestroy((function(){return Jh(e,s.toStyles)})),N.push(o),p.has(e)&&r.push(o)})),N.forEach((function(t){var e=a.get(t.element);if(e&&e.length){var n=xh(e);t.setRealPlayer(n)}})),r.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var L=0;L<y.length;L++){var j,V=(j=y[L]).__ng_removed;if(im(j,"ng-leave"),!V||!V.hasAnimation){var F=[];if(u.size){var B=u.get(j);B&&B.length&&F.push.apply(F,c(B));for(var U=this.driver.query(j,".ng-animating",!0),z=0;z<U.length;z++){var H=u.get(U[z]);H&&H.length&&F.push.apply(F,c(H))}}var W=F.filter((function(t){return!t.destroyed}));W.length?rm(this,j,W):this.processLeaveNode(j)}}return y.length=0,R.forEach((function(t){n.players.push(t),t.onDone((function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)})),t.play()})),R},t.prototype.elementContainsData=function(t,e){var n=!1,i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,i,r){var o=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(o=a)}else{var s=this.playersByElement.get(t);if(s){var c=!r||"void"==r;s.forEach((function(t){t.queued||(c||t.triggerName==i)&&o.push(t)}))}}return(n||i)&&(o=o.filter((function(t){return!(n&&n!=t.namespaceId||i&&i!=t.triggerName)}))),o},t.prototype._beforeAnimationBuild=function(t,e,n){var i,r,o=e.element,s=e.isRemovalTransition?void 0:t,c=e.isRemovalTransition?void 0:e.triggerName,u=function(t){var i=t.element,r=i!==o,a=Ah(n,i,[]);l._getPreviousPlayers(i,r,s,c,e.toState).forEach((function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),a.push(t)}))},l=this;try{for(var d=a(e.timelines),p=d.next();!p.done;p=d.next())u(p.value)}catch(h){i={error:h}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}$h(o,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,i,r,o){var a=this,s=e.triggerName,c=e.element,u=[],l=new Set,d=new Set,p=e.timelines.map((function(e){var p=e.element;l.add(p);var h=p.__ng_removed;if(h&&h.removedBeforeQueried)return new Sh(e.duration,e.delay);var f,m,g=p!==c,v=(f=(n.get(p)||Wf).map((function(t){return t.getRealPlayer()})),m=[],function t(e,n){for(var i=0;i<e.length;i++){var r=e[i];r instanceof Ch?t(r.players,n):n.push(r)}}(f,m),m).filter((function(t){return!!t.element&&t.element===p})),y=r.get(p),b=o.get(p),_=kh(0,a._normalizer,0,e.keyframes,y,b),w=a._buildPlayer(e,_,v);if(e.subTimeline&&i&&d.add(p),g){var S=new Xf(t,s,p);S.setRealPlayer(w),u.push(S)}return w}));u.forEach((function(t){Ah(a.playersByQueriedElement,t.element,[]).push(t),t.onDone((function(){return function(t,e,n){var i;if(t instanceof Map){if(i=t.get(e)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&t.delete(e)}}else(i=t[e])&&(i.length&&(r=i.indexOf(n),i.splice(r,1)),0==i.length&&delete t[e]);return i}(a.playersByQueriedElement,t.element,t)}))})),l.forEach((function(t){return nm(t,"ng-animating")}));var h=xh(p);return h.onDestroy((function(){l.forEach((function(t){return im(t,"ng-animating")})),Jh(c,e.toStyles)})),d.forEach((function(t){Ah(i,t,[]).push(h)})),h},t.prototype._buildPlayer=function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Sh(t.duration,t.delay)},t}(),Xf=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Sh,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return Oh(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))},t.prototype._queueEvent=function(t,e){Ah(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Jf(t){return t&&1===t.nodeType}function $f(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function tm(t,e,n,i,r){var o=[];n.forEach((function(t){return o.push($f(t))}));var a=[];i.forEach((function(n,i){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=qf,a.push(i))})),t.set(i,o)}));var s=0;return n.forEach((function(t){return $f(t,o[s++])})),a}function em(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=r.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:i.has(a)?1:t(a),r.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}function nm(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function im(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function rm(t,e,n){xh(n).onDone((function(){return t.processLeaveNode(e)}))}function om(t,e,n){var i=n.get(t);if(!i)return!1;var r=e.get(t);return r?i.forEach((function(t){return r.add(t)})):e.set(t,i),n.delete(t),!0}var am=function(){function t(t,e,n){var i=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Kf(t,e,n),this._timelineEngine=new Hf(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return i.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,i,r){var o=t+"-"+i,a=this._triggerCache[o];if(!a){var s=[],c=gf(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new Bf(t,e)}(i,c),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,i,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)},t.prototype.onRemove=function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,i){if("@"==n.charAt(0)){var r=s(Ph(n),2);this._timelineEngine.command(r[0],e,r[1],i)}else this._transitionEngine.trigger(t,e,n,i)},t.prototype.listen=function(t,e,n,i,r){if("@"==n.charAt(0)){var o=s(Ph(n),2);return this._timelineEngine.listen(o[0],e,o[1],r)}return this._transitionEngine.listen(t,e,n,i,r)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function sm(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=um(e[0]),e.length>1&&(i=um(e[e.length-1]))):e&&(n=um(e)),n||i?new cm(t,n,i):null}var cm=function(){function t(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return t.prototype.start=function(){this._state<1&&(this._startStyles&&Jh(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&(Jh(this._element,this._initialStyles),this._endStyles&&(Jh(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&($h(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($h(this._element,this._endStyles),this._endStyles=null),Jh(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function um(t){for(var e=null,n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];lm(r)&&((e=e||{})[r]=t[r])}return e}function lm(t){return"display"===t||"position"===t}var dm=function(){function t(t,e,n,i,r,o,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return s._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=vm(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n<t.length;n++)","===t.charAt(n)&&0}(n),e=n+", "+e),gm(t,"",e),mm(this._element,this._eventFn,!1),this._startTime=Date.now()},t.prototype.pause=function(){pm(this._element,this._name,"paused")},t.prototype.resume=function(){pm(this._element,this._name,"running")},t.prototype.setPosition=function(t){var e=hm(this._element,this._name);this._position=t*this._duration,gm(this._element,"Delay","-"+this._position+"ms",e)},t.prototype.getPosition=function(){return this._position},t.prototype._handleCallback=function(t){var e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),mm(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=fm(n=vm(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),gm(t,"",n.join(","))))},t}();function pm(t,e,n){gm(t,"PlayState",n,hm(t,e))}function hm(t,e){var n=vm(t,"");return n.indexOf(",")>0?fm(n.split(","),e):fm([n],e)}function fm(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function mm(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function gm(t,e,n,i){var r="animation"+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function vm(t,e){return t.style["animation"+e]}var ym=function(){function t(t,e,n,i,r,o,a,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=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(t){return t()})),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new dm(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:df(t.element,i))}))}this.currentSnapshot=e},t}(),bm=function(t){function e(e,n){var i=t.call(this)||this;return i.element=e,i._startingStyles={},i.__initialized=!1,i._styles=zh(n),i}return r(e,t),e.prototype.init=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]})),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),t.prototype.play.call(this))},e.prototype.destroy=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,t.prototype.destroy.call(this))},e}(Sh),_m=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Vh(t)},t.prototype.matchesElement=function(t,e){return Fh(t,e)},t.prototype.containsElement=function(t,e){return Bh(t,e)},t.prototype.query=function(t,e,n){return Uh(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map((function(t){return zh(t)}));var i="@keyframes "+e+" {\n",r="";n.forEach((function(t){r=" ";var e=parseFloat(t.offset);i+=""+r+100*e+"% {\n",r+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=r+"animation-timing-function: "+n+";\n"));default:return void(i+=""+r+e+": "+n+";\n")}})),i+=r+"}\n"})),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o},t.prototype.animate=function(t,e,n,i,r,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter((function(t){return t instanceof ym})),c={};cf(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=uf(t,e,c));if(0==n)return new bm(t,u);var l="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(d);var p=sm(t,e),h=new ym(t,e,l,n,i,r,u,p);return h.onDestroy((function(){var t;(t=d).parentNode.removeChild(t)})),h},t.prototype._notifyFaultyScrubber=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)},t}(),wm=function(){function t(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:df(t.element,n))})),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),Sm=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Cm().toString()),this._cssKeyframesDriver=new _m}return t.prototype.validateStyleProperty=function(t){return Vh(t)},t.prototype.matchesElement=function(t,e){return Fh(t,e)},t.prototype.containsElement=function(t,e){return Bh(t,e)},t.prototype.query=function(t,e,n){return Uh(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,i,r,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var c={},u=o.filter((function(t){return t instanceof wm}));cf(n,i)&&u.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return c[t]=e[t]}))}));var l=sm(t,e=uf(t,e=e.map((function(t){return Qh(t,!1)})),c));return new wm(t,e,s,l)},t}();function Cm(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Em=function(t){function e(e,n){var i=t.call(this)||this;return i._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:_e.None,styles:[],data:{animation:[]}}),i}return r(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?fh(t):t;return Om(this._renderer,null,e,"register",[n]),new xm(e,this._renderer)},e.\u0275fac=function(t){return new(t||e)(oe(Js),oe(dl))},e.\u0275prov=wt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(lh),xm=function(t){function e(e,n){var i=t.call(this)||this;return i._id=e,i._renderer=n,i}return r(e,t),e.prototype.create=function(t,e){return new km(this._id,t,e||{},this._renderer)},e}(dh),km=function(){function t(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Om(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function Om(t,e,n,i,r){return t.setProperty(e,"@@"+n+":"+i,r)}var Tm=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Im("",i,this.engine),this._rendererCache.set(i,r)),r}var o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);var s=function(e){Array.isArray(e)?e.forEach(s):n.engine.registerTrigger(o,a,t,e.name,e)};return e.data.animation.forEach(s),new Am(this,a,i,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;this.promise.then((function(){t._microtaskId++}))},t.prototype.scheduleListenerCallback=function(t,e,n){var i=this;t>=0&&t<this._microtaskId?this._zone.run((function(){return e(n)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){i._zone.run((function(){i._animationCallbacksBuffer.forEach((function(t){var e=s(t,2);(0,e[0])(e[1])})),i._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)})),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t.\u0275fac=function(e){return new(e||t)(oe(Js),oe(am),oe(Ru))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Im=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)},t.prototype.selectRootElement=function(t,e){return this.delegate.selectRootElement(t,e)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,i){this.delegate.setStyle(t,e,n,i)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),Am=function(t){function e(e,n,i,r){var o=t.call(this,n,i,r)||this;return o.factory=e,o.namespaceId=n,o}return r(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var i,r,o,a=this;if("@"==e.charAt(0)){var c=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),u=e.substr(1),l="";return"@"!=u.charAt(0)&&(u=(i=s((r=u,o=r.indexOf("."),[r.substring(0,o),r.substr(o+1)]),2))[0],l=i[1]),this.engine.listen(this.namespaceId,c,u,l,(function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)}))}return this.delegate.listen(t,e,n)},e}(Im),Pm=function(t){function e(e,n,i){return t.call(this,e.body,n,i)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(oe(dl),oe(Wh),oe(Rf))},e.\u0275prov=wt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(am),Mm=new Kt("AnimationModuleType"),Rm=[{provide:lh,useClass:Em},{provide:Rf,useFactory:function(){return new Nf}},{provide:am,useClass:Pm},{provide:Js,useFactory:function(t,e,n){return new Tm(t,e,n)},deps:[md,am,Ru]}],Nm=c([{provide:Wh,useFactory:function(){return"function"==typeof Cm()?new Sm:new _m}},{provide:Mm,useValue:"BrowserAnimations"}],Rm),Dm=(c([{provide:Wh,useClass:Hh},{provide:Mm,useValue:"NoopAnimations"}],Rm),function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:Nm,imports:[Id]}),t}());function Lm(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return N(n)?(t.pop(),Z(t,n)):et(t)}function jm(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length?e.some((function(e){return t[e]})):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Vm(t,e,n){return function(i){return i.lift(new Fm(t,e,n))}}var Fm=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Bm(t,this.nextOrObserver,this.error,this.complete))},t}(),Bm=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o._tapNext=E,o._tapError=E,o._tapComplete=E,o._tapError=i||E,o._tapComplete=r||E,p(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||E,o._tapError=n.error||E,o._tapComplete=n.complete||E),o}return r(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(w),Um=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(f)),zm=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Hm=new(function(t){function e(n,i){void 0===i&&(i=zm.now);var r=t.call(this,n,(function(){return e.delegate&&e.delegate!==r?e.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return r(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(zm))(Um);function Wm(t,e){return void 0===e&&(e=Hm),function(n){return n.lift(new Gm(t,e))}}var Gm=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qm(t,this.dueTime,this.scheduler))},t}(),qm=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return r(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Zm,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(w);function Zm(t){t.debouncedNext()}function Ym(t,e){return function(n){return n.lift(new Qm(t,e))}}var Qm=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Km(t,this.predicate,this.thisArg))},t}(),Km=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return r(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(w),Xm=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),Jm=new O((function(t){return t.complete()}));function $m(t){return t?function(t){return new O((function(e){return t.schedule((function(){return e.complete()}))}))}(t):Jm}function tg(t){return function(e){return 0===t?$m():e.lift(new ng(t))}}var eg,ng=function(){function t(t){if(this.total=t,this.total<0)throw new Xm}return t.prototype.call=function(t,e){return e.subscribe(new ig(t,this.total))},t}(),ig=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return r(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(w);function rg(t){return null!=t&&""+t!="false"}function og(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function ag(t){return Array.isArray(t)?t:[t]}function sg(t){return null==t?"":"string"==typeof t?t:t+"px"}function cg(t){return t instanceof Ks?t.nativeElement:t}try{eg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(CI){eg=!1}var ug,lg,dg,pg=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?Kl(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&&!eg)&&"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}return t.\u0275prov=wt({factory:function(){return new t(oe(vu,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(vu,8))},t}(),hg=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)}}),t}(),fg=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function mg(){if(ug)return ug;if("object"!=typeof document||!document)return ug=new Set(fg);var t=document.createElement("input");return ug=new Set(fg.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function gg(t){return function(){if(null==lg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return lg=!0}}))}finally{lg=lg||!1}return lg}()?t:!!t.capture}function vg(){if("object"!=typeof document||!document)return 0;if(null==dg){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),dg=0,0===t.scrollLeft&&(t.scrollLeft=1,dg=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return dg}var yg=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.\u0275prov=wt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),bg=function(){function t(t){this._mutationObserverFactory=t,this._observedElements=new Map}return t.prototype.ngOnDestroy=function(){var t=this;this._observedElements.forEach((function(e,n){return t._cleanupObserver(n)}))},t.prototype.observe=function(t){var e=this,n=cg(t);return new O((function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}}))},t.prototype._observeElement=function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new M,n=this._mutationObserverFactory.create((function(t){return e.next(t)}));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream},t.prototype._unobserveElement=function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))},t.prototype._cleanupObserver=function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}},t.\u0275prov=wt({factory:function(){return new t(oe(yg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(yg))},t}(),_g=function(){function t(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Hc,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=rg(t),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debounce",{get:function(){return this._debounce},set:function(t){this._debounce=og(t),this._subscribe()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},t.prototype.ngOnDestroy=function(){this._unsubscribe()},t.prototype._subscribe=function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe(Wm(t.debounce)):e).subscribe(t.event)}))},t.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},t.\u0275fac=function(e){return new(e||t)(Na(bg),Na(Ks),Na(Ru))},t.\u0275dir=Ae({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),wg=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[yg]}),t}();function Sg(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Cg=0,Eg=new Map,xg=null,kg=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Eg.set(e,{messageElement:e,referenceCount:0})):Eg.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=Eg.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}xg&&0===xg.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");xg&&this._deleteMessagesContainer(),Eg.clear()},t.prototype._createMessageElement=function(t){var e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),xg.appendChild(e),Eg.set(t,{messageElement:e,referenceCount:0})},t.prototype._setMessageId=function(t){t.id||(t.id="cdk-describedby-message-"+Cg++)},t.prototype._deleteMessageElement=function(t){var e=Eg.get(t),n=e&&e.messageElement;xg&&n&&xg.removeChild(n),Eg.delete(t)},t.prototype._createMessagesContainer=function(){if(!xg){var t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),(xg=this._document.createElement("div")).id="cdk-describedby-message-container",xg.setAttribute("aria-hidden","true"),xg.style.display="none",this._document.body.appendChild(xg)}},t.prototype._deleteMessagesContainer=function(){xg&&xg.parentNode&&(xg.parentNode.removeChild(xg),xg=null)},t.prototype._removeCdkDescribedByReferenceIds=function(t){var e=Sg(t,"aria-describedby").filter((function(t){return 0!=t.indexOf("cdk-describedby-message")}));t.setAttribute("aria-describedby",e.join(" "))},t.prototype._addMessageReference=function(t,e){var n,i,r,o=Eg.get(e);i=o.messageElement.id,(r=Sg(n=t,"aria-describedby")).some((function(t){return t.trim()==i.trim()}))||(r.push(i.trim()),n.setAttribute("aria-describedby",r.join(" "))),t.setAttribute("cdk-describedby-host",""),o.referenceCount++},t.prototype._removeMessageReference=function(t,e){var n,i,r,o,a=Eg.get(e);a.referenceCount--,r=a.messageElement.id,(o=Sg(n=t,i="aria-describedby").filter((function(t){return t!=r.trim()}))).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),t.removeAttribute("cdk-describedby-host")},t.prototype._isElementDescribedByMessage=function(t,e){var n=Sg(t,"aria-describedby"),i=Eg.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)},t.prototype._canBeDescribed=function(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;var n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)},t.prototype._isElementNode=function(t){return t.nodeType===this._document.ELEMENT_NODE},t.\u0275prov=wt({factory:function(){return new t(oe(dl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(dl))},t}(),Og=function(){function t(t){var e=this;this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M,this._typeaheadSubscription=f.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new M,this.change=new M,t instanceof Gc&&t.changes.subscribe((function(t){if(e._activeItem){var n=t.toArray().indexOf(e._activeItem);n>-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}}))}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withAllowedModifierKeys=function(t){return this._allowedModifierKeys=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Vm((function(t){return e._pressedLetters.push(t)})),Wm(t),Ym((function(){return e._pressedLetters.length>0})),W((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]})),this},t.prototype.setActiveItem=function(t){var e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)},t.prototype.onKeydown=function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every((function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||jm(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.isTyping=function(){return this._pressedLetters.length>0},t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof Gc?this._items.toArray():this._items},t}(),Tg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(Og),Ig=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return r(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(Og),Ag=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(CI){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Mg(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),o=Mg(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Pg(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.\u0275prov=wt({factory:function(){return new t(oe(pg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(pg))},t}();function Pg(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Mg(t){if(!Pg(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Rg=function(){function t(t,e,n,i,r){var o=this;void 0===r&&(r=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,r||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?console.warn("Found use of deprecated attribute 'cdk-focus-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)},t.prototype.focusInitialElement=function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),wi()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()},t.prototype.focusFirstTabbableElement=function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t},t.prototype.focusLastTabbableElement=function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t},t.prototype.hasAttached=function(){return this._hasAttached},t.prototype._getFirstTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(i)return i}return null},t.prototype._getLastTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;n>=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t},t.prototype._toggleAnchorTabIndex=function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")},t.prototype.toggleAnchors=function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(tg(1)).subscribe(t)},t}(),Ng=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new Rg(t,this._checker,this._ngZone,this._document,e)},t.\u0275prov=wt({factory:function(){return new t(oe(Ag),oe(Ru),oe(dl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(Ag),oe(Ru),oe(dl))},t}();"undefined"!=typeof Element&&Element;var Dg=new Kt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Lg=new Kt("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),jg=function(){function t(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t){for(var e,n=this,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];var o,a,c=this._defaultOptions;return 1===i.length&&"number"==typeof i[0]?a=i[0]:(o=(e=s(i,2))[0],a=e[1]),this.clear(),clearTimeout(this._previousTimeout),o||(o=c&&c.politeness?c.politeness:"polite"),null==a&&c&&(a=c.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular((function(){return new Promise((function(e){clearTimeout(n._previousTimeout),n._previousTimeout=setTimeout((function(){n._liveElement.textContent=t,e(),"number"==typeof a&&(n._previousTimeout=setTimeout((function(){return n.clear()}),a))}),100)}))}))},t.prototype.clear=function(){this._liveElement&&(this._liveElement.textContent="")},t.prototype.ngOnDestroy=function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)},t.prototype._createLiveElement=function(){for(var t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div"),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e},t.\u0275prov=wt({factory:function(){return new t(oe(Dg,8),oe(Ru),oe(dl),oe(Lg,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(Dg,8),oe(Ru),oe(dl),oe(Lg,8))},t}(),Vg=gg({passive:!0,capture:!0}),Fg=function(){function t(t,e){var n=this;this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=function(){n._lastTouchTarget=null,n._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(){n._lastTouchTarget||n._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=function(t){null!=n._touchTimeoutId&&clearTimeout(n._touchTimeoutId),n._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,n._touchTimeoutId=setTimeout((function(){return n._lastTouchTarget=null}),650)},this._windowFocusListener=function(){n._windowFocused=!0,n._windowFocusTimeoutId=setTimeout((function(){return n._windowFocused=!1}))}}return t.prototype.monitor=function(t,e){var n=this;if(void 0===e&&(e=!1),!this._platform.isBrowser)return Lm(null);var i=cg(t);if(this._elementInfo.has(i)){var r=this._elementInfo.get(i);return r.checkChildren=e,r.subject.asObservable()}var o={unlisten:function(){},checkChildren:e,subject:new M};this._elementInfo.set(i,o),this._incrementMonitoredElementCount();var a=function(t){return n._onFocus(t,i)},s=function(t){return n._onBlur(t,i)};return this._ngZone.runOutsideAngular((function(){i.addEventListener("focus",a,!0),i.addEventListener("blur",s,!0)})),o.unlisten=function(){i.removeEventListener("focus",a,!0),i.removeEventListener("blur",s,!0)},o.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=cg(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e,n){var i=cg(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,e._originTimeoutId=setTimeout((function(){return e._origin=null}),1)}))},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run((function(){return t.next(e)}))},t.prototype._incrementMonitoredElementCount=function(){var t=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){document.addEventListener("keydown",t._documentKeydownListener,Vg),document.addEventListener("mousedown",t._documentMousedownListener,Vg),document.addEventListener("touchstart",t._documentTouchstartListener,Vg),window.addEventListener("focus",t._windowFocusListener)}))},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,Vg),document.removeEventListener("mousedown",this._documentMousedownListener,Vg),document.removeEventListener("touchstart",this._documentTouchstartListener,Vg),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))},t.\u0275prov=wt({factory:function(){return new t(oe(Ru),oe(pg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(Ru),oe(pg))},t}(),Bg=function(){function t(t,e){this._platform=t,this._document=e}return t.prototype.getHighContrastMode=function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0},t.prototype._applyBodyHighContrastModeCssClasses=function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}},t.\u0275prov=wt({factory:function(){return new t(oe(pg),oe(dl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(pg),oe(dl))},t}(),Ug=function(){function t(t){t._applyBodyHighContrastModeCssClasses()}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)(oe(Bg))},imports:[[hg,wg]]}),t}(),zg=new Kt("cdk-dir-doc",{providedIn:"root",factory:function(){return ae(dl)}}),Hg=function(){function t(t){if(this.value="ltr",this.change=new Hc,t){var e=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===e||"rtl"===e?e:"ltr"}}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.\u0275prov=wt({factory:function(){return new t(oe(zg,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(zg,8))},t}(),Wg=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)}}),t}(),Gg=new ic("9.1.2");function qg(){return tt(1)}function Zg(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return qg()(Lm.apply(void 0,t))}function Yg(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return N(n)?(t.pop(),function(e){return Zg(t,e,n)}):function(e){return Zg(t,e)}}var Qg=["*",[["mat-option"],["ng-container"]]],Kg=["*","mat-option, ng-container"];function Xg(t,e){if(1&t&&Ua(0,"mat-pseudo-checkbox",3),2&t){var n=Ja();ja("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var Jg=["*"],$g=new ic("9.1.2"),tv=new Kt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ev=function(){function t(t,e){this._hasDoneGlobalChecks=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return t.prototype._checksAreEnabled=function(){return wi()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){var t=this._window;return t&&(t.__karma__||t.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.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"),this._document.body.removeChild(t)}},t.prototype._checkCdkVersionMatch=function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&$g.full!==Gg.full&&console.warn("The Angular Material version ("+$g.full+") does not match the Angular CDK version ("+Gg.full+").\nPlease ensure the versions of these two packages exactly match.")},t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)(oe(Bg),oe(tv,8))},imports:[[Wg],Wg]}),t}();function nv(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(this,c(e))||this;return i._disabled=!1,i}return r(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=rg(t)},enumerable:!0,configurable:!0}),e}(t)}function iv(t,e){return function(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,c(n))||this;return r.color=e,r}return r(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(t)}function rv(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(this,c(e))||this;return i._disableRipple=!1,i}return r(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=rg(t)},enumerable:!0,configurable:!0}),e}(t)}function ov(t,e){return void 0===e&&(e=0),function(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,c(n))||this;return r._tabIndex=e,r}return r(n,t),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e},enumerable:!0,configurable:!0}),n}(t)}function av(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(this,c(e))||this;return i.errorState=!1,i.stateChanges=new M,i}return r(e,t),e.prototype.updateErrorState=function(){var t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())},e}(t)}var sv=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.\u0275prov=wt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),cv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[ev],ev]}),t}(),uv=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),lv={enterDuration:450,exitDuration:400},dv=gg({passive:!0}),pv=function(){function t(t,e,n,i){var r=this;this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=function(t){var e=function(t){return 0===t.buttons}(t),n=r._lastTouchStartEvent&&Date.now()<r._lastTouchStartEvent+800;r._target.rippleDisabled||e||n||(r._isPointerDown=!0,r.fadeInRipple(t.clientX,t.clientY,r._target.rippleConfig))},this._onTouchStart=function(t){if(!r._target.rippleDisabled){r._lastTouchStartEvent=Date.now(),r._isPointerDown=!0;for(var e=t.changedTouches,n=0;n<e.length;n++)r.fadeInRipple(e[n].clientX,e[n].clientY,r._target.rippleConfig)}},this._onPointerUp=function(){r._isPointerDown&&(r._isPointerDown=!1,r._activeRipples.forEach((function(t){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()})))},i.isBrowser&&(this._containerElement=cg(n),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}return t.prototype.fadeInRipple=function(t,e,n){var i=this;void 0===n&&(n={});var r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=o(o({},lv),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var s=n.radius||function(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),c=t-r.left,u=e-r.top,l=a.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=c-s+"px",d.style.top=u-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=n.color&&(d.style.backgroundColor=n.color),d.style.transitionDuration=l+"ms",this._containerElement.appendChild(d),window.getComputedStyle(d).getPropertyValue("opacity"),d.style.transform="scale(1)";var p=new uv(this,d,n);return p.state=0,this._activeRipples.add(p),n.persistent||(this._mostRecentTransientRipple=p),this._runTimeoutOutsideZone((function(){var t=p===i._mostRecentTransientRipple;p.state=1,n.persistent||t&&i._isPointerDown||p.fadeOut()}),l),p},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=o(o({},lv),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))},t.prototype.setupTriggerEvents=function(t){var e=this,n=cg(t);n&&n!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){e._triggerEvents.forEach((function(t,e){n.addEventListener(e,t,dv)}))})),this._triggerElement=n)},t.prototype._runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&this._triggerEvents.forEach((function(e,n){t._triggerElement.removeEventListener(n,e,dv)}))},t}(),hv=new Kt("mat-ripple-global-options"),fv=function(){function t(t,e,n,i,r){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new pv(this,e,t,n),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:o(o({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,e,n){return void 0===e&&(e=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,o(o({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,o(o({},this.rippleConfig),t))},t.\u0275fac=function(e){return new(e||t)(Na(Ks),Na(Ru),Na(pg),Na(hv,8),Na(Mm,8))},t.\u0275dir=Ae({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&ps("mat-ripple-unbounded",e.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"]}),t}(),mv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[ev,hg],ev]}),t}(),gv=function(){function t(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}return t.\u0275fac=function(e){return new(e||t)(Na(Mm,8))},t.\u0275cmp=Ee({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&ps("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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}),t}(),vv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)}}),t}(),yv=0,bv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+yv++,e}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=Ee({type:e,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(Pa("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),ps("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[Is],ngContentSelectors:Kg,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(ts(Qg),Fa(0,"label",0),Cs(1),es(2),Ba(),es(3,1)),2&t&&(ja("id",e._labelId),xr(1),xs("",e.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});var n=oi(e);return e}(nv(function(){return function(){}}())),_v=0,wv=function(){return function(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e}}(),Sv=new Kt("MAT_OPTION_PARENT_COMPONENT"),Cv=function(){function t(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+_v++,this.onSelectionChange=new Hc,this._stateChanges=new M}return Object.defineProperty(t.prototype,"multiple",{get:function(){return this._parent&&this._parent.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._parent&&this._parent.disableRipple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.deselect=function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())},t.prototype.focus=function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)},t.prototype.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())},t.prototype.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())},t.prototype.getLabel=function(){return this.viewValue},t.prototype._handleKeydown=function(t){13!==t.keyCode&&32!==t.keyCode||jm(t)||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))},t.prototype._getAriaSelected=function(){return this.selected||!this.multiple&&null},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype.ngAfterViewChecked=function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new wv(this,t))},t.\u0275fac=function(e){return new(e||t)(Na(Ks),Na(ta),Na(Sv,8),Na(bv,8))},t.\u0275cmp=Ee({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Za("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(ks("id",e.id),Pa("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),ps("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Jg,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(t,e){1&t&&(ts(),Ra(0,Xg,1,2,"mat-pseudo-checkbox",0),Fa(1,"span",1),es(2),Ba(),Ua(3,"div",2)),2&t&&(ja("ngIf",e.multiple),xr(3),ja("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[jl,fv,gv],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}),t}();function Ev(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),o=0,a=0;a<t+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var xv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[mv,Ql,vv]]}),t}(),kv=new Kt("mat-label-global-options"),Ov=0,Tv=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;if(a._ngZone=e,a._elementRef=n,a._ariaDescriber=i,a._renderer=r,a._animationMode=o,a._hasContent=!1,a._color="primary",a._overlap=!0,a.position="above after",a.size="medium",a._id=Ov++,wi()){var s=n.nativeElement;if(s.nodeType!==s.ELEMENT_NODE)throw Error("matBadge must be attached to an element node.")}return a}return r(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._setColor(t),this._color=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._overlap},set:function(t){this._overlap=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this._description},set:function(t){if(t!==this._description){var e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(t){this._hidden=rg(t)},enumerable:!0,configurable:!0}),e.prototype.isAbove=function(){return-1===this.position.indexOf("below")},e.prototype.isAfter=function(){return-1===this.position.indexOf("before")},e.prototype.ngOnChanges=function(t){var e=t.content;if(e){var n=e.currentValue;this._hasContent=null!=n&&(""+n).trim().length>0,this._updateTextContent()}},e.prototype.ngOnDestroy=function(){var t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))},e.prototype.getBadgeElement=function(){return this._badgeElement},e.prototype._updateTextContent=function(){return this._badgeElement?this._badgeElement.textContent=this.content:this._badgeElement=this._createBadgeElement(),this._badgeElement},e.prototype._createBadgeElement=function(){var t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add("mat-badge-content"),t.textContent=this.content,"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){t.classList.add("mat-badge-active")}))})):t.classList.add("mat-badge-active"),t},e.prototype._updateHostAriaDescription=function(t,e){var n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)},e.prototype._setColor=function(t){t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-badge-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-badge-"+t))},e.prototype._clearExistingBadges=function(t){for(var e=this._elementRef.nativeElement,n=e.children.length;n--;){var i=e.children[n];i.classList.contains(t)&&e.removeChild(i)}},e.\u0275fac=function(t){return new(t||e)(Na(Ru),Na(Ks),Na(kg),Na(tc),Na(Mm,8))},e.\u0275dir=Ae({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&ps("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],position:["matBadgePosition","position"],content:["matBadge","content"],size:["matBadgeSize","size"]},features:[Is,Ds]}),e}(nv(function(){return function(){}}())),Iv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[Ug,ev]]}),t}(),Av=["mat-button",""],Pv=["*"],Mv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Rv=function(t){function e(e,n,i){var r,o,s=t.call(this,e)||this;s._focusMonitor=n,s._animationMode=i,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");try{for(var c=a(Mv),u=c.next();!u.done;u=c.next()){var l=u.value;s._hasHostAttributes(l)&&s._getHostElement().classList.add(l)}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return e.nativeElement.classList.add("mat-button-base"),s._focusMonitor.monitor(s._elementRef,!0),s.isRoundButton&&(s.color="accent"),s}return r(e,t),e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._getHostElement(),t,e)},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._hasHostAttributes=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.some((function(e){return t._getHostElement().hasAttribute(e)}))},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Fg),Na(Mm,8))},e.\u0275cmp=Ee({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&nu(fv,!0),2&t&&tu(n=su())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(Pa("disabled",e.disabled||null),ps("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Is],attrs:Av,ngContentSelectors:Pv,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(ts(),Fa(0,"span",0),es(1),Ba(),Ua(2,"div",1),Ua(3,"div",2)),2&t&&(xr(2),ps("mat-button-ripple-round",e.isRoundButton||e.isIconButton),ja("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[fv],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.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}),e}(iv(nv(rv(function(){return function(t){this._elementRef=t}}())))),Nv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[mv,ev],ev]}),t}(),Dv=["*",[["mat-card-footer"]]],Lv=["*","mat-card-footer"],jv=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t}(),Vv=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t}(),Fv=function(){function t(){this.align="start"}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&ps("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t}(),Bv=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t}(),Uv=function(){function t(t){this._animationMode=t}return t.\u0275fac=function(e){return new(e||t)(Na(Mm,8))},t.\u0275cmp=Ee({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&ps("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:Lv,decls:2,vars:0,template:function(t,e){1&t&&(ts(Dv),es(0),es(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t}(),zv=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[ev],ev]}),t}();function Hv(t){return function(e){return e.lift(new Wv(t))}}var Wv=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Gv(t),i=z(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),Gv=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(H),qv=function(){function t(t,e,n){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!0),this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new M,e&&e.length&&(t?e.forEach((function(t){return i._markSelected(t)})):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach((function(e){return t._markSelected(e)})),this._emitChangeEvent()},t.prototype.deselect=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach((function(e){return t._unmarkSelected(e)})),this._emitChangeEvent()},t.prototype.toggle=function(t){this.isSelected(t)?this.deselect(t):this.select(t)},t.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},t.prototype.isSelected=function(t){return this._selection.has(t)},t.prototype.isEmpty=function(){return 0===this._selection.size},t.prototype.hasValue=function(){return!this.isEmpty()},t.prototype.sort=function(t){this._multiple&&this.selected&&this._selected.sort(t)},t.prototype.isMultipleSelection=function(){return this._multiple},t.prototype._emitChangeEvent=function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])},t.prototype._markSelected=function(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))},t.prototype._unmarkSelected=function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))},t.prototype._unmarkAll=function(){var t=this;this.isEmpty()||this._selection.forEach((function(e){return t._unmarkSelected(e)}))},t.prototype._verifyValueAssignment=function(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}();function Zv(t,e,n,i){return p(n)&&(i=n,n=void 0),i?Zv(t,e,n).pipe(W((function(t){return l(t)?i.apply(void 0,t):i(t)}))):new O((function(i){!function t(e,n,i,r,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,o),a=function(){return s.removeEventListener(n,i,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,i),a=function(){return c.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,i),a=function(){return u.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,d=e.length;l<d;l++)t(e[l],n,i,r,o)}r.add(a)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var Yv=["underline"],Qv=["connectionContainer"],Kv=["inputContainer"],Xv=["label"];function Jv(t,e){1&t&&(za(0),Fa(1,"div",14),Ua(2,"div",15),Ua(3,"div",16),Ua(4,"div",17),Ba(),Fa(5,"div",18),Ua(6,"div",15),Ua(7,"div",16),Ua(8,"div",17),Ba(),Ha())}function $v(t,e){1&t&&(Fa(0,"div",19),es(1,1),Ba())}function ty(t,e){if(1&t&&(za(0),es(1,2),Fa(2,"span"),Cs(3),Ba(),Ha()),2&t){var n=Ja(2);xr(3),Es(n._control.placeholder)}}function ey(t,e){1&t&&es(0,3,["*ngSwitchCase","true"])}function ny(t,e){1&t&&(Fa(0,"span",23),Cs(1," *"),Ba())}function iy(t,e){if(1&t){var n=Wa();Fa(0,"label",20,21),Za("cdkObserveContent",(function(){return qe(n),Ja().updateOutlineGap()})),Ra(2,ty,4,1,"ng-container",12),Ra(3,ey,1,0,void 0,12),Ra(4,ny,2,0,"span",22),Ba()}if(2&t){var i=Ja();ps("mat-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),ja("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Pa("for",i._control.id)("aria-owns",i._control.id),xr(2),ja("ngSwitchCase",!1),xr(1),ja("ngSwitchCase",!0),xr(1),ja("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function ry(t,e){1&t&&(Fa(0,"div",24),es(1,4),Ba())}function oy(t,e){if(1&t&&(Fa(0,"div",25,26),Ua(2,"span",27),Ba()),2&t){var n=Ja();xr(2),ps("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function ay(t,e){1&t&&(Fa(0,"div"),es(1,5),Ba()),2&t&&ja("@transitionMessages",Ja()._subscriptAnimationState)}function sy(t,e){if(1&t&&(Fa(0,"div",31),Cs(1),Ba()),2&t){var n=Ja(2);ja("id",n._hintLabelId),xr(1),Es(n.hintLabel)}}function cy(t,e){if(1&t&&(Fa(0,"div",28),Ra(1,sy,2,2,"div",29),es(2,6),Ua(3,"div",30),es(4,7),Ba()),2&t){var n=Ja();ja("@transitionMessages",n._subscriptAnimationState),xr(1),ja("ngIf",n.hintLabel)}}var uy=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ly=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],dy=0,py=function(){function t(){this.id="mat-error-"+dy++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&Pa("id",e.id)},inputs:{id:"id"}}),t}(),hy={transitionMessages:ph("transitionMessages",[gh("enter",mh({opacity:1,transform:"translateY(0%)"})),yh("void => enter",[mh({opacity:0,transform:"translateY(-100%)"}),hh("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fy=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t}),t}();function my(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var gy=0,vy=function(){function t(){this.align="start",this.id="mat-hint-"+gy++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(Pa("id",e.id)("align",null),ps("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t}(),yy=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-label"]]}),t}(),by=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-placeholder"]]}),t}(),_y=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","matPrefix",""]]}),t}(),wy=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","matSuffix",""]]}),t}(),Sy=0,Cy=iv(function(){return function(t){this._elementRef=t}}(),"primary"),Ey=new Kt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),xy=function(t){function e(e,n,i,r,o,a,s,c){var u=t.call(this,e)||this;return u._elementRef=e,u._changeDetectorRef=n,u._dir=r,u._defaults=o,u._platform=a,u._ngZone=s,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new M,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+Sy++,u._labelId="mat-form-field-label-"+Sy++,u._labelOptions=i||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==c,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return r(e,t),Object.defineProperty(e.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_control",{get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_labelChild",{get:function(){return this._labelChildNonStatic||this._labelChildStatic},enumerable:!0,configurable:!0}),e.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(Yg(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Hv(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Hv(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),nt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Yg(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Yg(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Hv(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))},e.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,Zv(this._label.nativeElement,"transitionend").pipe(tg(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw my("start");t=i}else if("end"===i.align){if(e)throw my("end");e=i}}))},e.prototype._getDefaultFloatLabelState=function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t,e,n=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&n&&n.children.length&&n.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var i=0,r=0,o=this._connectionContainerRef.nativeElement,s=o.querySelectorAll(".mat-form-field-outline-start"),c=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var u=o.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var l=this._getStartEnd(u),d=this._getStartEnd(n.children[0].getBoundingClientRect()),p=0;try{for(var h=a(n.children),f=h.next();!f.done;f=h.next())p+=f.value.offsetWidth}catch(g){t={error:g}}finally{try{f&&!f.done&&(e=h.return)&&e.call(h)}finally{if(t)throw t.error}}i=d-l-5,r=p>0?.75*p+10:0}for(var m=0;m<s.length;m++)s[m].style.width=i+"px";for(m=0;m<c.length;m++)c[m].style.width=r+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0},e.prototype._getStartEnd=function(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left},e.prototype._isAttachedToDOM=function(){var t=this._elementRef.nativeElement;if(t.getRootNode){var e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(ta),Na(kv,8),Na(Hg,8),Na(Ey,8),Na(pg),Na(Ru),Na(Mm,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var i;1&t&&(ru(n,fy,!0),ou(n,fy,!0),ru(n,yy,!0),ou(n,yy,!0),ru(n,by,!0),ru(n,py,!0),ru(n,vy,!0),ru(n,_y,!0),ru(n,wy,!0)),2&t&&(tu(i=su())&&(e._controlNonStatic=i.first),tu(i=su())&&(e._controlStatic=i.first),tu(i=su())&&(e._labelChildNonStatic=i.first),tu(i=su())&&(e._labelChildStatic=i.first),tu(i=su())&&(e._placeholderChild=i.first),tu(i=su())&&(e._errorChildren=i),tu(i=su())&&(e._hintChildren=i),tu(i=su())&&(e._prefixChildren=i),tu(i=su())&&(e._suffixChildren=i))},viewQuery:function(t,e){var n;1&t&&(nu(Yv,!0),eu(Qv,!0),nu(Kv,!0),nu(Xv,!0)),2&t&&(tu(n=su())&&(e.underlineRef=n.first),tu(n=su())&&(e._connectionContainerRef=n.first),tu(n=su())&&(e._inputContainerRef=n.first),tu(n=su())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&ps("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat)("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[Is],ngContentSelectors:ly,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(ts(uy),Fa(0,"div",0),Fa(1,"div",1,2),Za("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),Ra(3,Jv,9,0,"ng-container",3),Ra(4,$v,2,0,"div",4),Fa(5,"div",5,6),es(7),Fa(8,"span",7),Ra(9,iy,5,16,"label",8),Ba(),Ba(),Ra(10,ry,2,0,"div",9),Ba(),Ra(11,oy,3,4,"div",10),Fa(12,"div",11),Ra(13,ay,2,1,"div",12),Ra(14,cy,5,2,"div",13),Ba(),Ba()),2&t&&(xr(3),ja("ngIf","outline"==e.appearance),xr(1),ja("ngIf",e._prefixChildren.length),xr(5),ja("ngIf",e._hasFloatingLabel()),xr(1),ja("ngIf",e._suffixChildren.length),xr(1),ja("ngIf","outline"!=e.appearance),xr(1),ja("ngSwitch",e._getDisplayedMessages()),xr(1),ja("ngSwitchCase","error"),xr(1),ja("ngSwitchCase","hint"))},directives:[jl,Ul,zl,_g],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[hy.transitionMessages]},changeDetection:0}),e}(Cy),ky=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[Ql,wg]]}),t}(),Oy=["*"],Ty=ov(iv(rv(nv(function(){return function(t){this._elementRef=t}}())),"primary"),-1),Iy=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t}(),Ay=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t}(),Py=function(t){function e(e,n,i,r,o,a,s,c){var u=t.call(this,e)||this;return u._elementRef=e,u._ngZone=n,u._changeDetectorRef=a,u._hasFocus=!1,u.chipListSelectable=!0,u._chipListMultiple=!1,u._selected=!1,u._selectable=!0,u._removable=!0,u._onFocus=new M,u._onBlur=new M,u.selectionChange=new Hc,u.destroyed=new Hc,u.removed=new Hc,u._addHostClassName(),u._chipRippleTarget=(c||document).createElement("div"),u._chipRippleTarget.classList.add("mat-chip-ripple"),u._elementRef.nativeElement.appendChild(u._chipRippleTarget),u._chipRipple=new pv(u,n,u._chipRippleTarget,i),u._chipRipple.setupTriggerEvents(e),u.rippleConfig=r||{},u._animationsDisabled="NoopAnimations"===o,u.tabIndex=null!=s&&parseInt(s)||-1,u}return r(e,t),Object.defineProperty(e.prototype,"rippleDisabled",{get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(t){var e=rg(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removable",{get:function(){return this._removable},set:function(t){this._removable=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaSelected",{get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null},enumerable:!0,configurable:!0}),e.prototype._addHostClassName=function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")},e.prototype.ngOnDestroy=function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()},e.prototype.select=function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())},e.prototype.deselect=function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())},e.prototype.selectViaInteraction=function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())},e.prototype.toggleSelected=function(t){return void 0===t&&(t=!1),this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected},e.prototype.focus=function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0},e.prototype.remove=function(){this.removable&&this.removed.emit({chip:this})},e.prototype._handleClick=function(t){this.disabled?t.preventDefault():t.stopPropagation()},e.prototype._handleKeydown=function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}},e.prototype._blur=function(){var t=this;this._ngZone.onStable.asObservable().pipe(tg(1)).subscribe((function(){t._ngZone.run((function(){t._hasFocus=!1,t._onBlur.next({chip:t})}))}))},e.prototype._dispatchSelectionChange=function(t){void 0===t&&(t=!1),this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})},e.prototype._markForCheck=function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Ru),Na(pg),Na(hv,8),Na(Mm,8),Na(ta),Da("tabindex"),Na(dl,8))},e.\u0275dir=Ae({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(ru(n,Iy,!0),ru(n,Ay,!0),ru(n,My,!0)),2&t&&(tu(i=su())&&(e.avatar=i.first),tu(i=su())&&(e.trailingIcon=i.first),tu(i=su())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&Za("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(Pa("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),ps("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Is]}),e}(Ty),My=function(){function t(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}return t.prototype._handleClick=function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()},t.\u0275fac=function(e){return new(e||t)(Na(Py),Na(Ks))},t.\u0275dir=Ae({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&Za("click",(function(t){return e._handleClick(t)}))}}),t}(),Ry=new Kt("mat-chips-default-options"),Ny=av(function(){return function(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}()),Dy=0,Ly=function(){return function(t,e){this.source=t,this.value=e}}(),jy=function(t){function e(e,n,i,r,o,a,s){var c=t.call(this,a,r,o,s)||this;return c._elementRef=e,c._changeDetectorRef=n,c._dir=i,c.ngControl=s,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new M,c._uid="mat-chip-list-"+Dy++,c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(t,e){return t===e},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new Hc,c.valueChange=new Hc,c.ngControl&&(c.ngControl.valueAccessor=c),c}return r(e,t),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.empty?null:"listbox"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){this._multiple=rg(t),this._syncChipsState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._chipInput?this._chipInput.id:this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=rg(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return!this.empty||this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=rg(t),this._syncChipsState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this._selectable},set:function(t){var e=this;this._selectable=rg(t),this.chips&&this.chips.forEach((function(t){return t.chipListSelectable=e._selectable}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{set:function(t){this._userTabIndex=t,this._tabIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipSelectionChanges",{get:function(){return nt.apply(void 0,c(this.chips.map((function(t){return t.selectionChange}))))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipFocusChanges",{get:function(){return nt.apply(void 0,c(this.chips.map((function(t){return t._onFocus}))))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipBlurChanges",{get:function(){return nt.apply(void 0,c(this.chips.map((function(t){return t._onBlur}))))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipRemoveChanges",{get:function(){return nt.apply(void 0,c(this.chips.map((function(t){return t.destroyed}))))},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new Ig(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Hv(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.tabOut.pipe(Hv(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.chips.changes.pipe(Yg(null),Hv(this._destroyed)).subscribe((function(){t.disabled&&Promise.resolve().then((function(){t._syncChipsState()})),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()}))},e.prototype.ngOnInit=function(){this._selectionModel=new qv(this.multiple,void 0,!1),this.stateChanges.next()},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()},e.prototype.registerInput=function(t){this._chipInput=t},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.writeValue=function(t){this.chips&&this._setSelectionByValue(t,!1)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this.stateChanges.next()},e.prototype.onContainerClick=function(t){this._originatesFromChip(t)||this.focus()},e.prototype.focus=function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))},e.prototype._focusInput=function(t){this._chipInput&&this._chipInput.focus(t)},e.prototype._keydown=function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())},e.prototype._updateTabIndex=function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)},e.prototype._updateFocusForDestroyedChips=function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null},e.prototype._isValidIndex=function(t){return t>=0&&t<this.chips.length},e.prototype._isInputEmpty=function(t){return!(!t||"input"!==t.nodeName.toLowerCase()||t.value)},e.prototype._setSelectionByValue=function(t,e){var n=this;if(void 0===e&&(e=!0),this._clearSelection(),this.chips.forEach((function(t){return t.deselect()})),Array.isArray(t))t.forEach((function(t){return n._selectValue(t,e)})),this._sortValues();else{var i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}},e.prototype._selectValue=function(t,e){var n=this;void 0===e&&(e=!0);var i=this.chips.find((function(e){return null!=e.value&&n._compareWith(e.value,t)}));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i},e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then((function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())}))},e.prototype._clearSelection=function(t){this._selectionModel.clear(),this.chips.forEach((function(e){e!==t&&e.deselect()})),this.stateChanges.next()},e.prototype._sortValues=function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach((function(e){e.selected&&t._selectionModel.select(e)})),this.stateChanges.next())},e.prototype._propagateChanges=function(t){var e;e=Array.isArray(this.selected)?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.change.emit(new Ly(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()},e.prototype._blur=function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout((function(){t.focused||t._markAsTouched()})):this._markAsTouched())},e.prototype._markAsTouched=function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()},e.prototype._allowFocusEscape=function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout((function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()})))},e.prototype._resetChips=function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()},e.prototype._dropSubscriptions=function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)},e.prototype._listenToChipsSelection=function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe((function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach((function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()})),e.isUserInput&&t._propagateChanges()}))},e.prototype._listenToChipsFocus=function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe((function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()})),this._chipBlurSubscription=this.chipBlurChanges.subscribe((function(){t._blur(),t.stateChanges.next()}))},e.prototype._listenToChipsRemoved=function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe((function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)}))},e.prototype._originatesFromChip=function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1},e.prototype._hasFocusedChip=function(){return this.chips.some((function(t){return t._hasFocus}))},e.prototype._syncChipsState=function(){var t=this;this.chips&&this.chips.forEach((function(e){e.disabled=t._disabled,e._chipListMultiple=t.multiple}))},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(ta),Na(Hg,8),Na(Fp,8),Na(Jp,8),Na(sv),Na(Ud,10))},e.\u0275cmp=Ee({type:e,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&ru(n,Py,!0),2&t&&tu(i=su())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&Za("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(ks("id",e._uid),Pa("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),ps("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher",ariaOrientation:["aria-orientation","ariaOrientation"]},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Gs([{provide:fy,useExisting:e}]),Is],ngContentSelectors:Oy,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(ts(),Fa(0,"div",0),es(1),Ba())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(Ny),Vy={separatorKeyCodes:[13]},Fy=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[sv,{provide:Ry,useValue:Vy}]}),t}();function By(t,e){return function(n){return n.lift(new Uy(t,e))}}var Uy=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new zy(t,this.compare,this.keySelector))},t}(),zy=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return r(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))},e}(w),Hy=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Wy(t,this.durationSelector))},t}(),Wy=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(i){return this.destination.error(i)}var n=z(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(H);function Gy(t){return!l(t)&&t-parseFloat(t)+1>=0}function qy(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function Zy(t,e){return void 0===e&&(e=Hm),n=function(){return function(t,e,n){void 0===t&&(t=0);var i=-1;return Gy(e)?i=Number(e)<1?1:Number(e):N(e)&&(n=e),N(n)||(n=Hm),new O((function(e){var r=Gy(t)?t:+t-n.now();return n.schedule(qy,r,{index:0,period:i,subscriber:e})}))}(t,e)},function(t){return t.lift(new Hy(n))};var n}function Yy(t,e){return"function"==typeof e?function(n){return n.pipe(Yy((function(n,i){return Y(t(n,i)).pipe(W((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new Qy(t))}}var Qy=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ky(t,this.project))},t}(),Ky=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new D(this,e,n),o=this.destination;o.add(r),this.innerSubscription=z(this,t,void 0,void 0,r),this.innerSubscription!==r&&o.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e}(H);function Xy(t,e){return new O(e?function(n){return e.schedule(Jy,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Jy(t){t.subscriber.error(t.error)}var $y=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new M,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?new O((function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(Zy(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Lm()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ym((function(t){return!t||n.indexOf(t)>-1})))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)})),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return Zv(window.document,"scroll").subscribe((function(){return t._scrolled.next()}))}))},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.\u0275prov=wt({factory:function(){return new t(oe(Ru),oe(pg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(Ru),oe(pg))},t}(),tb=function(){function t(t,e,n,i){var r=this;this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new M,this._elementScrolled=new O((function(t){return r.ngZone.runOutsideAngular((function(){return Zv(r.elementRef.nativeElement,"scroll").pipe(Hv(r._destroyed)).subscribe(t)}))}))}return t.prototype.ngOnInit=function(){this.scrollDispatcher.register(this)},t.prototype.ngOnDestroy=function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()},t.prototype.elementScrolled=function(){return this._elementScrolled},t.prototype.getElementRef=function(){return this.elementRef},t.prototype.scrollTo=function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=vg()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==vg()?t.left=t.right:1==vg()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)},t.prototype._applyScrollToOptions=function(t){var e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))},t.prototype.measureScrollOffset=function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==vg()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==vg()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft},t.\u0275fac=function(e){return new(e||t)(Na(Ks),Na($y),Na(Ru),Na(Hg,8))},t.\u0275dir=Ae({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t}(),eb=function(){function t(t,e){var n=this;this._platform=t,e.runOutsideAngular((function(){n._change=t.isBrowser?nt(Zv(window,"resize"),Zv(window,"orientationchange")):Lm(),n._invalidateCache=n.change().subscribe((function(){return n._updateViewportSize()}))}))}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(Zy(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.\u0275prov=wt({factory:function(){return new t(oe(pg),oe(Ru))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(pg),oe(Ru))},t}(),nb=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[Wg,hg],Wg]}),t}();function ib(){throw Error("Host already has a portal attached")}var rb=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&ib(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),ob=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=n,o.injector=i,o.componentFactoryResolver=r,o}return r(e,t),e}(rb),ab=function(t){function e(e,n,i){var r=t.call(this)||this;return r.templateRef=e,r.viewContainerRef=n,r.context=i,r}return r(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(rb),sb=function(t){function e(e){var n=t.call(this)||this;return n.element=e instanceof Ks?e.nativeElement:e,n}return r(e,t),e}(rb),cb=function(){function t(){this._isDisposed=!1,this.attachDomPortal=null}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&ib(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof ob?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof ab?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof sb?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),ub=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a.outletElement=e,a._componentFactoryResolver=n,a._appRef=i,a._defaultInjector=r,a.attachDomPortal=function(e){if(!a._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=e.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=a._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),a.outletElement.appendChild(n),t.prototype.setDisposeFn.call(a,(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},a._document=o,a}return r(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=n.indexOf(i);-1!==t&&n.remove(t)})),i},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(cb),lb=function(t){function e(e,n,i){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new Hc,r.attachDomPortal=function(e){if(!r._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=e.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=r._document.createComment("dom-portal");e.setAttachedHost(r),n.parentNode.insertBefore(i,n),r._getRootNode().appendChild(n),t.prototype.setDisposeFn.call(r,(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},r._document=i,r}return r(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=n.createComponent(i,n.length,e.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),t.prototype.setDisposeFn.call(this,(function(){return r.destroy()})),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,(function(){return n._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i},e.prototype._getRootNode=function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode},e.\u0275fac=function(t){return new(t||e)(Na(Qs),Na(Sc),Na(dl))},e.\u0275dir=Ae({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Is]}),e}(cb),db=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)}}),t}(),pb=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=sg(-this._previousScrollPosition.left),t.style.top=sg(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function hb(){return Error("Scroll strategy has already been attached.")}var fb=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return t.prototype.attach=function(t){if(this._overlayRef)throw hb();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),mb=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function gb(t,e){return e.some((function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right}))}function vb(t,e){return e.some((function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right}))}var yb=function(){function t(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw hb();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;gb(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),bb=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new mb},this.close=function(t){return new fb(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new pb(r._viewportRuler,r._document)},this.reposition=function(t){return new yb(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=i}return t.\u0275prov=wt({factory:function(){return new t(oe($y),oe(eb),oe(Ru),oe(dl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe($y),oe(eb),oe(Ru),oe(dl))},t}(),_b=function(){return function(t){var e,n;if(this.scrollStrategy=new mb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){var i=Object.keys(t);try{for(var r=a(i),o=r.next();!o.done;o=r.next()){var s=o.value;void 0!==t[s]&&(this[s]=t[s])}}catch(c){e={error:c}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}}}(),wb=function(){return function(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}(),Sb=function(){return function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}();function Cb(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function Eb(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var xb=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,i=n.length-1;i>-1;i--)if(n[i]._keydownEventSubscriptions>0){n[i]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)},t.\u0275prov=wt({factory:function(){return new t(oe(dl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(dl))},t}(),kb=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),Ob=function(){function t(t,e){this._platform=e,this._document=t}return t.prototype.ngOnDestroy=function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||kb)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);var i=this._document.createElement("div");i.classList.add("cdk-overlay-container"),kb?i.setAttribute("platform","test"):t||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i},t.\u0275prov=wt({factory:function(){return new t(oe(dl),oe(pg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(dl),oe(pg))},t}(),Tb=function(){function t(t,e,n,i,r,o,a,s){var c=this;this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=o,this._document=a,this._location=s,this._backdropElement=null,this._backdropClick=new M,this._attachments=new M,this._detachments=new M,this._locationChanges=f.EMPTY,this._backdropClickHandler=function(t){return c._backdropClick.next(t)},this._keydownEventsObservable=new O((function(t){var e=c._keydownEvents.subscribe(t);return c._keydownEventSubscriptions++,function(){e.unsubscribe(),c._keydownEventSubscriptions--}})),this._keydownEvents=new M,this._keydownEventSubscriptions=0,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(tg(1)).subscribe((function(){e.hasAttached()&&e.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return e.dispose()}))),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEventsObservable},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()},t.prototype.updatePositionStrategy=function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))},t.prototype.updateSize=function(t){this._config=o(o({},this._config),t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=o(o({},this._config),{direction:t}),this._updateElementDirection()},t.prototype.addPanelClass=function(t){this._pane&&this._toggleClasses(this._pane,t,!0)},t.prototype.removePanelClass=function(t){this._pane&&this._toggleClasses(this._pane,t,!1)},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype.updateScrollStrategy=function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){if(this._pane){var t=this._pane.style;t.width=sg(this._config.width),t.height=sg(this._config.height),t.minWidth=sg(this._config.minWidth),t.minHeight=sg(this._config.minHeight),t.maxWidth=sg(this._config.maxWidth),t.maxHeight=sg(this._config.maxHeight)}},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n,i=function(){e&&(e.removeEventListener("click",t._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),t._backdropElement==e&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(e,t._config.backdropClass,!1),clearTimeout(n)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){e.addEventListener("transitionend",i)})),e.style.pointerEvents="none",n=this._ngZone.runOutsideAngular((function(){return setTimeout(i,500)}))}},t.prototype._toggleClasses=function(t,e,n){var i=t.classList;ag(e).forEach((function(t){t&&(n?i.add(t):i.remove(t))}))},t.prototype._detachContentWhenStable=function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._ngZone.onStable.asObservable().pipe(Hv(nt(t._attachments,t._detachments))).subscribe((function(){t._pane&&t._host&&0!==t._pane.children.length||(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())}))}))},t.prototype._disposeScrollStrategy=function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())},t}(),Ib=/([A-Za-z%]+)$/,Ab=function(){function t(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new M,this._resizeSubscription=f.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){e._isInitialRender=!0,e.apply()}))},t.prototype.apply=function(){var t,e,n,i;if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var r,o=this._originRect,s=this._overlayRect,c=this._viewportRect,u=[];try{for(var l=a(this._preferredPositions),d=l.next();!d.done;d=l.next()){var p=d.value,h=this._getOriginPoint(o,p),f=this._getOverlayPoint(h,s,p),m=this._getOverlayFit(f,s,c,p);if(m.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(p,h);this._canFitWithFlexibleDimensions(m,f,c)?u.push({position:p,origin:h,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(h,p)}):(!r||r.overlayFit.visibleArea<m.visibleArea)&&(r={overlayFit:m,overlayPoint:f,originPoint:h,position:p,overlayRect:s})}}catch(S){t={error:S}}finally{try{d&&!d.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}if(u.length){var g=null,v=-1;try{for(var y=a(u),b=y.next();!b.done;b=y.next()){var _=b.value,w=_.boundingBoxRect.width*_.boundingBoxRect.height*(_.position.weight||1);w>v&&(v=w,g=_)}}catch(C){n={error:C}}finally{try{b&&!b.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}return this._isPushed=!1,void this._applyPosition(g.position,g.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}},t.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Pb(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)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){return this._scrollables=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,i){var r=t.x,o=t.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var c=0-o,u=o+e.height-n.height,l=this._subtractOverflows(e.width,0-r,r+e.width-n.width),d=this._subtractOverflows(e.height,c,u),p=l*d;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:l==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=Mb(this._overlayRef.getConfig().minHeight),a=Mb(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1},t.prototype._pushOverlayOnScreen=function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(t.x+e.width-o.right,0),s=Math.max(t.y+e.height-o.bottom,0),c=Math.max(o.top-n.top-t.y,0),u=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:i=e.width<=o.width?u||-a:t.x<this._viewportMargin?o.left-n.left-t.x:0,y:r=e.height<=o.height?c||-s:t.y<this._viewportMargin?o.top-n.top-t.y:0},{x:t.x+i,y:t.y+r}},t.prototype._applyPosition=function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new Sb(t,n);this._positionChanges.next(i)}this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin=e+" "+i}},t.prototype._calculateBoundingBoxRect=function(t,e){var n,i,r,o,a,s,c=this._viewportRect,u=this._isRtl();if("top"===e.overlayY)n=c.height-(i=t.y)+this._viewportMargin;else if("bottom"===e.overlayY)n=c.height-(r=c.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var l=Math.min(c.bottom-t.y+c.top,t.y),d=this._lastBoundingBoxSize.height;i=t.y-l,(n=2*l)>d&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-d/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=c.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=c.right-t.x;else{l=Math.min(c.right-t.x+c.left,t.x);var p=this._lastBoundingBoxSize.width;a=t.x-l,(o=2*l)>p&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-p/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=sg(n.height),i.top=sg(n.top),i.bottom=sg(n.bottom),i.width=sg(n.width),i.left=sg(n.left),i.right=sg(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=sg(r)),o&&(i.maxWidth=sg(o))}this._lastBoundingBoxSize=n,Pb(this._boundingBox.style,i)},t.prototype._resetBoundingBoxStyles=function(){Pb(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){Pb(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();Pb(n,this._getExactOverlayY(e,t,a)),Pb(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",c=this._getOffset(e,"x"),u=this._getOffset(e,"y");c&&(s+="translateX("+c+"px) "),u&&(s+="translateY("+u+"px)"),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=sg(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=sg(o.maxWidth):r&&(n.maxWidth="")),Pb(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=sg(r.y),i},t.prototype._getExactOverlayX=function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=sg(r.x),i},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:vb(t,n),isOriginOutsideView:gb(t,n),isOverlayClipped:vb(e,n),isOverlayOutsideView:gb(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(t,e){return t-Math.max(e,0)}),t)},t.prototype._getNarrowedViewportRect=function(){var t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}},t.prototype._isRtl=function(){return"rtl"===this._overlayRef.getDirection()},t.prototype._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed},t.prototype._getOffset=function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY},t.prototype._validatePositions=function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(t){Eb("originX",t.originX),Cb("originY",t.originY),Eb("overlayX",t.overlayX),Cb("overlayY",t.overlayY)}))},t.prototype._addPanelClasses=function(t){var e=this;this._pane&&ag(t).forEach((function(t){""!==t&&-1===e._appliedPanelClasses.indexOf(t)&&(e._appliedPanelClasses.push(t),e._pane.classList.add(t))}))},t.prototype._clearPanelClasses=function(){var t=this;this._pane&&(this._appliedPanelClasses.forEach((function(e){t._pane.classList.remove(e)})),this._appliedPanelClasses=[])},t.prototype._getOriginRect=function(){var t=this._origin;if(t instanceof Ks)return t.nativeElement.getBoundingClientRect();if(t instanceof HTMLElement)return t.getBoundingClientRect();var e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}},t}();function Pb(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Mb(t){if("number"!=typeof t&&null!=t){var e=s(t.split(Ib),2),n=e[1];return n&&"px"!==n?null:parseFloat(e[0])}return t||null}var Rb=function(){function t(t,e,n,i,r,o,a){this._preferredPositions=[],this._positionStrategy=new Ab(n,i,r,o,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._overlayRef.getDirection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._positionStrategy.positionChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)},t.prototype.dispose=function(){this._positionStrategy.dispose()},t.prototype.detach=function(){this._positionStrategy.detach()},t.prototype.apply=function(){this._positionStrategy.apply()},t.prototype.recalculateLastPosition=function(){this._positionStrategy.reapplyLastPosition()},t.prototype.withScrollableContainers=function(t){this._positionStrategy.withScrollableContainers(t)},t.prototype.withFallbackPosition=function(t,e,n,i){var r=new wb(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.withDirection=function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this},t.prototype.withOffsetX=function(t){return this._positionStrategy.withDefaultOffsetX(t),this},t.prototype.withOffsetY=function(t){return this._positionStrategy.withDefaultOffsetY(t),this},t.prototype.withLockedPosition=function(t){return this._positionStrategy.withLockedPosition(t),this},t.prototype.withPositions=function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.setOrigin=function(t){return this._positionStrategy.setOrigin(t),this},t}(),Nb=function(){function t(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return t.prototype.attach=function(t){var e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1},t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this},t.prototype.height=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}},t.prototype.dispose=function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},t}(),Db=function(){function t(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}return t.prototype.global=function(){return new Nb},t.prototype.connectedTo=function(t,e,n){return new Rb(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)},t.prototype.flexibleConnectedTo=function(t){return new Ab(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)},t.\u0275prov=wt({factory:function(){return new t(oe(eb),oe(dl),oe(pg),oe(Ob))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(eb),oe(dl),oe(pg),oe(Ob))},t}(),Lb=0,jb=function(){function t(t,e,n,i,r,o,a,s,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=o,this._ngZone=a,this._document=s,this._directionality=c,this._location=u}return t.prototype.create=function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new _b(t);return r.direction=r.direction||this._directionality.value,new Tb(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+Lb++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e},t.prototype._createHostElement=function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return this._appRef||(this._appRef=this._injector.get(Ju)),new ub(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)},t.\u0275fac=function(e){return new(e||t)(oe(bb),oe(Ob),oe(Qs),oe(Db),oe(xb),oe(ga),oe(Ru),oe(dl),oe(Hg),oe(kl,8))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Vb=[{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"}],Fb=new Kt("cdk-connected-overlay-scroll-strategy"),Bb=function(){function t(t){this.elementRef=t}return t.\u0275fac=function(e){return new(e||t)(Na(Ks))},t.\u0275dir=Ae({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),Ub=function(){function t(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=f.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new Hc,this.positionChange=new Hc,this.attach=new Hc,this.detach=new Hc,this.overlayKeydown=new Hc,this._templatePortal=new ab(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}return Object.defineProperty(t.prototype,"offsetX",{get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lockPosition",{get:function(){return this._lockPosition},set:function(t){this._lockPosition=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flexibleDimensions",{get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"growAfterOpen",{get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"push",{get:function(){return this._push},set:function(t){this._push=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayRef",{get:function(){return this._overlayRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir?this._dir.value:"ltr"},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()},t.prototype.ngOnChanges=function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())},t.prototype._createOverlay=function(){var t=this;this.positions&&this.positions.length||(this.positions=Vb),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||jm(e)||(e.preventDefault(),t._detachOverlay())}))},t.prototype._buildConfig=function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new _b({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e},t.prototype._updatePositionStrategy=function(t){var e=this,n=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)},t.prototype._createPositionStrategy=function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e},t.prototype._attachOverlay=function(){var t=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(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()},t.prototype._detachOverlay=function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()},t.\u0275fac=function(e){return new(e||t)(Na(jb),Na(_c),Na(Sc),Na(Fb),Na(Hg,8))},t.\u0275dir=Ae({type:t,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:[Ds]}),t}(),zb={provide:Fb,deps:[jb],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Hb=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[jb,zb],imports:[[Wg,db,nb],nb]}),t}();function Wb(t){return new O((function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?Y(n):$m()).subscribe(e)}))}function Gb(t,e){}var qb=function(){return function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}(),Zb={dialogContainer:ph("dialogContainer",[gh("void, exit",mh({opacity:0,transform:"scale(0.7)"})),gh("enter",mh({transform:"none"})),yh("* => enter",hh("150ms cubic-bezier(0, 0, 0.2, 1)",mh({transform:"none",opacity:1}))),yh("* => void, * => exit",hh("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",mh({opacity:0})))])};function Yb(){throw Error("Attempting to attach dialog content after content is already attached")}var Qb=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._elementRef=e,a._focusTrapFactory=n,a._changeDetectorRef=i,a._config=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new Hc,a.attachDomPortal=function(t){return a._portalOutlet.hasAttached()&&Yb(),a._savePreviouslyFocusedElement(),a._portalOutlet.attachDomPortal(t)},a._ariaLabelledBy=o.ariaLabelledBy||null,a._document=r,a}return r(e,t),e.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&Yb(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&Yb(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},e.prototype._trapFocus=function(){var t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var e=this._document.activeElement;e===t||t.contains(e)||t.focus()}},e.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()},e.prototype._savePreviouslyFocusedElement=function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))},e.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},e.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},e.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Ng),Na(ta),Na(dl,8),Na(qb))},e.\u0275cmp=Ee({type:e,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&eu(lb,!0),2&t&&tu(n=su())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Ya("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(Pa("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Os("@dialogContainer",e._state))},features:[Is],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Ra(0,Gb,0,0,"ng-template",0)},directives:[lb],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:[Zb.dialogContainer]}}),e}(cb),Kb=0,Xb=function(){function t(t,e,n){var i=this;void 0===n&&(n="mat-dialog-"+Kb++),this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new M,this._afterClosed=new M,this._beforeClosed=new M,this._state=0,e._id=n,e._animationStateChanged.pipe(Ym((function(t){return"done"===t.phaseName&&"enter"===t.toState})),tg(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),e._animationStateChanged.pipe(Ym((function(t){return"done"===t.phaseName&&"exit"===t.toState})),tg(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._overlayRef.dispose()})),t.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),t.keydownEvents().pipe(Ym((function(t){return 27===t.keyCode&&!i.disableClose&&!jm(t)}))).subscribe((function(t){t.preventDefault(),i.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Ym((function(t){return"start"===t.phaseName})),tg(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._state=2,e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){e._overlayRef.dispose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1},t.prototype.afterOpened=function(){return this._afterOpened.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClosed=function(){return this._beforeClosed.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype.addPanelClass=function(t){return this._overlayRef.addPanelClass(t),this},t.prototype.removePanelClass=function(t){return this._overlayRef.removePanelClass(t),this},t.prototype.getState=function(){return this._state},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),Jb=new Kt("MatDialogData"),$b=new Kt("mat-dialog-default-options"),t_=new Kt("mat-dialog-scroll-strategy"),e_={provide:t_,deps:[jb],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},n_=function(){function t(t,e,n,i,r,o,a){var s=this;this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new M,this._afterOpenedAtThisLevel=new M,this._ariaHiddenElements=new Map,this.afterAllClosed=Wb((function(){return s.openDialogs.length?s._afterAllClosed:s._afterAllClosed.pipe(Yg(void 0))})),this._scrollStrategy=r}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpened",{get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n=this;if((e=function(t,e){return o(o({},e),t)}(e,this._defaultOptions||new qb)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),a=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return n._removeOpenDialog(a)})),this.afterOpened.next(a),a},t.prototype.closeAll=function(){this._closeDialogs(this.openDialogs)},t.prototype.getDialogById=function(t){return this.openDialogs.find((function(e){return e.id===t}))},t.prototype.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new _b({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=ga.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:qb,useValue:e}]}),i=new ob(Qb,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance},t.prototype._attachDialogContent=function(t,e,n,i){var r=new Xb(n,e,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof _c)e.attachTemplatePortal(new ab(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),a=e.attachComponentPortal(new ob(t,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r},t.prototype._createInjector=function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:Qb,useValue:n},{provide:Jb,useValue:t.data},{provide:Xb,useValue:e}];return!t.direction||i&&i.get(Hg,null)||r.push({provide:Hg,useValue:{value:t.direction,change:Lm()}}),ga.create({parent:i||this._injector,providers:r})},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}},t.prototype._closeDialogs=function(t){for(var e=t.length;e--;)t[e].close()},t.\u0275fac=function(e){return new(e||t)(oe(jb),oe(ga),oe(kl,8),oe($b,8),oe(t_),oe(t,12),oe(Ob))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),i_=0,r_=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+i_++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=function(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))},t.\u0275fac=function(e){return new(e||t)(Na(Xb,8),Na(Ks),Na(n_))},t.\u0275dir=Ae({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&ks("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),o_=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),a_=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[n_,e_],imports:[[Hb,db,ev],ev]}),t}(),s_=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[cv,ev],cv,ev]}),t}();function c_(t){return function(e){var n=new u_(t),i=e.lift(n);return n.caught=i}}var u_=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new l_(t,this.selector,this.caught))},t}(),l_=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var i=new D(this,void 0,void 0);this.add(i);var r=z(this,n,void 0,void 0,i);r!==i&&this.add(r)}},e}(H);function d_(t){return function(e){return e.lift(new p_(t))}}var p_=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new h_(t,this.callback))},t}(),h_=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new f(n)),i}return r(e,t),e}(w);function f_(t,e){return Q(t,e,1)}var m_=function(){return function(){}}(),g_=function(){return function(){}}(),v_=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach((function(t){var n=t.indexOf(":");if(n>0){var i=t.slice(0,n),r=i.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(i,r),e.headers.has(r)?e.headers.get(r).push(o):e.headers.set(r,[o])}}))}:function(){e.headers=new Map,Object.keys(t).forEach((function(n){var i=t[n],r=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(e.headers.set(r,i),e.maybeSetNormalizedName(n,r))}))}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,c(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===r.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))},t}(),y_=function(){function t(){}return t.prototype.encodeKey=function(t){return b_(t)},t.prototype.encodeValue=function(t){return b_(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function b_(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var __=function(){function t(t){var e,n,i,r=this;if(void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new y_,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),r=s(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=r[0],a=r[1],c=i.get(o)||[];c.push(a),i.set(o,c)})),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((function(e){var n=t.fromObject[e];r.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)},t}();function w_(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function S_(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C_(t){return"undefined"!=typeof FormData&&t instanceof FormData}var E_=function(){function t(t,e,n,i){var r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new v_),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new __,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:w_(this.body)||S_(this.body)||C_(this.body)||"string"==typeof this.body?this.body:this.body instanceof __?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:C_(this.body)?null:S_(this.body)?this.body.type||null:w_(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof __?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,i=e.url||this.url,r=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,c=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),u)),new t(n,i,o,{params:u,headers:c,reportProgress:s,responseType:r,withCredentials:a})},t}(),x_=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),k_=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new v_,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),O_=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=x_.ResponseHeader,n}return r(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(k_),T_=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=x_.Response,n.body=void 0!==e.body?e.body:null,n}return r(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(k_),I_=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return r(e,t),e}(k_);function A_(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var P_=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var i,r=this;if(void 0===n&&(n={}),t instanceof E_)i=t;else{var o;o=n.headers instanceof v_?n.headers:new v_(n.headers);var a=void 0;n.params&&(a=n.params instanceof __?n.params:new __({fromObject:n.params})),i=new E_(t,e,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=Lm(i).pipe(f_((function(t){return r.handler.handle(t)})));if(t instanceof E_||"events"===n.observe)return s;var c=s.pipe(Ym((function(t){return t instanceof T_})));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return c.pipe(W((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return c.pipe(W((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return c.pipe(W((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return c.pipe(W((function(t){return t.body})))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new __).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,A_(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,A_(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,A_(n,e))},t.\u0275fac=function(e){return new(e||t)(oe(m_))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),M_=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),R_=new Kt("HTTP_INTERCEPTORS"),N_=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),D_=/^\)\]\}',?\n/,L_=function(){return function(){}}(),j_=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),V_=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new O((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,c=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new v_(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new O_({headers:r,status:e,statusText:n,url:o})},u=function(){var e=c(),r=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var d=u;u=u.replace(D_,"");try{u=""!==u?JSON.parse(u):null}catch(p){u=d,l&&(l=!1,u={error:p,text:u})}}l?(n.next(new T_({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new I_({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=c().url,r=new I_({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(r)},d=!1,p=function(e){d||(n.next(c()),d=!0);var r={type:x_.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},h=function(t){var e={type:x_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",l),t.reportProgress&&(i.addEventListener("progress",p),null!==a&&i.upload&&i.upload.addEventListener("progress",h)),i.send(a),n.next({type:x_.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("load",u),t.reportProgress&&(i.removeEventListener("progress",p),null!==a&&i.upload&&i.upload.removeEventListener("progress",h)),i.abort()}}))},t.\u0275fac=function(e){return new(e||t)(oe(L_))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),F_=new Kt("XSRF_COOKIE_NAME"),B_=new Kt("XSRF_HEADER_NAME"),U_=function(){return function(){}}(),z_=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ml(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.\u0275fac=function(e){return new(e||t)(oe(dl),oe(vu),oe(F_))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),H_=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)},t.\u0275fac=function(e){return new(e||t)(oe(U_),oe(B_))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),W_=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(R_,[]);this.chain=e.reduceRight((function(t,e){return new M_(t,e)}),this.backend)}return this.chain.handle(t)},t.\u0275fac=function(e){return new(e||t)(oe(g_),oe(ga))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),G_=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:H_,useClass:N_}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:F_,useValue:t.cookieName}:[],t.headerName?{provide:B_,useValue:t.headerName}:[]]}},t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[H_,{provide:R_,useExisting:H_,multi:!0},{provide:U_,useClass:z_},{provide:F_,useValue:"XSRF-TOKEN"},{provide:B_,useValue:"X-XSRF-TOKEN"}]}),t}(),q_=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[P_,{provide:m_,useClass:W_},V_,{provide:g_,useExisting:V_},j_,{provide:L_,useExisting:j_}],imports:[[G_.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),Z_=["*"];function Y_(t){return Error('Unable to find icon with the name "'+t+'"')}function Q_(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function K_(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+t+'".')}var X_=function(){return function(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}(),J_=function(){function t(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return t.prototype.addSvgIcon=function(t,e,n){return this.addSvgIconInNamespace("",t,e,n)},t.prototype.addSvgIconLiteral=function(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)},t.prototype.addSvgIconInNamespace=function(t,e,n,i){return this._addSvgIconConfig(t,e,new X_(n,i))},t.prototype.addSvgIconLiteralInNamespace=function(t,e,n,i){var r=this._sanitizer.sanitize(Wi.HTML,n);if(!r)throw K_(n);var o=this._createSvgElementForSingleIcon(r,i);return this._addSvgIconConfig(t,e,new X_(o,i))},t.prototype.addSvgIconSet=function(t,e){return this.addSvgIconSetInNamespace("",t,e)},t.prototype.addSvgIconSetLiteral=function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)},t.prototype.addSvgIconSetInNamespace=function(t,e,n){return this._addSvgIconSetConfig(t,new X_(e,n))},t.prototype.addSvgIconSetLiteralInNamespace=function(t,e,n){var i=this._sanitizer.sanitize(Wi.HTML,e);if(!i)throw K_(e);var r=this._svgElementFromString(i);return this._addSvgIconSetConfig(t,new X_(r,n))},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var e=this,n=this._sanitizer.sanitize(Wi.RESOURCE_URL,t);if(!n)throw Q_(t);var i=this._cachedIconsByUrl.get(n);return i?Lm($_(i)):this._loadSvgIconFromConfig(new X_(t)).pipe(Vm((function(t){return e._cachedIconsByUrl.set(n,t)})),W((function(t){return $_(t)})))},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=tw(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Xy(Y_(n))},t.prototype.ngOnDestroy=function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()},t.prototype._getSvgFromConfig=function(t){return t.svgElement?Lm($_(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Vm((function(e){return t.svgElement=e})),W((function(t){return $_(t)})))},t.prototype._getSvgFromIconSetConfigs=function(t,e){var n=this,i=this._extractIconWithNameFromAnySet(t,e);return i?Lm(i):Ad(e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(c_((function(e){var i="Loading icon set URL: "+n._sanitizer.sanitize(Wi.RESOURCE_URL,t.url)+" failed: "+e.message;return n._errorHandler?n._errorHandler.handleError(new Error(i)):console.error(i),Lm(null)})))}))).pipe(W((function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw Y_(t);return i})))},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.svgElement){var r=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(r)return r}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(W((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?Lm(t.svgElement):this._fetchUrl(t.url).pipe(W((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))},t.prototype._createSvgElementForSingleIcon=function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n},t.prototype._extractSvgIconFromSet=function(t,e,n){var i=t.querySelector('[id="'+e+'"]');if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString("<svg></svg>"),n=t.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name;"id"!==o&&e.setAttribute(o,r.value)}for(i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e},t.prototype._setSvgAttributes=function(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t},t.prototype._fetchUrl=function(t){var e=this;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==t)throw Error('Cannot fetch icon from URL "'+t+'".');var n=this._sanitizer.sanitize(Wi.RESOURCE_URL,t);if(!n)throw Q_(t);var i=this._inProgressUrlFetches.get(n);if(i)return i;var r=this._httpClient.get(n,{responseType:"text"}).pipe(d_((function(){return e._inProgressUrlFetches.delete(n)})),lt());return this._inProgressUrlFetches.set(n,r),r},t.prototype._addSvgIconConfig=function(t,e,n){return this._svgIconConfigs.set(tw(t,e),n),this},t.prototype._addSvgIconSetConfig=function(t,e){var n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this},t.\u0275prov=wt({factory:function(){return new t(oe(P_,8),oe(xd),oe(dl,8),oe(ui,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(P_,8),oe(xd),oe(dl,8),oe(ui,8))},t}();function $_(t){return t.cloneNode(!0)}function tw(t,e){return t+":"+e}var ew=iv(function(){return function(t){this._elementRef=t}}()),nw=new Kt("mat-icon-location",{providedIn:"root",factory:function(){var t=ae(dl),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),iw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],rw=iw.map((function(t){return"["+t+"]"})).join(", "),ow=/^url\(['"]?#(.*?)['"]?\)$/,aw=function(t){function e(e,n,i,r,o){var a=t.call(this,e)||this;return a._iconRegistry=n,a._location=r,a._errorHandler=o,a._inline=!1,i||e.nativeElement.setAttribute("aria-hidden","true"),a}return r(e,t),Object.defineProperty(e.prototype,"inline",{get:function(){return this._inline},set:function(t){this._inline=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSet",{get:function(){return this._fontSet},set:function(t){this._fontSet=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontIcon",{get:function(){return this._fontIcon},set:function(t){this._fontIcon=this._cleanupFontValue(t)},enumerable:!0,configurable:!0}),e.prototype._splitIconName=function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'+t+'"')}},e.prototype.ngOnChanges=function(t){var e=this,n=t.svgIcon;if(n)if(this.svgIcon){var i=s(this._splitIconName(this.svgIcon),2),r=i[0],o=i[1];this._iconRegistry.getNamedSvgIcon(o,r).pipe(tg(1)).subscribe((function(t){return e._setSvgElement(t)}),(function(t){var n="Error retrieving icon "+r+":"+o+"! "+t.message;e._errorHandler?e._errorHandler.handleError(new Error(n)):console.error(n)}))}else n.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()},e.prototype.ngOnInit=function(){this._usingFontIcon()&&this._updateFontIconClasses()},e.prototype.ngAfterViewChecked=function(){var t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){var e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}},e.prototype.ngOnDestroy=function(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()},e.prototype._usingFontIcon=function(){return!this.svgIcon},e.prototype._setSvgElement=function(t){this._clearSvgElement();for(var e=t.querySelectorAll("style"),n=0;n<e.length;n++)e[n].textContent+=" ";if(this._location){var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i)}this._elementRef.nativeElement.appendChild(t)},e.prototype._clearSvgElement=function(){var t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){var n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}},e.prototype._updateFontIconClasses=function(){if(this._usingFontIcon()){var t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}},e.prototype._cleanupFontValue=function(t){return"string"==typeof t?t.trim().split(" ")[0]:t},e.prototype._prependPathToReferences=function(t){var e=this._elementsWithExternalReferences;e&&e.forEach((function(e,n){e.forEach((function(e){n.setAttribute(e.name,"url('"+t+"#"+e.value+"')")}))}))},e.prototype._cacheChildrenWithExternalReferences=function(t){for(var e=t.querySelectorAll(rw),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(t){iw.forEach((function(i){var r=e[t],o=r.getAttribute(i),a=o?o.match(ow):null;if(a){var s=n.get(r);s||n.set(r,s=[]),s.push({name:i,value:a[1]})}}))},r=0;r<e.length;r++)i(r)},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(J_),Da("aria-hidden"),Na(nw,8),Na(ui,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&ps("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[Is,Ds],ngContentSelectors:Z_,decls:1,vars:0,template:function(t,e){1&t&&(ts(),es(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e}(ew),sw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[ev],ev]}),t}(),cw=gg({passive:!0}),uw=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return Jm;var n=cg(t),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var r=new M,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(o),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",a,cw),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,cw)}}),r.asObservable()},t.prototype.stopMonitoring=function(t){var e=cg(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))},t.\u0275prov=wt({factory:function(){return new t(oe(pg),oe(Ru))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(pg),oe(Ru))},t}(),lw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[hg]]}),t}(),dw=new Kt("MAT_INPUT_VALUE_ACCESSOR"),pw=["button","checkbox","file","hidden","image","radio","range","reset","submit"],hw=0,fw=function(t){function e(e,n,i,r,o,a,s,c,u){var l=t.call(this,a,r,o,i)||this;l._elementRef=e,l._platform=n,l.ngControl=i,l._autofillMonitor=c,l._uid="mat-input-"+hw++,l._isServer=!1,l._isNativeSelect=!1,l.focused=!1,l.stateChanges=new M,l.controlType="mat-input",l.autofilled=!1,l._disabled=!1,l._required=!1,l._type="text",l._readonly=!1,l._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return mg().has(t)}));var d=l._elementRef.nativeElement;return l._inputValueAccessor=s||d,l._previousNativeValue=l.value,l.id=l.id,n.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),l._isServer=!l._platform.isBrowser,l._isNativeSelect="select"===d.nodeName.toLowerCase(),l._isNativeSelect&&(l.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),l}return r(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=rg(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&mg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=rg(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._focusChanged=function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},e.prototype._dirtyCheckNativeValue=function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(pw.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focused||this.focus()},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(pg),Na(Ud,10),Na(Fp,8),Na(Jp,8),Na(sv),Na(dw,10),Na(uw),Na(Ru))},e.\u0275dir=Ae({type:e,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(t,e){1&t&&Za("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(ks("disabled",e.disabled)("required",e.required),Pa("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ps("mat-input-server",e._isServer))},inputs:{disabled:"disabled",id:"id",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Gs([{provide:fy,useExisting:e}]),Is,Ds]}),e}(av(function(){return function(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}())),mw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[sv],imports:[[lw,ky],lw,ky]}),t}();function gw(t,e){if(1&t&&(mn(),Ua(0,"circle",3)),2&t){var n=Ja();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Pa("r",n._circleRadius)}}function vw(t,e){if(1&t&&(mn(),Ua(0,"circle",3)),2&t){var n=Ja();ds("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Pa("r",n._circleRadius)}}function yw(t,e){if(1&t&&(mn(),Ua(0,"circle",3)),2&t){var n=Ja();ds("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Pa("r",n._circleRadius)}}function bw(t,e){if(1&t&&(mn(),Ua(0,"circle",3)),2&t){var n=Ja();ds("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Pa("r",n._circleRadius)}}var _w=iv(function(){return function(t){this._elementRef=t}}(),"primary"),ww=new Kt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Sw=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i,r,o)||this;return a.mode="indeterminate",a}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(pg),Na(dl,8),Na(Mm,8),Na(ww))},e.\u0275cmp=Ee({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(ds("width",e.diameter,"px")("height",e.diameter,"px"),ps("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[Is],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(mn(),Fa(0,"svg",0),Ra(1,yw,1,9,"circle",1),Ra(2,bw,1,7,"circle",2),Ba()),2&t&&(ds("width",e.diameter,"px")("height",e.diameter,"px"),ja("ngSwitch","indeterminate"===e.mode),Pa("viewBox",e._viewBox),xr(1),ja("ngSwitchCase",!0),xr(1),ja("ngSwitchCase",!1))},directives:[Ul,zl],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e}(function(t){function e(n,i,r,o,a){var s=t.call(this,n)||this;s._elementRef=n,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var c=e._diameters;return c.has(r.head)||c.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return r(e,t),Object.defineProperty(e.prototype,"diameter",{get:function(){return this._diameter},set:function(t){this._diameter=og(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=og(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,og(t)))},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){var n=e.head;if(n&&(n.createShadowRoot||n.attachShadow)){var i=t.getRootNode?t.getRootNode():null;if(i instanceof window.ShadowRoot)return i}}return null}(t,this._document)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate"+(this._fallbackAnimation?"-fallback":"")+"-animation")},Object.defineProperty(e.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_viewBox",{get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 "+t+" "+t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this.diameter*100},enumerable:!0,configurable:!0}),e.prototype._attachStyleNode=function(){var t=this._styleRoot,n=this._diameter,i=e._diameters,r=i.get(t);if(!r||!r.has(n)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",n+""),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(n)}},e.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},e._diameters=new WeakMap,e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(pg),Na(dl,8),Na(Mm,8),Na(ww))},e.\u0275cmp=Ee({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Pa("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),ds("width",e.diameter,"px")("height",e.diameter,"px"),ps("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",value:"value",mode:"mode"},exportAs:["matProgressSpinner"],features:[Is],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(mn(),Fa(0,"svg",0),Ra(1,gw,1,9,"circle",1),Ra(2,vw,1,7,"circle",2),Ba()),2&t&&(ds("width",e.diameter,"px")("height",e.diameter,"px"),ja("ngSwitch","indeterminate"===e.mode),Pa("viewBox",e._viewBox),xr(1),ja("ngSwitchCase",!0),xr(1),ja("ngSwitchCase",!1))},directives:[Ul,zl],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e}(_w)),Cw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[ev,Ql],ev]}),t}(),Ew=["trigger"],xw=["panel"];function kw(t,e){if(1&t&&(Fa(0,"span",8),Cs(1),Ba()),2&t){var n=Ja();xr(1),Es(n.placeholder||"\xa0")}}function Ow(t,e){if(1&t&&(Fa(0,"span"),Cs(1),Ba()),2&t){var n=Ja(2);xr(1),Es(n.triggerValue||"\xa0")}}function Tw(t,e){1&t&&es(0,0,["*ngSwitchCase","true"])}function Iw(t,e){1&t&&(Fa(0,"span",9),Ra(1,Ow,2,1,"span",10),Ra(2,Tw,1,0,void 0,11),Ba()),2&t&&(ja("ngSwitch",!!Ja().customTrigger),xr(2),ja("ngSwitchCase",!0))}function Aw(t,e){if(1&t){var n=Wa();Fa(0,"div",12),Fa(1,"div",13,14),Za("@transformPanel.done",(function(t){return qe(n),Ja()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return qe(n),Ja()._handleKeydown(t)})),es(3,1),Ba(),Ba()}if(2&t){var i=Ja();ja("@transformPanelWrap",void 0),xr(1),r="mat-select-panel ",o=i._getPanelTheme(),a="",function(t,e,n,i){var r=Ge(),o=en(2);r.firstUpdatePass&&gs(r,null,o,!0);var a=We();if(n!==Cr&&Aa(a,o,n)){var s=r.data[hn()+19];if(Ss(s,!0)&&!ms(r,o)){var c=s.classes;null!==c&&(n=Mt(c,n||"")),Va(r,s,a,n,!0)}else!function(t,e,n,i,r,o,a,s){r===Cr&&(r=rs);for(var c=0,u=0,l=0<r.length?r[0]:null,d=0<o.length?o[0]:null;null!==l||null!==d;){var p=c<r.length?r[c+1]:void 0,h=u<o.length?o[u+1]:void 0,f=null,m=void 0;l===d?(c+=2,u+=2,p!==h&&(f=d,m=h)):null===d||null!==l&&l<d?(c+=2,f=l):(u+=2,f=d,m=h),null!==f&&bs(t,e,n,i,f,m,!0,s),l=c<r.length?r[c]:null,d=u<o.length?o[u]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(t,e,n){if(null==n||""===n)return rs;var i=[],r=gi(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)t(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&t(i,a,r[a]);else"string"==typeof r&&e(i,r);return i}(t,e,n),0,o)}}(ge,hs,Ma(We(),r,o,a)),ds("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),ja("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing")}var r,o,a}var Pw=[[["mat-select-trigger"]],"*"],Mw=["mat-select-trigger","*"],Rw={transformPanelWrap:ph("transformPanelWrap",[yh("* => void",_h("@transformPanel",[bh()],{optional:!0}))]),transformPanel:ph("transformPanel",[gh("void",mh({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),gh("showing",mh({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),gh("showing-multiple",mh({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),yh("void => *",hh("120ms cubic-bezier(0, 0, 0.2, 1)")),yh("* => void",hh("100ms 25ms linear",mh({opacity:0})))])},Nw=0,Dw=new Kt("mat-select-scroll-strategy"),Lw=new Kt("MAT_SELECT_CONFIG"),jw={provide:Dw,deps:[jb],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Vw=function(){return function(t,e){this.source=t,this.value=e}}(),Fw=rv(ov(nv(av(function(){return function(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}())))),Bw=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-select-trigger"]]}),t}(),Uw=function(t){function e(e,n,i,r,o,a,s,u,l,d,p,h,f,m){var g=t.call(this,o,r,s,u,d)||this;return g._viewportRuler=e,g._changeDetectorRef=n,g._ngZone=i,g._dir=a,g._parentFormField=l,g.ngControl=d,g._liveAnnouncer=f,g._panelOpen=!1,g._required=!1,g._scrollTop=0,g._multiple=!1,g._compareWith=function(t,e){return t===e},g._uid="mat-select-"+Nw++,g._destroy=new M,g._triggerFontSize=0,g._onChange=function(){},g._onTouched=function(){},g._optionIds="",g._transformOrigin="top",g._panelDoneAnimatingStream=new M,g._offsetY=0,g._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],g._disableOptionCentering=!1,g._focused=!1,g.controlType="mat-select",g.ariaLabel="",g.optionSelectionChanges=Wb((function(){var t=g.options;return t?t.changes.pipe(Yg(t),Yy((function(){return nt.apply(void 0,c(t.map((function(t){return t.onSelectionChange}))))}))):g._ngZone.onStable.asObservable().pipe(tg(1),Yy((function(){return g.optionSelectionChanges})))})),g.openedChange=new Hc,g._openedStream=g.openedChange.pipe(Ym((function(t){return t})),W((function(){}))),g._closedStream=g.openedChange.pipe(Ym((function(t){return!t})),W((function(){}))),g.selectionChange=new Hc,g.valueChange=new Hc,g.ngControl&&(g.ngControl.valueAccessor=g),g._scrollStrategyFactory=h,g._scrollStrategy=g._scrollStrategyFactory(),g.tabIndex=parseInt(p)||0,g.id=g.id,m&&(null!=m.disableOptionCentering&&(g.disableOptionCentering=m.disableOptionCentering),null!=m.typeaheadDebounceInterval&&(g.typeaheadDebounceInterval=m.typeaheadDebounceInterval)),g}return r(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=rg(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"typeaheadDebounceInterval",{get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=og(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new qv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(By(),Hv(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(Hv(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Hv(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(Yg(null),Hv(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=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(tg(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")})))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,r=this._keyManager;if(!r.isTyping()&&i&&!jm(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;36===e||35===e?(36===e?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}},e.prototype._handleOpenKeydown=function(t){var e=this._keyManager,n=t.keyCode,i=40===n||38===n,r=e.isTyping();if(36===n||35===n)t.preventDefault(),36===n?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(r||13!==n&&32!==n||!e.activeItem||jm(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var o=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(o?t.select():t.deselect())}))}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(tg(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return wi()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new Tg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Hv(this._destroy)).subscribe((function(){!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close()})),this._keyManager.change.pipe(Hv(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))},e.prototype._resetOptions=function(){var t=this,e=nt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Hv(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),nt.apply(void 0,c(this.options.map((function(t){return t._stateChanges})))).pipe(Hv(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new Vw(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t,e,n,i=this._keyManager.activeItemIndex||0,r=Ev(i,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(n=(i+r)*(t=this._getItemHeight()))<(e=this.panel.nativeElement.scrollTop)?n:n+t>e+256?Math.max(0,n-256+t):e},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._getOptionIndex=function(t){return this.options.reduce((function(e,n,i){return void 0!==e?e:t===n?i:void 0}),void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=Ev(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)},e.prototype._calculateOverlayScroll=function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var a=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(Na(eb),Na(ta),Na(Ru),Na(sv),Na(Ks),Na(Hg,8),Na(Fp,8),Na(Jp,8),Na(xy,8),Na(Ud,10),Da("tabindex"),Na(Dw),Na(jg),Na(Lw,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(ru(n,Bw,!0),ru(n,Cv,!0),ru(n,bv,!0)),2&t&&(tu(i=su())&&(e.customTrigger=i.first),tu(i=su())&&(e.options=i),tu(i=su())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(nu(Ew,!0),nu(xw,!0),nu(Ub,!0)),2&t&&(tu(n=su())&&(e.trigger=n.first),tu(n=su())&&(e.panel=n.first),tu(n=su())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&Za("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(Pa("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),ps("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",id:"id",panelClass:"panelClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Gs([{provide:fy,useExisting:e},{provide:Sv,useExisting:e}]),Is,Ds],ngContentSelectors:Mw,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(t,e){if(1&t&&(ts(Pw),Fa(0,"div",0,1),Za("click",(function(){return e.toggle()})),Fa(3,"div",2),Ra(4,kw,2,1,"span",3),Ra(5,Iw,3,2,"span",4),Ba(),Fa(6,"div",5),Ua(7,"div",6),Ba(),Ba(),Ra(8,Aw,4,10,"ng-template",7),Za("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=ir(ze.lFrame.contextLView,1);xr(3),ja("ngSwitch",e.empty),xr(1),ja("ngSwitchCase",!0),xr(1),ja("ngSwitchCase",!1),xr(3),ja("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Bb,Ul,zl,Ub,Hl,Rl],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:[Rw.transformPanelWrap,Rw.transformPanel]},changeDetection:0}),e}(Fw),zw=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[jw],imports:[[Ql,Hb,xv,ev],ky,xv,ev]}),t}(),Hw=["*"];function Ww(t,e){if(1&t){var n=Wa();Fa(0,"div",2),Za("click",(function(){return qe(n),Ja()._onBackdropClicked()})),Ba()}2&t&&ps("mat-drawer-shown",Ja()._isShowingBackdrop())}function Gw(t,e){1&t&&(Fa(0,"mat-drawer-content"),es(1,2),Ba())}var qw=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Zw=["mat-drawer","mat-drawer-content","*"];function Yw(t,e){if(1&t){var n=Wa();Fa(0,"div",2),Za("click",(function(){return qe(n),Ja()._onBackdropClicked()})),Ba()}2&t&&ps("mat-drawer-shown",Ja()._isShowingBackdrop())}function Qw(t,e){1&t&&(Fa(0,"mat-sidenav-content",3),es(1,2),Ba())}var Kw=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Xw=["mat-sidenav","mat-sidenav-content","*"],Jw={transformDrawer:ph("transform",[gh("open, open-instant",mh({transform:"none",visibility:"visible"})),gh("void",mh({"box-shadow":"none",visibility:"hidden"})),yh("void => open-instant",hh("0ms")),yh("void <=> open, open-instant => void",hh("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function $w(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}var tS=new Kt("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),eS=new Kt("MAT_DRAWER_CONTAINER"),nS=function(t){function e(e,n,i,r,o){var a=t.call(this,i,r,o)||this;return a._changeDetectorRef=e,a._container=n,a}return r(e,t),e.prototype.ngAfterContentInit=function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))},e.\u0275fac=function(t){return new(t||e)(Na(ta),Na(Nt((function(){return rS}))),Na(Ks),Na($y),Na(Ru))},e.\u0275cmp=Ee({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&ds("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[Is],ngContentSelectors:Hw,decls:1,vars:0,template:function(t,e){1&t&&(ts(),es(0))},encapsulation:2,changeDetection:0}),e}(tb),iS=function(){function t(t,e,n,i,r,o,a){var s=this;this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new M,this._animationEnd=new M,this._animationState="void",this.openedChange=new Hc(!0),this._destroyed=new M,this.onPositionChanged=new Hc,this._modeChanged=new M,this.openedChange.subscribe((function(t){t?(s._doc&&(s._elementFocusedBeforeDrawerWasOpened=s._doc.activeElement),s._takeFocus()):s._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Zv(s._elementRef.nativeElement,"keydown").pipe(Ym((function(t){return 27===t.keyCode&&!s.disableClose&&!jm(t)})),Hv(s._destroyed)).subscribe((function(t){return s._ngZone.run((function(){s.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(By((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&s.openedChange.emit(s._opened)}))}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoFocus",{get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(rg(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(Ym((function(t){return t})),W((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(Ym((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),W((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(Ym((function(t){return!t})),W((function(){})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(Ym((function(t){return t.fromState!==t.toState&&"void"===t.toState})),W((function(){})))},enumerable:!0,configurable:!0}),t.prototype._takeFocus=function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))},t.prototype._restoreFocus=function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()},t.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(t){return this.toggle(!0,t)},t.prototype.close=function(){return this.toggle(!1)},t.prototype.toggle=function(t,e){var n=this;return void 0===t&&(t=!this.opened),void 0===e&&(e="program"),this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(t){n.openedChange.pipe(tg(1)).subscribe((function(e){return t(e?"open":"close")}))}))},Object.defineProperty(t.prototype,"_width",{get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},enumerable:!0,configurable:!0}),t.prototype._updateFocusTrapState=function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)},t.prototype._animationStartListener=function(t){this._animationStarted.next(t)},t.prototype._animationDoneListener=function(t){this._animationEnd.next(t)},t.\u0275fac=function(e){return new(e||t)(Na(Ks),Na(Ng),Na(Fg),Na(pg),Na(Ru),Na(dl,8),Na(eS,8))},t.\u0275cmp=Ee({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&Ya("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(Pa("align",null),Os("@transform",e._animationState),ps("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:Hw,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(ts(),Fa(0,"div",0),es(1),Ba())},encapsulation:2,data:{animation:[Jw.transformDrawer]},changeDetection:0}),t}(),rS=function(){function t(t,e,n,i,r,o,a){var s=this;void 0===o&&(o=!1),this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=a,this._drawers=new Gc,this.backdropClick=new Hc,this._destroyed=new M,this._doCheckSubject=new M,this._contentMargins={left:null,right:null},this._contentMarginChanges=new M,t&&t.change.pipe(Hv(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),r.change().pipe(Hv(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=o}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autosize",{get:function(){return this._autosize},set:function(t){this._autosize=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollable",{get:function(){return this._userContent||this._content},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._allDrawers.changes.pipe(Yg(this._allDrawers),Hv(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Yg(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Wm(10),Hv(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))},t.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(){this._drawers.forEach((function(t){return t.open()}))},t.prototype.close=function(){this._drawers.forEach((function(t){return t.close()}))},t.prototype.updateContentMargins=function(){var t=this,e=0,n=0;if(this._left&&this._left.opened&&("side"==this._left.mode?e+=this._left._width:"push"==this._left.mode&&(e+=i=this._left._width,n-=i)),this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var i;n+=i=this._right._width,e-=i}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))},t.prototype.ngDoCheck=function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))},t.prototype._watchDrawerToggle=function(t){var e=this;t._animationStarted.pipe(Ym((function(t){return t.fromState!==t.toState})),Hv(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(Hv(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))},t.prototype._watchDrawerPosition=function(t){var e=this;t&&t.onPositionChanged.pipe(Hv(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(tg(1)).subscribe((function(){e._validateDrawers()}))}))},t.prototype._watchDrawerMode=function(t){var e=this;t&&t._modeChanged.pipe(Hv(nt(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))},t.prototype._setContainerClass=function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)},t.prototype._validateDrawers=function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&$w("end"),t._end=e):(null!=t._start&&$w("start"),t._start=e)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)},t.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},t.prototype._closeModalDrawer=function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))},t.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)},t.prototype._canHaveBackdrop=function(t){return"side"!==t.mode||!!this._backdropOverride},t.prototype._isDrawerOpen=function(t){return null!=t&&t.opened},t.\u0275fac=function(e){return new(e||t)(Na(Hg,8),Na(Ks),Na(Ru),Na(ta),Na(eb),Na(tS),Na(Mm,8))},t.\u0275cmp=Ee({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(ru(n,nS,!0),ru(n,iS,!0)),2&t&&(tu(i=su())&&(e._content=i.first),tu(i=su())&&(e._allDrawers=i))},viewQuery:function(t,e){var n;1&t&&nu(nS,!0),2&t&&tu(n=su())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&ps("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Gs([{provide:eS,useExisting:t}])],ngContentSelectors:Zw,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(ts(qw),Ra(0,Ww,1,2,"div",0),es(1),es(2,1),Ra(3,Gw,2,0,"mat-drawer-content",1)),2&t&&(ja("ngIf",e.hasBackdrop),xr(3),ja("ngIf",!e._content))},directives:[jl,nS],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t}(),oS=function(t){function e(e,n,i,r,o){return t.call(this,e,n,i,r,o)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Na(ta),Na(Nt((function(){return sS}))),Na(Ks),Na($y),Na(Ru))},e.\u0275cmp=Ee({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&ds("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[Is],ngContentSelectors:Hw,decls:1,vars:0,template:function(t,e){1&t&&(ts(),es(0))},encapsulation:2,changeDetection:0}),e}(nS),aS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}r(e,t),Object.defineProperty(e.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=og(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=og(t)},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=Ee({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(Pa("align",null),ds("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),ps("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Is],ngContentSelectors:Hw,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(ts(),Fa(0,"div",0),es(1),Ba())},encapsulation:2,data:{animation:[Jw.transformDrawer]},changeDetection:0});var n=oi(e);return e}(iS),sS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275cmp=Ee({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(ru(n,oS,!0),ru(n,aS,!0)),2&t&&(tu(i=su())&&(e._content=i.first),tu(i=su())&&(e._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&ps("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[Gs([{provide:eS,useExisting:e}]),Is],ngContentSelectors:Xw,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(ts(Kw),Ra(0,Yw,1,2,"div",0),es(1),es(2,1),Ra(3,Qw,2,0,"mat-sidenav-content",1)),2&t&&(ja("ngIf",e.hasBackdrop),xr(3),ja("ngIf",!e._content))},directives:[jl,oS,tb],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0});var n=oi(e);return e}(rS),cS=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[Ql,ev,nb,hg],ev]}),t}(),uS=["sliderWrapper"],lS=gg({passive:!1}),dS={provide:Md,useExisting:Nt((function(){return hS})),multi:!0},pS=function(){return function(){}}(),hS=function(t){function e(e,n,i,r,o,a,s,c){var u=t.call(this,e)||this;return u._focusMonitor=n,u._changeDetectorRef=i,u._dir=r,u._animationMode=a,u._ngZone=s,u._invert=!1,u._max=100,u._min=0,u._step=1,u._thumbLabel=!1,u._tickInterval=0,u._value=null,u._vertical=!1,u.change=new Hc,u.input=new Hc,u.valueChange=new Hc,u.onTouched=function(){},u._percent=0,u._isSliding=!1,u._isActive=!1,u._tickIntervalPercent=0,u._sliderDimensions=null,u._controlValueAccessorChangeFn=function(){},u._dirChangeSubscription=f.EMPTY,u._pointerDown=function(t){u.disabled||u._isSliding||!fS(t)&&0!==t.button||u._runInsideZone((function(){var e=u.value,n=mS(t);u._isSliding=!0,u._lastPointerEvent=t,t.preventDefault(),u._focusHostElement(),u._onMouseenter(),u._bindGlobalEvents(t),u._focusHostElement(),u._updateValueFromPosition(n),u._valueOnSlideStart=u.value,u._pointerPositionOnStart=n,e!=u.value&&(u._emitInputEvent(),u._emitChangeEvent())}))},u._pointerMove=function(t){if(u._isSliding){t.preventDefault();var e=u.value;u._lastPointerEvent=t,u._updateValueFromPosition(mS(t)),e!=u.value&&u._emitInputEvent()}},u._pointerUp=function(t){if(u._isSliding){var e=u._pointerPositionOnStart,n=mS(t);t.preventDefault(),u._removeGlobalEvents(),u._valueOnSlideStart=u._pointerPositionOnStart=u._lastPointerEvent=null,u._isSliding=!1,u._valueOnSlideStart==u.value||u.disabled||!e||e.x===n.x&&e.y===n.y||u._emitChangeEvent()}},u._windowBlur=function(){u._lastPointerEvent&&u._pointerUp(u._lastPointerEvent)},u._document=c,u.tabIndex=parseInt(o)||0,u._runOutsizeZone((function(){var t=e.nativeElement;t.addEventListener("mousedown",u._pointerDown,lS),t.addEventListener("touchstart",u._pointerDown,lS)})),u}return r(e,t),Object.defineProperty(e.prototype,"invert",{get:function(){return this._invert},set:function(t){this._invert=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(t){this._max=og(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(t){this._min=og(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},set:function(t){this._step=og(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbLabel",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickInterval",{get:function(){return this._tickInterval},set:function(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?og(t,this._tickInterval):0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return null===this._value&&(this.value=this._min),this._value},set:function(t){if(t!==this._value){var e=og(t);this._roundToDecimal&&(e=parseFloat(e.toFixed(this._roundToDecimal))),this._value=e,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=rg(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0},enumerable:!0,configurable:!0}),e.prototype.focus=function(t){this._focusHostElement(t)},e.prototype.blur=function(){this._blurHostElement()},Object.defineProperty(e.prototype,"percent",{get:function(){return this._clamp(this._percent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_invertAxis",{get:function(){return this.vertical?!this.invert:this.invert},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isMinValue",{get:function(){return 0===this.percent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_thumbGap",{get:function(){return this.disabled?7:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_trackBackgroundStyles",{get:function(){var t=this.vertical?"1, "+(1-this.percent)+", 1":1-this.percent+", 1, 1";return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this._shouldInvertMouseCoords()?"-":"")+this._thumbGap+"px) scale3d("+t+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_trackFillStyles",{get:function(){var t=this.percent,e=this.vertical?"1, "+t+", 1":t+", 1, 1";return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this._shouldInvertMouseCoords()?"":"-")+this._thumbGap+"px) scale3d("+e+")",display:0===t?"none":""}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ticksContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._getDirection()?"-":"")+this._tickIntervalPercent/2*100+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ticksStyles",{get:function(){var t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?"2px "+t+"%":t+"% 2px",transform:"translateZ(0) translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._getDirection()?"":"-")+t/2+"%)"+(this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)")};return this._isMinValue&&this._thumbGap&&(e["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=this._thumbGap+"px"),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_thumbContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"(-"+100*(("rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)+"%)"}},enumerable:!0,configurable:!0}),e.prototype._shouldInvertMouseCoords=function(){return"rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis},e.prototype._getDirection=function(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"},e.prototype.ngOnInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){t._isActive=!!e&&"keyboard"!==e,t._changeDetectorRef.detectChanges()})),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe((function(){t._changeDetectorRef.markForCheck()})))},e.prototype.ngOnDestroy=function(){var t=this._elementRef.nativeElement;t.removeEventListener("mousedown",this._pointerDown,lS),t.removeEventListener("touchstart",this._pointerDown,lS),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()},e.prototype._onMouseenter=function(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())},e.prototype._onFocus=function(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()},e.prototype._onBlur=function(){this.onTouched()},e.prototype._onKeydown=function(t){if(!this.disabled&&!jm(t)){var e=this.value;switch(t.keyCode){case 33:this._increment(10);break;case 34:this._increment(-10);break;case 35:this.value=this.max;break;case 36:this.value=this.min;break;case 37:this._increment("rtl"==this._getDirection()?1:-1);break;case 38:this._increment(1);break;case 39:this._increment("rtl"==this._getDirection()?-1:1);break;case 40:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}},e.prototype._onKeyup=function(){this._isSliding=!1},e.prototype._bindGlobalEvents=function(t){if(void 0!==this._document&&this._document){var e=this._document.body,n=fS(t),i=n?"touchend":"mouseup";e.addEventListener(n?"touchmove":"mousemove",this._pointerMove,lS),e.addEventListener(i,this._pointerUp,lS),n&&e.addEventListener("touchcancel",this._pointerUp,lS)}"undefined"!=typeof window&&window&&window.addEventListener("blur",this._windowBlur)},e.prototype._removeGlobalEvents=function(){if(void 0!==this._document&&this._document){var t=this._document.body;t.removeEventListener("mousemove",this._pointerMove,lS),t.removeEventListener("mouseup",this._pointerUp,lS),t.removeEventListener("touchmove",this._pointerMove,lS),t.removeEventListener("touchend",this._pointerUp,lS),t.removeEventListener("touchcancel",this._pointerUp,lS)}"undefined"!=typeof window&&window&&window.removeEventListener("blur",this._windowBlur)},e.prototype._increment=function(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)},e.prototype._updateValueFromPosition=function(t){if(this._sliderDimensions){var e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{var n=this._calculateValue(e),i=Math.round((n-this.min)/this.step)*this.step+this.min;this.value=this._clamp(i,this.min,this.max)}}},e.prototype._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())},e.prototype._emitInputEvent=function(){this.input.emit(this._createChangeEvent())},e.prototype._updateTickIntervalPercent=function(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(30/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)},e.prototype._createChangeEvent=function(t){void 0===t&&(t=this.value);var e=new pS;return e.source=this,e.value=t,e},e.prototype._calculatePercentage=function(t){return((t||0)-this.min)/(this.max-this.min)},e.prototype._calculateValue=function(t){return this.min+t*(this.max-this.min)},e.prototype._clamp=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),Math.max(e,Math.min(t,n))},e.prototype._getSliderDimensions=function(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null},e.prototype._focusHostElement=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._blurHostElement=function(){this._elementRef.nativeElement.blur()},e.prototype._runInsideZone=function(t){this._ngZone?this._ngZone.run(t):t()},e.prototype._runOutsizeZone=function(t){this._ngZone?this._ngZone.runOutsideAngular(t):t()},e.prototype.writeValue=function(t){this.value=t},e.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},e.prototype.registerOnTouched=function(t){this.onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Fg),Na(ta),Na(Hg,8),Da("tabindex"),Na(Mm,8),Na(Ru),Na(dl,8))},e.\u0275cmp=Ee({type:e,selectors:[["mat-slider"]],viewQuery:function(t,e){var n;1&t&&nu(uS,!0),2&t&&tu(n=su())&&(e._sliderWrapper=n.first)},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:28,hostBindings:function(t,e){1&t&&Za("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)}))("keyup",(function(){return e._onKeyup()}))("mouseenter",(function(){return e._onMouseenter()}))("selectstart",(function(t){return t.preventDefault()})),2&t&&(ks("tabIndex",e.tabIndex),Pa("aria-disabled",e.disabled)("aria-valuemax",e.max)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-orientation",e.vertical?"vertical":"horizontal"),ps("mat-slider-disabled",e.disabled)("mat-slider-has-ticks",e.tickInterval)("mat-slider-horizontal",!e.vertical)("mat-slider-axis-inverted",e._invertAxis)("mat-slider-invert-mouse-coords",e._shouldInvertMouseCoords())("mat-slider-sliding",e._isSliding)("mat-slider-thumb-label-showing",e.thumbLabel)("mat-slider-vertical",e.vertical)("mat-slider-min-value",e._isMinValue)("mat-slider-hide-last-tick",e.disabled||e._isMinValue&&e._thumbGap&&e._invertAxis)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",vertical:"vertical",displayWith:"displayWith"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[Gs([dS]),Is],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(t,e){1&t&&(Fa(0,"div",0,1),Fa(2,"div",2),Ua(3,"div",3),Ua(4,"div",4),Ba(),Fa(5,"div",5),Ua(6,"div",6),Ba(),Fa(7,"div",7),Ua(8,"div",8),Ua(9,"div",9),Fa(10,"div",10),Fa(11,"span",11),Cs(12),Ba(),Ba(),Ba(),Ba()),2&t&&(xr(3),ja("ngStyle",e._trackBackgroundStyles),xr(1),ja("ngStyle",e._trackFillStyles),xr(1),ja("ngStyle",e._ticksContainerStyles),xr(1),ja("ngStyle",e._ticksStyles),xr(1),ja("ngStyle",e._thumbContainerStyles),xr(5),Es(e.displayValue))},directives:[Wl],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),e}(ov(iv(nv(function(){return function(t){this._elementRef=t}}()),"accent")));function fS(t){return"t"===t.type[0]}function mS(t){var e=fS(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.clientX,y:e.clientY}}var gS=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[Ql,ev],ev]}),t}(),vS=["*",[["mat-toolbar-row"]]],yS=["*","mat-toolbar-row"],bS=iv(function(){return function(t){this._elementRef=t}}()),_S=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ae({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),wS=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r._platform=n,r._document=i,r}return r(e,t),e.prototype.ngAfterViewInit=function(){var t=this;wi()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(pg),Na(dl))},e.\u0275cmp=Ee({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&ru(n,_S,!0),2&t&&tu(i=su())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ps("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Is],ngContentSelectors:yS,decls:2,vars:0,template:function(t,e){1&t&&(ts(vS),es(0),es(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),e}(bS),SS=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[ev],ev]}),t}(),CS={};function ES(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,i=null;return N(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),et(t,i).lift(new kS(n))}var xS,kS=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new OS(t,this.resultSelector))},t}(),OS=function(t){function e(e,n){var i=t.call(this,e)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return r(e,t),e.prototype._next=function(t){this.values.push(CS),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add(z(this,i,i,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.values,a=this.toRespond?o[n]===CS?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(H),TS=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new IS(t,this.total))},t}(),IS=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return r(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(w),AS=new Set,PS=function(){function t(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):MS}return t.prototype.matchMedia=function(t){return this._platform.WEBKIT&&function(t){if(!AS.has(t))try{xS||((xS=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(xS)),xS.sheet&&(xS.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),AS.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)},t.\u0275prov=wt({factory:function(){return new t(oe(pg))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(pg))},t}();function MS(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var RS=function(){function t(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new M}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return NS(ag(t)).some((function(t){return e._registerQuery(t).mql.matches}))},t.prototype.observe=function(t){var e=this,n=ES(NS(ag(t)).map((function(t){return e._registerQuery(t).observable})));return(n=Zg(n.pipe(tg(1)),n.pipe((function(t){return t.lift(new TS(1))}),Wm(0)))).pipe(W((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new O((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(Yg(n),W((function(e){return{query:t,matches:e.matches}})),Hv(this._destroySubject)),mql:n};return this._queries.set(t,i),i},t.\u0275prov=wt({factory:function(){return new t(oe(PS),oe(Ru))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(PS),oe(Ru))},t}();function NS(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var DS={tooltipState:ph("state",[gh("initial, void, hidden",mh({opacity:0,transform:"scale(0)"})),gh("visible",mh({transform:"scale(1)"})),yh("* => visible",hh("200ms cubic-bezier(0, 0, 0.2, 1)",vh([mh({opacity:0,transform:"scale(0)",offset:0}),mh({opacity:.5,transform:"scale(0.99)",offset:.5}),mh({opacity:1,transform:"scale(1)",offset:1})]))),yh("* => hidden",hh("100ms cubic-bezier(0, 0, 0.2, 1)",mh({opacity:0})))])},LS=gg({passive:!0});function jS(t){return Error('Tooltip position "'+t+'" is invalid.')}var VS=new Kt("mat-tooltip-scroll-strategy"),FS={provide:VS,deps:[jb],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},BS=new Kt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),US=function(){function t(t,e,n,i,r,o,a,s,c,u,l,d){var p=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=o,this._ariaDescriber=a,this._focusMonitor=s,this._dir=u,this._defaultOptions=l,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 M,this._handleKeydown=function(t){p._isTooltipVisible()&&27===t.keyCode&&!jm(t)&&(t.preventDefault(),t.stopPropagation(),p._ngZone.run((function(){return p.hide(0)})))},this._scrollStrategy=c,l&&(l.position&&(this.position=l.position),l.touchGestures&&(this.touchGestures=l.touchGestures)),s.monitor(e).pipe(Hv(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return p.show()})):r.run((function(){return p.hide(0)}))})),r.runOutsideAngular((function(){e.nativeElement.addEventListener("keydown",p._handleKeydown)}))}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=rg(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._setupPointerEvents()},t.prototype.ngOnDestroy=function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e,n){t.removeEventListener(n,e,LS)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)},t.prototype.show=function(t){var e=this;if(void 0===t&&(t=this.showDelay),!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new ob(zS,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Hv(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._createOverlay=function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(Hv(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.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(Hv(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef},t.prototype._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null},t.prototype._updatePosition=function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([o(o({},e.main),n.main),o(o({},e.fallback),n.fallback)])},t.prototype._getOrigin=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw jS(n);t={originX:"end",originY:"center"}}var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}},t.prototype._getOverlayPosition=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw jS(n);t={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}},t.prototype._updateTooltipMessage=function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(tg(1),Hv(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t.prototype._invertPosition=function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}},t.prototype._setupPointerEvents=function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,n){t._elementRef.nativeElement.addEventListener(n,e,LS)}))},t.prototype._disableNativeGesturesIfNecessary=function(){var t=this._elementRef.nativeElement,e=t.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==n&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")},t.\u0275fac=function(e){return new(e||t)(Na(jb),Na(Ks),Na($y),Na(Sc),Na(Ru),Na(pg),Na(kg),Na(Fg),Na(VS),Na(Hg,8),Na(BS,8),Na(Ks))},t.\u0275dir=Ae({type:t,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"]}),t}(),zS=function(){function t(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new M,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return t.prototype.show=function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype.ngOnDestroy=function(){this._onHide.complete()},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.\u0275fac=function(e){return new(e||t)(Na(ta),Na(RS))},t.\u0275cmp=Ee({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Za("click",(function(){return e._handleBodyInteraction()}),!1,Un),2&t&&ds("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(Fa(0,"div",0),Za("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),Uc(1,"async"),Cs(2),Ba()),2&t&&(ps("mat-tooltip-handset",null==(n=zc(1,5,e._isHandset))?null:n.matches),ja("ngClass",e.tooltipClass)("@state",e._visibility),xr(2),Es(e.message))},directives:[Rl],pipes:[Yl],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:[DS.tooltipState]},changeDetection:0}),t}(),HS=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[FS],imports:[[Ug,Ql,Hb,ev],ev]}),t}(),WS=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new I;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(M),GS=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}();function qS(t){return function(e){return 0===t?$m():e.lift(new ZS(t))}}var ZS=function(){function t(t){if(this.total=t,this.total<0)throw new Xm}return t.prototype.call=function(t,e){return e.subscribe(new YS(t,this.total))},t}(),YS=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.ring=new Array,i.count=0,i}return r(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=e++%n;t.next(i[o])}t.complete()},e}(w);function QS(t){return void 0===t&&(t=JS),function(e){return e.lift(new KS(t))}}var KS=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new XS(t,this.errorFactory))},t}(),XS=function(t){function e(e,n){var i=t.call(this,e)||this;return i.errorFactory=n,i.hasValue=!1,i}return r(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(w);function JS(){return new GS}function $S(t){return void 0===t&&(t=null),function(e){return e.lift(new tC(t))}}var tC=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new eC(t,this.defaultValue))},t}(),eC=function(t){function e(e,n){var i=t.call(this,e)||this;return i.defaultValue=n,i.isEmpty=!0,i}return r(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(w);function nC(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ym((function(e,n){return t(e,n,i)})):J,qS(1),n?$S(e):QS((function(){return new GS})))}}function iC(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ym((function(e,n){return t(e,n,i)})):J,tg(1),n?$S(e):QS((function(){return new GS})))}}var rC=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new oC(t,this.predicate,this.thisArg,this.source))},t}(),oC=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return r(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(w);function aC(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new sC(t,e,n))}}var sC=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new cC(t,this.accumulator,this.seed,this.hasSeed))},t}(),cC=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return r(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)},e}(w),uC=function(){return function(t,e){this.id=t,this.url=e}}(),lC=function(t){function e(e,n,i,r){void 0===i&&(i="imperative"),void 0===r&&(r=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=i,o.restoredState=r,o}return r(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(uC),dC=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.urlAfterRedirects=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(uC),pC=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.reason=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(uC),hC=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.error=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(uC),fC=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(uC),mC=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(uC),gC=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=i,a.state=r,a.shouldActivate=o,a}return r(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(uC),vC=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(uC),yC=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(uC),bC=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),_C=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),wC=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),SC=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),CC=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),EC=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),xC=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),kC=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Ua(0,"router-outlet")},directives:function(){return[Px]},encapsulation:2}),t}(),OC=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function TC(t){return new OC(t)}function IC(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function AC(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=t[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}var PC=function(){return function(t,e){this.routes=t,this.module=e}}();function MC(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var i=t[n];RC(i,NC(e,i))}}function RC(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '"+e+"': a componentless route without children or loadChildren cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&MC(t.children,e)}function NC(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function DC(t){var e=t.children&&t.children.map(DC),n=e?o(o({},t),{children:e}):o({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=kC),n}function LC(t,e){var n,i=Object.keys(t),r=Object.keys(e);if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!jC(t[n=i[o]],e[n]))return!1;return!0}function jC(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function VC(t){return Array.prototype.concat.apply([],t)}function FC(t){return t.length>0?t[t.length-1]:null}function BC(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function UC(t){return qa(t)?t:Ga(t)?Y(Promise.resolve(t)):Lm(t)}function zC(t,e,n){return n?function(t,e){return LC(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!qC(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(n){return jC(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!qC(a=n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!qC(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!t(n.children[o],i.children[o]))return!1}return!0}var a=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!qC(n.segments,a)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var HC=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=TC(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return KC.serialize(this)},t}(),WC=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,BC(e,(function(t,e){return t.parent=n}))}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return XC(this)},t}(),GC=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=TC(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return iE(this)},t}();function qC(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function ZC(t,e){var n=[];return BC(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),BC(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var YC=function(){return function(){}}(),QC=function(){function t(){}return t.prototype.parse=function(t){var e=new cE(t);return new HC(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return XC(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",r=[];return BC(e.children,(function(e,n){"primary"!==n&&r.push(n+":"+t(e,!1))})),r.length>0?i+"("+r.join("//")+")":i}var o=ZC(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:[i+":"+t(n,!1)]}));return XC(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return $C(t)+"="+$C(e)})).join("&"):$C(t)+"="+$C(n)}))).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),KC=new QC;function XC(t){return t.segments.map((function(t){return iE(t)})).join("/")}function JC(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $C(t){return JC(t).replace(/%3B/gi,";")}function tE(t){return JC(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function eE(t){return decodeURIComponent(t)}function nE(t){return eE(t.replace(/\+/g,"%20"))}function iE(t){return""+tE(t.path)+(e=t.parameters,Object.keys(e).map((function(t){return";"+tE(t)+"="+tE(e[t])})).join(""));var e}var rE=/^[^\/()?;=#]+/;function oE(t){var e=t.match(rE);return e?e[0]:""}var aE=/^[^=?&#]+/,sE=/^[^?&#]+/,cE=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new WC([],{}):new WC([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new WC(t,e)),n},t.prototype.parseSegment=function(){var t=oE(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new GC(eE(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=oE(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=oE(this.remaining);i&&this.capture(n=i)}t[eE(e)]=eE(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(aE))?e[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(sE);return e?e[0]:""}(this.remaining);r&&this.capture(i=r)}var o=nE(n),a=nE(i);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=oE(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new WC([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),uE=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=lE(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=lE(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=dE(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))},t.prototype.pathFromRoot=function(t){return dE(t,this._root).map((function(t){return t.value}))},t}();function lE(t,e){var n,i;if(t===e.value)return e;try{for(var r=a(e.children),o=r.next();!o.done;o=r.next()){var s=lE(t,o.value);if(s)return s}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return null}function dE(t,e){var n,i;if(t===e.value)return[e];try{for(var r=a(e.children),o=r.next();!o.done;o=r.next()){var s=dE(t,o.value);if(s.length)return s.unshift(e),s}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return[]}var pE=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function hE(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var fE=function(t){function e(e,n){var i=t.call(this,e)||this;return i.snapshot=n,_E(i,e),i}return r(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(uE);function mE(t,e){var n=function(t,e){var n=new yE([],{},{},"",{},"primary",e,null,t.root,-1,{});return new bE("",new pE(n,[]))}(t,e),i=new WS([new GC("",{})]),r=new WS({}),o=new WS({}),a=new WS({}),s=new WS(""),c=new gE(i,r,a,s,o,"primary",e,n.root);return c.snapshot=n.root,new fE(new pE(c,[]),n)}var gE=function(){function t(t,e,n,i,r,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(W((function(t){return TC(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(W((function(t){return TC(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function vE(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(t){return t.reduce((function(t,e){return{params:o(o({},t.params),e.params),data:o(o({},t.data),e.data),resolve:o(o({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(i))}var yE=function(){function t(t,e,n,i,r,o,a,s,c,u,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=TC(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=TC(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map((function(t){return t.toString()})).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),bE=function(t){function e(e,n){var i=t.call(this,n)||this;return i.url=e,_E(i,n),i}return r(e,t),e.prototype.toString=function(){return wE(this._root)},e}(uE);function _E(t,e){e.value._routerState=t,e.children.forEach((function(e){return _E(t,e)}))}function wE(t){var e=t.children.length>0?" { "+t.children.map(wE).join(", ")+" } ":"";return""+t.value+e}function SE(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,LC(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),LC(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!LC(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),LC(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function CE(t,e){var n,i;return LC(t.params,e.params)&&qC(n=t.url,i=e.url)&&n.every((function(t,e){return LC(t.parameters,i[e].parameters)}))&&!(!t.parent!=!e.parent)&&(!t.parent||CE(t.parent,e.parent))}function EE(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function xE(t,e,n,i,r){var o={};return i&&BC(i,(function(t,e){o[e]=Array.isArray(t)?t.map((function(t){return""+t})):""+t})),new HC(n.root===t?e:function t(e,n,i){var r={};return BC(e.children,(function(e,o){r[o]=e===n?i:t(e,n,i)})),new WC(e.segments,r)}(n.root,t,e),o,r)}var kE=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&EE(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(i&&i!==FC(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),OE=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function TE(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function IE(t,e,n){if(t||(t=new WC([],{})),0===t.segments.length&&t.hasChildren())return AE(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r<t.segments.length;){if(i>=n.length)return o;var a=t.segments[r],s=TE(n[i]),c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!NE(s,c,a))return o;i+=2}else{if(!NE(s,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){var o=new WC(t.segments.slice(0,i.pathIndex),{});return o.children.primary=new WC(t.segments.slice(i.pathIndex),t.children),AE(o,0,r)}return i.match&&0===r.length?new WC(t.segments,{}):i.match&&!t.hasChildren()?PE(t,e,n):i.match?AE(t,0,r):PE(t,e,n)}function AE(t,e,n){if(0===n.length)return new WC(t.segments,{});var i=function(t){var e,n;return"object"!=typeof t[0]?((e={}).primary=t,e):void 0===t[0].outlets?((n={}).primary=t,n):t[0].outlets}(n),r={};return BC(i,(function(n,i){null!==n&&(r[i]=IE(t.children[i],e,n))})),BC(t.children,(function(t,e){void 0===i[e]&&(r[e]=t)})),new WC(t.segments,r)}function PE(t,e,n){for(var i=t.segments.slice(0,e),r=0;r<n.length;){if("object"==typeof n[r]&&void 0!==n[r].outlets){var o=ME(n[r].outlets);return new WC(i,o)}if(0===r&&EE(n[0]))i.push(new GC(t.segments[e].path,n[0])),r++;else{var a=TE(n[r]),s=r<n.length-1?n[r+1]:null;a&&s&&EE(s)?(i.push(new GC(a,RE(s))),r+=2):(i.push(new GC(a,{})),r++)}}return new WC(i,{})}function ME(t){var e={};return BC(t,(function(t,n){null!==t&&(e[n]=PE(new WC([],{}),0,t))})),e}function RE(t){var e={};return BC(t,(function(t,n){return e[n]=""+t})),e}function NE(t,e,n){return t==n.path&&LC(e,n.parameters)}var DE=function(){function t(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),SE(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var i=this,r=hE(e);t.children.forEach((function(t){var e=t.value.outlet;i.deactivateRoutes(t,r[e],n),delete r[e]})),BC(r,(function(t,e){i.deactivateRouteAndItsChildren(t,n)}))},t.prototype.deactivateRoutes=function(t,e,n){var i=t.value,r=e?e.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:i,route:t,contexts:r})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,i=e.getContext(t.value.outlet);if(i){var r=hE(t),o=t.value.component?i.children:e;BC(r,(function(t,e){return n.deactivateRouteAndItsChildren(t,o)})),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var i=this,r=hE(e);t.children.forEach((function(t){i.activateRoutes(t,r[t.value.outlet],n),i.forwardEvent(new EC(t.value.snapshot))})),t.children.length&&this.forwardEvent(new SC(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var i=t.value,r=e?e.value:null;if(SE(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(i.component)if(o=n.getOrCreateContext(i.outlet),this.routeReuseStrategy.shouldAttach(i.snapshot)){var a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),LE(a.route)}else{var s=function(t){for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),c=s?s.module.componentFactoryResolver:null;o.attachRef=null,o.route=i,o.resolver=c,o.outlet&&o.outlet.activateWith(i,c),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,n)},t}();function LE(t){SE(t.value),t.children.forEach(LE)}function jE(t){return"function"==typeof t}function VE(t){return t instanceof HC}var FE=function(){return function(t){this.segmentGroup=t||null}}(),BE=function(){return function(t){this.urlTree=t}}();function UE(t){return new O((function(e){return e.error(new FE(t))}))}function zE(t){return new O((function(e){return e.error(new BE(t))}))}function HE(t){return new O((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))}))}var WE=function(){function t(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(le)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(W((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(c_((function(e){if(e instanceof BE)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof FE)throw t.noMatchError(e);throw e})))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(W((function(n){return e.createUrlTree(n,t.queryParams,t.fragment)}))).pipe(c_((function(t){if(t instanceof FE)throw e.noMatchError(t);throw t})))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var i,r=t.segments.length>0?new WC([],((i={}).primary=t,i)):t;return new HC(r,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(W((function(t){return new WC([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)},t.prototype.expandChildren=function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Lm({});var o=[],a=[],s={};return BC(n,(function(n,r){var c,u,l=(c=r,u=n,i.expandSegmentGroup(t,e,u,c)).pipe(W((function(t){return s[r]=t})));"primary"===r?o.push(l):a.push(l)})),Lm.apply(null,o.concat(a)).pipe(qg(),nC(),W((function(){return s})))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,r,o){var a=this;return Lm.apply(void 0,c(n)).pipe(W((function(s){return a.expandSegmentAgainstRoute(t,e,n,s,i,r,o).pipe(c_((function(t){if(t instanceof FE)return Lm(null);throw t})))})),qg(),iC((function(t){return!!t})),c_((function(t,n){if(t instanceof GS||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,i,r))return Lm(new WC([],{}));throw new FE(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,i,r,o,a){return YE(i)!==o?UE(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):UE(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?zE(o):this.lineralizeSegments(n,o).pipe(Q((function(n){var o=new WC(n,{});return r.expandSegment(t,o,e,n,i,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){var a=this,s=GE(e,i,r),c=s.consumedSegments,u=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return UE(e);var d=this.applyRedirectCommands(c,i.redirectTo,l);return i.redirectTo.startsWith("/")?zE(d):this.lineralizeSegments(i,d).pipe(Q((function(i){return a.expandSegment(t,e,n,i.concat(r.slice(u)),o,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(W((function(t){return n._loadedConfig=t,new WC(i,{})}))):Lm(new WC(i,{}));var s=GE(e,n,i),c=s.consumedSegments,u=s.lastChild;if(!s.matched)return UE(e);var l=i.slice(u);return this.getChildConfig(t,n,i).pipe(Q((function(t){var n=t.module,i=t.routes,s=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return ZE(t,e,n)&&"primary"!==YE(n)}))}(t,n,i)?{segmentGroup:qE(new WC(e,function(t,e){var n,i,r={};r.primary=e;try{for(var o=a(t),s=o.next();!s.done;s=o.next()){var c=s.value;""===c.path&&"primary"!==YE(c)&&(r[YE(c)]=new WC([],{}))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r}(i,new WC(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return ZE(t,e,n)}))}(t,n,i)?{segmentGroup:qE(new WC(t.segments,function(t,e,n,i){var r,s,c={};try{for(var u=a(n),l=u.next();!l.done;l=u.next()){var d=l.value;ZE(t,e,d)&&!i[YE(d)]&&(c[YE(d)]=new WC([],{}))}}catch(p){r={error:p}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(r)throw r.error}}return o(o({},i),c)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,c,l,i),u=s.segmentGroup,d=s.slicedSegments;return 0===d.length&&u.hasChildren()?r.expandChildren(n,i,u).pipe(W((function(t){return new WC(c,t)}))):0===i.length&&0===d.length?Lm(new WC(c,{})):r.expandSegment(n,u,i,d,"primary",!0).pipe(W((function(t){return new WC(c.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,n){var i=this;return e.children?Lm(new PC(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Lm(e._loadedConfig):function(t,e,n){var i,r=e.canLoad;return r&&0!==r.length?Y(r).pipe(W((function(i){var r,o=t.get(i);if(function(t){return t&&jE(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!jE(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return UC(r)}))).pipe(qg(),(i=function(t){return!0===t},function(t){return t.lift(new rC(i,void 0,t))})):Lm(!0)}(t.injector,e,n).pipe(Q((function(n){return n?i.configLoader.load(t.injector,e).pipe(W((function(t){return e._loadedConfig=t,t}))):function(t){return new O((function(e){return e.error(IC("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):Lm(new PC([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Lm(n);if(i.numberOfChildren>1||!i.children.primary)return HE(t.redirectTo);i=i.children.primary}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new HC(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return BC(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t})),n},t.prototype.createSegmentGroup=function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),a={};return BC(e.children,(function(e,o){a[o]=r.createSegmentGroup(t,e,n,i)})),new WC(o,a)},t.prototype.createSegments=function(t,e,n,i){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)}))},t.prototype.findPosParam=function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return i},t.prototype.findOrReturn=function(t,e){var n,i,r=0;try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.path===t.path)return e.splice(r),c;r++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return t},t}();function GE(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(e.matcher||AC)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function qE(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new WC(t.segments.concat(e.segments),e.children)}return t}function ZE(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function YE(t){return t.outlet||"primary"}var QE=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),KE=function(){return function(t,e){this.component=t,this.route=e}}();function XE(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function JE(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=hE(e);return t.children.forEach((function(t){!function(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!qC(t.url,e.url);case"pathParamsOrQueryParamsChange":return!qC(t.url,e.url)||!LC(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!CE(t,e)||!LC(t.queryParams,e.queryParams);case"paramsChange":default:return!CE(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new QE(i)):(o.data=a.data,o._resolvedData=a._resolvedData),JE(t,e,o.component?s?s.children:null:n,i,r),c&&r.canDeactivateChecks.push(new KE(s&&s.outlet&&s.outlet.component||null,a))}else a&&$E(e,s,r),r.canActivateChecks.push(new QE(i)),JE(t,null,o.component?s?s.children:null:n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]})),BC(o,(function(t,e){return $E(t,n.getContext(e),r)})),r}function $E(t,e,n){var i=hE(t),r=t.value;BC(i,(function(t,i){$E(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new KE(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var tx=Symbol("INITIAL_VALUE");function ex(){return Yy((function(t){return ES.apply(void 0,c(t.map((function(t){return t.pipe(tg(1),Yg(tx))})))).pipe(aC((function(t,e){var n=!1;return e.reduce((function(t,i,r){if(t!==tx)return t;if(i===tx&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||VE(i))return i}return t}),t)}),tx),Ym((function(t){return t!==tx})),W((function(t){return VE(t)?t:!0===t})),tg(1))}))}function nx(t,e){return null!==t&&e&&e(new CC(t)),Lm(!0)}function ix(t,e){return null!==t&&e&&e(new wC(t)),Lm(!0)}function rx(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Lm(i.map((function(i){return Wb((function(){var r,o=XE(i,e,n);if(function(t){return t&&jE(t.canActivate)}(o))r=UC(o.canActivate(e,t));else{if(!jE(o))throw new Error("Invalid CanActivate guard");r=UC(o(e,t))}return r.pipe(iC())}))}))).pipe(ex()):Lm(!0)}function ox(t,e,n){var i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return Wb((function(){return Lm(e.guards.map((function(r){var o,a=XE(r,e.node,n);if(function(t){return t&&jE(t.canActivateChild)}(a))o=UC(a.canActivateChild(i,t));else{if(!jE(a))throw new Error("Invalid CanActivateChild guard");o=UC(a(i,t))}return o.pipe(iC())}))).pipe(ex())}))}));return Lm(r).pipe(ex())}var ax=function(){return function(){}}(),sx=function(){function t(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=lx(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new yE([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new pE(n,e),r=new bE(this.url,i);return this.inheritParamsAndData(r._root),Lm(r)}catch(a){return new O((function(t){return t.error(a)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,i=vE(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,i=this,r=ZC(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},r.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+i+"' and '"+r+"'.")}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(r),r},t.prototype.processSegment=function(t,e,n,i){var r,o;try{for(var s=a(t),c=s.next();!c.done;c=s.next()){var u=c.value;try{return this.processSegmentAgainstRoute(u,e,n,i)}catch(l){if(!(l instanceof ax))throw l}}}catch(d){r={error:d}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new ax},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new ax;if((t.outlet||"primary")!==i)throw new ax;var r,a=[],s=[];if("**"===t.path){var c=n.length>0?FC(n).parameters:{};r=new yE(n,c,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,hx(t),i,t.component,t,cx(e),ux(e)+n.length,fx(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new ax;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||AC)(n,t,e);if(!i)throw new ax;var r={};BC(i.posParams,(function(t,e){r[e]=t.path}));var a=i.consumed.length>0?o(o({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=u.consumedSegments,s=n.slice(u.lastChild),r=new yE(a,u.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,hx(t),i,t.component,t,cx(e),ux(e)+a.length,fx(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),d=lx(e,a,s,l,this.relativeLinkResolution),p=d.segmentGroup,h=d.slicedSegments;if(0===h.length&&p.hasChildren()){var f=this.processChildren(l,p);return[new pE(r,f)]}if(0===l.length&&0===h.length)return[new pE(r,[])];var m=this.processSegment(l,p,h,"primary");return[new pE(r,m)]},t}();function cx(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ux(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function lx(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some((function(n){return dx(t,e,n)&&"primary"!==px(n)}))}(t,n,i)){var s=new WC(e,function(t,e,n,i){var r,o,s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var c=a(n),u=c.next();!u.done;u=c.next()){var l=u.value;if(""===l.path&&"primary"!==px(l)){var d=new WC([],{});d._sourceSegment=t,d._segmentIndexShift=e.length,s[px(l)]=d}}}catch(p){r={error:p}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return s}(t,e,i,new WC(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return dx(t,e,n)}))}(t,n,i)){var c=new WC(t.segments,function(t,e,n,i,r,s){var c,u,l={};try{for(var d=a(i),p=d.next();!p.done;p=d.next()){var h=p.value;if(dx(t,n,h)&&!r[px(h)]){var f=new WC([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===s?t.segments.length:e.length,l[px(h)]=f}}}catch(m){c={error:m}}finally{try{p&&!p.done&&(u=d.return)&&u.call(d)}finally{if(c)throw c.error}}return o(o({},r),l)}(t,e,n,i,t.children,r));return c._sourceSegment=t,c._segmentIndexShift=e.length,{segmentGroup:c,slicedSegments:n}}var u=new WC(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function dx(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function px(t){return t.outlet||"primary"}function hx(t){return t.data||{}}function fx(t){return t.resolve||{}}function mx(t,e,n,i){var r=XE(t,e,i);return UC(r.resolve?r.resolve(e,n):r(e,n))}function gx(t){return function(e){return e.pipe(Yy((function(e){var n=t(e);return n?Y(n).pipe(W((function(){return e}))):Y([e])})))}}var vx=function(){return function(){}}(),yx=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),bx=new Kt("ROUTES"),_x=function(){function t(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(W((function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new PC(VC(r.injector.get(bx)).map(DC),r)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Y(this.loader.load(t)):UC(t()).pipe(Q((function(t){return t instanceof de?Lm(t):Y(e.compiler.compileModuleAsync(t))})))},t}(),wx=function(){return function(){}}(),Sx=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Cx(t){throw t}function Ex(t,e,n){return e.parse("/")}function xx(t,e){return Lm(null)}var kx=function(){function t(t,e,n,i,r,o,a,s){var c=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new M,this.errorHandler=Cx,this.malformedUriErrorHandler=Ex,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xx,afterPreactivation:xx},this.urlHandlingStrategy=new Sx,this.routeReuseStrategy=new yx,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(le),this.console=r.get(bu);var u=r.get(Ru);this.isNgZoneEnabled=u instanceof Ru,this.resetConfig(s),this.currentUrlTree=new HC(new WC([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _x(o,a,(function(t){return c.triggerEvent(new bC(t))}),(function(t){return c.triggerEvent(new _C(t))})),this.routerState=mE(this.currentUrlTree,this.rootComponentType),this.transitions=new WS({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 t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Ym((function(t){return 0!==t.id})),W((function(t){return o(o({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),Yy((function(t){var i,r,s,c=!1,u=!1;return Lm(t).pipe(Vm((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?o(o({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),Yy((function(t){var i,r,a,s,c=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||c)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Lm(t).pipe(Yy((function(t){var i=e.transitions.getValue();return n.next(new lC(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?Jm:[t]})),Yy((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,r=e.configLoader,a=e.urlSerializer,s=e.config,function(t){return t.pipe(Yy((function(t){return function(t,e,n,i,r){return new WE(t,e,n,i,r).apply()}(i,r,a,t.extractedUrl,s).pipe(W((function(e){return o(o({},t),{urlAfterRedirects:e})})))})))}),Vm((function(t){e.currentNavigation=o(o({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,i,r,a){return function(i){return i.pipe(Q((function(i){return function(t,e,n,i,r,o){return void 0===r&&(r="emptyOnly"),void 0===o&&(o="legacy"),new sx(t,e,n,i,r,o).recognize()}(t,n,i.urlAfterRedirects,(s=i.urlAfterRedirects,e.serializeUrl(s)),r,a).pipe(W((function(t){return o(o({},i),{targetSnapshot:t})})));var s})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Vm((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Vm((function(t){var i=new fC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(c&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.extractedUrl,l=t.source,d=t.restoredState,p=t.extras,h=new lC(t.id,e.serializeUrl(u),l,d);n.next(h);var f=mE(u,e.rootComponentType).snapshot;return Lm(o(o({},t),{targetSnapshot:f,urlAfterRedirects:u,extras:o(o({},p),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Jm})),gx((function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Vm((function(t){var n=new mC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),W((function(t){return o(o({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,a=n._root,JE(a,i?i._root:null,r,[a.value]))});var n,i,r,a})),function(t,e){return function(n){return n.pipe(Q((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,s=a.canActivateChecks,c=a.canDeactivateChecks;return 0===c.length&&0===s.length?Lm(o(o({},n),{guardsResult:!0})):function(t,e,n,i){return Y(t).pipe(Q((function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Lm(o.map((function(o){var a,s=XE(o,e,r);if(function(t){return t&&jE(t.canDeactivate)}(s))a=UC(s.canDeactivate(t,e,n,i));else{if(!jE(s))throw new Error("Invalid CanDeactivate guard");a=UC(s(t,e,n,i))}return a.pipe(iC())}))).pipe(ex()):Lm(!0)}(t.component,t.route,n,e,i)})),iC((function(t){return!0!==t}),!0))}(c,i,r,t).pipe(Q((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Y(e).pipe(f_((function(e){return Y([ix(e.route.parent,i),nx(e.route,i),ox(t,e.path,n),rx(t,e.route,n)]).pipe(qg(),iC((function(t){return!0!==t}),!0))})),iC((function(t){return!0!==t}),!0))}(i,s,t,e):Lm(n)})),W((function(t){return o(o({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Vm((function(t){if(VE(t.guardsResult)){var n=IC('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}})),Vm((function(t){var n=new gC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Ym((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new pC(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),gx((function(t){if(t.guards.canActivateChecks.length)return Lm(t).pipe(Vm((function(t){var n=new vC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(Q((function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;return r.length?Y(r).pipe(f_((function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Lm({});if(1===r.length){var o=r[0];return mx(t[o],e,n,i).pipe(W((function(t){var e;return(e={})[o]=t,e})))}var a={};return Y(r).pipe(Q((function(r){return mx(t[r],e,n,i).pipe(W((function(t){return a[r]=t,t})))}))).pipe(nC(),W((function(){return a})))}(t._resolve,t,e,i).pipe(W((function(e){return t._resolvedData=e,t.data=o(o({},t.data),vE(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return x(aC(t,e),qS(1),$S(e))(n)}:function(e){return x(aC((function(e,n,i){return t(e,n,i+1)})),qS(1))(e)}}((function(t,e){return t})),W((function(e){return t}))):Lm(t)})))}),Vm((function(t){var n=new yC(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),gx((function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),W((function(t){var n,i,r,s=(r=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){(u=i.value)._futureSnapshot=n.value;var r=function(e,n,i){return n.children.map((function(n){var r,o;try{for(var s=a(i.children),c=s.next();!c.done;c=s.next()){var u=c.value;if(e.shouldReuseRoute(u.value.snapshot,n.value))return t(e,n,u)}}catch(l){r={error:l}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return t(e,n)}))}(e,n,i);return new pE(u,r)}var o=e.retrieve(n.value);if(o){var s=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var i=0;i<e.children.length;++i)t(e.children[i],n.children[i])}(n,s),s}var c,u=new gE(new WS((c=n.value).url),new WS(c.params),new WS(c.queryParams),new WS(c.fragment),new WS(c.data),c.outlet,c.component,c);return r=n.children.map((function(n){return t(e,n)})),new pE(u,r)}(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(i=t.currentRouterState)?i._root:void 0),new fE(r,n));return o(o({},t),{targetRouterState:s})})),Vm((function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),(i=e.rootContexts,r=e.routeReuseStrategy,s=function(t){return e.triggerEvent(t)},W((function(t){return new DE(r,t.targetRouterState,t.currentRouterState,s).activate(i),t}))),Vm({next:function(){c=!0},complete:function(){c=!0}}),d_((function(){if(!c&&!u){e.resetUrlToCurrentUrlTree();var i=new pC(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID "+t.id+" is not equal to the current navigation id "+e.navigationId);n.next(i),t.resolve(!1)}e.currentNavigation=null})),c_((function(i){if(u=!0,(s=i)&&s.ngNavigationCancelingError){var r=VE(i.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new pC(t.id,e.serializeUrl(t.extractedUrl),i.message);n.next(o),r?setTimeout((function(){var n=e.urlHandlingStrategy.merge(i.url,e.rawUrlTree);return e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new hC(t.id,e.serializeUrl(t.extractedUrl),i);n.next(a);try{t.resolve(e.errorHandler(i))}catch(c){t.reject(c)}}var s;return Jm})))})))},t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.getTransition=function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t},t.prototype.setTransition=function(t){this.transitions.next(o(o({},this.getTransition()),t))},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var n=t.parseUrl(e.url),i="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout((function(){t.scheduleNavigation(n,i,r,{replaceUrl:!0})}),0)})))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.getCurrentNavigation=function(){return this.currentNavigation},t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){MC(t),this.config=t.map(DC),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,i=e.queryParams,r=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,u=e.preserveFragment;wi()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,d=u?this.currentUrlTree.fragment:r,p=null;if(s)switch(s){case"merge":p=o(o({},this.currentUrlTree.queryParams),i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=a?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),function(t,e,n,i,r){if(0===n.length)return xE(e.root,e.root,e,i,r);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new kE(!0,0,t);var e=0,n=!1,i=t.reduce((function(t,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return BC(i.outlets,(function(t,e){o[e]="string"==typeof t?t.split("/"):t})),c(t,[{outlets:o}])}if(i.segmentPath)return c(t,[i.segmentPath])}return"string"!=typeof i?c(t,[i]):0===r?(i.split("/").forEach((function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):c(t,[i])}),[]);return new kE(n,e,i)}(n);if(o.toRoot())return xE(e.root,new WC([],{}),e,i,r);var a=function(t,e,n){if(t.isAbsolute)return new OE(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new OE(n.snapshot._urlSegment,!0,0);var i=EE(t.commands[0])?0:1;return function(t,e,n){for(var i=t,r=e,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new OE(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?AE(a.segmentGroup,a.index,o.commands):IE(a.segmentGroup,a.index,o.commands);return xE(a.segmentGroup,s,e,i,r)}(l,this.currentUrlTree,t,p,d)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),wi()&&this.isNgZoneEnabled&&!Ru.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=VE(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(VE(t))return zC(this.currentUrlTree,t,e);var n=this.parseUrl(t);return zC(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce((function(e,n){var i=t[n];return null!=i&&(e[n]=i),e}),{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new dC(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))},t.prototype.scheduleNavigation=function(t,e,n,i,r){var o,a,s,c=this.getTransition();if(c&&"imperative"!==e&&"imperative"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"hashchange"==e&&"popstate"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(c&&"popstate"==e&&"hashchange"===c.source&&c.rawUrl.toString()===t.toString())return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise((function(t,e){o=t,a=e}));var u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))},t.prototype.setBrowserUrl=function(t,e,n,i){var r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",o(o({},i),{navigationId:n})):this.location.go(r,"",o(o({},i),{navigationId:n}))},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t.\u0275fac=function(t){La()},t.\u0275dir=Ae({type:t}),t}(),Ox=function(){function t(t,e,n){var i=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe((function(t){t instanceof dC&&i.updateTargetUrlAndHref()}))}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){wi()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,i){if(0!==t||e||n||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:Tx(this.skipLocationChange),replaceUrl:Tx(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Tx(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Tx(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(Na(kx),Na(gE),Na(wl))},t.\u0275dir=Ae({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Za("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(ks("href",e.href,Ki),Pa("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ds]}),t}();function Tx(t){return""===t||!!t}var Ix=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ax,this.attachRef=null}}(),Ax=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new Ix,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Px=function(){function t(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Hc,this.deactivateEvents=new Hc,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Mx(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t.\u0275fac=function(e){return new(e||t)(Na(Ax),Na(Sc),Na(Qs),Da("name"),Na(ta))},t.\u0275dir=Ae({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t}(),Mx=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===gE?this.route:t===Ax?this.childContexts:this.parent.get(t,e)},t}(),Rx=function(){return function(){}}(),Nx=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(c_((function(){return Lm(null)})))},t}(),Dx=function(){function t(){}return t.prototype.preload=function(t,e){return Lm(null)},t}(),Lx=function(){function t(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new _x(e,n,(function(e){return t.triggerEvent(new bC(e))}),(function(e){return t.triggerEvent(new _C(e))}))}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(Ym((function(t){return t instanceof dC})),f_((function(){return t.preload()}))).subscribe((function(){}))},t.prototype.preload=function(){var t=this.injector.get(le);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var n,i,r=[];try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.loadChildren&&!c.canLoad&&c._loadedConfig){var u=c._loadedConfig;r.push(this.processRoutes(u.module,u.routes))}else c.loadChildren&&!c.canLoad?r.push(this.preloadConfig(t,c)):c.children&&r.push(this.processRoutes(t,c.children))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return Y(r).pipe(tt(),W((function(t){})))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,(function(){return n.loader.load(t.injector,e).pipe(Q((function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})))}))},t.\u0275fac=function(e){return new(e||t)(oe(kx),oe(tl),oe(Iu),oe(ga),oe(Rx))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),jx=function(){function t(t,e,n){void 0===n&&(n={}),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return t.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},t.prototype.createScrollEvents=function(){var t=this;return this.router.events.subscribe((function(e){e instanceof lC?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof dC&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))},t.prototype.consumeScrollEvents=function(){var t=this;return this.router.events.subscribe((function(e){e instanceof xC&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))},t.prototype.scheduleScrollEvent=function(t,e){this.router.triggerEvent(new xC(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))},t.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},t.\u0275fac=function(t){La()},t.\u0275dir=Ae({type:t}),t}(),Vx=new Kt("ROUTER_CONFIGURATION"),Fx=new Kt("ROUTER_FORROOT_GUARD"),Bx=[kl,{provide:YC,useClass:QC},{provide:kx,useFactory:function(t,e,n,i,r,o,a,s,c,u){void 0===s&&(s={});var l=new kx(null,t,e,n,i,r,o,VC(a));if(c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),s.errorHandler&&(l.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(l.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=ul();l.events.subscribe((function(t){d.logGroup("Router Event: "+t.constructor.name),d.log(t.toString()),d.log(t),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(l.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(l.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(l.relativeLinkResolution=s.relativeLinkResolution),l},deps:[YC,Ax,kl,ga,tl,Iu,bx,Vx,[wx,new mt],[vx,new mt]]},Ax,{provide:gE,useFactory:function(t){return t.routerState.root},deps:[kx]},{provide:tl,useClass:il},Lx,Dx,Nx,{provide:Vx,useValue:{enableTracing:!1}}];function Ux(){return new Zu("Router",kx)}var zx=function(){function t(t,e){}var e;return e=t,t.forRoot=function(t,n){return{ngModule:e,providers:[Bx,qx(t),{provide:Fx,useFactory:Gx,deps:[[kx,new mt,new vt]]},{provide:Vx,useValue:n||{}},{provide:wl,useFactory:Wx,deps:[pl,[new ft(Cl),new mt],Vx]},{provide:jx,useFactory:Hx,deps:[kx,$l,Vx]},{provide:Rx,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Dx},{provide:Zu,multi:!0,useFactory:Ux},[Zx,{provide:du,multi:!0,useFactory:Yx,deps:[Zx]},{provide:Kx,useFactory:Qx,deps:[Zx]},{provide:yu,multi:!0,useExisting:Kx}]]}},t.forChild=function(t){return{ngModule:e,providers:[qx(t)]}},t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)(oe(Fx,8),oe(kx,8))}}),t}();function Hx(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new jx(t,e,n)}function Wx(t,e,n){return void 0===n&&(n={}),n.useHash?new xl(t,e):new El(t,e)}function Gx(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function qx(t){return[{provide:va,multi:!0,useValue:t},{provide:bx,multi:!0,useValue:t}]}var Zx=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new M}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(fl,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(kx),r=t.injector.get(Vx);if(t.isLegacyDisabled(r)||t.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)i.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error("Invalid initialNavigation options: '"+r.initialNavigation+"'");i.hooks.afterPreactivation=function(){return t.initNavigation?Lm(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Vx),n=this.injector.get(Lx),i=this.injector.get(jx),r=this.injector.get(kx),o=this.injector.get(Ju);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t.\u0275fac=function(e){return new(e||t)(oe(ga))},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function Yx(t){return t.appInitializer.bind(t)}function Qx(t){return t.bootstrapListener.bind(t)}var Kx=new Kt("Router Initializer"),Xx=function(){return[""]},Jx=function(){function t(t,e){this.router=t,this.formBuilder=e,this.version=n("kiQV").version}return t.prototype.ngOnInit=function(){this.roomForm=this.formBuilder.group({roomName:["",Qd.compose([Qd.required])]})},t.prototype.goToVideoCall=function(){if(this.roomForm.valid){var t=this.roomForm.value.roomName.replace(/ /g,"-");this.router.navigate(["/",t])}},t.\u0275fac=function(e){return new(e||t)(Na(kx),Na(sh))},t.\u0275cmp=Ee({type:t,selectors:[["app-dashboard"]],decls:23,vars:4,consts:[["id","section1"],["id","header"],[3,"routerLink"],["id","header_img","alt","OpenVidu Logo","src","assets/images/openvidu_logo.png"],["id","version"],["id","ov_info"],["id","ov_img","alt","OpenVidu Logo","src","assets/images/openvidu_vert_white_bg_trans_cropped.png"],["id","card_content"],["id","room_card"],["novalidate","",3,"formGroup","ngSubmit"],["appearance","outline"],["matInput","","formControlName","roomName","placeholder","Openvidu_call_room","autocomplete","off"],["mat-stroked-button","","color","secondary","type","submit"]],template:function(t,e){var n,i,r;1&t&&(Fa(0,"div",0),Fa(1,"mat-toolbar",1),Fa(2,"a",2),Ua(3,"img",3),Ba(),Fa(4,"div",4),Fa(5,"span"),Cs(6),Ba(),Ba(),Ba(),Fa(7,"div",5),Ua(8,"img",6),Fa(9,"p"),Cs(10,"Videoconference rooms in one click"),Ba(),Ba(),Fa(11,"div",7),Fa(12,"mat-card",8),Fa(13,"h3"),Cs(14,"Create an OpenVidu videoconference"),Ba(),Fa(15,"form",9),Za("ngSubmit",(function(){return e.goToVideoCall()})),Fa(16,"mat-form-field",10),Fa(17,"mat-label"),Cs(18,"Insert your room name"),Ba(),Ua(19,"input",11),Ba(),Fa(20,"div"),Fa(21,"button",12),Cs(22,"Create Room"),Ba(),Ba(),Ba(),Ba(),Ba(),Ba()),2&t&&(xr(2),ja("routerLink",(3,n=Xx,i=$e()+3,(r=We())[i]===Cr?Ta(r,i,n()):Ia(r,i))),xr(4),Es(e.version),xr(9),ja("formGroup",e.roomForm))},directives:[wS,Ox,Uv,Zp,Wd,Jp,xy,yy,fw,jd,Hd,oh,Rv],styles:["#header[_ngcontent-%COMP%]{background-color:transparent;color:#fff}#header_img[_ngcontent-%COMP%]{max-width:200px;margin-right:10px;margin-top:10px}#version[_ngcontent-%COMP%]{position:absolute;right:5px;font-size:16px}#section1[_ngcontent-%COMP%]{background-image:url(/assets/images/land2_bg.jpg);background-size:cover;height:100%;text-align:center;position:relative}#ov_info[_ngcontent-%COMP%]{color:#fff}#ov_img[_ngcontent-%COMP%]{max-width:50%;margin:auto}#card_content[_ngcontent-%COMP%]{height:50%}#room_card[_ngcontent-%COMP%]{color:#303030;position:inherit;max-width:700px;width:75%;margin:auto;background:hsla(0,0%,86.7%,.856)}#room_card[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin:auto;padding:0 5px}@media (max-width:700px){#header_img[_ngcontent-%COMP%]{visibility:hidden}#ov_img[_ngcontent-%COMP%]{max-width:65%}}"]}),t}(),$x=n("PZzU"),tk=function(){function t(t,e){this.dialogRef=t,this.data=e}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(Na(Xb),Na(Jb))},t.\u0275cmp=Ee({type:t,selectors:[["app-dialog-error"]],decls:4,vars:2,consts:[["mat-dialog-title",""]],template:function(t,e){1&t&&(Fa(0,"h1",0),Cs(1),Ba(),Fa(2,"p"),Cs(3),Ba()),2&t&&(xr(1),Es(e.data.message),xr(2),xs(" ",e.data.messageError,"\n"))},directives:[r_],styles:["h1[_ngcontent-%COMP%]{color:#a30101}"]}),t}(),ek=function(){function t(){}return t.prototype.updateLayout=function(){var t=this;setTimeout((function(){if("none"!==t.layoutContainer.style.display){var e=t.layoutContainer.id;e||(e="OT_"+t.cheapUUID(),t.layoutContainer.id=e);var n=t.getHeight(t.layoutContainer)-t.getCSSNumber(t.layoutContainer,"borderTop")-t.getCSSNumber(t.layoutContainer,"borderBottom"),i=t.getWidth(t.layoutContainer)-t.getCSSNumber(t.layoutContainer,"borderLeft")-t.getCSSNumber(t.layoutContainer,"borderRight"),r=n/i,o=0,a=0,s=0,c=0,u=Array.prototype.filter.call(t.layoutContainer.querySelectorAll("#"+e+">."+t.opts.bigClass),t.filterDisplayNone),l=Array.prototype.filter.call(t.layoutContainer.querySelectorAll("#"+e+">*:not(."+t.opts.bigClass+")"),t.filterDisplayNone);if(u.length>0&&l.length>0){var d=void 0,p=void 0;r>t.getVideoRatio(u[0])?(d=i,s=n-(a=p=Math.floor(n*t.opts.bigPercentage))):(p=n,c=i-(o=d=Math.floor(i*t.opts.bigPercentage))),t.opts.bigFirst?(t.arrange(u,d,p,0,0,t.opts.bigFixedRatio,t.opts.bigMinRatio,t.opts.bigMaxRatio,t.opts.animate),t.arrange(l,i-o,n-a,o,a,t.opts.fixedRatio,t.opts.minRatio,t.opts.maxRatio,t.opts.animate)):(t.arrange(l,i-o,n-a,0,0,t.opts.fixedRatio,t.opts.minRatio,t.opts.maxRatio,t.opts.animate),t.arrange(u,d,p,c,s,t.opts.bigFixedRatio,t.opts.bigMinRatio,t.opts.bigMaxRatio,t.opts.animate))}else u.length>0&&0===l.length?t.arrange(u,i,n,0,0,t.opts.bigFixedRatio,t.opts.bigMinRatio,t.opts.bigMaxRatio,t.opts.animate):t.arrange(l,i-o,n-a,o,a,t.opts.fixedRatio,t.opts.minRatio,t.opts.maxRatio,t.opts.animate)}}),50)},t.prototype.initLayoutContainer=function(t,e){this.opts={maxRatio:null!=e.maxRatio?e.maxRatio:1.5,minRatio:null!=e.minRatio?e.minRatio:9/16,fixedRatio:null!=e.fixedRatio&&e.fixedRatio,animate:null!=e.animate&&e.animate,bigClass:null!=e.bigClass?e.bigClass:"OT_big",bigPercentage:null!=e.bigPercentage?e.bigPercentage:.8,bigFixedRatio:null!=e.bigFixedRatio&&e.bigFixedRatio,bigMaxRatio:null!=e.bigMaxRatio?e.bigMaxRatio:1.5,bigMinRatio:null!=e.bigMinRatio?e.bigMinRatio:9/16,bigFirst:null==e.bigFirst||e.bigFirst},this.layoutContainer="string"==typeof t?$(t):t},t.prototype.setLayoutOptions=function(t){this.opts=t},t.prototype.fixAspectRatio=function(t,e){var n=t.querySelector(".OT_root");if(n){var i=n.style.width;n.style.width=e+"px",n.style.width=i||""}},t.prototype.positionElement=function(t,e,n,i,r,o){var a=this,s={left:e+"px",top:n+"px",width:i+"px",height:r+"px"};this.fixAspectRatio(t,i),o&&$?($(t).stop(),$(t).animate(s,o.duration||200,o.easing||"swing",(function(){a.fixAspectRatio(t,i),o.complete&&o.complete.call(a)}))):$(t).css(s),this.fixAspectRatio(t,i)},t.prototype.getVideoRatio=function(t){if(!t)return.75;var e=t.querySelector("video");return e&&e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:.75},t.prototype.getCSSNumber=function(t,e){var n=$(t).css(e);return n?parseInt(n,10):0},t.prototype.cheapUUID=function(){return(1e8*Math.random()).toFixed(0)},t.prototype.getHeight=function(t){var e=$(t).css("height");return e?parseInt(e,10):0},t.prototype.getWidth=function(t){var e=$(t).css("width");return e?parseInt(e,10):0},t.prototype.getBestDimensions=function(t,e,n,i,r,o){for(var a,s,c,u,l,d,p,h=1;h<=n;h++){var f=h,m=Math.ceil(n/f);(p=(d=Math.floor(r/m))/(l=Math.floor(i/f)))>e?d=l*(p=e):p<t&&(l=d/(p=t));var g=l*d*n;(void 0===a||g>a)&&(a=g,o=d,u=l,s=f,c=m)}return{maxArea:a,targetCols:s,targetRows:c,targetHeight:o,targetWidth:u,ratio:o/u}},t.prototype.arrange=function(t,e,n,i,r,o,a,s,c){var u,l,d=t.length;if(o){var p=this.getVideoRatio(t.length>0?t[0]:null);l=this.getBestDimensions(p,p,d,e,n,u)}else l=this.getBestDimensions(a,s,d,e,n,u);for(var h,f=0,m=0,g=[],v=0;v<t.length;v++){v%l.targetCols==0&&g.push(h={children:[],width:0,height:0}),h.children.push(E=t[v]);var y=l.targetWidth;u=l.targetHeight,o&&(y=u/this.getVideoRatio(E)),h.width+=y,h.height=u}var b=0,_=0;for(v=0;v<g.length;v++)(h=g[v]).width>e?(h.height=Math.floor(h.height*(e/h.width)),h.width=e):h.width<e&&(_+=1),b+=h.height;if(b<n&&_>0){var w=n-b;for(b=0,v=0;v<g.length;v++){if((h=g[v]).width<e){var S=w/_;S/h.height>(e-h.width)/h.width&&(S=Math.floor((e-h.width)/h.width*h.height)),h.width+=Math.floor(S/h.height*h.width),h.height+=S,w-=S,_-=1}b+=h.height}}for(m=(n-b)/2,v=0;v<g.length;v++){f=(e-(h=g[v]).width)/2;for(var C=0;C<h.children.length;C++){var E=h.children[C];y=l.targetWidth,u=h.height,o&&(y=Math.floor(u/this.getVideoRatio(E))),E.style.position="absolute";var x=y-this.getCSSNumber(E,"paddingLeft")-this.getCSSNumber(E,"paddingRight")-this.getCSSNumber(E,"marginLeft")-this.getCSSNumber(E,"marginRight")-this.getCSSNumber(E,"borderLeft")-this.getCSSNumber(E,"borderRight"),k=u-this.getCSSNumber(E,"paddingTop")-this.getCSSNumber(E,"paddingBottom")-this.getCSSNumber(E,"marginTop")-this.getCSSNumber(E,"marginBottom")-this.getCSSNumber(E,"borderTop")-this.getCSSNumber(E,"borderBottom");this.positionElement(E,f+i,m+r,x,k,c),f+=y}m+=u}},t.prototype.filterDisplayNone=function(t){return"none"!==t.style.display},t}(),nk=function(){function t(){this.connectionId="",this.audioActive=!0,this.videoActive=!0,this.screenShareActive=!1,this.nickname="",this.streamManager=null,this.type="local"}return t.prototype.isAudioActive=function(){return this.audioActive},t.prototype.isVideoActive=function(){return this.videoActive},t.prototype.isScreenShareActive=function(){return this.screenShareActive},t.prototype.getConnectionId=function(){return this.connectionId},t.prototype.getLocalConnectionId=function(){return this.localConnectionId},t.prototype.getNickname=function(){return this.nickname},t.prototype.getStreamManager=function(){return this.streamManager},t.prototype.getAvatar=function(){return this.videoAvatar?this.videoAvatar.toDataURL():this.randomAvatar},t.prototype.isLocal=function(){return"local"===this.type},t.prototype.isRemote=function(){return!this.isLocal()},t.prototype.isScreen=function(){return"screen"===this.type},t.prototype.setAudioActive=function(t){this.audioActive=t},t.prototype.setVideoActive=function(t){this.videoActive=t},t.prototype.setScreenShareActive=function(t){this.screenShareActive=t},t.prototype.setStreamManager=function(t){this.streamManager=t},t.prototype.setConnectionId=function(t){this.connectionId=t},t.prototype.setLocalConnectionId=function(t){this.localConnectionId=t},t.prototype.setNickname=function(t){this.nickname=t},t.prototype.setType=function(t){this.type=t},t.prototype.setUserAvatar=function(t){var e=this;return new Promise((function(n){if(t)e.randomAvatar=t,n();else{e.createVideoAvatar();var i=document.getElementById("video-"+e.getStreamManager().stream.streamId);e.videoAvatar.getContext("2d").drawImage(i,200,120,285,285,0,0,100,100),console.log("Photo was taken: ",e.videoAvatar),n()}}))},t.prototype.removeVideoAvatar=function(){this.videoAvatar=null},t.prototype.createVideoAvatar=function(){this.videoAvatar=document.createElement("canvas"),this.videoAvatar.className="user-img",this.videoAvatar.width=100,this.videoAvatar.height=100},t}(),ik=function(){function t(t){this.http=t,this.URL_OV="https://demos.openvidu.io:4443",this.MY_SECRET="MY_SECRET",this.SETTINGS_FILE_NAME="ov-settings.json",this.ovSettings={chat:!0,autopublish:!1,toolbarButtons:{video:!0,audio:!0,fullscreen:!0,screenShare:!0,exit:!0}}}return t.prototype.getToken=function(t,e,n){var i=this;return new Promise((function(r,o){var a=void 0!==e?e:i.URL_OV,s=void 0!==n?n:i.MY_SECRET;i.createSession(t,a,s).then((function(t){i.createToken(t,a,s).then((function(t){return r(t)})).catch((function(t){return o(t)}))})).catch((function(t){return o(t)}))}))},t.prototype.createSession=function(t,e,n){var i=this;return new Promise((function(r,o){var a=JSON.stringify({customSessionId:t}),s={headers:new v_({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(e+"/api/sessions",a,s).pipe(c_((function(e){return 409===e.status?r(t):o(e),Xy(e)}))).subscribe((function(t){console.log(t),r(t.id)}))}))},t.prototype.createToken=function(t,e,n){var i=this;return new Promise((function(r,o){var a=JSON.stringify({session:t}),s={headers:new v_({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(e+"/api/tokens",a,s).pipe(c_((function(t){return o(t),Xy(t)}))).subscribe((function(t){console.log(t),r(t.token)}))}))},t.prototype.getOvSettingsData=function(){var t=this;return new Promise((function(e){t.http.get(t.SETTINGS_FILE_NAME).subscribe((function(n){console.log("FILE",n),console.log(n.openviduSettings),t.ovSettings=n.openviduSettings?n.openviduSettings:t.ovSettings,n.openviduCredentials&&(t.URL_OV=n.openviduCredentials.openvidu_url?n.openviduCredentials.openvidu_url:t.URL_OV,t.MY_SECRET=n.openviduCredentials.openvidu_secret?n.openviduCredentials.openvidu_secret:t.MY_SECRET),console.log("URL Environment",t.URL_OV),e(n.openviduSettings)}),(function(n){console.warn("Credentials file not found "),console.log("URL Environment",t.URL_OV),e(t.ovSettings)}))}))},t.\u0275prov=wt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(oe(P_))},providedIn:"root"}),t}(),rk=n("dP7y"),ok=n("joaK"),ak=n.n(ok),sk=n("bGVd"),ck=n.n(sk),uk=(n("mgp7"),function(){function t(){}return t.prototype.linkify=function(t,e){return t.linkify(e)},t.prototype.find=function(t){return Object(rk.find)(t)},t.prototype.test=function(t){return"string"==typeof t?Object(rk.test)(t):rk.test.apply(rk,t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=wt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}()),lk=new Kt("NgxLinkifyjsConfig"),dk={enableHash:!0,enableMention:!0},pk=function(){function t(t){this.config=t,t.enableHash&&ak()(rk),t.enableMention&&ck()(rk)}return t.forRoot=function(e){return void 0===e&&(e=dk),{ngModule:t,providers:[uk,{provide:lk,useValue:e}]}},t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)(oe(lk))},imports:[[Ql]]}),t}(),hk=function(){function t(t){this.linkifyService=t}return t.prototype.transform=function(t){return t?this.linkifyService.linkify(t):t},t.\u0275fac=function(e){return new(e||t)(Na(uk))},t.\u0275pipe=Pe({name:"linkify",type:t,pure:!0}),t}(),fk=["chatScroll"],mk=["chatInput"];function gk(t,e){if(1&t&&(Fa(0,"div",13),Ua(1,"img",14),Fa(2,"div",15),Fa(3,"div",16),Fa(4,"p"),Cs(5),Ba(),Ba(),Fa(6,"div",17),Ua(7,"span",18),Ua(8,"p",19),Uc(9,"linkify"),Ba(),Ba(),Ba()),2&t){var n=e.$implicit,i=Ja();ps("right",n.connectionId===i.session.connection.connectionId||i.sessionScreen&&i.sessionScreen.connection&&n.connectionId===i.sessionScreen.connection.connectionId)("left",!(n.connectionId===i.session.connection.connectionId||i.sessionScreen&&i.sessionScreen.connection&&n.connectionId===i.sessionScreen.connection.connectionId)),xr(1),ja("src",n.userAvatar,Ki),xr(4),Es(n.nickname),xr(3),ja("innerHTML",zc(9,7,n.message),Yi)}}var vk=function(){function t(){this.messageList=[],this.closeChat=new Hc}return t.prototype.onKeydownHandler=function(t){console.log(t),this._chatOpened&&this.close()},t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"isDisplayed",{set:function(t){var e=this;this._chatOpened=t,this._chatOpened&&(this.scrollToBottom(),setTimeout((function(){e.chatInput.nativeElement.focus()})))},enumerable:!0,configurable:!0}),t.prototype.eventKeyPress=function(t){t&&13===t.keyCode&&this.sendMessage()},t.prototype.sendMessage=function(){if(this.user&&this.message&&(this.message=this.message.replace(/ +(?= )/g,""),""!==this.message&&" "!==this.message)){var t={connectionId:this.user.getConnectionId(),message:this.message,nickname:this.user.getNickname()};this.session.signal({data:JSON.stringify(t),type:"chat"}),this.message=""}},t.prototype.scrollToBottom=function(){var t=this;setTimeout((function(){try{t.chatScroll.nativeElement.scrollTop=t.chatScroll.nativeElement.scrollHeight}catch(e){}}),20)},t.prototype.close=function(){this.closeChat.emit()},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["chat-component"]],viewQuery:function(t,e){var n;1&t&&(nu(fk,!0),nu(mk,!0)),2&t&&(tu(n=su())&&(e.chatScroll=n.first),tu(n=su())&&(e.chatInput=n.first))},hostBindings:function(t,e){1&t&&Za("keydown.escape",(function(t){return e.onKeydownHandler(t)}),!1,Bn)},inputs:{session:"session",sessionScreen:"sessionScreen",user:"user",lightTheme:"lightTheme",messageList:"messageList",isDisplayed:["chatOpened","isDisplayed"]},outputs:{closeChat:"closeChat"},decls:17,vars:4,consts:[["id","chatContainer"],["id","chatComponent"],["id","chatToolbar"],["mat-icon-button","","id","closeButton",3,"click"],["matTooltip","Close","color","warn"],[1,"message-wrap"],["chatScroll",""],["class","message",3,"right","left",4,"ngFor","ngForOf"],["id","messageInput"],["placeholder","Send a message","autocomplete","off","id","chatInput",3,"ngModel","keypress","ngModelChange"],["chatInput",""],["mat-mini-fab","","id","sendButton",3,"click"],["matTooltip","Send"],[1,"message"],[1,"user-img",3,"src"],[1,"msg-detail"],[1,"msg-info"],[1,"msg-content"],[1,"triangle"],[1,"text",3,"innerHTML"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"div",2),Fa(3,"span"),Cs(4," CHAT"),Ba(),Fa(5,"button",3),Za("click",(function(){return e.close()})),Fa(6,"mat-icon",4),Cs(7,"highlight_off"),Ba(),Ba(),Ba(),Fa(8,"div",5,6),Ra(10,gk,10,9,"div",7),Ba(),Fa(11,"div",8),Fa(12,"input",9,10),Za("keypress",(function(t){return e.eventKeyPress(t)}))("ngModelChange",(function(t){return e.message=t})),Ba(),Fa(14,"button",11),Za("click",(function(){return e.sendMessage()})),Fa(15,"mat-icon",12),Cs(16,"send"),Ba(),Ba(),Ba(),Ba(),Ba()),2&t&&(xr(1),ps("chatComponentLight",e.lightTheme),xr(9),ja("ngForOf",e.messageList),xr(2),ja("ngModel",e.message))},directives:[Rv,aw,US,Dl,jd,Hd,qp],pipes:[hk],styles:["#chatContainer[_ngcontent-%COMP%]{position:absolute;z-index:0;width:100%;height:100%}input[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif}#chatToolbar[_ngcontent-%COMP%]{height:30px;background-color:#3d3d3d;box-sizing:border-box;font-weight:700;font-size:14px;text-align:center;padding-top:4px;border-top-left-radius:6px;border-top-right-radius:6px;color:#fff}#closeButton[_ngcontent-%COMP%]{position:absolute;right:0;top:-5px}#chatComponent[_ngcontent-%COMP%]{background-color:#b8b8b8;position:absolute;z-index:99999;top:0;left:0;right:0;bottom:0;margin:auto;height:calc(100% - 30px);width:calc(100% - 30px);border-radius:20px}.message-wrap[_ngcontent-%COMP%]{padding:0 15px;height:calc(100% - 80px);overflow:auto}.message[_ngcontent-%COMP%]{position:relative;padding:7px 0}.user-img[_ngcontent-%COMP%]{position:absolute;border-radius:45px;width:60px;height:60px;top:15px}.msg-detail[_ngcontent-%COMP%]{width:calc(100% - 65px);display:inline-block}.msg-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:15px}.msg-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8em;color:#000;font-style:italic}.msg-content[_ngcontent-%COMP%]{position:relative;margin-top:5px;border-radius:5px;padding:8px;color:#000;width:auto;max-width:95%}span.triangle[_ngcontent-%COMP%]{border-radius:2px;height:8px;width:8px;top:12px;display:block;transform:rotate(45deg);position:absolute}.text[_ngcontent-%COMP%]{word-break:break-all}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%]{padding-left:65px}.message.left[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{left:-5px;border:1px solid hsla(0,0%,94.1%,.58)}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#f0f0f0;float:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#f0f0f0;border-bottom-width:0;border-left-width:0;left:-5px}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:right}.message.right[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{right:-5px;border:1px solid rgba(200,255,232,.67)}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#c8ffe8;float:right}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#c8ffe8;border-bottom-width:0;border-left-width:0;right:-5px}#messageInput[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;background-color:#fff;text-align:center;padding:10px 0;height:30px;border-bottom-left-radius:6px;border-bottom-right-radius:6px}#messageInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:90%;height:100%;border:none;outline:none;font-size:14px;margin-left:-6%}#sendButton[_ngcontent-%COMP%]{background-color:#81e9b0;position:absolute;right:10px;top:0;bottom:0;margin:auto;border:1px solid #7ae2a9;box-shadow:none!important}#sendButton[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:3px!important;margin-bottom:2px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#6b6b6b}.chatComponentLight[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#eee!important}"]}),t}(),yk=function(){function t(t){this.http=t,this.BIG_ELEMENT_CLASS="OV_big"}return t.prototype.toggleFullscreen=function(t){var e=window.document,n=e.getElementById(t);return e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement?(e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitExitFullscreen&&e.webkitExitFullscreen(),"fullscreen_exit"):(n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen(),"fullscreen")},t.prototype.getRandomAvatar=function(){var t=this;return new Promise((function(e,n){t.http.get("https://randomuser.me/api/?lego").subscribe((function(t){e(t.results[0].picture.thumbnail)}))}))},t.prototype.handlerScreenShareError=function(t){t&&"SCREEN_SHARING_NOT_SUPPORTED"===t.name?alert("Your browser does not support screen sharing"):t&&"SCREEN_EXTENSION_DISABLED"===t.name&&alert("You need to enable screen sharing extension")},t.prototype.getOpenviduLayoutOptions=function(){return{maxRatio:1.5,minRatio:.6,fixedRatio:!1,bigClass:this.BIG_ELEMENT_CLASS,bigPercentage:.85,bigFixedRatio:!1,bigMaxRatio:1.5,bigMinRatio:9/16,bigFirst:!0,animate:!0}},t.\u0275prov=wt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(oe(P_))},providedIn:"root"}),t}(),bk=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.dirty||t.touched||e&&e.submitted))},t}(),_k={provide:yu,useFactory:function(t,e){return function(){if(Kl(e)){var n=Array.from(t.querySelectorAll("[class*="+wk+"]")),i=/\bflex-layout-.+?\b/g;n.forEach((function(t){t.classList.contains(wk+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")}))}}},deps:[dl,vu],multi:!0},wk="flex-layout-",Sk=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},providers:[_k]}),t}(),Ck=function(){function t(t,e,n,i,r){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===i&&(i=""),void 0===r&&(r=0),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=i,this.priority=r,this.property=""}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),Ek=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),i="";if(n){var r=n.get(e);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i},t.\u0275prov=wt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),xk={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},kk=new Kt("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return xk}}),Ok=new Kt("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Tk=new Kt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function Ik(t,e){return t=t?t.clone():new Ck,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}var Ak=["row","column","row-reverse","column-reverse"];function Pk(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var Mk=function(){function t(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M,this.styleCache=new Map}return Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.elementRef.nativeElement.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedValue",{get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this;Object.keys(t).forEach((function(n){if(-1!==e.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");e.setValue(t[n].currentValue,i)}}))},t.prototype.ngOnDestroy=function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)},t.prototype.init=function(t){void 0===t&&(t=[]),this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)},t.prototype.addStyles=function(t,e){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(t);r&&i||(r=n.buildStyles(t,e),i&&this.styleCache.set(t,r)),this.mru=o({},r),this.applyStyleToElement(r),n.sideEffect(t,r,e)},t.prototype.clearStyles=function(){var t=this;Object.keys(this.mru).forEach((function(e){t.mru[e]=""})),this.applyStyleToElement(this.mru),this.mru={}},t.prototype.triggerUpdate=function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)},t.prototype.getFlexFlowDirection=function(t,e){if(void 0===e&&(e=!1),t){var n=this.styler.getFlowDirection(t),i=n[0];if(!n[1]&&e){var r=function(t){var e,n,i=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],i=e[1],r=e[2];return Ak.find((function(t){return t===n}))||(n=Ak[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,Pk(i),!!r]}(t);return void 0===(e=i[1])&&(e=null),void 0===(n=i[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":i[0],"flex-wrap":e||null}}(i);this.styler.applyStyleToElements(r,[t])}return i.trim()}return"row"},t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this.styler.applyStyleToElement(n,t,e)},t.prototype.setValue=function(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)},t.prototype.updateWithValue=function(t){this.addStyles(t)},t.\u0275fac=function(t){La()},t.\u0275dir=Ae({type:t,features:[Ds]}),t}(),Rk=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Nk="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",Dk="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",Lk="(orientation: portrait) and (min-width: 840px)",jk="(orientation: landscape) and (min-width: 1280px)",Vk={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:Nk+" , "+Dk,WEB:Lk+", "+jk+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:Nk+" ",WEB_PORTRAIT:""+Lk,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)]",TABLET_LANDSCAPE:""+Dk,WEB_LANDSCAPE:""+jk},Fk=[{alias:"handset",priority:2e3,mediaQuery:Vk.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Vk.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Vk.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Vk.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Vk.TABLET},{alias:"tablet.portrait",priority:2100,mediaQuery:Vk.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Vk.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Vk.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Vk.WEB_PORTRAIT,overlapping:!0}],Bk=/(\.|-|_)/g;function Uk(t){var e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var zk=new Kt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=ae(Tk),e=ae(kk),n=[].concat.apply([],(t||[]).map((function(t){return Array.isArray(t)?t:[t]})));return function(t,e){void 0===e&&(e=[]);var n,i={};return t.forEach((function(t){i[t.alias]=t})),e.forEach((function(t){i[t.alias]?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var i=0,r=e;i<r.length;i++){var o=r[i];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}}(i[t.alias],t):i[t.alias]=t})),(n=Object.keys(i).map((function(t){return i[t]}))).forEach((function(t){t.suffix||(t.suffix=t.alias.replace(Bk,"|").split("|").map(Uk).join(""),t.overlapping=!!t.overlapping)})),n}((e.disableDefaultBps?[]:Rk).concat(e.addOrientationBps?Fk:[]),n)}});function Hk(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Wk(t,e){return(t.priority||0)-(e.priority||0)}var Gk=function(){function t(t){this.findByMap=new Map,this.items=u(t).sort(Wk)}return t.prototype.findByAlias=function(t){return t?this.findWithPredicate(t,(function(e){return e.alias==t})):null},t.prototype.findByQuery=function(t){return this.findWithPredicate(t,(function(e){return e.mediaQuery==t}))},Object.defineProperty(t.prototype,"overlappings",{get:function(){return this.items.filter((function(t){return 1==t.overlapping}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aliases",{get:function(){return this.items.map((function(t){return t.alias}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixes",{get:function(){return this.items.map((function(t){return t.suffix?t.suffix:""}))},enumerable:!0,configurable:!0}),t.prototype.findWithPredicate=function(t,e){var n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null},t.\u0275prov=wt({factory:function(){return new t(oe(zk))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(zk))},t}(),qk=function(){function t(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new WS(new Ck(!0)),this.registry=new Map,this._observable$=this.source.asObservable()}return Object.defineProperty(t.prototype,"activations",{get:function(){var t=[];return this.registry.forEach((function(e,n){e.matches&&t.push(n)})),t},enumerable:!0,configurable:!0}),t.prototype.isActive=function(t){var e=this.registry.get(t);return!!e&&e.matches},t.prototype.observe=function(t,e){var n=this;if(void 0===e&&(e=!1),t&&t.length){var i=this._observable$.pipe(Ym((function(n){return!e||t.indexOf(n.mediaQuery)>-1})));return nt(new O((function(e){var i=n.registerQuery(t);if(i.length){var r=i.pop();i.forEach((function(t){e.next(t)})),n.source.next(r)}e.complete()})),i)}return this._observable$},t.prototype.registerQuery=function(t){var e=this,n=Array.isArray(t)?t:[t],i=[];return function(t,e){var n=t.filter((function(t){return!Zk[t]}));if(n.length>0){var i=n.join(", ");try{var r=e.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+i+" {.fx-query-test{ }}\n")),e.head.appendChild(r),n.forEach((function(t){return Zk[t]=r}))}catch(o){console.error(o)}}}(n,this._document),n.forEach((function(t){var n=e.registry.get(t);n||((n=e.buildMQL(t)).addListener((function(n){e._zone.run((function(){return e.source.next(new Ck(n.matches,t))}))})),e.registry.set(t,n)),n.matches&&i.push(new Ck(!0,t))})),i},t.prototype.buildMQL=function(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}(t,Kl(this._platformId))},t.\u0275prov=wt({factory:function(){return new t(oe(Ru),oe(vu),oe(dl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(Ru),oe(vu),oe(dl))},t}(),Zk={},Yk={alias:"print",mediaQuery:"print",priority:1e3},Qk=function(){function t(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.isPrinting=!1,this.queue=new Kk,this.deactivations=[]}return t.prototype.withPrintQuery=function(t){return u(t,["print"])},t.prototype.isPrintEvent=function(t){return t.mediaQuery.startsWith("print")},Object.defineProperty(t.prototype,"printAlias",{get:function(){return this.layoutConfig.printWithBreakpoints||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"printBreakPoints",{get:function(){var t=this;return(this.printAlias.map((function(e){return t.breakpoints.findByAlias(e)})).filter((function(t){return null!==t})))},enumerable:!0,configurable:!0}),t.prototype.getEventBreakpoints=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return(e?u(this.printBreakPoints,[e]):this.printBreakPoints).sort(Hk)},t.prototype.updateEvent=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Ik(t,e)},t.prototype.registerBeforeAfterPrintHooks=function(t){var e=this;this._document.defaultView&&!this.registeredBeforeAfterPrintHooks&&(this.registeredBeforeAfterPrintHooks=!0,this._document.defaultView.addEventListener("beforeprint",(function(){e.isPrinting||(e.isPrintingBeforeAfterEvent=!0,e.startPrinting(t,e.getEventBreakpoints(new Ck(!0,"print"))),t.updateStyles())})),this._document.defaultView.addEventListener("afterprint",(function(){e.isPrintingBeforeAfterEvent=!1,e.isPrinting&&(e.stopPrinting(t),t.updateStyles())})))},t.prototype.interceptEvents=function(t){var e=this;return this.registerBeforeAfterPrintHooks(t),function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):n.matches||!e.isPrinting||e.isPrintingBeforeAfterEvent||(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}},t.prototype.blockPropagation=function(){var t=this;return(function(e){return!(t.isPrinting||t.isPrintEvent(e))})},t.prototype.startPrinting=function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)},t.prototype.stopPrinting=function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1},t.prototype.collectActivations=function(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Hk))}},t.\u0275prov=wt({factory:function(){return new t(oe(Gk),oe(kk),oe(dl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(Gk),oe(kk),oe(dl))},t}(),Kk=function(){function t(){this.printBreakpoints=[]}return t.prototype.addPrintBreakpoints=function(t){var e=this;return t.push(Yk),t.sort(Hk),t.forEach((function(t){return e.addBreakpoint(t)})),this.printBreakpoints},t.prototype.addBreakpoint=function(t){t&&void 0===this.printBreakpoints.find((function(e){return e.mediaQuery===t.mediaQuery}))&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?u([t],this.printBreakpoints):u(this.printBreakpoints,[t]))},t.prototype.clear=function(){this.printBreakpoints=[]},t}();function Xk(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}var Jk=function(){function t(t,e,n,i){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=i}return t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=null);var i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:Xk(e),this._applyMultiValueStyleToElement(i,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var i=this.layoutConfig.disableVendorPrefixes?t:Xk(t);e.forEach((function(t){n._applyMultiValueStyleToElement(i,t)}))},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||Xl(this._platformId)&&this._serverModuleLoaded?e:""]},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return Kl(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,n){void 0===n&&(n=!1);var i="";return t&&((i=this.lookupInlineStyle(t,e))||(Kl(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""},t.prototype._applyMultiValueStyleToElement=function(t,e){var n=this;Object.keys(t).sort().forEach((function(i){var r=t[i],o=Array.isArray(r)?r:[r];o.sort();for(var a=0,s=o;a<s.length;a++){var c=s[a];c=c?c+"":"",Kl(n._platformId)||!n._serverModuleLoaded?Kl(n._platformId)?e.style.setProperty(i,c):n._setServerStyle(e,i,c):n._serverStylesheet.addStyleToElement(e,i,c)}}))},t.prototype._setServerStyle=function(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(t);i[e]=n||"",this._writeStyleAttribute(t,i)},t.prototype._getServerStyle=function(t,e){return this._readStyleAttribute(t)[e]||""},t.prototype._readStyleAttribute=function(t){var e={},n=t.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r<i.length;r++){var o=i[r].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);e[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)},t.\u0275prov=wt({factory:function(){return new t(oe(Ek),oe(Ok),oe(vu),oe(kk))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(Ek),oe(Ok),oe(vu),oe(kk))},t}(),$k=function(){function t(){this.shouldCache=!0}return t.prototype.sideEffect=function(t,e,n){},t}();function tO(t,e,n){void 0===e&&(e="1"),void 0===n&&(n="1");var i=[e,n,t],r=t.indexOf("calc");if(r>0)i[2]=eO(t.substring(r).trim()),2==(o=t.substr(0,r).trim().split(" ")).length&&(i[0]=o[0],i[1]=o[1]);else if(0==r)i[2]=eO(t.trim());else{var o;i=3===(o=t.split(" ")).length?o:[e,n,t]}return i}function eO(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var nO=function(){function t(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new M,this.observeActivations()}return Object.defineProperty(t.prototype,"activatedAlias",{get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""},enumerable:!0,configurable:!0}),t.prototype.onMediaChange=function(t){var e=this.findByQuery(t.mediaQuery);e&&((t=Ik(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Hk),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Hk),this.updateStyles()))},t.prototype.init=function(t,e,n,i,r){void 0===r&&(r=[]),iO(this.updateMap,t,e,n),iO(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,r)},t.prototype.getValue=function(t,e,n){var i=this.elementMap.get(t);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(r)return r.get(e)}},t.prototype.hasValue=function(t,e){var n=this.elementMap.get(t);if(n){var i=this.getActivatedValues(n,e);if(i)return void 0!==i.get(e)||!1}return!1},t.prototype.setValue=function(t,e,n,i){var r=this.elementMap.get(t);if(r){var o=(r.get(i)||new Map).set(e,n);r.set(i,o),this.elementMap.set(t,r)}else r=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,r);var a=this.getValue(t,e);void 0!==a&&this.updateElement(t,e,a)},t.prototype.trackValue=function(t,e){return this.subject.asObservable().pipe(Ym((function(n){return n.element===t&&n.key===e})))},t.prototype.updateStyles=function(){var t=this;this.elementMap.forEach((function(e,n){var i=new Set(t.elementKeyMap.get(n)),r=t.getActivatedValues(e);r&&r.forEach((function(e,r){t.updateElement(n,r,e),i.delete(r)})),i.forEach((function(i){if(r=t.getActivatedValues(e,i)){var o=r.get(i);t.updateElement(n,i,o)}else t.clearElement(n,i)}))}))},t.prototype.clearElement=function(t,e){var n=this.clearMap.get(t);if(n){var i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}},t.prototype.updateElement=function(t,e,n){var i=this.updateMap.get(t);if(i){var r=i.get(e);r&&(r(n),this.subject.next({element:t,key:e,value:n}))}},t.prototype.releaseElement=function(t){var e=this.watcherMap.get(t);e&&(e.forEach((function(t){return t.unsubscribe()})),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach((function(t,e){return n.delete(e)})),this.elementMap.delete(t))},t.prototype.triggerUpdate=function(t,e){var n=this,i=this.elementMap.get(t);if(i){var r=this.getActivatedValues(i,e);r&&(e?this.updateElement(t,e,r.get(e)):r.forEach((function(e,i){return n.updateElement(t,i,e)})))}},t.prototype.buildElementKeyMap=function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)},t.prototype.watchExtraTriggers=function(t,e,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(t);if(r||(r=new Map,this.watcherMap.set(t,r)),!r.get(e)){var o=nt.apply(void 0,n).subscribe((function(){var n=i.getValue(t,e);i.updateElement(t,e,n)}));r.set(e,o)}}},t.prototype.findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype.getActivatedValues=function(t,e){for(var n=0;n<this.activatedBreakpoints.length;n++){var i=t.get(this.activatedBreakpoints[n].alias);if(i&&(void 0===e||i.has(e)))return i}var r=t.get("");return void 0===e||r&&r.has(e)?r:void 0},t.prototype.observeActivations=function(){var t=this.breakpoints.items.map((function(t){return t.mediaQuery}));this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Vm(this.hook.interceptEvents(this)),Ym(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))},t.\u0275prov=wt({factory:function(){return new t(oe(qk),oe(Gk),oe(Qk))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(oe(qk),oe(Gk),oe(Qk))},t}();function iO(t,e,n,i){if(void 0!==i){var r=t.get(e);r||(r=new Map,t.set(e,r)),r.set(n,i)}}var rO=function(){return function(t,e,n){void 0===n&&(n=!0),this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}();function oO(t){var e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function aO(t){var e=t.split(":"),n=e[0],i=e.slice(1);return new rO(n,i.join(":"))}function sO(t,e){return e.key&&(t[e.key]=e.value),t}var cO=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"],uO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=cO,e}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({type:e,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[Is]});var n=oi(e);return e}(function(t){function e(e,n,i,r,o,a,s,c,u){var l=t.call(this,e,null,n,i)||this;l.sanitizer=r,l.ngStyleInstance=s,l.DIRECTIVE_KEY="ngStyle",l.ngStyleInstance||(l.ngStyleInstance=new Wl(e,o,a)),l.init();var d=l.nativeElement.getAttribute("style")||"";return l.fallbackStyles=l.buildStyleMap(d),l.isServer=c&&Xl(u),l}return r(e,t),e.prototype.updateWithValue=function(t){var e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=o(o({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()},e.prototype.clearStyles=function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()},e.prototype.buildStyleMap=function(t){var e,n=this,i=function(t){return n.sanitizer.sanitize(Wi.STYLE,t)||""};if(t)switch(oO(t)){case"string":return lO((void 0===e&&(e=";"),String(t).trim().split(e).map((function(t){return t.trim()})).filter((function(t){return""!==t}))),i);case"array":return lO(t,i);case"set":default:return function(t,e){var n=[];return"set"===oO(t)?t.forEach((function(t){return n.push(t)})):Object.keys(t).forEach((function(e){n.push(e+":"+t[e])})),function(t,e){return t.map(aO).filter((function(t){return!!t})).map((function(t){return e&&(t.value=e(t.value)),t})).reduce(sO,{})}(n,e)}(t,i)}return{}},e.prototype.ngDoCheck=function(){this.ngStyleInstance.ngDoCheck()},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Jk),Na(nO),Na(xd),Na(gc),Na(tc),Na(Wl,10),Na(Ok),Na(vu))},e.\u0275dir=Ae({type:e,features:[Is]}),e}(Mk));function lO(t,e){return t.map(aO).filter((function(t){return!!t})).map((function(t){return e&&(t.value=e(t.value)),t})).reduce(sO,{})}var dO=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[Sk]]}),t}();function pO(t,e){if(1&t){var n=Wa();Fa(0,"button",7),Za("click",(function(){return qe(n),Ja().refreshBrowser()})),Cs(1,"Refresh"),Ba()}}var hO=function(){function t(){this.nickname="",this.cancel=new Hc,this.openviduExtensionUrl="https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold"}return t.prototype.ngOnInit=function(){},t.prototype.onNoClick=function(){this.cancel.emit()},t.prototype.goToChromePage=function(){window.open(this.openviduExtensionUrl),this.isInstalled=!0},t.prototype.refreshBrowser=function(){window.location.reload()},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-dialog-extension"]],inputs:{nickname:"nickname"},outputs:{cancel:"cancel"},decls:14,vars:2,consts:[["id","dialogExtension"],["mat-dialog-title",""],["mat-dialog-content",""],["align","center"],["mat-button","","id","cancelButton",3,"click"],["mat-button","","cdkFocusInitial","","id","installButton",3,"click"],["mat-button","",3,"click",4,"ngIf"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"mat-card"),Fa(2,"mat-card-content"),Fa(3,"h1",1),Cs(4),Ba(),Fa(5,"div",2),Fa(6,"p"),Cs(7,"You need install this chrome extension and refresh the browser for can share your screen."),Ba(),Ba(),Ba(),Fa(8,"mat-card-actions",3),Fa(9,"button",4),Za("click",(function(){return e.onNoClick()})),Cs(10,"Cancel"),Ba(),Fa(11,"button",5),Za("click",(function(){return e.goToChromePage()})),Cs(12,"Install"),Ba(),Ra(13,pO,2,0,"button",6),Ba(),Ba(),Ba()),2&t&&(xr(4),xs("Hello ",e.nickname,""),xr(9),ja("ngIf",e.isInstalled))},directives:[Uv,jv,r_,o_,Fv,Rv,jl],styles:["#dialogExtension[_ngcontent-%COMP%]{position:absolute;z-index:99999999999999;width:100%;height:100%}#dialogExtension[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{position:absolute;z-index:99999999999999;top:0;bottom:0;left:0;right:0;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;max-height:-webkit-fit-content;max-height:-moz-fit-content;max-height:fit-content;margin:auto}"]}),t}(),fO=["row","column","row-reverse","column-reverse"];function mO(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],i=e[1],r=e[2];return fO.find((function(t){return t===n}))||(n=fO[0]),"inline"===i&&(i="inline"!==r?r:"",r="inline"),[n,vO(i),!!r]}function gO(t){return mO(t)[0].indexOf("row")>-1}function vO(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var yO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.prototype.buildStyles=function(t){return void 0===(e=(i=mO(t))[1])&&(e=null),void 0===(n=i[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":i[0],"flex-wrap":e||null};var e,n,i},e.\u0275prov=wt({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=oi(e);return e}($k),bO=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],_O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=bO,e}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Is]});var n=oi(e);return e}(function(t){function e(e,n,i,r){var o=t.call(this,e,i,n,r)||this;return o.DIRECTIVE_KEY="layout",o.styleCache=wO,o.init(),o}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Jk),Na(yO),Na(nO))},e.\u0275dir=Ae({type:e,features:[Is]}),e}(Mk)),wO=new Map;function SO(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var i=0,r=e;i<r.length;i++){var o=r[i];if(null!=o)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}return t}var CO=function(t){function e(e){var n=t.call(this)||this;return n.layoutConfig=e,n}return r(e,t),e.prototype.buildStyles=function(t,e){var n=t.split(" "),i=n[0],r=n[1],o=n.slice(2).join(" "),a=e.direction.indexOf("column")>-1?"column":"row",s=gO(a)?"max-width":"max-height",c=gO(a)?"min-width":"min-height",u=String(o).indexOf("calc")>-1,l=u||"auto"===o,d=String(o).indexOf("%")>-1&&!u,p=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,h=u||p;r="0"==r?0:r;var f=!(i="0"==i?0:i)&&!r,m={},g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":o="row"===a?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,o="auto";break;case"grow":o="100%";break;case"noshrink":r=0,o="auto";break;case"auto":break;case"none":i=0,r=0,o="auto";break;default:h||d||isNaN(o)||(o+="%"),"0%"===o&&(h=!0),"0px"===o&&(o="0%"),m=SO(g,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":h?o:"100%"}:{flex:i+" "+r+" "+(h?o:"100%")})}return m.flex||m["flex-grow"]||(m=SO(g,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:i+" "+r+" "+o})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(m[c]=f||h&&i?o:null,m[s]=f||!l&&r?o:null),m[c]||m[s]?e.hasWrap&&(m[u?"flex-basis":"flex"]=m[s]?u?m[s]:i+" "+r+" "+m[s]:u?m[c]:i+" "+r+" "+m[c]):m=SO(g,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:i+" "+r+" "+o}),SO(m,{"box-sizing":"border-box"})},e.\u0275prov=wt({factory:function(){return new e(oe(kk))},token:e,providedIn:"root"}),e.\u0275fac=function(t){return new(t||e)(oe(kk))},e}($k),EO=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],xO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=EO,e}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Is]});var n=oi(e);return e}(function(t){function e(e,n,i,r,o){var a=t.call(this,e,r,n,o)||this;return a.layoutConfig=i,a.DIRECTIVE_KEY="flex",a.direction="",a.wrap=!1,a.flexGrow="1",a.flexShrink="1",a.init(),a.parentElement&&(a.marshal.trackValue(a.parentElement,"layout").pipe(Hv(a.destroySubject)).subscribe(a.onLayoutChange.bind(a)),a.marshal.trackValue(a.nativeElement,"layout-align").pipe(Hv(a.destroySubject)).subscribe(a.triggerReflow.bind(a))),a}return r(e,t),Object.defineProperty(e.prototype,"shrink",{get:function(){return this.flexShrink},set:function(t){this.flexShrink=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"grow",{get:function(){return this.flexGrow},set:function(t){this.flexGrow=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),e.prototype.onLayoutChange=function(t){var e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()},e.prototype.updateWithValue=function(t){this.direction||(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent));var e=this.direction,n=e.startsWith("row"),i=this.wrap;n&&i?this.styleCache=TO:n&&!i?this.styleCache=kO:!n&&i?this.styleCache=IO:n||i||(this.styleCache=OO);var r=tO(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:e,hasWrap:i})},e.prototype.triggerReflow=function(){var t=this.activatedValue;if(void 0!==t){var e=tO(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Jk),Na(kk),Na(CO),Na(nO))},e.\u0275dir=Ae({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Is]}),e}(Mk)),kO=new Map,OO=new Map,TO=new Map,IO=new Map,AO={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"},PO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.prototype.buildStyles=function(t){return AO},e.\u0275prov=wt({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=oi(e);return e}($k),MO=function(t){function e(e,n,i,r){var o=t.call(this,e,i,n,r)||this;return o.styleCache=RO,o.addStyles(""),o}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Jk),Na(PO),Na(nO))},e.\u0275dir=Ae({type:e,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Is]}),e}(Mk),RO=new Map,NO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.prototype.buildStyles=function(t,e){var n={},i=t.split(" "),r=i[1];switch(i[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return(SO(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===r?gO(e.layout)?null:"100%":null,"max-height":"stretch"===r&&gO(e.layout)?"100%":null}))},e.\u0275prov=wt({factory:function(){return new e},token:e,providedIn:"root"}),e.\u0275fac=function(t){return n(t||e)};var n=oi(e);return e}($k),DO=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],LO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=DO,e}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ae({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Is]});var n=oi(e);return e}(function(t){function e(e,n,i,r){var o=t.call(this,e,i,n,r)||this;return o.DIRECTIVE_KEY="layout-align",o.layout="row",o.inline=!1,o.init(),o.marshal.trackValue(o.nativeElement,"layout").pipe(Hv(o.destroySubject)).subscribe(o.onLayoutChange.bind(o)),o}return r(e,t),e.prototype.updateWithValue=function(t){var e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=UO:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=HO:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=zO:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=WO:"column-reverse"!==e||n||(this.styleCache=BO):this.styleCache=VO:this.styleCache=FO:this.styleCache=jO,this.addStyles(t,{layout:e,inline:n})},e.prototype.onLayoutChange=function(t){var e=this,n=t.value.split(" ");this.layout=n[0],this.inline=t.value.includes("inline"),fO.find((function(t){return t===e.layout}))||(this.layout="row"),this.triggerUpdate()},e.\u0275fac=function(t){return new(t||e)(Na(Ks),Na(Jk),Na(NO),Na(nO))},e.\u0275dir=Ae({type:e,features:[Is]}),e}(Mk)),jO=new Map,VO=new Map,FO=new Map,BO=new Map,UO=new Map,zO=new Map,HO=new Map,WO=new Map,GO=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[Sk,Wg]]}),t}(),qO=["videoElement"],ZO=function(){function t(){}return t.prototype.ngAfterViewInit=function(){this._streamManager&&this._streamManager.addVideoElement(this.elementRef.nativeElement)},Object.defineProperty(t.prototype,"streamManager",{set:function(t){this._streamManager=t,this.elementRef&&this._streamManager&&("SCREEN"===this._streamManager.stream.typeOfVideo?(this.elementRef.nativeElement.style.objectFit="contain",this.elementRef.nativeElement.style.background="#878787"):this.elementRef.nativeElement.style.objectFit="cover",this._streamManager.addVideoElement(this.elementRef.nativeElement))},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["ov-video"]],viewQuery:function(t,e){var n;1&t&&nu(qO,!0),2&t&&tu(n=su())&&(e.elementRef=n.first)},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},decls:2,vars:2,consts:[[3,"muted"],["videoElement",""]],template:function(t,e){1&t&&Ua(0,"video",0,1),2&t&&(ja("muted",e.mutedSound),Pa("id",e.streamManager&&e._streamManager.stream?"video-"+e._streamManager.stream.streamId:"video-undefined"))},styles:[".nickname[_ngcontent-%COMP%]{padding:5px!important;position:absolute;z-index:999;border-radius:5px;color:#313131;font-family:Ubuntu,sans-serif}#dialogNickname[_ngcontent-%COMP%]{background-color:hsla(0,0%,100%,.98);border-radius:8px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{padding:8px}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{border-radius:50%;background:#c71100;margin:5px 0}.streamButtons[_ngcontent-%COMP%]{position:absolute;z-index:1000;background-color:rgba(0,0,0,.77);right:1px}#fullscreenButton[_ngcontent-%COMP%]{bottom:1px}#volumeButton[_ngcontent-%COMP%]{bottom:45px}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden} .mat-form-field-appearance-legacy .mat-form-field-label{color:#696969} .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:#444!important} .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#696969!important}"]}),t}();function YO(t,e){if(1&t){var n=Wa();Fa(0,"app-dialog-extension",3),Za("cancel",(function(){return qe(n),Ja().toggleDialogExtension()})),Ba()}2&t&&ja("nickname",Ja().localUsers[0].getNickname())}function QO(t,e){if(1&t&&Ua(0,"ov-video",43),2&t){var n=Ja(2);ja("streamManager",n.localUsers[0].getStreamManager())("className",n.localUsers[1]?"smallVideo":"")}}function KO(t,e){1&t&&Ua(0,"ov-video",44),2&t&&ja("streamManager",Ja(2).localUsers[1].getStreamManager())}function XO(t,e){1&t&&(Fa(0,"div",45),Fa(1,"span"),Cs(2,"Press Avatar Button"),Ba(),Ba())}function JO(t,e){1&t&&Ua(0,"img",46),2&t&&ja("src",Ja(2).videoAvatar,Ki)}function $O(t,e){1&t&&Ua(0,"mat-spinner",47),2&t&&ja("diameter",70)}function tT(t,e){1&t&&Ua(0,"img",46),2&t&&ja("src",Ja(2).randomAvatar,Ki)}function eT(t,e){1&t&&(Fa(0,"mat-icon",54),Cs(1,"mic"),Ba())}function nT(t,e){1&t&&(Fa(0,"mat-icon",55),Cs(1,"mic_off"),Ba())}function iT(t,e){if(1&t&&(Fa(0,"mat-option",56),Cs(1),Ba()),2&t){var n=e.$implicit;ja("value",n.label),xr(1),Es(n.label)}}function rT(t,e){if(1&t){var n=Wa();Fa(0,"div",34),Fa(1,"div",24),Fa(2,"div",35),Fa(3,"button",48),Za("click",(function(){return qe(n),Ja(2).toggleMic()})),Ra(4,eT,2,0,"mat-icon",49),Ra(5,nT,2,0,"mat-icon",50),Ba(),Ba(),Fa(6,"div",38),Fa(7,"mat-form-field",51),Fa(8,"mat-select",52),Za("selectionChange",(function(t){return qe(n),Ja(2).micChanged(t.value)})),Ra(9,iT,2,2,"mat-option",53),Ba(),Ba(),Ba(),Ba(),Ba()}if(2&t){var i=Ja(2);xr(4),ja("ngIf",i.isAudioActive),xr(1),ja("ngIf",!i.isAudioActive),xr(3),ja("ngModel",i.isAudioActive&&i.micValue?i.micValue.label:"None"),xr(1),ja("ngForOf",i.microphones)}}function oT(t,e){1&t&&(Fa(0,"mat-icon",61),Cs(1,"videocam"),Ba())}function aT(t,e){1&t&&(Fa(0,"mat-icon",62),Cs(1,"videocam_off"),Ba())}function sT(t,e){if(1&t&&(Fa(0,"mat-option",56),Cs(1),Ba()),2&t){var n=e.$implicit;ja("value",n.label),xr(1),Es(n.label)}}function cT(t,e){if(1&t){var n=Wa();Fa(0,"div",34),Fa(1,"div",24),Fa(2,"div",35),Fa(3,"button",57),Za("click",(function(){return qe(n),Ja(2).toggleCam()})),Ra(4,oT,2,0,"mat-icon",58),Ra(5,aT,2,0,"mat-icon",59),Ba(),Ba(),Fa(6,"div",38),Fa(7,"mat-form-field",51),Fa(8,"mat-select",60),Za("selectionChange",(function(t){return qe(n),Ja(2).camChanged(t.value)})),Ra(9,sT,2,2,"mat-option",53),Ba(),Ba(),Ba(),Ba(),Ba()}if(2&t){var i=Ja(2);xr(4),ja("ngIf",i.isVideoActive),xr(1),ja("ngIf",!i.isVideoActive),xr(3),ja("ngModel",i.isVideoActive&&i.camValue?i.camValue.label:"None"),xr(1),ja("ngForOf",i.cameras)}}function uT(t,e){1&t&&(Fa(0,"mat-icon",67),Cs(1,"screen_share"),Ba())}function lT(t,e){1&t&&(Fa(0,"mat-icon",68),Cs(1," stop_screen_share"),Ba())}function dT(t,e){if(1&t){var n=Wa();Fa(0,"div",34),Fa(1,"div",24),Fa(2,"div",35),Fa(3,"button",63),Za("click",(function(){return qe(n),Ja(2).toggleScreenShare()})),Ra(4,uT,2,0,"mat-icon",64),Ra(5,lT,2,0,"mat-icon",65),Ba(),Ba(),Fa(6,"div",38),Fa(7,"mat-form-field",51),Ua(8,"input",66),Ba(),Ba(),Ba(),Ba()}if(2&t){var i=Ja(2);xr(4),ja("ngIf",i.isScreenShareActive),xr(1),ja("ngIf",!i.isScreenShareActive),xr(3),ja("ngModel",i.screenActive)}}function pT(t,e){1&t&&(Fa(0,"mat-error"),Cs(1," Nickname is "),Fa(2,"strong"),Cs(3,"required"),Ba(),Ba())}function hT(t,e){1&t&&(Fa(0,"mat-error"),Cs(1," Nickname is "),Fa(2,"strong"),Cs(3,"too long!"),Ba(),Ba())}var fT=function(t){return{backgroundColor:t}};function mT(t,e){if(1&t){var n=Wa();Fa(0,"mat-card"),Fa(1,"mat-card-title"),Fa(2,"div",4),Ua(3,"img",5),Ba(),Fa(4,"h1",6),Cs(5,"Set up your room"),Ba(),Fa(6,"button",7),Za("click",(function(){return qe(n),Ja().close()})),Fa(7,"mat-icon",8),Cs(8,"close"),Ba(),Ba(),Ba(),Fa(9,"mat-card-content",9),Fa(10,"div",10),Fa(11,"div",11),Fa(12,"div",12),Fa(13,"h3",13),Cs(14),Ba(),Fa(15,"div",14),Ua(16,"mat-slider",15),Ra(17,QO,1,2,"ov-video",16),Ra(18,KO,1,1,"ov-video",17),Ba(),Fa(19,"div",18),Fa(20,"button",19),Za("click",(function(){return qe(n),Ja().takePhoto()})),Fa(21,"mat-icon",20),Cs(22,"photo_camera"),Ba(),Fa(23,"span",21),Cs(24,"Capture Avatar"),Ba(),Ba(),Ba(),Ba(),Fa(25,"div",22),Fa(26,"div",23),Fa(27,"div",24),Fa(28,"div",25),Fa(29,"h3",26),Cs(30,"Avatar"),Ba(),Ba(),Fa(31,"div",27),Fa(32,"div",28),Za("mouseover",(function(){return qe(n),Ja().hover1=!0}))("click",(function(){return qe(n),Ja().setAvatar("video")}))("mouseleave",(function(){return qe(n),Ja().hover1=!1})),Ra(33,XO,3,0,"div",29),Ra(34,JO,1,1,"img",30),Ba(),Fa(35,"div",31),Za("click",(function(){return qe(n),Ja().setAvatar("random")}))("mouseover",(function(){return qe(n),Ja().hover2=!0}))("mouseleave",(function(){return qe(n),Ja().hover2=!1})),Ra(36,$O,1,1,"mat-spinner",32),Ra(37,tT,1,1,"img",30),Ba(),Ba(),Ba(),Ba(),Ra(38,rT,10,4,"div",33),Ra(39,cT,10,4,"div",33),Ra(40,dT,9,3,"div",33),Fa(41,"div",34),Fa(42,"div",24),Fa(43,"div",35),Fa(44,"button",36),Za("click",(function(){return qe(n),Ja().generateNickname()})),Fa(45,"mat-icon",37),Cs(46,"person"),Ba(),Ba(),Ba(),Fa(47,"div",38),Fa(48,"form",39),Fa(49,"mat-form-field"),Fa(50,"input",40),Za("keypress",(function(t){return qe(n),Ja().eventKeyPress(t)})),Ba(),Ra(51,pT,4,0,"mat-error",2),Ra(52,hT,4,0,"mat-error",2),Ba(),Ba(),Ba(),Ba(),Ba(),Ba(),Ba(),Ba(),Ba(),Fa(53,"mat-card-footer"),Fa(54,"div",41),Fa(55,"button",42),Za("click",(function(){return qe(n),Ja().accept()})),Cs(56,"JOIN"),Ba(),Ba(),Ba(),Ba()}if(2&t){var i=Ja();xr(14),xs("Session : ",i.mySessionId,""),xr(2),ja("max",0)("min",100)("color",i.updateVolumeColor())("ngModel",i.volumeValue)("vertical",!0),xr(1),ja("ngIf",i.localUsers[0]&&i.localUsers[0].getStreamManager()),xr(1),ja("ngIf",i.localUsers[1]&&i.localUsers[1].getStreamManager()),xr(14),ds("background","video"===i.avatarSelected?"lightgreen":"transparent",Xi),ja("ngStyle",Fc(25,fT,i.videoAvatar&&i.hover1&&"video"!==i.avatarSelected?"lightgreen":"white")),xr(1),ja("ngIf",!i.videoAvatar),xr(1),ja("ngIf",i.videoAvatar),xr(1),ds("background","random"===i.avatarSelected?"lightgreen":"transparent",Xi),ja("ngStyle",Fc(27,fT,i.randomAvatar&&i.hover2&&"random"!==i.avatarSelected?"lightgreen":"white")),xr(1),ja("ngIf",!i.randomAvatar),xr(1),ja("ngIf",i.randomAvatar),xr(1),ja("ngIf",i.ovSettings&&i.ovSettings.toolbarButtons.audio),xr(1),ja("ngIf",i.ovSettings&&i.ovSettings.toolbarButtons.video),xr(1),ja("ngIf",i.ovSettings&&i.ovSettings.toolbarButtons.screenShare),xr(10),ja("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),xr(1),ja("ngIf",i.nicknameFormControl.hasError("required")),xr(1),ja("ngIf",i.nicknameFormControl.hasError("maxlength"))}}var gT=function(t){return{display:t}},vT=function(){function t(t,e){this.route=t,this.apiSrv=e,this.join=new Hc,this.leaveSession=new Hc,this.cameras=[{label:"None",device:null,type:""}],this.microphones=[{label:"None",device:null,type:""}],this.screenActive="None",this.isVideoActive=!0,this.isAudioActive=!0,this.isScreenShareActive=!1,this.volumeValue=100,this.showDialogExtension=!1,this.localUsers=[],this.nicknameFormControl=new Np("",[Qd.maxLength(25),Qd.required]),this.matcher=new bk}return t.prototype.ngOnInit=function(){var t=this;this.OV=new $x.OpenVidu,this.localUsers.push(new nk),this.generateNickname(),this.setSessionName(),this.initPublisher().then((function(e){t.setDevicesValue(e)})).catch((function(t){return console.log(t)})),this.getRandomAvatar(),this.columns=window.innerWidth>900?2:1},t.prototype.toggleCam=function(){this.isVideoActive=!this.isVideoActive,2===this.localUsers.length?(this.destroyPublisher(0),this.userCamDeleted=this.localUsers.shift(),this.setAudio(this.isAudioActive),this.subscribeToVolumeChange(this.localUsers[0].getStreamManager())):this.localUsers[0].isScreen()?(this.setAudio(!1),this.localUsers[0].getStreamManager().off("streamAudioVolumeChange"),this.localUsers.unshift(this.userCamDeleted),this.initPublisher()):(this.localUsers[0].setVideoActive(this.isVideoActive),this.localUsers[0].getStreamManager().publishVideo(this.isVideoActive))},t.prototype.camChanged=function(t){var e="None"!==this.camValue.label&&"None"!==t,n=this.cameras.filter((function(e){return e.label===t}))[0];this.camValue=n,this.isVideoActive="None"!==this.camValue.label,this.localUsers[0].isLocal()?(this.localUsers[0].setVideoActive(this.isVideoActive),this.localUsers[0].getStreamManager().publishVideo(this.isVideoActive),e&&this.launchNewPublisher(0)):(this.localUsers.unshift(this.userCamDeleted),this.initPublisher())},t.prototype.toggleScreenShare=function(){this.isScreenShareActive?(this.localUsers[0].isScreen()&&(this.localUsers.unshift(this.userCamDeleted),this.initPublisher()),this.destroyPublisher(1),this.localUsers.pop(),this.localUsers[0].setScreenShareActive(!1),this.screenActive="None",this.isScreenShareActive=!this.isScreenShareActive,this.localUsers[0].setScreenShareActive(this.isScreenShareActive)):this.initScreenPublisher()},t.prototype.toggleMic=function(){var t=this;this.isAudioActive=!this.isAudioActive,this.localUsers.forEach((function(e){e.setAudioActive(t.isAudioActive),e.getStreamManager().publishAudio(t.isAudioActive)}))},t.prototype.micChanged=function(t){var e=this,n="None"!==this.micValue.label&&"None"!==t,i=this.microphones.filter((function(e){return e.label===t}))[0];this.micValue=i,this.isAudioActive="None"!==this.micValue.label,this.localUsers[0].setAudioActive(this.isAudioActive),this.localUsers.forEach((function(t){t.getStreamManager().publishAudio(e.isAudioActive)})),n&&this.launchNewPublisher(0)},t.prototype.subscribeToVolumeChange=function(t){var e=this;t.on("streamAudioVolumeChange",(function(t){e.volumeValue=Math.round(Math.abs(t.value.newValue))}))},t.prototype.setAvatar=function(t){("random"===t&&this.randomAvatar||"video"===t&&this.videoAvatar)&&(this.avatarSelected=t,"random"===t&&this.localUsers[0].setUserAvatar(this.randomAvatar))},t.prototype.takePhoto=function(){this.localUsers[0].setUserAvatar(),this.videoAvatar=this.localUsers[0].getAvatar(),this.setAvatar("video")},t.prototype.generateNickname=function(){var t=this.userNickname?this.userNickname:"OpenVidu_User"+Math.floor(100*Math.random());this.nicknameFormControl.setValue(t)},t.prototype.eventKeyPress=function(t){t&&13===t.keyCode&&this.nicknameFormControl.valid&&this.accept()},t.prototype.onResize=function(t){this.columns=t.target.innerWidth>900?2:1},t.prototype.updateVolumeColor=function(){return this.volumeValue<=20?"warn":this.volumeValue>20&&this.volumeValue<=35?"accent":this.volumeValue>35?"primary":void 0},t.prototype.accept=function(){var t=this;this.nicknameFormControl.valid&&(this.localUsers.forEach((function(e){e.getStreamManager().off("streamAudioVolumeChange"),e.setNickname(t.nicknameFormControl.value)})),"random"===this.avatarSelected&&this.localUsers[0].removeVideoAvatar(),this.localUsers[1]&&this.localUsers[1].setUserAvatar(this.localUsers[0].getAvatar()),this.join.emit({localUsers:this.localUsers,sessionId:this.mySessionId}))},t.prototype.toggleDialogExtension=function(){this.showDialogExtension=!this.showDialogExtension},t.prototype.close=function(){var t=this;this.localUsers.forEach((function(e,n){t.destroyPublisher(n)})),this.localUsers=[],this.leaveSession.emit()},t.prototype.setDevicesValue=function(t){var e=this;this.OV.getDevices().then((function(n){console.log("Devices: ",n);var i=t.stream.getMediaStream().getVideoTracks()[0].getSettings().deviceId;n.forEach((function(t){if("audioinput"===t.kind)e.microphones.push({label:t.label,device:t.deviceId,type:""});else{var n={label:t.label,device:t.deviceId,type:""};t.deviceId===i?(n.type="FRONT",e.camValue=n):n.type="BACK",e.cameras.push(n)}})),e.camValue=e.camValue?e.camValue:e.cameras[0],e.micValue=e.microphones[1]?e.microphones[1]:e.microphones[0]})).catch((function(t){return console.error(t)}))},t.prototype.setSessionName=function(){var t=this;this.route.params.subscribe((function(e){t.mySessionId=t.sessionName?t.sessionName:e.roomName}))},t.prototype.getRandomAvatar=function(){var t=this;this.apiSrv.getRandomAvatar().then((function(e){t.randomAvatar=e,t.setAvatar("random")})).catch((function(t){return console.error(t)}))},t.prototype.initPublisher=function(){var t=this;return new Promise((function(e,n){t.OV.initPublisherAsync(void 0,{audioSource:t.micValue?t.micValue.device:void 0,videoSource:t.camValue?t.camValue.device:void 0,publishAudio:t.isAudioActive,publishVideo:t.isVideoActive,mirror:t.camValue&&"FRONT"===t.camValue.type}).then((function(n){t.subscribeToVolumeChange(n),t.localUsers[0].setStreamManager(n),t.ovSettings.autopublish&&t.accept(),e(n)})).catch((function(t){return n(t)}))}))},t.prototype.initScreenPublisher=function(){var t=this,e=-1!==navigator.userAgent.indexOf("Firefox")?"window":"screen",n=(!this.localUsers[0].isLocal()||!this.localUsers[0].isVideoActive())&&this.isAudioActive;this.OV.initPublisherAsync(void 0,{videoSource:e,publishAudio:n,publishVideo:!0,mirror:!1}).then((function(e){t.localUsers.push(new nk),t.localUsers[1].setStreamManager(e),t.localUsers[1].setScreenShareActive(!0),t.localUsers[1].setAudioActive(n),t.localUsers[1].setType("screen"),t.localUsers[1].setUserAvatar(t.randomAvatar),t.isScreenShareActive=!t.isScreenShareActive,t.screenActive="Screen",t.localUsers[0].setScreenShareActive(t.isScreenShareActive),t.localUsers[0].isLocal()&&!t.localUsers[0].isVideoActive()&&(t.setAudio(!0),t.destroyPublisher(0),t.userCamDeleted=t.localUsers.shift(),t.subscribeToVolumeChange(e))})).catch((function(e){e&&"SCREEN_EXTENSION_NOT_INSTALLED"===e.name?t.toggleDialogExtension():t.apiSrv.handlerScreenShareError(e)}))},t.prototype.launchNewPublisher=function(t){this.destroyPublisher(t),this.initPublisher()},t.prototype.destroyPublisher=function(t){this.localUsers[t].getStreamManager().off("streamAudioVolumeChange"),this.localUsers[t].getStreamManager().stream.disposeWebRtcPeer(),this.localUsers[t].getStreamManager().stream.disposeMediaStream()},t.prototype.setAudio=function(t){this.localUsers[0].setAudioActive(t),this.localUsers[0].getStreamManager().publishAudio(t)},t.\u0275fac=function(e){return new(e||t)(Na(gE),Na(yk))},t.\u0275cmp=Ee({type:t,selectors:[["app-dialog-choose-room"]],inputs:{userNickname:"userNickname",sessionName:"sessionName",ovSettings:"ovSettings"},outputs:{join:"join",leaveSession:"leaveSession"},decls:3,vars:5,consts:[["id","dialogChooseRoom",3,"ngStyle"],[3,"nickname","cancel",4,"ngIf"],[4,"ngIf"],[3,"nickname","cancel"],["id","img_content"],["id","header_img","alt","OpenVidu Logo","src","https://raw.githubusercontent.com/OpenVidu/openvidu-call/master/front/openvidu-call/src/assets/images/openvidu_logo_grey.png"],["mat-dialog-title",""],["mat-icon-button","","id","closeButton",3,"click"],["color","warn","matTooltip","Cancel"],["align","center","id","card-content"],[1,""],["fxLayout","row","fxLayout.sm","column","fxLayout.lt-sm","column","fxFlexFill","",1,""],["fxFlex","45","fxFlex.sm","25","fxFlex.lt-sm","25",1,"volume-theme"],["id","sessionInfo"],["id","videoContainer"],[1,"volumeSlider",3,"max","min","color","ngModel","vertical"],["id","ovVideo",3,"streamManager","className",4,"ngIf"],["id","ovVideoScreen",3,"streamManager",4,"ngIf"],["id","photoButton"],["mat-stroked-button","","id","avatarButton",3,"click"],["matTooltip","Take Photo"],[2,"margin-left","5px"],["fxFlex","55","fxFlex.sm","65","fxFlex.lt-sm","65",1,"sec3"],["fxLayout","row","fxFill","","id","avatarSection"],["fxLayout","","fxFlex",""],["fxFlex","30","fxLayoutAlign","center center",1,""],[2,"margin","auto"],["fxFlex","70","fxLayoutAlign","center center",1,""],["id","avatarContainer",3,"ngStyle","mouseover","click","mouseleave"],["id","imgText",4,"ngIf"],["id","avatarImg",3,"src",4,"ngIf"],["id","avatarContainer",3,"ngStyle","click","mouseover","mouseleave"],["id","imgText","color","accent",3,"diameter",4,"ngIf"],["fxLayout","row","fxFill","","id","devicesSection",4,"ngIf"],["fxLayout","row","fxFill","","id","devicesSection"],["fxFlex","20","fxLayoutAlign","center center",1,"one"],["mat-stroked-button","","id","nicknameButton",3,"click"],["matTooltip","Nickname"],["fxFlex","80","fxLayoutAlign","center center",1,"two"],["id","nicknameDialog",1,"alternate-theme"],["matInput","","placeholder","Nickname","autocomplete","off",3,"formControl","errorStateMatcher","keypress"],["id","joinButtonDiv"],["mat-stroked-button","","id","joinButton",3,"click"],["id","ovVideo",3,"streamManager","className"],["id","ovVideoScreen",3,"streamManager"],["id","imgText"],["id","avatarImg",3,"src"],["id","imgText","color","accent",3,"diameter"],["mat-stroked-button","","id","micDeviceButton",3,"click"],["matTooltip","Microphone Enabled",4,"ngIf"],["color","warn","matTooltip","Microphone Disabled",4,"ngIf"],[1,"alternate-theme"],["placeholder","Microphone Options",3,"ngModel","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltip","Microphone Enabled"],["color","warn","matTooltip","Microphone Disabled"],[3,"value"],["mat-stroked-button","","id","camDeviceButton",3,"click"],["matTooltip","Camera Enabled",4,"ngIf"],["color","warn","matTooltip","Camera Disabled",4,"ngIf"],["placeholder","Camera Options",3,"ngModel","selectionChange"],["matTooltip","Camera Enabled"],["color","warn","matTooltip","Camera Disabled"],["mat-stroked-button","","id","screenShareButton",3,"click"],["matTooltip","Screen Share Enabled",4,"ngIf"],["color","warn","matTooltip","Screen Share Disabled",4,"ngIf"],["matInput","","disabled","","placeholder","Screen Pages",3,"ngModel"],["matTooltip","Screen Share Enabled"],["color","warn","matTooltip","Screen Share Disabled"]],template:function(t,e){1&t&&(Fa(0,"div",0),Ra(1,YO,1,1,"app-dialog-extension",1),Ra(2,mT,57,29,"mat-card",2),Ba()),2&t&&(ja("ngStyle",Fc(3,gT,e.ovSettings.autopublish?"none":"block")),xr(1),ja("ngIf",e.showDialogExtension),xr(1),ja("ngIf",e.localUsers[0].getStreamManager()))},directives:[Wl,uO,jl,hO,Uv,Vv,r_,Rv,aw,US,jv,_O,MO,xO,hS,Hd,qp,LO,Zp,Wd,Fp,xy,fw,jd,Kp,Bv,ZO,Sw,Uw,Dl,Cv,py],styles:["#imgText[_ngcontent-%COMP%], button[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], input[_ngcontent-%COMP%], mat-option[_ngcontent-%COMP%], mat-select[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif}#dialogChooseRoom[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%}#dialogChooseRoom[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}#card-content[_ngcontent-%COMP%]{max-width:95%;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;margin:auto;overflow-y:auto;padding-right:8px}#videoContainer[_ngcontent-%COMP%]{position:relative}#closeButton[_ngcontent-%COMP%]{position:absolute;top:0;right:7px}.volumeSlider[_ngcontent-%COMP%]{position:absolute;height:60%;z-index:99999;bottom:0;pointer-events:none}#ovVideo[_ngcontent-%COMP%], #ovVideoScreen[_ngcontent-%COMP%]{display:inline-block}.smallVideo[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;width:50%;border:1px solid #fff}#img_content[_ngcontent-%COMP%]{position:absolute;top:3px;left:0}#header_img[_ngcontent-%COMP%]{max-width:165px}#sessionInfo[_ngcontent-%COMP%]{margin-top:0}#camDeviceButton[_ngcontent-%COMP%], #micDeviceButton[_ngcontent-%COMP%], #nicknameButton[_ngcontent-%COMP%]{margin:0 10px}#joinButtonDiv[_ngcontent-%COMP%]{text-align:center}#joinButton[_ngcontent-%COMP%]{margin:15px;width:80%}#photoButton[_ngcontent-%COMP%]{margin:10px;text-align:center}#avatarContainer[_ngcontent-%COMP%]{border:1px solid #b6b6b6;width:100px;height:100px;margin:10px;position:relative;cursor:pointer;display:inline-block}#devicesSection[_ngcontent-%COMP%]{margin:15px 0}#avatarSection[_ngcontent-%COMP%], #devicesSection[_ngcontent-%COMP%]{height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important;min-height:auto!important}#imgText[_ngcontent-%COMP%]{display:table}#avatarImg[_ngcontent-%COMP%], #imgText[_ngcontent-%COMP%]{position:absolute;margin:auto;top:0;left:0;right:0;bottom:0}#avatarImg[_ngcontent-%COMP%]{height:88%;width:88%}#avatarContainer[_ngcontent-%COMP%], #avatarImg[_ngcontent-%COMP%]{border-radius:50%}#optionsContent[_ngcontent-%COMP%]{position:static}#nicknameDialog[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{max-width:85%!important;position:absolute;top:0;bottom:0;left:0;right:0;max-height:90%;margin:auto;padding:20px;overflow-y:auto;border:2px solid #fff;border-right-width:4px}@media only screen and (max-width:959px){mat-card[_ngcontent-%COMP%]{max-width:80%!important;max-height:80%!important}} .mat-option-text{color:#000!important} .mat-slider-thumb{visibility:hidden} .mat-slider-vertical .mat-slider-track-background, .mat-slider-vertical .mat-slider-track-fill, .mat-slider-vertical .mat-slider-track-wrapper{width:10px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#b8afaf;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#888}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#e1e1e1;border-radius:4px}"]}),t}();function yT(t,e){1&t&&Ua(0,"img",12)}function bT(t,e){1&t&&Ua(0,"img",13)}function _T(t,e){if(1&t&&(Fa(0,"div",14),Fa(1,"span",15),Cs(2),Ba(),Ba()),2&t){var n=Ja();ps("titleContentLight",n.lightTheme),xr(2),Es(n.mySessionId)}}function wT(t,e){1&t&&(Fa(0,"mat-icon",19),Cs(1,"mic"),Ba())}function ST(t,e){1&t&&(Fa(0,"mat-icon",20),Cs(1,"mic_off"),Ba())}function CT(t,e){if(1&t){var n=Wa();Fa(0,"button",16),Za("click",(function(){return qe(n),Ja().micStatusChanged()})),Ra(1,wT,2,0,"mat-icon",17),Ra(2,ST,2,0,"mat-icon",18),Ba()}if(2&t){var i=Ja();xr(1),ja("ngIf",i.localUser&&i.localUser.isAudioActive()),xr(1),ja("ngIf",i.localUser&&!i.localUser.isAudioActive())}}function ET(t,e){1&t&&(Fa(0,"mat-icon",24),Cs(1,"videocam"),Ba())}function xT(t,e){1&t&&(Fa(0,"mat-icon",25),Cs(1,"videocam_off"),Ba())}function kT(t,e){if(1&t){var n=Wa();Fa(0,"button",21),Za("click",(function(){return qe(n),Ja().camStatusChanged()})),Ra(1,ET,2,0,"mat-icon",22),Ra(2,xT,2,0,"mat-icon",23),Ba()}if(2&t){var i=Ja();xr(1),ja("ngIf",i.localUser&&i.localUser.isLocal()&&i.localUser.isVideoActive()),xr(1),ja("ngIf",i.localUser&&i.localUser.isLocal()&&!i.localUser.isVideoActive()||i.localUser&&i.localUser.isScreen())}}function OT(t,e){if(1&t){var n=Wa();Fa(0,"button",26),Za("click",(function(){return qe(n),Ja().screenShare()})),Fa(1,"mat-icon",27),Cs(2,"stop_screen_share"),Ba(),Ba()}}function TT(t,e){if(1&t){var n=Wa();Fa(0,"button",28),Za("click",(function(){return qe(n),Ja().stopScreenSharing()})),Fa(1,"mat-icon",29),Cs(2,"screen_share"),Ba(),Ba()}}function IT(t,e){if(1&t){var n=Wa();Fa(0,"button",28),Za("click",(function(){return qe(n),Ja().toggleFullscreen()})),Fa(1,"mat-icon",30),Cs(2),Ba(),Ba()}if(2&t){var i=Ja();xr(2),Es(i.fullscreenIcon)}}function AT(t,e){if(1&t){var n=Wa();Fa(0,"button",31),Za("click",(function(){return qe(n),Ja().exitSession()})),Fa(1,"mat-icon",32),Cs(2,"power_settings_new"),Ba(),Ba()}}function PT(t,e){if(1&t){var n=Wa();Fa(0,"button",33),Za("click",(function(){return qe(n),Ja().toggleChat()})),Fa(1,"mat-icon",34),Cs(2,"chat"),Ba(),Ba()}if(2&t){var i=Ja();xr(1),ns("matBadge",i.newMessagesNum),ja("matBadgeHidden",0===i.newMessagesNum)}}var MT=function(){function t(t){this.apiSrv=t,this.fullscreenIcon="fullscreen",this.micButtonClicked=new Hc,this.camButtonClicked=new Hc,this.screenShareClicked=new Hc,this.exitButtonClicked=new Hc,this.chatButtonClicked=new Hc,this.stopScreenSharingClicked=new Hc}return t.prototype.sizeChange=function(t){var e=window.screen.height,n=window.screen.width,i=window.innerHeight;n!==window.innerWidth&&e!==i&&(this.fullscreenIcon="fullscreen")},t.prototype.ngOnInit=function(){},t.prototype.micStatusChanged=function(){this.micButtonClicked.emit()},t.prototype.camStatusChanged=function(){this.camButtonClicked.emit()},t.prototype.screenShare=function(){this.screenShareClicked.emit()},t.prototype.stopScreenSharing=function(){this.stopScreenSharingClicked.emit()},t.prototype.exitSession=function(){this.exitButtonClicked.emit()},t.prototype.toggleChat=function(){this.chatButtonClicked.emit()},t.prototype.toggleFullscreen=function(){var t=this.apiSrv.toggleFullscreen("videoRoomNavBar");this.fullscreenIcon="fullscreen"===t?"fullscreen_exit":"fullscreen"},t.\u0275fac=function(e){return new(e||t)(Na(yk))},t.\u0275cmp=Ee({type:t,selectors:[["app-toolbar"]],hostBindings:function(t,e){1&t&&Za("resize",(function(t){return e.sizeChange(t)}),!1,Fn)},inputs:{lightTheme:"lightTheme",mySessionId:"mySessionId",localUser:"localUser",compact:"compact",showNotification:"showNotification",newMessagesNum:"newMessagesNum",ovSettings:"ovSettings"},outputs:{micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",exitButtonClicked:"exitButtonClicked",chatButtonClicked:"chatButtonClicked",stopScreenSharingClicked:"stopScreenSharingClicked"},decls:14,vars:12,consts:[["id","header","role","heading"],["id","navSessionInfo"],["id","header_img","alt","OpenVidu Logo","src","https://raw.githubusercontent.com/OpenVidu/openvidu-call/master/front/openvidu-call/src/assets/images/openvidu_logo.png",4,"ngIf"],["id","header_img","alt","OpenVidu Logo","src","https://raw.githubusercontent.com/OpenVidu/openvidu-call/master/front/openvidu-call/src/assets/images/openvidu_logo_grey.png",4,"ngIf"],["id","titleContent",3,"titleContentLight",4,"ngIf"],["id","navButtons","align","center"],["mat-icon-button","","id","navMicButton",3,"click",4,"ngIf"],["mat-icon-button","","id","navCamButton",3,"click",4,"ngIf"],["mat-icon-button","","id","navScreenButton",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","","id","navLeaveButton",3,"click",4,"ngIf"],["mat-icon-button","","id","navChatButton",3,"click",4,"ngIf"],["id","header_img","alt","OpenVidu Logo","src","https://raw.githubusercontent.com/OpenVidu/openvidu-call/master/front/openvidu-call/src/assets/images/openvidu_logo.png"],["id","header_img","alt","OpenVidu Logo","src","https://raw.githubusercontent.com/OpenVidu/openvidu-call/master/front/openvidu-call/src/assets/images/openvidu_logo_grey.png"],["id","titleContent"],["id","session-title"],["mat-icon-button","","id","navMicButton",3,"click"],["matTooltip","Mute your audio",4,"ngIf"],["color","warn","matTooltip","Unmute your audio",4,"ngIf"],["matTooltip","Mute your audio"],["color","warn","matTooltip","Unmute your audio"],["mat-icon-button","","id","navCamButton",3,"click"],["matTooltip","Mute your cam",4,"ngIf"],["color","warn","matTooltip","Unmute your cam",4,"ngIf"],["matTooltip","Mute your cam"],["color","warn","matTooltip","Unmute your cam"],["mat-icon-button","","id","navScreenButton",3,"click"],["matTooltip","Screen share","color","warn"],["mat-icon-button","",3,"click"],["matTooltip","Stop sharing"],["matTooltip","Fullscreen"],["mat-icon-button","","id","navLeaveButton",3,"click"],["color","warn","matTooltip","Leave the session"],["mat-icon-button","","id","navChatButton",3,"click"],["matBadgePosition","above before","matTooltip","Chat","matBadgeColor","accent",3,"matBadge","matBadgeHidden"]],template:function(t,e){1&t&&(Fa(0,"mat-toolbar",0),Fa(1,"div",1),Fa(2,"a"),Ra(3,yT,1,0,"img",2),Ra(4,bT,1,0,"img",3),Ba(),Ra(5,_T,3,3,"div",4),Ba(),Fa(6,"div",5),Ra(7,CT,3,2,"button",6),Ra(8,kT,3,2,"button",7),Ra(9,OT,3,0,"button",8),Ra(10,TT,3,0,"button",9),Ra(11,IT,3,1,"button",9),Ra(12,AT,3,0,"button",10),Ra(13,PT,3,2,"button",11),Ba(),Ba()),2&t&&(ps("headerLight",e.lightTheme),xr(3),ja("ngIf",!e.lightTheme),xr(1),ja("ngIf",e.lightTheme),xr(1),ja("ngIf",!e.compact&&e.mySessionId),xr(2),ja("ngIf",!e.ovSettings||e.ovSettings&&e.ovSettings.toolbarButtons.audio),xr(1),ja("ngIf",!e.ovSettings||e.ovSettings&&e.ovSettings.toolbarButtons.video),xr(1),ja("ngIf",e.localUser&&!e.localUser.isScreenShareActive()&&(!e.ovSettings||e.ovSettings&&e.ovSettings.toolbarButtons.screenShare)),xr(1),ja("ngIf",e.localUser&&e.localUser.isScreenShareActive()),xr(1),ja("ngIf",e.localUser&&(!e.ovSettings||e.ovSettings&&e.ovSettings.toolbarButtons.fullscreen)),xr(1),ja("ngIf",!e.ovSettings||e.ovSettings&&e.ovSettings.toolbarButtons.exit),xr(1),ja("ngIf",!e.ovSettings||e.ovSettings&&e.ovSettings.chat))},directives:[wS,jl,Rv,aw,US,Tv],styles:["#header[_ngcontent-%COMP%]{color:#fff;height:40px;background-color:#333;padding:0 14px 0 0;position:absolute;top:0;left:0;z-index:999999;min-width:400px!important}.headerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}#navSessionInfo[_ngcontent-%COMP%]{height:100%;display:inline-flex}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-17px}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-6px}.mat-icon-button[disabled][_ngcontent-%COMP%]{color:#fff}#navButtons[_ngcontent-%COMP%]{position:absolute;left:0;right:0;min-width:400px}#navChatButton[_ngcontent-%COMP%]{position:absolute;right:10px;top:none}#titleContent[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;max-width:100px;background-color:#494949;margin:5px -18px;padding:0 15px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.titleContentLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important;color:#000}#header_img[_ngcontent-%COMP%]{max-width:135px;margin-right:10px;margin-top:-3px}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:50%;background-color:#ffa600;border:1px solid #000;z-index:99999}.pointLight[_ngcontent-%COMP%]{border:1px solid #fff!important}"]}),t}(),RT=["videoReference"],NT=["nicknameInput"];function DT(t,e){if(1&t){var n=Wa();Fa(0,"app-toolbar",12),Za("camButtonClicked",(function(){return qe(n),Ja().toggleCam()}))("micButtonClicked",(function(){return qe(n),Ja().toggleMic()}))("exitButtonClicked",(function(){return qe(n),Ja().exitSession()}))("chatButtonClicked",(function(){return qe(n),Ja().toggleChat()}))("screenShareClicked",(function(){return qe(n),Ja().screenShare()}))("stopScreenSharingClicked",(function(){return qe(n),Ja().stopScreenSharing()})),Ba()}if(2&t){var i=Ja();ja("lightTheme",i.lightTheme)("newMessagesNum",i.newMessagesNum)("mySessionId",i.localUser.getStreamManager().stream.session.sessionId)("localUser",i.localUser)("compact",i.compact)}}function LT(t,e){1&t&&(Fa(0,"span"),Cs(1,"_SCREEN"),Ba())}function jT(t,e){1&t&&(Fa(0,"span"),Cs(1," (edit)"),Ba())}function VT(t,e){if(1&t){var n=Wa();Fa(0,"mat-chip",13),Za("click",(function(){return qe(n),Ja().toggleNicknameForm()})),Fa(1,"span",14),Cs(2),Ba(),Ra(3,LT,2,0,"span",15),Ra(4,jT,2,0,"span",15),Ba()}if(2&t){var i=Ja();ja("color",i.canEditNickname?"accent":"primary"),xr(2),Es(i.user.getNickname()),xr(1),ja("ngIf",i.user.isScreen()),xr(1),ja("ngIf",i.canEditNickname)}}function FT(t,e){1&t&&(Fa(0,"mat-error"),Cs(1," Nickname is "),Fa(2,"strong"),Cs(3,"required"),Ba(),Ba())}function BT(t,e){1&t&&(Fa(0,"mat-error"),Cs(1," Nickname is "),Fa(2,"strong"),Cs(3,"too long!"),Ba(),Ba())}function UT(t,e){if(1&t){var n=Wa();Fa(0,"div",16),Fa(1,"button",17),Za("click",(function(){return qe(n),Ja().toggleNicknameForm()})),Fa(2,"mat-icon",18),Cs(3,"highlight_off"),Ba(),Ba(),Fa(4,"form",19),Fa(5,"mat-form-field",20),Fa(6,"input",21,22),Za("keypress",(function(t){return qe(n),Ja().eventKeyPress(t)})),Ba(),Ra(8,FT,4,0,"mat-error",15),Ra(9,BT,4,0,"mat-error",15),Ba(),Ba(),Ba()}if(2&t){var i=Ja();ps("fullscreen",i.isFullscreen),xr(6),is("placeholder","Nick: ",i.user.getNickname(),""),ja("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),xr(2),ja("ngIf",i.nicknameFormControl.hasError("required")),xr(1),ja("ngIf",i.nicknameFormControl.hasError("maxlength"))}}function zT(t,e){1&t&&(Fa(0,"div",23),Fa(1,"mat-icon"),Cs(2,"mic_off"),Ba(),Ba())}function HT(t,e){1&t&&(Fa(0,"div",24),Fa(1,"mat-icon"),Cs(2,"videocam_off"),Ba(),Ba())}function WT(t,e){1&t&&(Fa(0,"mat-icon",28),Cs(1,"volume_up"),Ba())}function GT(t,e){1&t&&(Fa(0,"mat-icon",29),Cs(1,"volume_off"),Ba())}function qT(t,e){if(1&t){var n=Wa();Fa(0,"button",25),Za("click",(function(){return qe(n),Ja().toggleSound()})),Ra(1,WT,2,0,"mat-icon",26),Ra(2,GT,2,0,"mat-icon",27),Ba()}if(2&t){var i=Ja();xr(1),ja("ngIf",!i.mutedSound),xr(1),ja("ngIf",i.mutedSound)}}function ZT(t,e){if(1&t){var n=Wa();Fa(0,"button",30),Za("click",(function(){return qe(n),Ja().screenShare()})),Fa(1,"mat-icon",31),Cs(2,"picture_in_picture"),Ba(),Ba()}}var YT=function(){function t(t){this.apiSrv=t,this.fullscreenIcon="fullscreen",this.nicknameClicked=new Hc,this.micButtonClicked=new Hc,this.camButtonClicked=new Hc,this.screenShareClicked=new Hc,this.stopScreenSharingClicked=new Hc,this.exitButtonClicked=new Hc,this.chatButtonClicked=new Hc}return t.prototype.sizeChange=function(t){var e=window.screen.height,n=window.screen.width,i=window.innerHeight;n!==window.innerWidth&&e!==i&&(this.isFullscreen=!1,this.fullscreenIcon="fullscreen")},t.prototype.ngOnInit=function(){this.nicknameFormControl=new Np(this.user.getNickname(),[Qd.maxLength(25),Qd.required]),this.matcher=new bk},t.prototype.toggleFullscreen=function(){"fullscreen"===this.apiSrv.toggleFullscreen("container-"+this.user.getStreamManager().stream.streamId)?(this.isFullscreen=!0,this.fullscreenIcon="fullscreen_exit",this.chatOpened&&this.chatButtonClicked.emit()):(this.isFullscreen=!1,this.fullscreenIcon="fullscreen")},t.prototype.toggleSound=function(){this.mutedSound=!this.mutedSound},t.prototype.toggleNicknameForm=function(){var t=this;this.canEditNickname&&(this.toggleNickname=!this.toggleNickname,setTimeout((function(){t.nicknameInput.nativeElement&&t.nicknameInput.nativeElement.focus()})))},t.prototype.eventKeyPress=function(t){t&&13===t.keyCode&&this.nicknameFormControl.valid&&(this.nicknameClicked.emit(this.nicknameFormControl.value),this.toggleNicknameForm())},t.prototype.toggleMic=function(){this.micButtonClicked.emit()},t.prototype.toggleCam=function(){this.camButtonClicked.emit()},t.prototype.screenShare=function(){this.screenShareClicked.emit()},t.prototype.stopScreenSharing=function(){this.stopScreenSharingClicked.emit()},t.prototype.exitSession=function(){this.exitButtonClicked.emit()},t.prototype.toggleChat=function(){this.toggleFullscreen(),this.chatOpened||this.chatButtonClicked.emit()},t.\u0275fac=function(e){return new(e||t)(Na(yk))},t.\u0275cmp=Ee({type:t,selectors:[["stream-component"]],viewQuery:function(t,e){var n;1&t&&(nu(RT,!0),nu(NT,!0)),2&t&&(tu(n=su())&&(e.htmlVideoElement=n.first),tu(n=su())&&(e.nicknameInput=n.first))},hostBindings:function(t,e){1&t&&Za("resize",(function(t){return e.sizeChange(t)}),!1,Fn)},inputs:{user:"user",localUser:"localUser",lightTheme:"lightTheme",compact:"compact",chatOpened:"chatOpened",newMessagesNum:"newMessagesNum",canEditNickname:"canEditNickname"},outputs:{nicknameClicked:"nicknameClicked",micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",stopScreenSharingClicked:"stopScreenSharingClicked",exitButtonClicked:"exitButtonClicked",chatButtonClicked:"chatButtonClicked"},decls:14,vars:13,consts:[[1,"OT_widget-container",3,"id"],[3,"lightTheme","newMessagesNum","mySessionId","localUser","compact","camButtonClicked","micButtonClicked","exitButtonClicked","chatButtonClicked","screenShareClicked","stopScreenSharingClicked",4,"ngIf"],[1,"nickname"],["selected","",3,"color","click",4,"ngIf"],["id","dialogNickname",3,"fullscreen",4,"ngIf"],[3,"streamManager","mutedSound"],[1,"statusIcons"],["id","statusMic",4,"ngIf"],["id","statusCam",4,"ngIf"],["mat-icon-button","","id","fullscreenButton",1,"streamButtons",3,"click"],["mat-icon-button","","id","volumeButton","class","streamButtons",3,"click",4,"ngIf"],["mat-icon-button","","class","streamButtons","id","changeScreenButton",3,"click",4,"ngIf"],[3,"lightTheme","newMessagesNum","mySessionId","localUser","compact","camButtonClicked","micButtonClicked","exitButtonClicked","chatButtonClicked","screenShareClicked","stopScreenSharingClicked"],["selected","",3,"color","click"],["id","nickname"],[4,"ngIf"],["id","dialogNickname"],["mat-icon-button","","id","closeButton",3,"click"],["matTooltip","Close"],["id","nicknameForm",1,"alternate-theme"],["color","primary"],["matInput","","autocomplete","off",3,"placeholder","formControl","errorStateMatcher","keypress"],["nicknameInput",""],["id","statusMic"],["id","statusCam"],["mat-icon-button","","id","volumeButton",1,"streamButtons",3,"click"],["matTooltip","Mute sound",4,"ngIf"],["color","warn","matTooltip","Unmute sound",4,"ngIf"],["matTooltip","Mute sound"],["color","warn","matTooltip","Unmute sound"],["mat-icon-button","","id","changeScreenButton",1,"streamButtons",3,"click"],["matTooltip","Choose screen"]],template:function(t,e){1&t&&(Fa(0,"div",0),Ra(1,DT,1,5,"app-toolbar",1),Fa(2,"mat-chip-list",2),Ra(3,VT,5,4,"mat-chip",3),Ra(4,UT,10,7,"div",4),Ba(),Ua(5,"ov-video",5),Fa(6,"div",6),Ra(7,zT,3,0,"div",7),Ra(8,HT,3,0,"div",8),Ba(),Fa(9,"button",9),Za("click",(function(){return e.toggleFullscreen()})),Fa(10,"mat-icon"),Cs(11),Ba(),Ba(),Ra(12,qT,3,2,"button",10),Ra(13,ZT,3,0,"button",11),Ba()),2&t&&(ja("id","container-"+e.user.getStreamManager().stream.streamId),xr(1),ja("ngIf",e.isFullscreen),xr(1),ps("fullscreen",e.isFullscreen),xr(1),ja("ngIf",!e.toggleNickname),xr(1),ja("ngIf",e.toggleNickname&&e.canEditNickname),xr(1),ja("streamManager",e.user.getStreamManager())("mutedSound",e.mutedSound),xr(2),ja("ngIf",!e.user.isAudioActive()),xr(1),ja("ngIf",!e.user.isVideoActive()),xr(3),Es(e.fullscreenIcon),xr(1),ja("ngIf",e.user.isRemote()),xr(1),ja("ngIf",e.user.isRemote()&&e.canEditNickname))},directives:[jl,jy,ZO,Rv,aw,MT,Py,US,Zp,Wd,Fp,xy,fw,jd,Hd,Kp,py],styles:[".nickname[_ngcontent-%COMP%]{padding:5px!important;position:absolute;z-index:999;border-radius:5px;color:#313131;font-family:Ubuntu,sans-serif}#dialogNickname[_ngcontent-%COMP%]{background-color:hsla(0,0%,100%,.98);border-radius:8px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{padding:8px}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{border-radius:50%;background:#c71100;margin:5px 0}.streamButtons[_ngcontent-%COMP%]{position:absolute;z-index:1000;background-color:rgba(0,0,0,.77);right:1px}#fullscreenButton[_ngcontent-%COMP%]{bottom:1px}#volumeButton[_ngcontent-%COMP%]{bottom:45px}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden} .mat-form-field-appearance-legacy .mat-form-field-label{color:#696969} .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:#444!important} .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#696969!important}"]}),t}(),QT=["chatComponent"],KT=["sidenav"];function XT(t,e){if(1&t){var n=Wa();Fa(0,"app-dialog-choose-room",4),Za("join",(function(t){return qe(n),Ja(2).toggleDialogChooseRoom(t)}))("leaveSession",(function(){return qe(n),Ja(2).exitSession()})),Ba()}if(2&t){var i=Ja(2);ja("userNickname",i.user)("sessionName",i.sessionName)("ovSettings",i.ovSettings)}}function JT(t,e){if(1&t){var n=Wa();Fa(0,"app-dialog-extension",13),Za("cancel",(function(){return qe(n),Ja(3).toggleDialogExtension()})),Ba()}2&t&&ja("nickname",Ja(3).localUsers[0].getNickname())}function $T(t,e){if(1&t){var n=Wa();Fa(0,"mat-sidenav",14,15),Fa(2,"chat-component",16,17),Za("closeChat",(function(){return qe(n),Ja(3).toggleChat()})),Ba(),Ba()}if(2&t){var i=Ja(3);ps("boundsLight",i.lightTheme),ns("mode",i.sidenavMode),xr(2),ja("session",i.session)("sessionScreen",i.sessionScreen)("user",i.localUsers[0])("chatOpened",i.chatOpened)("lightTheme",i.lightTheme)("messageList",i.messageList)}}function tI(t,e){if(1&t){var n=Wa();Fa(0,"stream-component",20,21),Za("nicknameClicked",(function(t){return qe(n),Ja(4).nicknameChanged(t)}))("camButtonClicked",(function(){return qe(n),Ja(4).toggleCam()}))("micButtonClicked",(function(){return qe(n),Ja(4).toggleMic()}))("exitButtonClicked",(function(){return qe(n),Ja(4).exitSession()}))("chatButtonClicked",(function(){return qe(n),Ja(4).toggleChat()}))("screenShareClicked",(function(){return qe(n),Ja(4).screenShareAndChangeScreen()}))("stopScreenSharingClicked",(function(){return qe(n),Ja(4).stopScreenSharing()})),Ba()}if(2&t){var i=Ja().$implicit,r=Ja(3);ja("user",i)("localUser",r.localUsers[0])("lightTheme",r.lightTheme)("newMessagesNum",r.newMessages)("compact",r.compact)("chatOpened",r.chatOpened)("canEditNickname",!0)}}function eI(t,e){if(1&t){var n=Wa();Fa(0,"div",18),Za("dblclick",(function(t){return qe(n),Ja(3).enlargeElement(t)})),Ra(1,tI,2,7,"stream-component",19),Ba()}if(2&t){var i=e.$implicit;xr(1),ja("ngIf",i.getStreamManager())}}function nI(t,e){if(1&t){var n=Wa();Fa(0,"div",22),Za("dblclick",(function(t){return qe(n),Ja(3).enlargeElement(t)})),Fa(1,"stream-component",23,21),Za("camButtonClicked",(function(){return qe(n),Ja(3).toggleCam()}))("micButtonClicked",(function(){return qe(n),Ja(3).toggleMic()}))("exitButtonClicked",(function(){return qe(n),Ja(3).exitSession()}))("chatButtonClicked",(function(){return qe(n),Ja(3).toggleChat()}))("screenShareClicked",(function(){return qe(n),Ja(3).screenShareAndChangeScreen()}))("stopScreenSharingClicked",(function(){return qe(n),Ja(3).stopScreenSharing()})),Ba(),Ba()}if(2&t){var i=e.$implicit,r=Ja(3);xr(1),ja("user",i)("localUser",r.localUsers[0])("lightTheme",r.lightTheme)("newMessagesNum",r.newMessages)("compact",r.compact)("chatOpened",r.chatOpened)("canEditNickname",!1)}}function iI(t,e){if(1&t){var n=Wa();Fa(0,"div"),Fa(1,"app-toolbar",5),Za("camButtonClicked",(function(){return qe(n),Ja(2).toggleCam()}))("micButtonClicked",(function(){return qe(n),Ja(2).toggleMic()}))("screenShareClicked",(function(){return qe(n),Ja(2).screenShareAndChangeScreen()}))("stopScreenSharingClicked",(function(){return qe(n),Ja(2).stopScreenSharing()}))("exitButtonClicked",(function(){return qe(n),Ja(2).exitSession()}))("chatButtonClicked",(function(){return qe(n),Ja(2).toggleChat()})),Ba(),Ra(2,JT,1,1,"app-dialog-extension",6),Fa(3,"mat-sidenav-container",7),Ra(4,$T,4,9,"mat-sidenav",8),Fa(5,"mat-sidenav-content",9),Fa(6,"div",10),Ra(7,eI,2,1,"div",11),Ra(8,nI,3,7,"div",12),Ba(),Ba(),Ba(),Ba()}if(2&t){var i=Ja(2);xr(1),ja("lightTheme",i.lightTheme)("newMessagesNum",i.newMessages)("compact",i.compact)("localUser",i.localUsers[0])("mySessionId",i.mySessionId)("ovSettings",i.ovSettings),xr(1),ja("ngIf",i.showDialogExtension),xr(1),ps("boundsLight",i.lightTheme),xr(1),ja("ngIf",i.localUsers&&i.localUsers[0].getStreamManager()&&(!i.ovSettings||i.ovSettings&&i.ovSettings.chat)),xr(2),ps("boundsLight",i.lightTheme),xr(1),ja("ngForOf",i.localUsers),xr(1),ja("ngForOf",i.remoteUsers)}}function rI(t,e){if(1&t&&(Fa(0,"div",1),Ra(1,XT,1,3,"app-dialog-choose-room",2),Ra(2,iI,9,14,"div",3),Ba()),2&t){var n=Ja();ps("boundsLight",n.lightTheme),xr(1),ja("ngIf",n.showDialogChooseRoom),xr(1),ja("ngIf",n.localUsers&&n.localUsers[0])}}var oI=function(){function t(t,e,n,i){this.openViduSrv=t,this.router=e,this.dialog=n,this.apiSrv=i,this.joinSession=new Hc,this.leaveSession=new Hc,this.error=new Hc,this.BIG_ELEMENT_CLASS="OV_big",this.SCREEN_TYPE="screen",this.REMOTE_TYPE="remote",this.compact=!1,this.sidenavMode="side",this.showDialogExtension=!1,this.showDialogChooseRoom=!0,this.localUsers=[],this.remoteUsers=[],this.messageList=[],this.newMessages=0}return t.prototype.beforeunloadHandler=function(){this.exitSession()},t.prototype.sizeChange=function(){this.openviduLayout&&(this.openviduLayout.updateLayout(),this.checkSizeComponent())},t.prototype.ngOnInit=function(){var t=this;this.checkTheme(),this.openViduSrv.getOvSettingsData().then((function(e){t.ovSettings=t.ovSettings?t.ovSettings:e})).catch((function(t){return console.error(t)}))},t.prototype.ngOnDestroy=function(){this.exitSession()},t.prototype.initApp=function(){var t=this;setTimeout((function(){t.openviduLayout=new ek,t.openviduLayoutOptions=t.apiSrv.getOpenviduLayoutOptions(),t.openviduLayout.initLayoutContainer(document.getElementById("layout"),t.openviduLayoutOptions),t.checkSizeComponent(),t.joinToSession()}),50)},t.prototype.toggleChat=function(){var t=this;this.chat.toggle().then((function(){t.chatOpened=t.chat.opened,t.chatOpened&&(t.newMessages=0),setTimeout((function(){return t.openviduLayout.updateLayout()}),t.isWebComponent?300:0)}))},t.prototype.checkNotification=function(){this.newMessages=this.chatOpened?0:this.newMessages+1},t.prototype.joinToSession=function(){this.OV=new $x.OpenVidu,this.OVScreen=new $x.OpenVidu,this.session=this.OV.initSession(),this.sessionScreen=this.OVScreen.initSession(),this.subscribeToUserChanged(),this.subscribeToStreamCreated(),this.subscribedToStreamDestroyed(),this.subscribedToChat(),this.connectToSession()},t.prototype.exitSession=function(){this.sessionScreen&&this.sessionScreen.disconnect(),this.session&&this.session.disconnect(),this.OV=null,this.OVScreen=null,this.session=null,this.sessionScreen=null,this.userCamDeleted=null,this.localUsers=[],this.remoteUsers=[],this.openviduLayout=null,this.router.navigate([""]),this.leaveSession.emit()},t.prototype.nicknameChanged=function(t){var e=this;this.localUsers.forEach((function(n){n.setNickname(t),e.sendSignalUserChanged(n)}))},t.prototype.toggleMic=function(){this.localUsers[0].setAudioActive(!this.localUsers[0].isAudioActive()),this.localUsers[0].getStreamManager().publishAudio(this.localUsers[0].isAudioActive()),this.sendSignalUserChanged(this.localUsers[0])},t.prototype.toggleCam=function(){var t=this;2===this.localUsers.length?(console.log("TWO USERS - STOP CAM"),this.stopCamera()):this.localUsers[0].isScreen()?(console.log("USER IS SCREEN - START CAM"),this.userCamDeleted&&(this.localUsers[0].setLocalConnectionId(this.session.connection.connectionId),this.userCamDeleted.setNickname(this.localUsers[0].getNickname()),this.userCamDeleted.getStreamManager()?this.publishCamSession():this.OV.initPublisherAsync(void 0,{publishAudio:this.localUsers[0].isAudioActive(),publishVideo:!0}).then((function(e){t.userCamDeleted.setStreamManager(e),t.publishCamSession()})))):(console.log("USER IS CAM - MUTE / UNMUTE CAM"),this.localUsers[0].setVideoActive(!this.localUsers[0].isVideoActive()),this.localUsers[0].getStreamManager().publishVideo(this.localUsers[0].isVideoActive()),this.sendSignalUserChanged(this.localUsers[0]))},t.prototype.publishCamSession=function(){var t=this,e=this.localUsers[0].isAudioActive();this.setFirstUserAudio(!1),this.localUsers.unshift(this.userCamDeleted),this.localUsers[0].setVideoActive(!0),this.localUsers[0].setAudioActive(e),this.publishSession(this.localUsers[0]).then((function(){t.localUsers[0].getStreamManager().publishVideo(!0),t.localUsers[0].getStreamManager().publishAudio(e),t.sendSignalUserChanged(t.localUsers[0])})).catch((function(t){return console.error(t)}))},t.prototype.startScreenSharing=function(t,e){var n=this;console.log("STARTsCREENsHARING - "),this.getToken().then((function(i){n.sessionScreen.connect(e||i,{clientData:n.localUsers[t].getNickname()}).then((function(){n.localUsers[t].getStreamManager().once("accessAllowed",(function(){n.localUsers[t].setConnectionId(n.sessionScreen.connection.connectionId),n.session.connection&&n.session.connection.connectionId&&n.localUsers[t].setLocalConnectionId(n.session.connection.connectionId),n.publishSession(n.localUsers[t]).then((function(){n.localUsers[0].setScreenShareActive(!0),n.sendSignalUserChanged(n.localUsers[t]),n.localUsers[0].isVideoActive()||n.stopCamera(),n.joinSession.emit(),n.openviduLayout.updateLayout()})).catch((function(t){return console.error(t)}))}))})).catch((function(t){return console.error(t)}))})).catch((function(t){return console.error(t)}))},t.prototype.stopScreenSharing=function(){var t=this;console.log("USERS ARRAY LENGTH",this.localUsers.length),2===this.localUsers.length?(this.sessionScreen.unpublish(this.localUsers.pop().getStreamManager()),this.localUsers[0].setScreenShareActive(!1),this.sendSignalUserChanged(this.localUsers[0])):this.localUsers[0].isScreen()&&(this.sessionScreen.unpublish(this.localUsers[0].getStreamManager()),this.localUsers.shift(),this.localUsers.push(this.userCamDeleted),console.log("Users array ",this.localUsers),this.localUsers[0].setVideoActive(!1),this.localUsers[0].setScreenShareActive(!1),this.session.publish(this.localUsers[0].getStreamManager()).then((function(){t.localUsers[0].getStreamManager().publishVideo(t.localUsers[0].isVideoActive()),t.sendSignalUserChanged(t.localUsers[0])})))},t.prototype.toggleDialogExtension=function(){this.showDialogExtension=!this.showDialogExtension},t.prototype.toggleDialogChooseRoom=function(t){this.showDialogChooseRoom=!1,this.localUsers=t.localUsers,this.mySessionId=t.sessionId,this.initApp()},t.prototype.screenShareAndChangeScreen=function(){var t=this,e=-1!==navigator.userAgent.indexOf("Firefox")?"window":"screen",n=!this.localUsers[0].isLocal();this.OVScreen.initPublisherAsync(void 0,{videoSource:e,publishAudio:n,publishVideo:!0,mirror:!1}).then((function(e){e.once("accessAllowed",(function(){if(t.localUsers[0].isLocal()&&t.localUsers[1]||t.localUsers[0].isScreen()){var n=t.localUsers[0].isLocal()?1:0;t.sessionScreen.unpublish(t.localUsers[n].getStreamManager()),t.localUsers[n].setStreamManager(e),t.sessionScreen.publish(e)}else console.log("STREAM SHARE - ELSE: position 1"),t.localUsers.push(t.createScreenUser(e)),t.startScreenSharing(1)}))})).catch((function(e){e&&"SCREEN_EXTENSION_NOT_INSTALLED"===e.name?t.toggleDialogExtension():t.apiSrv.handlerScreenShareError(e)}))},t.prototype.checkSizeComponent=function(){this.compact=document.getElementById("room-container").offsetWidth<=790,this.sidenavMode=this.compact?"over":"side"},t.prototype.enlargeElement=function(t){var e=(t.path?t.path:t.composedPath()).filter((function(t){return t.className&&t.className.includes("OT_root")}))[0];e.className.includes(this.BIG_ELEMENT_CLASS)?e.classList.remove(this.BIG_ELEMENT_CLASS):e.classList.add(this.BIG_ELEMENT_CLASS),this.openviduLayout.updateLayout()},t.prototype.deleteRemoteStream=function(t){var e=this.remoteUsers.filter((function(e){return e.getStreamManager().stream===t}))[0],n=this.remoteUsers.indexOf(e,0);n>-1&&this.remoteUsers.splice(n,1)},t.prototype.subscribeToStreamCreated=function(){var t=this;this.session.on("streamCreated",(function(e){var n=e.stream.connection.connectionId;if(t.localUsers[0]&&t.localUsers[0].getConnectionId()!==n&&t.localUsers[1]&&t.localUsers[1].getConnectionId()!==n||t.localUsers[0]&&!t.localUsers[1]&&t.localUsers[0].getConnectionId()!==n){var i=t.session.subscribe(e.stream,void 0);i.on("streamPlaying",(function(e){t.checkSomeoneShareScreen(),i.videos[0].video.parentElement.classList.remove("custom-class")}));var r=new nk;r.setStreamManager(i),r.setConnectionId(e.stream.connection.connectionId);var o=e.stream.connection.data.split("%")[0];r.setNickname(JSON.parse(o).clientData),r.setType("SCREEN"===e.stream.typeOfVideo?t.SCREEN_TYPE:t.REMOTE_TYPE),t.remoteUsers.push(r),t.localUsers.forEach((function(e){t.sendSignalUserChanged(e)}))}}))},t.prototype.connectToSession=function(){var t=this;this.localUsers.forEach(this.tokens?function(e,n){e.isLocal()?t.connect(t.tokens[n]):e.isScreen()&&t.startScreenSharing(n)}:function(e,n){e.isScreen()?t.startScreenSharing(n):t.getToken().then((function(e){t.connect(e)})).catch((function(e){t.error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),console.log("There was an error getting the token:",e.code,e.message),t.openDialogError("There was an error getting the token:",e.message)}))}),1===this.localUsers.length&&this.localUsers[0].isScreen()&&this.createCamConnection()},t.prototype.connect=function(t){var e=this;this.session.connect(t,{clientData:this.localUsers[0].getNickname()}).then((function(){e.connectWebCam()})).catch((function(t){e.error.emit({error:t.error,messgae:t.message,code:t.code,status:t.status}),console.log("There was an error connecting to the session:",t.code,t.message),e.openDialogError("There was an error connecting to the session:",t.message)}))},t.prototype.connectWebCam=function(){var t=this;this.localUsers[0].setConnectionId(this.session.connection.connectionId),this.localUsers[0].setLocalConnectionId(this.session.connection.connectionId),this.session.capabilities.publish&&(this.publishSession(this.localUsers[0]).then((function(){t.sendSignalUserChanged(t.localUsers[0]),t.joinSession.emit()})).catch((function(t){return console.error(t)})),this.localUsers[0].getStreamManager().on("streamPlaying",(function(){t.openviduLayout.updateLayout(),t.localUsers[0].getStreamManager().videos[0].video.parentElement.classList.remove("custom-class")})))},t.prototype.subscribeToUserChanged=function(){var t=this;this.session.on("signal:userChanged",(function(e){var n=JSON.parse(e.data);t.remoteUsers.forEach((function(t){t.getConnectionId()===e.from.connectionId&&(void 0!==n.isAudioActive&&t.setAudioActive(n.isAudioActive),void 0!==n.isVideoActive&&t.setVideoActive(n.isVideoActive),void 0!==n.nickname&&t.setNickname(n.nickname),void 0!==n.isScreenShareActive&&t.setScreenShareActive(n.isScreenShareActive),void 0!==n.avatar&&t.setUserAvatar(n.avatar))})),t.checkSomeoneShareScreen()}))},t.prototype.subscribedToStreamDestroyed=function(){var t=this;this.session.on("streamDestroyed",(function(e){t.deleteRemoteStream(e.stream),t.checkSomeoneShareScreen(),e.preventDefault()}))},t.prototype.subscribedToChat=function(){var t=this;this.session.on("signal:chat",(function(e){var n=JSON.parse(e.data),i=t.localUsers[0].getConnectionId()===n.connectionId?t.localUsers[0]:t.remoteUsers.filter((function(t){return t.getConnectionId()===n.connectionId}))[0];t.messageList.push({connectionId:n.connectionId,nickname:n.nickname,message:n.message,userAvatar:i.getAvatar()}),t.checkNotification(),t.chatComponent.scrollToBottom()}))},t.prototype.sendSignalUserChanged=function(t){var e=t.isLocal()?this.session:this.sessionScreen,n={isAudioActive:t.isAudioActive(),isVideoActive:t.isVideoActive(),isScreenShareActive:t.isScreenShareActive(),nickname:t.getNickname(),avatar:t.getAvatar()},i={data:JSON.stringify(n),type:"userChanged"};e.signal(i)},t.prototype.openDialogError=function(t,e){this.dialog.open(tk,{width:"450px",data:{message:t,messageError:e}})},t.prototype.checkSomeoneShareScreen=function(){var t;t=this.remoteUsers.some((function(t){return t.isScreenShareActive()}))||this.localUsers[0].isScreenShareActive(),this.openviduLayoutOptions.fixedRatio=t,this.openviduLayout.setLayoutOptions(this.openviduLayoutOptions),this.openviduLayout.updateLayout()},t.prototype.checkTheme=function(){this.lightTheme="light"===this.theme},t.prototype.removeAndSaveFirstUser=function(){var t=this;setTimeout((function(){t.localUsers[0].setVideoActive(!1),t.userCamDeleted=t.localUsers.shift(),t.setFirstUserAudio(t.userCamDeleted.isAudioActive()),t.openviduLayout.updateLayout()}),200)},t.prototype.setFirstUserAudio=function(t){this.localUsers[0].setAudioActive(t),this.localUsers[0].getStreamManager().publishAudio(t)},t.prototype.stopCamera=function(){console.log("STOP CAMERA"),this.localUsers[0].getStreamManager().publishVideo(!1),this.session.unpublish(this.localUsers[0].getStreamManager()),this.removeAndSaveFirstUser()},t.prototype.createScreenUser=function(t){var e=new nk;return e.setScreenShareActive(!0),e.setType(this.SCREEN_TYPE),e.setStreamManager(t),e.setNickname(this.localUsers[0].getNickname()),e.setUserAvatar(this.localUsers[0].getAvatar()),e.setAudioActive(!1),e},t.prototype.createCamConnection=function(){var t=this;this.getToken().then((function(e){t.session.connect(e,{clientData:t.localUsers[0].getNickname()}).then((function(){var e=new nk,n=t.localUsers[0].isAudioActive();e.setAudioActive(n),e.setUserAvatar(t.localUsers[0].getAvatar()),e.setConnectionId(t.session.connection.connectionId),e.setLocalConnectionId(t.session.connection.connectionId),e.setNickname(t.localUsers[0].getNickname()),e.setScreenShareActive(!0),t.userCamDeleted=e,t.openviduLayout.updateLayout()})).catch((function(t){return console.error(t)}))})).catch((function(t){return console.error(t)}))},t.prototype.getToken=function(){var t=this;return new Promise((function(e,n){t.openViduSrv.getToken(t.mySessionId,t.openviduServerUrl,t.openviduSecret).then((function(t){e(t)})).catch((function(t){return n(t)}))}))},t.prototype.publishSession=function(t){var e=this;return new Promise((function(n,i){(t.isLocal()?e.session:e.sessionScreen).publish(t.getStreamManager()).then((function(){n()})).catch((function(t){return i(t)}))}))},t.\u0275fac=function(e){return new(e||t)(Na(ik),Na(kx),Na(n_),Na(yk))},t.\u0275cmp=Ee({type:t,selectors:[["app-video-room"]],viewQuery:function(t,e){var n;1&t&&(nu(QT,!0),nu(KT,!0)),2&t&&(tu(n=su())&&(e.chatComponent=n.first),tu(n=su())&&(e.chat=n.first))},hostBindings:function(t,e){1&t&&Za("beforeunload",(function(){return e.beforeunloadHandler()}),!1,Fn)("resize",(function(){return e.sizeChange()}),!1,Fn)},inputs:{ovSettings:"ovSettings",sessionName:"sessionName",user:"user",openviduServerUrl:"openviduServerUrl",openviduSecret:"openviduSecret",tokens:"tokens",theme:"theme",isWebComponent:"isWebComponent"},outputs:{joinSession:"joinSession",leaveSession:"leaveSession",error:"error"},decls:1,vars:1,consts:[["id","videoRoomNavBar",3,"boundsLight",4,"ngIf"],["id","videoRoomNavBar"],[3,"userNickname","sessionName","ovSettings","join","leaveSession",4,"ngIf"],[4,"ngIf"],[3,"userNickname","sessionName","ovSettings","join","leaveSession"],[3,"lightTheme","newMessagesNum","compact","localUser","mySessionId","ovSettings","camButtonClicked","micButtonClicked","screenShareClicked","stopScreenSharingClicked","exitButtonClicked","chatButtonClicked"],[3,"nickname","cancel",4,"ngIf"],["id","room-container","fullscreen","",1,"sidenav-container"],["position","end","class","sidenav-chat","fixedInViewport","true","fixedTopGap","40","fixedBottomGap","0",3,"mode","boundsLight",4,"ngIf"],[1,"sidenav-main"],["id","layout",1,"bounds"],["class","OT_root OT_publisher custom-class","id","localUser",3,"dblclick",4,"ngFor","ngForOf"],["class","OT_root OT_publisher custom-class","id","remoteUsers",3,"dblclick",4,"ngFor","ngForOf"],[3,"nickname","cancel"],["position","end","fixedInViewport","true","fixedTopGap","40","fixedBottomGap","0",1,"sidenav-chat",3,"mode"],["sidenav",""],[3,"session","sessionScreen","user","chatOpened","lightTheme","messageList","closeChat"],["chatComponent",""],["id","localUser",1,"OT_root","OT_publisher","custom-class",3,"dblclick"],[3,"user","localUser","lightTheme","newMessagesNum","compact","chatOpened","canEditNickname","nicknameClicked","camButtonClicked","micButtonClicked","exitButtonClicked","chatButtonClicked","screenShareClicked","stopScreenSharingClicked",4,"ngIf"],[3,"user","localUser","lightTheme","newMessagesNum","compact","chatOpened","canEditNickname","nicknameClicked","camButtonClicked","micButtonClicked","exitButtonClicked","chatButtonClicked","screenShareClicked","stopScreenSharingClicked"],["videoStream",""],["id","remoteUsers",1,"OT_root","OT_publisher","custom-class",3,"dblclick"],[3,"user","localUser","lightTheme","newMessagesNum","compact","chatOpened","canEditNickname","camButtonClicked","micButtonClicked","exitButtonClicked","chatButtonClicked","screenShareClicked","stopScreenSharingClicked"]],template:function(t,e){1&t&&Ra(0,rI,3,4,"div",0),2&t&&ja("ngIf",!!e.ovSettings)},directives:[jl,vT,MT,sS,oS,Dl,hO,aS,vk,YT],styles:['#videoRoomNavBar[_ngcontent-%COMP%]{min-width:400px;background-color:#494949;height:100%}.stream-container[_ngcontent-%COMP%]{padding:0}.sidenav-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;min-height:-webkit-fill-available;overflow:hidden}.sidenav-chat[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:400px;border-left:none;position:absolute}.mat-drawer-container[_ngcontent-%COMP%], .sidenav-chat[_ngcontent-%COMP%]{background-color:#494949}.sidenav-main[_ngcontent-%COMP%]{height:100%;overflow:hidden;min-height:-webkit-fill-available;min-height:-moz-available}.bounds[_ngcontent-%COMP%]{background-color:#494949;position:absolute;left:0;right:0;top:40px;bottom:0;min-width:400px!important;width:inherit}.boundsLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important}\n\n.custom-class[_ngcontent-%COMP%]{min-height:0!important}.OT_root[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff;margin:0;padding:0;border:0;font-size:100%;font-family:Ubuntu,sans-serif;vertical-align:baseline}.OT_dialog-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_dialog-centering-child[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_dialog[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;margin-right:auto;margin-left:auto;color:#fff;font-family:Ubuntu,sans-serif;font-size:13px;line-height:1.4}.OT_dialog[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:inherit;box-sizing:inherit}.OT_closeButton[_ngcontent-%COMP%]{color:#999;cursor:pointer;font-size:32px;line-height:36px;position:absolute;right:18px;top:0}.OT_dialog-messages[_ngcontent-%COMP%]{text-align:center}.OT_dialog-messages-main[_ngcontent-%COMP%]{margin-bottom:36px;line-height:36px;font-weight:300;font-size:24px}.OT_dialog-messages-minor[_ngcontent-%COMP%]{margin-bottom:18px;font-size:13px;line-height:18px;color:#a4a4a4}.OT_dialog-messages-minor[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff}.OT_dialog-actions-card[_ngcontent-%COMP%]{display:inline-block}.OT_dialog-button-title[_ngcontent-%COMP%]{margin-bottom:18px;line-height:18px;font-weight:300;text-align:center;font-size:14px;color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active, .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link{color:#02a1de}.OT_dialog-button-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff;font-weight:100;display:block}.OT_dialog-button[_ngcontent-%COMP%]{display:inline-block;margin-bottom:18px;padding:0 1em;background-color:#1ca3dc;text-align:center;cursor:pointer}.OT_dialog-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.OT_dialog-button-large[_ngcontent-%COMP%]{line-height:36px;padding-top:9px;padding-bottom:9px;font-weight:100;font-size:24px}.OT_dialog-button-small[_ngcontent-%COMP%]{line-height:18px;padding-top:9px;padding-bottom:9px;background-color:#444;color:#999;font-size:16px}.OT_dialog-progress-bar[_ngcontent-%COMP%]{display:inline-block;width:100%;margin-top:5px;margin-bottom:41px;border:1px solid #4e4e4e;height:8px}.OT_dialog-progress-bar-fill[_ngcontent-%COMP%]{height:100%;background-color:#29a4da}.OT_dialog-plugin-upgrading[_ngcontent-%COMP%] .OT_dialog-plugin-upgrade-percentage[_ngcontent-%COMP%]{line-height:54px;font-size:48px;font-weight:100}.OT_centered[_ngcontent-%COMP%]{position:fixed;left:50%;top:50%;margin:0}.OT_dialog-hidden[_ngcontent-%COMP%]{display:none}.OT_dialog-button-block[_ngcontent-%COMP%]{display:block}.OT_dialog-no-natural-margin[_ngcontent-%COMP%]{margin-bottom:0}.OT_publisher[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]{position:relative;min-width:48px;min-height:48px}.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;transform-origin:0 0}.OT_publisher.OT_mirrored[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{transform:scaleX(-1);transform-origin:50% 50%}.OT_subscriber_error[_ngcontent-%COMP%]{background-color:#000;color:#fff;text-align:center}.OT_subscriber_error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{padding:20px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{-ms-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;display:block;height:34px;position:absolute}.OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{background:rgba(0,0,0,.4)}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{z-index:1}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{background-color:transparent;color:#fff;font-size:15px;line-height:34px;font-weight:400;padding:0 4px 0 36px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;left:34px;padding:0 4px;color:hsla(0,0%,100%,.8);font-size:15px;line-height:34px;font-weight:400}.OT_micro[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_micro[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;right:auto;width:34px;height:34px}.OT_archiving-light[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:30px;position:absolute;top:14px;left:14px;background-color:#575757;box-shadow:0 0 5px 1px #575757}.OT_archiving-light.OT_active[_ngcontent-%COMP%]{background-color:#970d13;animation:OT_pulse 1.3s ease-in;-moz-animation:OT_pulse 1.3s ease-in;-webkit-animation:OT_pulse 1.3s ease-in;animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@-webkit-keyframes OT_pulse{0%{box-shadow:0 0 0 0 #c70019}30%{box-shadow:0 0 5px 1px #c70019}50%{box-shadow:0 0 5px 1px #c70019}80%{box-shadow:0 0 0 0 #c70019}to{box-shadow:0 0 0 0 #c70019}}.OT_bar.OT_mode-mini[_ngcontent-%COMP%], .OT_bar.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{bottom:0;height:auto}.OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-off[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_name.OT_mode-auto[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{left:10px;right:37px;height:34px;padding-left:0}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{border:none;cursor:pointer;display:block;position:absolute;text-align:center;text-indent:-9999em;background-color:transparent;background-repeat:no-repeat;right:0;top:0;border-left:1px solid hsla(0,0%,100%,.2);height:36px;width:37px}.OT_mini[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_publisher.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%]{top:50%;left:50%;right:auto;margin-top:-18px;margin-left:-18.5px;border-left:none}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAcCAMAAAC02HQrAAAA1VBMVEUAAAD3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj39/j3+Pj3+Pn4+Pk/JRMlAAAAQ3RSTlMABAUHCQoLDhAQERwdHiAjLjAxOD9ASFBRVl1mbnZ6fH2LjI+QkaWqrrC1uLzAwcXJycrL1NXj5Ofo6u3w9fr7/P3+d4M3+QAAAQBJREFUGBlVwYdCglAABdCLlr5Unijm3hMUtBzlBLSr//9JgUToOQgVJgceJgU8aHgMeA38K50ZOpcQmTPwcyXn+JM8M3JJIqQypiIkeXelTyIkGZPwKS1NMia1lgKTVkaE3oQQGYsmHNqSMWnTgUFbMiZtGlD2dpaxrL1XgM0i4ZK8MeAmFhsAs29MGZniawagS63oMOQUNXYB5D0D1RMDpyoMLw/fiE2og/V+PVDR5AiBl0/2Uwik+vx4xV3a5G5Ye68Nd1czjUjZckm6VhmPciRzeCZICjwTJAViQq+3e+St167rAoHK8sLYZVkBYPCZAZ/eGa+2R5LH7Wrc0YFf/O9J3yBDFaoAAAAASUVORK5CYII=);background-position:9px 5px}.OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAADcElEQVRIiaWVXWhcRRTHf7NNd2aDtUKMIjTpg4ufFIuiUOmDEWm0Vi3VYhXRqIggQh4sWJFSig9+oOhTKSpIRUWMIBIr2kptoTbgU6ooxCiIjR+14kcJmf9sNceHnd3ebnc3Uv9wuXfOzPzmnDMz5zozGwdWAbc65w5RUJQ8cC2wDJgFJioh/MJCMrNxq2vOzK4HmIvRRemxKP0RJWt53o7S+d2Yzsx6gQ+AIUDAnUqpBLzXZd4RYFUlhB/bdZacc3PAOmAcCMC7wfvFwLNdoAPAyx09bXyYWRl4E7gDmAdGlNKFwLYu8GolhO9O87RJd64GbMrgEvB68P4osMWdXLtVV7czlooNpVRWSs8DO7NpR/B+3rBHsvetCgtCMTxwQCm9BbyQrc8F7/uBex3uRCeXO0PrUZ4NfKyUPgWeyj3bg/crDNsIRGwBaJQGorQ3Svdn2wHgc2BUKb0DPJHtjwfvbwRucc7tz+N+i9LFUdoXpfVN36I0CVwBTFI/q9e1LPxT8P4qYEdu70q12mYzWw1MYQzjeJF6zq+shHC4B7jklOBPP/TzSunh4P0DwKvAfb5c9krpe+CcwsEoZdbhEvBM9wxRAl5RShcA9wAngE3B+8tLpdLuwrhp4MNmK0pfRWkySr7NXS8+L5nZbWZWy/Vin1IaitJnUTqvwevJ71lgSSWEFKUfHG7Q2m/xqFJaGry/GXgfGPLl8mJgrXPur2JoUC8Qy3OpG+sAbGhEKT0ErAWOA6uBPWbW1wr9BOgFbgKezot0kAPYqJQA1gC/A9cA+82svzksSn1R+jNKX0SpnM/e1x3yqig92JhrZivM7FjO8bSZLSuCR/Ok16K0KMNHojQWpYko7Y7S1igN5PE3ROl4lNaZ2UVmNpPBU01orvZvZPCeKFXbBR+lEKVtUapFaSZKg9njqpl9aWYTrmXCImA7sCWb9lK/jj9TrwkrgA1AH3AQuKsSwkzbrLfxpgpsBtYDxf/R3xm2ExirhNCuHHZXTsmRwiat+S/zSt06eysVA/4pmGr/G3qm6ik28v29FKgCg8BS6pvS0KNRGgZ+Bb4FpsxsOkfUlMuwDcBWYOUZOHYM2AU8WQmhBifDv70O7PjX7KZ+4G7g3FM8zd6uBIaBy4AqxnIcZwFLCovPAhE4Sj38b4BDwEeVEFKD9S94Khjn486v3QAAAABJRU5ErkJggg==);background-position:9px 4px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAABx0lEQVQ4jaWUv48NURiGn3ONmCs32ZBd28ht1gqyZAkF21ylQkEiSp2ehpDlD1BoFGqqVdJohYKI7MaPxMoVNghCWMF+7ybLUewnOXfcMWO9yeQ857zne8+XmZOBGjJpr0kvTIomvTZpS526UCO4DUwD64FjwCFgqZnnR+oc8LfgzKQ73vGsr42ZtGjSQFV9o8KfBCacZwCaef4YmAf2rzjcpN3A2WSpm/AssKcqPDNpDBjs410CViXzTwk/A7b1C4wxDgOngAsZcAXY2buDfp/6S4F3lDS8DjgBzDWAjX/Y/e/QgYS/AhsKHa+OMQ6GEJ4Cj4BOAxgq6aCowyZtdf4OtAr+FHDO+R4wWnVbihr3cQnICt4boO38GWj9a/icjwOACt4m4K3zEPA+AxaAtTWCnwN3lzHkEL8V/OPAGud9wK2GF9XR1Wae/1zG2AI+pGYI4VUIoRtjHAc2A9cz4LRPevYCZ+i9/4sJt4GXJU10gaPAzdI2TTro/5Tfz8XEe2LSZGmxq/SDNvP8BnA5WRrx4BwYBe6vONx1EnjovGvBLAAd4Adwuyq8UiaNmDTvr+a8SQ9MuvbfwckBHZPe+QEfTdpep+4XZmPBHiHgz74AAAAASUVORK5CYII=);background-position:8px 7px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAACtklEQVQ4jZ2VSYiURxTHf+/T9Nc9iRrBuYySmIsXUU9iFMEFERRBvAjJLUQi5ioiHvSScfTmgqC4XAT1ZIgLuJHkICaaQAgKI2hAUBT30bjUq7bbv4eukXK029F3+eqtv/fqK6qQdEnSNUmT6CDB/bvgfjO4N9zj2RD8007xg1IABkwEzkma0qb4PGAPMBZYLtSD8eNwAEjqTlNI0gNJM4YU7w7ut4O7gvuhZFsR3C8NC5BBLiTIY0mzM8AvqbiC++pk+zLpE95XuwAws3vAQuBPYDRwWtL84P4tsDSLv5oaug4EYOawAMF9jMdoLxqNZcDvQA04UVYqL4G/svj7AF21mhJscrvCksYBFO7xc2AAGGg2mrdjvf4rcAyomNn+slLZmUEGBgsYdh945xZJmgvckDSrEJpK6ySBgV6q12O8ABwGPjGzfWWlsjdN9rpjoSfA+DYDXARGAksK4Is3XC1Ub4z1f4CDQGFmu6tleQSYk0U+p7WVeefLJc00s4fAeWB6Qeunvj0m2ugx9gO7kmlrtSxvBfcy6fXUZS6rgG/S+jLQUwCVNmMC9HqM14EtSe+rluWazN8YEv8IqKZ1E1qnaIDO0ucx3gX6kv6TpM3AM+D/IbGjgP60/gq4WQA33gMA2OQxPgHWJX1ttSwL4FAeZGYLgB2SasBs4A8L7qOBf9M0uXQB3a+TMYSmVctyDrA9mfcBK82smSdKWgCcAaa1bTm4fxbc/8uuCQX3RanAD5Ka6Wo5IGnE0HxJPZ03pQX5Org3MsD3AO5xXLPZXJ9BjkrqdFg6QjZkgG3Jtsw93pG0VFI9QU5K6voYQBHcTydAfwheBI9HgvvPAJIWS3qeIL9JGvUxkO7gfi1BrqTvwkG/pPmSnibIqTzXPgAyEVgBjAEu1qrVPbk/PVTHgb/NbPGg/RVIzOQqzSTBaQAAAABJRU5ErkJggg==);background-position:7px 7px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{top:-25px;opacity:0}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%]{top:auto;bottom:-25px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%]{top:0;opacity:1}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_mute.OT_mode-mini[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%]{top:auto;bottom:0;opacity:1}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;background-color:rgba(0,0,0,.75)}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%] .OT_video-loading-spinner[_ngcontent-%COMP%]{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAtMjAgMjQwIDI0MCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMCIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjA4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSIxIiB4Mj0iMCIgeTE9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjE2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgyPSIwIiB5MT0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii4xNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMzMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDI9IjEiIHkxPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii42NiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwMTAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNiKSIgZD0iTTg2LjYgNTBBMTAwIDEwMCAwIDAxMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2MpIiBkPSJNMCAxMDBhMTAwIDEwMCAwIDAxLTg2LjYtNTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2QpIiBkPSJNLTg2LjYgNTBhMTAwIDEwMCAwIDAxMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2UpIiBkPSJNLTg2LjYtNTBBMTAwIDEwMCAwIDAxMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAxODYuNiA1MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48L2c+PC9tYXNrPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4PSItMjAiIHk9Ii0yMCIgbWFzaz0idXJsKCNnKSIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;-webkit-animation:OT_spin 2s linear infinite;animation:OT_spin 2s linear infinite}@-webkit-keyframes OT_spin{to{-webkit-transform:rotate(1turn)}}@keyframes OT_spin{to{transform:rotate(1turn)}}.OT_publisher.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%], .OT_subscriber.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{display:block}.OT_video-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_video-container[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_video-poster[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;opacity:.25;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDcxIDQ2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSI2Ni42NiUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc5IDMwOGMxNC4yNS02LjUgNTQuMjUtMTkuNzUgNzEtMjkgOS0zLjI1IDI1LTIxIDI1LTIxczMuNzUtMTMgMy0yMmMtMS43NS02Ljc1LTE1LTQzLTE1LTQzLTIuNSAzLTQuNzQxIDMuMjU5LTcgMS0zLjI1LTcuNS0yMC41LTQ0LjUtMTYtNTcgMS4yNS03LjUgMTAtNiAxMC02LTExLjI1LTMzLjc1LTgtNjctOC02N3MuMDczLTcuMzQ2IDYtMTVjLTMuNDguNjM3LTkgNC05IDQgMi41NjMtMTEuNzI3IDE1LTIxIDE1LTIxIC4xNDgtLjMxMi0xLjMyMS0xLjQ1NC0xMCAxIDEuNS0yLjc4IDE2LjY3NS04LjY1NCAzMC0xMSAzLjc4Ny05LjM2MSAxMi43ODItMTcuMzk4IDIyLTIyLTIuMzY1IDMuMTMzLTMgNi0zIDZzMTUuNjQ3LTguMDg4IDQxLTZjLTE5Ljc1IDItMjQgNi0yNCA2czc0LjUtMTAuNzUgMTA0IDM3YzcuNSA5LjUgMjQuNzUgNTUuNzUgMTAgODkgMy43NS0xLjUgNC41LTQuNSA5IDEgLjI1IDE0Ljc1LTExLjUgNjMtMTkgNjItMi43NSAxLTQtMy00LTMtMTAuNzUgMjkuNS0xNCAzOC0xNCAzOC0yIDQuMjUtMy43NSAxOC41LTEgMjIgMS4yNSA0LjUgMjMgMjMgMjMgMjNsMTI3IDUzYzM3IDM1IDIzIDEzNSAyMyAxMzVMMCA0NjRzLTMtOTYuNzUgMTQtMTIwYzUuMjUtNi4yNSAyMS43NS0xOS43NSA2NS0zNnoiLz48L3N2Zz4=);background-size:auto 76%}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover}@media only screen and (orientation:portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:contain!important;object-fit:contain!important}}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:bottom}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:50%}.OT_audio-level-meter[_ngcontent-%COMP%]{position:absolute;width:25%;max-width:224px;min-width:21px;top:0;right:0;overflow:hidden}.OT_audio-level-meter[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__bar[_ngcontent-%COMP%]{position:absolute;width:192%;height:192%;top:-96%;right:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]{position:absolute;top:22%;right:15%;width:40%;opacity:.7;background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTkuNzU3IDQwLjkyNGMzLjczOC01LjE5MSAxMi43MTEtNC4zMDggMTIuNzExLTQuMzA4IDIuMjIzIDMuMDE0IDUuMTI2IDI0LjU4NiAzLjYyNCAyOC43MTgtMS40MDEgMS4zMDEtMTEuNjExIDEuNjI5LTEzLjM4LTEuNDM2LTEuMjI2LTguODA0LTIuOTU1LTIyLjk3NS0yLjk1NS0yMi45NzV6bTU4Ljc4NSAwYy0zLjczNy01LjE5MS0xMi43MTEtNC4zMDgtMTIuNzExLTQuMzA4LTIuMjIzIDMuMDE0LTUuMTI2IDI0LjU4Ni0zLjYyNCAyOC43MTggMS40MDEgMS4zMDEgMTEuNjExIDEuNjI5IDEzLjM4LTEuNDM2IDEuMjI2LTguODA0IDIuOTU1LTIyLjk3NSAyLjk1NS0yMi45NzV6Ii8+PHBhdGggZD0iTTY4LjY0NyA1OC42Yy43MjktNC43NTMgMi4zOC05LjU2MSAyLjM4LTE0LjgwNCAwLTIxLjQxMi0xNC4xMTUtMzguNzctMzEuNTI4LTM4Ljc3LTE3LjQxMiAwLTMxLjUyNyAxNy4zNTgtMzEuNTI3IDM4Ljc3IDAgNC41NDEuNTE1IDguOTM2IDEuODAyIDEyLjk1IDEuNjk4IDUuMjk1LTUuNTQyIDYuOTkxLTYuNjE2IDIuMDczQzIuNDEgNTUuMzk0IDAgNTEuNzg3IDAgNDguMTAzIDAgMjEuNTM2IDE3LjY4NSAwIDM5LjUgMCA2MS4zMTYgMCA3OSAyMS41MzYgNzkgNDguMTAzYzAgLjcxOC0yLjg5OSA5LjY5My0zLjI5MiAxMS40MDgtLjc1NCAzLjI5My03Ljc1MSAzLjU4OS03LjA2MS0uOTEyeiIvPjxwYXRoIGQ9Ik01LjA4NCA1MS4zODVjLS44MDQtMy43ODIuNTY5LTcuMzM1IDMuMTM0LTcuOTIxIDIuNjM2LS42MDMgNS40ODUgMi4xNSA2LjI4OSA2LjEzMi43OTcgMy45NDgtLjc1MiA3LjQ1Ny0zLjM4OCA3Ljg1OS0yLjU2Ni4zOTEtNS4yMzctMi4zMTgtNi4wMzQtNi4wN3ptNjguODM0IDBjLjgwNC0zLjc4Mi0uNTY4LTcuMzM1LTMuMTMzLTcuOTIxLTIuNjM2LS42MDMtNS40ODUgMi4xNS02LjI4OSA2LjEzMi0uNzk3IDMuOTQ4Ljc1MiA3LjQ1NyAzLjM4OSA3Ljg1OSAyLjU2NS4zOTEgNS4yMzctMi4zMTggNi4wMzQtNi4wN3ptLTIuMDM4IDguMjg4Yy0uOTI2IDE5LjY1OS0xNS4xMTIgMjQuNzU5LTI1Ljg1OSAyMC40NzUtNS40MDUtLjYwNi0zLjAzNCAxLjI2Mi0zLjAzNCAxLjI2MiAxMy42NjEgMy41NjIgMjYuMTY4IDMuNDk3IDMxLjI3My0yMC41NDktLjU4NS00LjUxMS0yLjM3OS0xLjE4Ny0yLjM3OS0xLjE4N3oiLz48cGF0aCBkPSJNNDEuNjYyIDc4LjQyMmw3LjU1My41NWMxLjE5Mi4xMDcgMi4xMiAxLjE1MyAyLjA3MiAyLjMzNWwtLjEwOSAyLjczOGMtLjA0NyAxLjE4Mi0xLjA1MSAyLjA1NC0yLjI0MyAxLjk0NmwtNy41NTMtLjU1Yy0xLjE5MS0uMTA3LTIuMTE5LTEuMTUzLTIuMDcyLTIuMzM1bC4xMDktMi43MzdjLjA0Ny0xLjE4MiAxLjA1Mi0yLjA1NCAyLjI0My0xLjk0N3oiLz48L2c+PC9zdmc+) no-repeat 50%}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__value[_ngcontent-%COMP%]{position:absolute;border-radius:50%;background-image:radial-gradient(circle,#97ce00 0,rgba(151,206,0,0) 100%)}.OT_audio-level-meter.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_audio-level-meter.OT_mode-on[_ngcontent-%COMP%], .OT_audio-only[_ngcontent-%COMP%] .OT_audio-level-meter.OT_mode-auto[_ngcontent-%COMP%]{display:block}.OT_audio-only.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_audio-only.OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:none}.OT_video-disabled-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:100% 100%;pointer-events:none;top:0;left:0;bottom:3px;right:3px}.OT_video-disabled[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAINUlEQVR42u2aaUxUVxTHcRBmAAEBRVTK4sKwDIsg+wCK7CqIw1CN1YobbbS2qYlJ06Qx1UpdqMbYWq2pSzWmH6ytNbXWJY1Lq7VuqBERtW64V0XFLYae0/xvcp3MMAMzDz6IyT/ge2ce5/7ucpY3Ts3NzZ1ygF57AJ0gO0G2jyZPmdbFyclJSAV1EeoEaUUSLGdSV5KLLFxzFmA7QVqGqDqjixhWkxCVeyRVl38wM6bwj6yYItYK47BAuu9B0gCqs6Ng2r494KQtkj/Dz2jHraw6qw2fdSE4rNmcCPCvZONP8iF1I6kdBdMaQJWZLeJqRWa2kPJAxXY+GxE+zxLI03GRh8lGSwoi9WCY8FWlCEh+8JOnT7MfPGjMuXX7Tt61hoaCi/9cKmKdv3BxeEtim/UbNpnbQiqF4MmT7kqrbr4lkMcTo46TTSpJB5g+8NHuVWnWuaampvhmO/7duHmrGluoO4C6OsJZGRrkDIld43ZqUOTnlkDSmXmabAoBU0vqBf+6KgFSxQ9++uzZ8rZApM81TJ8xM5me0Z/UF7PuBmdVdkGEb5gYDeQmyZNW3SJLIP9Kj64lGyMpmxRN6sOfIbkoAhKOdnv2/PmB1kB88eLFo+olyyrps3rSINIAzLonnqlqK8R9w+L86vtrt5L2nhug3Vc3ULu/Liz8AOuXESlZZONH6kmr7gtLIA9lRNeRzVukAvj3BslLnJNKgfScO69K+/Lly0ZbQW7e8tNK+pwBjqaSIjDrXgJkW1ciAZvbQjQ+RDahpBBKd5ZZsqN758hmImk4KQHnpDd8UwSkCyJarx07d4+3BeKJmlMHyX4qaRxpBCmNFE4KENvHDpAutVERn1kCVBMfeRRgYvZnx62wZPdnZkw92VQA5GClQXYRBze2S+iJmpPVVoJLA9l9QKokjcWKTCT1R5rhLg70NuSsziT16diIKkuAjibrTpJNDkn/e17CahtAjlAWJAYkb29Sb1LE9Rs391kILk8mVkyuIpuZcLKUlEmKkra1WuSTNuesEPzwoEploSVAh9Oiz+BIyd9dOHhtx4OEpFpVg6gbNK3yXX1j48N6U5Dz5i/gc/FDrMY3sTLiSMEkXxGxzUEUAGnbxlPaksMlHUXWAlHS8URCPseSohZbCSLjSSU7ixLXdzhIWVKq4Y7t2a/2bN0qGeKly1fYsVmk6RgIDz4J0bonyUOcjeYqm/8hRoYbWkigV2NH9CHAS60EkUkkw47hSRs6FqT1LR5AVcsrueXlK1d5AO+RpmBrZZEiefByytPCanRGNLZY0uF52gNDYr9sCRB8MHY0SJu2OJWKS2WQV65e4y31DmkCImEi0hBfufRime0RIhpbKen0/Ny9OYNW2ghyYytABjNIaxNuKttAWk6HPLn0k0FevdZwFinPWFIuKZbUV16NVko6jbWSDoPO3pOf8K0jQWLSQ0S9bdpkYck+m7vfWpAiHfKgBsZiGSSt0FqcTeU8WETqAHE2CgcAVd3Gkm4MD3xXYeI6B4NMItvKbcUpQ9gP+KMWnSsW+TaYJtoo+avBWLoKoK0CCSDud+7eXWQGZAXqV3YoQjQCfixJ8+fzj9ta3JHhlUeJ8wJOY2ws6eRKpPS3oqTvHAESEz9ya0naXL5WH6pt3FqSOhTHkTcKEXc6k1POh4Q9YJu/03TT4a8PoGMFI4i2EqSbOZAYaBkpCyD92RkG6KCSbjI/H0HEISBnlOZPFdcEzI2GTO4KBZICGKyAKLTEmJOB2txf5MbgohBINCl4FTqmpJMB2W+HiRn1Q2l6lXyPmiEP6VVE2TfGoaMYrHyPdtAnyI0jEOn9RLWmNEhvBBE7SjpFQZaShtLK+1S+T12lRwxUvrZlVPp8jE1PikeO7C/nyEqBDCB1t7+kUx4kKUWclea0yZC5BIGpiJSNSD9QgFR0RQKkL6KxHSWdsiARHJNYewoGrzG1/bk4dTPSunL2EyDjcbb7MQ+lQfZmkKiN7SjpFAM5CWAyGcwyY84YsZ1lUcbRNNtQMAdtQWGvQ0DyVjzYAKQfQFodeAeC1C8vzymXIZqD+ZEh/2OyLSalS/3VbnJZ+VqDXGjMrTCFuK4s66vVZUNfqaDolcbjOcb899sLpEE+I20GifywXe2QR3KElu99PzqjGufhREqB1pjCnG3IL3fY1v733r2FMsiGhutn0LAoJWWIGbPxjKwgjUbF0m52mPhigrpdXOecEq9pR6MkHbu2LOtrcZ9y3d0ODTb15y9MePz48aF79+8fvXnr9sljx2u2I7KNxDuaMPGVECoRs7mC4eT7SIruFNfNHK15MKuM2evwNq+4qjxvGnd5CHwNNynawW4cOlUZdG8b55IIJHmkItwrZHH6QxB3OSL9kTtAGpIvZiQB3Z4SKBfXQtEE9sashWAW87Bt3sYZNR6zn4uzJwWDKUKXfaKCdqUoBpLxSjYe9nqGiwWRBGipuGZ3Qm76itYLbbJI/PEhUApfw73uOIy9xfse3M9F9BuFJHcYrseSouGkHtCVtkuGTTikI8XgZzhg9SeF4VqcvSWiaSvNHQ8JwkNjIfEHemCmNLD1RaEfLs18mlgNuN6PFALHo7CyU5W2g00gFAQF4ozvibH04muwDbWraSFAyt/AAMzewgGR8uCeWn77xzBxPxgzPRCDDMZ14bQ/3jqGKGoHf2Hjgx3kw5LbaJDYWb52t9FMgw4AuWNWukNeuOYqOsmQi2jgws4PA/DD/z0B2x0/veCs4naw0cgybezid7X9jV3rX2RSs0wfLkll4pBGcgifg+NYxe1kJ2ycTaRq66uG/wBOl0vjcw70xwAAAABJRU5ErkJggg==);background-size:33px auto}.OT_video-disabled-warning[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAGMElEQVR4Ae2aA7D0yBaAc7oH12vbRmlLaxYWb23btm3btm2899a2bWuYtPZ01cmtU9lJrib315yqr9I3Oem/5/s7acwEnehEJzoxCcX2O+wEeIgRBDDaGjAZOgQ6ihRpLklHZDJIXK1WWymMIhGGkVBKCWMM+Iv/f/b5t7faYtM/sGgIS7j8RNLjceUVl41GvGN1BFiHy9sgtRWaYbhvuVQ6o1VOvV5/tLe3dyssKoZuh8xClkDEi2MMS6ZjR0cScxdK/+HgnJsmLccYOx0e/PUGUqfTJDEHkV5go9lcMQoj4R8RpSIRRUr4a9baTJFCCNfqESKJ7RYJibK0xoi05EhFRTxMi1Rit6xHAuLaKRLwEVi6q1x+EhlVpd3d3Wfh4VQkQhRhxthYLg7SRGqdLlIp7UVOHf+JhEhEMscUolVje3p63saeeOFoKsT7fjj++BNuw2I/0ouUENmGaQcQEilQvUU6xuWC0kqmVWCt8df6kG7WLoFA20VSCOyNh0RKPT+SyrTWtQsvuvTYCy84z3+oAdbgAiLGIvHjTz6bFuu/B3lKKfVkFKknwih6EnnipZdfXQZzepAupXSGSCfwUGZtkrx3t/0dSQGnnXbmdocdetArQoj+4VR23wMP3bj/vnv9Sv/rBmkish09ca655thHSrlWq4TFF1vkNDxsgjiUnPqZnHPABIq47jx7pPMcecShfz7x1DO7D6eit99576X1113nVd8rqLGAuDaNitJonTGIqHgQGQjDsJglMrUH5iDSEQbRa6y2yrNvv/PuWVmV/PTzLz8steTit1B9FtGJeZrJksmWdBzBMcami4xUkaY1A1Qe94WIaPGBApJhaERrLrXkElf8+NPPz6YMLs1DDjn0Wn9PnI/UiQadM4jNEkhzVsEGE8nIHESM1j5/KqRX+/IEiOQ/yifNBlEkpnb00cccesbpp13T3983H88/48xzrrvm6it/8U5JXgX5G6nSvSq1R5LATR7aYGkwMG1RSwkWABH+4jUb3vT/uJ1Z0xpjraTBRltrxUQhksIRmgTJyy69+Pv99tv3qYX6FxgU+fU33352xGEHf5wisU7nNWJpZRMkAjZ6aIN1mwV7h29Jo2wCHlveu/GV169z65E+T6koexCh6c+EEiky3lnxQKFjUeVyOeI5AOBzIiayRhJryd7YYnkIHgvB0qk9Tdql6N3XH4bRUIOIIIKJSiRb0hkSEpZKRd1CpEq8GxtIyCVmDSgFl94GacTgaJw1rUlYhYng0c4ewaUsmKRIJjpiqMSOCh9QeI+UYECmtQIsxEu6OorEcv6Rl0gu0woh8MhFkmSCTXVI4pC704WCFRJvSRNJSzrMMEZO2iKZTCHAZYnmvXCny7ed5vfZK3viHSBdIFCKEFj2+nt+73nw8m2uedcLJlktA++VNMEPaR45aYukcKnnCfY3/DFbZS8t7eHxNgsPM0N1hXhJJwwM1QbpoQFlog2R13a/zBxEYHAQEUYUM6qiVwEyBYoM6JFNF2kFLelI5KQf+fVI4dJFCguDS7oAyx2R6SFQJKRedSDj/cMg/RXQ6ZE05GSIDAaXdCi1I3L021SQWNJ1RLY5OiIdL4/yvuw8ADfWPFrSciaMyH8tEQPwf1uGG54g5+KlJGTmsrxsQdl5PKidnPFe2QS///7Hu+VS6WX/HYnf0sevGL7lXydwod2/9DykZq0s5yff0sgSWCigNOH7TPHL7ufj+/TH8P/+qYpL4HkBDiRYpEXeM8/89/9zzjn7EtY64dfd1nqccM7Bs8+9MKy8555/8TnKS+5MufH6EZVASkgPzf+mJXroet17JirU0ALST3nT0y5ONyLpeo1y64ih+vuQfsoTOeRFSJXa+SvyB90TUmdw49EjLaKpMQ0mzEeTzkWsd/oI6fzfiKM8gWg6X6OjpXstu5ZHnmIb0GFiu29MIUfUewkmVrEN3RqVQ/bY8FzNcquMBv/pCNUZ5pHHem01KdN/I/DG66/lLhKSvTO5M84kav5C5z2ZfyAivi9i9VGd45RH7UWJbjwGG/7NYsRECt7jiOToHedKAui8SW4CsxyRc54mKH/8f7ELhCCACyNcIl/wI+FaAJyc8yzRtinQPzWzuFZrFHq/AAAAAElFTkSuQmCC);background-size:33px auto}.OT_video-disabled-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_audio-blocked-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:50%;pointer-events:none;top:0;left:0;bottom:0;right:0}.OT_audio-blocked[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjkwIj48ZGVmcz48cGF0aCBkPSJNNjcgMTJMNi40NDggNzIuNTUyIDAgMzFWMThMMjYgMGw0MSAxMnptMyA3bDYgNDctMjkgMTgtMzUuNTAyLTYuNDk4TDcwIDE5eiIgaWQ9ImEiLz48L2RlZnM+PHJlY3Qgd2lkdGg9IjE1MCIgaGVpZ2h0PSI5MCIgcng9IjM1IiByeT0iNDUiIG9wYWNpdHk9Ii41Ii8+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNikiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwMTQzIDQ0YTguOTg4IDguOTg4IDAgMDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAxMTAuMzc0LS40MkM1MS43MDIgMTkuMTE0IDU0IDI5LjIwOCA1NCA0NS4yMDhjMCAxNC41MjctMi4zNDMgMjMuODgtNy4wMyAyOC4wNThhNy4yOCA3LjI4IDAgMDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwMS01LTV2LTEzYTUgNSAwIDAxNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked[_ngcontent-%COMP%]{cursor:pointer}.OT_container-audio-blocked.OT_mini[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_container-audio-blocked[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{display:none}.OT_audio-blocked-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_video-unsupported[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:50%;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMDE1IDVWNTguMThhNSA1IDAgMDEtNSA1SDkuMTFhNSA1IDAgMDEtNS01VjI1Ljk3YTUgNSAwIDAxNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwMTQuMzA0IDIuNzAydjI2LjgzNWEzIDMgMCAwMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;top:0;left:0;bottom:0;right:0;margin-top:-30px}.OT_video-unsupported-bar[_ngcontent-%COMP%]{display:none;position:absolute;width:192%;height:192%;top:-96%;left:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_video-unsupported-img[_ngcontent-%COMP%]{display:none;position:absolute;top:11%;left:15%;width:70%;opacity:.7;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMDE1IDVWNTguMThhNSA1IDAgMDEtNSA1SDkuMTFhNSA1IDAgMDEtNS01VjI1Ljk3YTUgNSAwIDAxNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwMTQuMzA0IDIuNzAydjI2LjgzNWEzIDMgMCAwMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:50%;background-size:100% auto}.OT_video-unsupported-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:93%}.OT_video-unsupported-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;text-align:center;height:100%;margin-top:40px}@media (min-width:1440px){.sidenav-chat[_ngcontent-%COMP%]{width:33%}}@media (max-width:1440px) and (min-width:1024px){.sidenav-chat[_ngcontent-%COMP%]{width:30%}}@media (max-width:1024px) and (min-width:790px){.sidenav-chat[_ngcontent-%COMP%]{width:350px}}']}),t}(),aI=[{path:"",component:Jx},{path:":roomName",component:oI}],sI=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[zx.forRoot(aI,{useHash:!0})],zx]}),t}(),cI=function(){var t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(),uI={schedule:function(t,e){var n=setTimeout(t,e);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(t){if("undefined"==typeof window)return uI.schedule(t,0);if(void 0===window.requestAnimationFrame)return uI.schedule(t,16);var e=window.requestAnimationFrame(t);return function(){return window.cancelAnimationFrame(e)}}};function lI(t,e,n){var i=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((function(e,n){return!("*"===e||!function(t,e){return cI.call(t,e)}(t,e)||(i=n,0))})),i}var dI=function(){function t(t,e){this.component=t,this.injector=e,this.componentFactory=e.get(Qs).resolveComponentFactory(t)}return t.prototype.create=function(t){return new pI(this.componentFactory,t)},t}(),pI=function(){function t(t,e){this.componentFactory=t,this.injector=e,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.uninitializedInputs=new Set}return t.prototype.connect=function(t){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);this.componentRef||this.initializeComponent(t)},t.prototype.disconnect=function(){var t=this;this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=uI.schedule((function(){t.componentRef&&(t.componentRef.destroy(),t.componentRef=null)}),10))},t.prototype.getInputValue=function(t){return this.componentRef?this.componentRef.instance[t]:this.initialInputValues.get(t)},t.prototype.setInputValue=function(t,e){var n,i;this.componentRef?(n=e)===(i=this.getInputValue(t))||n!=n&&i!=i||(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)},t.prototype.initializeComponent=function(t){var e=ga.create({providers:[],parent:this.injector}),n=function(t,e){var n=t.childNodes,i=e.map((function(){return[]})),r=-1;e.some((function(t,e){return"*"===t&&(r=e,!0)}));for(var o=0,a=n.length;o<a;++o){var s=n[o],c=lI(s,e,r);-1!==c&&i[c].push(s)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(),this.detectChanges(),this.injector.get(Ju).attachView(this.componentRef.hostView)},t.prototype.initializeInputs=function(){var t=this;this.componentFactory.inputs.forEach((function(e){var n=e.propName;t.initialInputValues.has(n)?t.setInputValue(n,t.initialInputValues.get(n)):t.uninitializedInputs.add(n)})),this.initialInputValues.clear()},t.prototype.initializeOutputs=function(){var t=this,e=this.componentFactory.outputs.map((function(e){var n=e.templateName;return t.componentRef.instance[e.propName].pipe(W((function(t){return{name:n,value:t}})))}));this.events=nt.apply(void 0,c(e))},t.prototype.callNgOnChanges=function(){if(this.implementsOnChanges&&null!==this.inputChanges){var t=this.inputChanges;this.inputChanges=null,this.componentRef.instance.ngOnChanges(t)}},t.prototype.scheduleDetectChanges=function(){var t=this;this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=uI.scheduleBeforeRender((function(){t.scheduledChangeDetectionFn=null,t.detectChanges()})))},t.prototype.recordInputChange=function(t,e){if(!this.componentRef||this.implementsOnChanges){null===this.inputChanges&&(this.inputChanges={});var n=this.inputChanges[t];if(n)n.currentValue=e;else{var i=this.uninitializedInputs.has(t);this.uninitializedInputs.delete(t);var r=i?void 0:this.getInputValue(t);this.inputChanges[t]=new Ns(r,e,i)}}},t.prototype.detectChanges=function(){this.componentRef&&(this.callNgOnChanges(),this.componentRef.changeDetectorRef.detectChanges())},t}(),hI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ngElementEventsSubscription=null,e}return r(e,t),e}(HTMLElement);function fI(t,e){var n=function(t,e){return e.get(Qs).resolveComponentFactory(t).inputs}(t,e.injector),i=e.strategyFactory||new dI(t,e.injector),o=function(t){var e={};return t.forEach((function(t){var n,i=t.propName;e[(n=t.templateName,n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})))]=i})),e}(n),a=function(t){function n(n){var r=t.call(this)||this;return r.ngElementStrategy=i.create(n||e.injector),r}return r(n,t),n.prototype.attributeChangedCallback=function(t,n,r,a){this.ngElementStrategy||(this.ngElementStrategy=i.create(e.injector)),this.ngElementStrategy.setInputValue(o[t],r)},n.prototype.connectedCallback=function(){var t=this;this.ngElementStrategy||(this.ngElementStrategy=i.create(e.injector)),this.ngElementStrategy.connect(this),this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe((function(e){var n=function(t,e,n){if("function"!=typeof CustomEvent){var i=t.createEvent("CustomEvent");return i.initCustomEvent(e,!1,!1,n),i}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(t.ownerDocument,e.name,e.value);t.dispatchEvent(n)}))},n.prototype.disconnectedCallback=function(){this.ngElementStrategy&&this.ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)},n.observedAttributes=Object.keys(o),n}(hI);return n.map((function(t){return t.propName})).forEach((function(t){Object.defineProperty(a.prototype,t,{get:function(){return this.ngElementStrategy.getInputValue(t)},set:function(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})),a}var mI=["videoRoom"];function gI(t,e){if(1&t){var n=Wa();Fa(0,"app-video-room",1,2),Za("leaveSession",(function(t){return qe(n),Ja().emitLeaveSessionEvent(t)}))("joinSession",(function(t){return qe(n),Ja().emitJoinSessionEvent(t)}))("error",(function(t){return qe(n),Ja().emitErrorEvent(t)})),Ba()}if(2&t){var i=Ja();ja("theme",i.theme)("sessionName",i._sessionName)("user",i._user)("openviduServerUrl",i.openviduServerUrl)("openviduSecret",i.openviduSecret)("tokens",i._tokens)("ovSettings",i.ovSettings)("isWebComponent",!0)}}var vI=function(){function t(){this.joinSession=new Hc,this.leaveSession=new Hc,this.error=new Hc,this.display=!1,this.ovSettings={chat:!0,autopublish:!1,toolbarButtons:{video:!0,audio:!0,fullscreen:!0,screenShare:!0,exit:!0}}}return Object.defineProperty(t.prototype,"sessionConfig",{set:function(t){var e;console.log("Session config input ",t),e=t,"string"==typeof t&&(e=JSON.parse(t)),e?(this._sessionName=e.sessionName,this._user=e.user,this._tokens=e.tokens,e.ovSettings&&this.isOvSettingsType(e.ovSettings)&&(this.ovSettings=e.ovSettings),this.validateParameters()&&(this.display=!0)):this.videoRoom.exitSession()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.validateParameters=function(){return console.log("TOKENS",this._tokens),!!(this._sessionName&&this.openviduServerUrl&&this.openviduSecret&&this._user||this._tokens&&this._tokens.length>0&&this._user)&&(this._tokens&&1===this._tokens.length&&(this.ovSettings.toolbarButtons.screenShare=!1,console.warn("Screen share funcionality has been disabled. OpenVidu Angular has received only one token.")),!0)},t.prototype.emitJoinSessionEvent=function(t){this.joinSession.emit(t),this.videoRoom.checkSizeComponent()},t.prototype.emitLeaveSessionEvent=function(t){this.leaveSession.emit(t),this.display=!1},t.prototype.emitErrorEvent=function(t){var e=this;setTimeout((function(){return e.error.emit(t)}),20)},t.prototype.isOvSettingsType=function(t){return"chat"in t&&"boolean"==typeof t.chat&&"autopublish"in t&&"boolean"==typeof t.autopublish&&"toolbarButtons"in t&&"object"==typeof t.toolbarButtons&&"audio"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.audio&&"audio"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.audio&&"video"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.video&&"screenShare"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.screenShare&&"fullscreen"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.fullscreen&&"exit"in t.toolbarButtons&&"boolean"==typeof t.toolbarButtons.exit},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ee({type:t,selectors:[["app-web-component"]],viewQuery:function(t,e){var n;1&t&&nu(mI,!0),2&t&&tu(n=su())&&(e.videoRoom=n.first)},inputs:{openviduServerUrl:"openviduServerUrl",openviduSecret:"openviduSecret",theme:"theme",ovSettings:"ovSettings",sessionConfig:"sessionConfig"},outputs:{joinSession:"joinSession",leaveSession:"leaveSession",error:"error"},decls:1,vars:1,consts:[[3,"theme","sessionName","user","openviduServerUrl","openviduSecret","tokens","ovSettings","isWebComponent","leaveSession","joinSession","error",4,"ngIf"],[3,"theme","sessionName","user","openviduServerUrl","openviduSecret","tokens","ovSettings","isWebComponent","leaveSession","joinSession","error"],["videoRoom",""]],template:function(t,e){1&t&&Ra(0,gI,2,8,"app-video-room",0),2&t&&ja("ngIf",e.display)},directives:[jl,oI],styles:["app-web-component[_ngcontent-%COMP%]{z-index:2147483647}"]}),t}(),yI=function(){function t(t,e){this.strategy=t,this.injector=e,this.ngZone=this.injector.get(Ru)}return t.prototype.connect=function(t){var e=this;this.runInZone((function(){e.strategy.connect(t)})),this.events=this.strategy.events},t.prototype.disconnect=function(){var t=this;this.runInZone((function(){t.strategy.disconnect()}))},t.prototype.getInputValue=function(t){var e=this;return this.runInZone((function(){return e.strategy.getInputValue(t)}))},t.prototype.setInputValue=function(t,e){var n=this;this.runInZone((function(){n.strategy.setInputValue(t,e)}))},t.prototype.runInZone=function(t){return this.ngZone.run(t)},t}(),bI=function(){function t(t,e){this.component=t,this.injector=e,this.ngElement=fI(this.component,{injector:this.injector}),customElements.define(this.generateName(),this.ngElement)}return t.prototype.string4=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},t.prototype.generateName=function(){var e="dummy-name-n";return e=e+(t.counter+"")+"-"+this.string4()+this.string4()+this.string4()+"-"+this.string4()+this.string4()+"-"+this.string4(),t.counter++,e},t.prototype.create=function(t){var e=new this.ngElement(this.injector),n=e.ngElementStrategy;return e=null,new yI(n,this.injector)},t.counter=1,t}(),_I=function(){function t(){}return t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)},imports:[[Sk]]}),t}(),wI=function(){function t(t,e){Xl(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(e,n){return void 0===n&&(n=[]),{ngModule:t,providers:e.serverLoaded?[{provide:kk,useValue:o(o({},xk),e)},{provide:Tk,useValue:n,multi:!0},{provide:Ok,useValue:!0}]:[{provide:kk,useValue:o(o({},xk),e)},{provide:Tk,useValue:n,multi:!0}]}},t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)(oe(Ok),oe(vu))},imports:[[GO,dO,_I],GO,dO,_I]}),t}(),SI=function(){function t(t){this.injector=t;var e=new bI(vI,this.injector),n=fI(vI,{injector:this.injector,strategyFactory:e});customElements.define("openvidu-webcomponent",n)}return t.prototype.ngDoBootstrap=function(){},t.\u0275mod=Te({type:t}),t.\u0275inj=St({factory:function(e){return new(e||t)(oe(ga))},providers:[ik,yk],imports:[[ch,uh,Id,Dm,Nv,zv,SS,sw,mw,ky,a_,HS,Iv,s_,zw,xv,Cw,gS,cS,sI,q_,wI,Fy,pk.forRoot()]]}),t}();(function(){if(_i)throw new Error("Cannot enable prod mode after platform setup.");bi=!1})(),Od().bootstrapModule(SI).catch((function(t){return console.log(t)}))}},[[0,0]]]);