4 lines
1005 KiB
JavaScript
4 lines
1005 KiB
JavaScript
!function(e){function r(r){for(var n,f,i=r[0],l=r[1],a=r[2],c=0,s=[];c<i.length;c++)o[f=i[c]]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++)0!==o[t[i]]&&(n=!1);n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={0:0},u=[];function f(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,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,(function(r){return e[r]}).bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="";var i=window.webpackJsonp=window.webpackJsonp||[],l=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var p=l;t()}([]);
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+rLv":function(e,t,n){var r=n("dyZX").document;e.exports=r&&r.documentElement},"0/R4":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"0TWp":function(e,t,n){!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)}if(n("Zone"),e.Zone)throw new Error("Zone already loaded.");var o,i=function(){function t(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==O.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 D.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return j},enumerable:!0,configurable:!0}),t.__load_patch=function(o,i){if(O.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!e["__Zone_disable_"+o]){var a="Zone:"+o;n(a),O[o]=i(e,t,S),r(a,a)}},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){void 0===t&&(t=void 0),void 0===n&&(n=null),void 0===r&&(r=null),D={parent:D,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{D=D.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),D={parent:D,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{D=D.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||g).name+"; Execution: "+this.name+")");if(e.state!==y||e.type!==x){var r=e.state!=k;r&&e._transitionTo(k,m),e.runCount++;var o=j;j=e,D={parent:D,zone:this};try{e.type==E&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==y&&e.state!==w&&(e.type==x||e.data&&e.data.isPeriodic?r&&e._transitionTo(m,k):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(y,k,y))),D=D.parent,j=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(_,y);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(w,_,y),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(m,_),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new u(T,e,t,n,r,null))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new u(E,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new u(x,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||g).name+"; Execution: "+this.name+")");e._transitionTo(b,m,k);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(w,b),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(y,b),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.__symbol__=z,t}(),a={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)}},c=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.zone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t.zone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t.zone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t.zone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t.zone),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:a,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=a,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 i(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!=T)throw new Error("Task is missing scheduleFn.");v(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{return 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}(),u=function(){function t(n,r,o,i,a,c){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,this.callback=o;var u=this;this.invoke=n===x&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),P++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==P&&d(),P--}},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(y,_)},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==y&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId: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}(),s=z("setTimeout"),l=z("Promise"),f=z("then"),p=[],h=!1;function v(t){0===P&&0===p.length&&(o||e[l]&&(o=e[l].resolve(0)),o?o[f](d):e[s](d,0)),t&&p.push(t)}function d(){if(!h){for(h=!0;p.length;){var e=p;p=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){S.onUnhandledError(r)}}}S.microtaskDrainDone(),h=!1}}var g={name:"NO ZONE"},y="notScheduled",_="scheduling",m="scheduled",k="running",b="canceling",w="unknown",T="microTask",E="macroTask",x="eventTask",O={},S={symbol:z,currentZoneFrame:function(){return D},onUnhandledError:Z,microtaskDrainDone:Z,scheduleMicroTask:v,showUncaughtError:function(){return!i[z("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:Z,patchMethod:function(){return Z},bindArguments:function(){return null},setNativePromise:function(e){e&&"function"==typeof e.resolve&&(o=e.resolve(0))}},D={parent:null,zone:new i(null,null)},j=null,P=0;function Z(){}function z(e){return"__zone_symbol__"+e}r("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=n.symbol,a=[],c=i("Promise"),u=i("then"),s="__creationTrace__";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(;a.length;)for(var e=function(){var e=a.shift();try{e.zone.runGuarded(function(){throw e})}catch(t){f(t)}};a.length;)e()};var l=i("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 M.reject(e)}var d=i("state"),g=i("value"),y=i("finally"),_=i("parentPromiseValue"),m=i("parentPromiseState"),k="Promise.then",b=null,w=!0,T=!1,E=0;function x(e,t){return function(n){try{j(e,t,n)}catch(r){j(e,!1,r)}}}var O=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},S="Promise resolved with itself",D=i("currentTaskTrace");function j(e,r,i){var c,u=O();if(e===i)throw new TypeError(S);if(e[d]===b){var l=null;try{"object"!=typeof i&&"function"!=typeof i||(l=i&&i.then)}catch(k){return u(function(){j(e,!1,k)})(),e}if(r!==T&&i instanceof M&&i.hasOwnProperty(d)&&i.hasOwnProperty(g)&&i[d]!==b)Z(i),j(e,i[d],i[g]);else if(r!==T&&"function"==typeof l)try{l.call(i,u(x(e,r)),u(x(e,!1)))}catch(k){u(function(){j(e,!1,k)})()}else{e[d]=r;var f=e[g];if(e[g]=i,e[y]===y&&r===w&&(e[d]=e[m],e[g]=e[_]),r===T&&i instanceof Error){var p=t.currentTask&&t.currentTask.data&&t.currentTask.data[s];p&&o(i,D,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var h=0;h<f.length;)z(e,f[h++],f[h++],f[h++],f[h++]);if(0==f.length&&r==T){e[d]=E;try{throw new Error("Uncaught (in promise): "+((c=i)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(i&&i.stack?"\n"+i.stack:""))}catch(k){var v=k;v.rejection=i,v.promise=e,v.zone=t.current,v.task=t.currentTask,a.push(v),n.scheduleMicroTask()}}}}return e}var P=i("rejectionHandledHandler");function Z(e){if(e[d]===E){try{var n=t[P];n&&"function"==typeof n&&n.call(this,{rejection:e[g],promise:e})}catch(o){}e[d]=T;for(var r=0;r<a.length;r++)e===a[r].promise&&a.splice(r,1)}}function z(e,t,n,r,o){Z(e);var i=e[d],a=i?"function"==typeof r?r:h:"function"==typeof o?o:v;t.scheduleMicroTask(k,function(){try{var r=e[g],o=n&&y===n[y];o&&(n[_]=r,n[m]=i);var c=t.run(a,void 0,o&&a!==v&&a!==h?[]:[r]);j(n,!0,c)}catch(u){j(n,!1,u)}},n)}var M=function(){function e(t){if(!(this instanceof e))throw new Error("Must be an instanceof Promise.");this[d]=b,this[g]=[];try{t&&t(x(this,w),x(this,T))}catch(n){j(this,!1,n)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return j(new this(null),w,e)},e.reject=function(e){return j(new this(null),T,e)},e.race=function(e){var t,n,r=new this(function(e,r){t=e,n=r});function o(e){r&&(r=t(e))}function i(e){r&&(r=n(e))}for(var a=0,c=e;a<c.length;a++){var u=c[a];p(u)||(u=this.resolve(u)),u.then(o,i)}return r},e.all=function(e){for(var t,n,r=new this(function(e,r){t=e,n=r}),o=0,i=[],a=0,c=e;a<c.length;a++){var u=c[a];p(u)||(u=this.resolve(u)),u.then(function(e){return function(n){i[e]=n,--o||t(i)}}(o),n),o++}return o||t(i),r},e.prototype.then=function(e,n){var r=new this.constructor(null),o=t.current;return this[d]==b?this[g].push(o,r,e,n):z(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 this[d]==b?this[g].push(r,n,e,e):z(this,r,n,e,e),n},e}();M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;var C=e[c]=e.Promise,R=t.__symbol__("ZoneAwarePromise"),I=r(e,"Promise");I&&!I.configurable||(I&&delete I.writable,I&&delete I.value,I||(I={configurable:!0,enumerable:!0}),I.get=function(){return e[R]?e[R]:e[c]},I.set=function(t){t===M?e[R]=t:(e[c]=t,t.prototype[u]||q(t),n.setNativePromise(t))},o(e,"Promise",I)),e.Promise=M;var F,L=i("thenPatched");function q(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[u]=o,e.prototype.then=function(e,t){var n=this;return new M(function(e,t){o.call(n,e,t)}).then(e,t)},e[L]=!0}}if(C){q(C);var A=e.fetch;"function"==typeof A&&(e.fetch=(F=A,function(){var e=F.apply(this,arguments);if(e instanceof M)return e;var t=e.constructor;return t[L]||q(t),e}))}return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,M});var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,i="addEventListener",a="removeEventListener",c=Zone.__symbol__(i),u=Zone.__symbol__(a),s="true",l="false",f="__zone_symbol__";function p(e,t){return Zone.current.wrap(e,t)}function h(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var v=Zone.__symbol__,d="undefined"!=typeof window,g=d?window:void 0,y=d&&g||"object"==typeof self&&self||global,_="removeAttribute",m=[null];function k(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=p(e[n],t+"_"+n));return e}function b(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var w="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,T=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),E=!T&&!w&&!(!d||!g.HTMLElement),x=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!w&&!(!d||!g.HTMLElement),O={},S=function(e){if(e=e||y.event){var t=O[e.type];t||(t=O[e.type]=v("ON_PROPERTY"+e.type));var n=(this||e.target||y)[t],r=n&&n.apply(this,arguments);return null==r||r||e.preventDefault(),r}};function D(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){delete i.writable,delete i.value;var a=i.get,c=i.set,u=r.substr(2),s=O[u];s||(s=O[u]=v("ON_PROPERTY"+u)),i.set=function(e){var t=this;t||n!==y||(t=y),t&&(t[s]&&t.removeEventListener(u,S),c&&c.apply(t,m),"function"==typeof e?(t[s]=e,t.addEventListener(u,S,!1)):t[s]=null)},i.get=function(){var e=this;if(e||n!==y||(e=y),!e)return null;var t=e[s];if(t)return t;if(a){var o=a&&a.call(this);if(o)return i.set.call(this,o),"function"==typeof e[_]&&e.removeAttribute(r),o}return null},t(n,r,i)}}function j(e,t,n){if(t)for(var r=0;r<t.length;r++)D(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++)D(e,o[a],n)}}var P=v("originalInstance");function Z(e){var n=y[e];if(n){y[v(e)]=n,y[e]=function(){var t=k(arguments,e);switch(t.length){case 0:this[P]=new n;break;case 1:this[P]=new n(t[0]);break;case 2:this[P]=new n(t[0],t[1]);break;case 3:this[P]=new n(t[0],t[1],t[2]);break;case 4:this[P]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},M(y[e],n);var r,o=new n(function(){});for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?y[e].prototype[n]=function(){return this[P][n].apply(this[P],arguments)}:t(y[e].prototype,n,{set:function(t){"function"==typeof t?(this[P][n]=p(t,e+"."+n),M(this[P][n],t)):this[P][n]=t},get:function(){return this[P][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(y[e][r]=n[r])}}function z(t,r,o){for(var i=t;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);var a,c=v(r);if(i&&!(a=i[c])&&(a=i[c]=i[r],b(i&&e(i,r)))){var u=o(a,c,r);i[r]=function(){return u(this,arguments)},M(i[r],a)}return a}function M(e,t){e[v("OriginalDelegate")]=t}var C=!1,R=!1;function I(){if(C)return R;C=!0;try{var e=g.navigator.userAgent;return-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(R=!0),R}catch(t){}}Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,n=v("OriginalDelegate"),r=v("Promise"),o=v("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?t.apply(this[n],arguments):Object.prototype.toString.call(i);if(this===Promise){var a=e[r];if(a)return t.apply(a,arguments)}if(this===Error){var c=e[o];if(c)return t.apply(c,arguments)}}return t.apply(this,arguments)};i[n]=t,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.apply(this,arguments)}});var F={useG:!0},L={},q={},A=/^__zone_symbol__(\w+)(true|false)$/,H="__zone_symbol__propagationStopped";function N(e,t,r){var o=r&&r.add||i,c=r&&r.rm||a,u=r&&r.listeners||"eventListeners",p=r&&r.rmAll||"removeAllListeners",h=v(o),d="."+o+":",g="prependListener",y="."+g+":",_=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[c].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},m=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[L[t.type][l]];if(r)if(1===r.length)_(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[H]);i++)_(o[i],n,t)}},k=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[L[t.type][s]];if(r)if(1===r.length)_(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[H]);i++)_(o[i],n,t)}};function b(t,r){if(!t)return!1;var i=!0;r&&void 0!==r.useG&&(i=r.useG);var a=r&&r.vh,_=!0;r&&void 0!==r.chkDup&&(_=r.chkDup);var b=!1;r&&void 0!==r.rt&&(b=r.rt);for(var w=t;w&&!w.hasOwnProperty(o);)w=n(w);if(!w&&t[o]&&(w=t),!w)return!1;if(w[h])return!1;var T,E={},x=w[h]=w[o],O=w[v(c)]=w[c],S=w[v(u)]=w[u],D=w[v(p)]=w[p];r&&r.prepend&&(T=w[v(r.prepend)]=w[r.prepend]);var j=i?function(){if(!E.isExisting)return x.call(E.target,E.eventName,E.capture?k:m,E.options)}:function(e){return x.call(E.target,E.eventName,e.invoke,E.options)},P=i?function(e){if(!e.isRemoved){var t=L[e.eventName],n=void 0;t&&(n=t[e.capture?s:l]);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 O.call(e.target,e.eventName,e.capture?k:m,e.options)}:function(e){return O.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},z=Zone[Zone.__symbol__("BLACK_LISTED_EVENTS")],C=function(t,n,r,o,c,u){return void 0===c&&(c=!1),void 0===u&&(u=!1),function(){var p=this||e,h=arguments[1];if(!h)return t.apply(this,arguments);var v=!1;if("function"!=typeof h){if(!h.handleEvent)return t.apply(this,arguments);v=!0}if(!a||a(t,h,p,arguments)){var d,g=arguments[0],y=arguments[2];if(z)for(var m=0;m<z.length;m++)if(g===z[m])return t.apply(this,arguments);var k=!1;void 0===y?d=!1:!0===y?d=!0:!1===y?d=!1:(d=!!y&&!!y.capture,k=!!y&&!!y.once);var b,w=Zone.current,T=L[g];if(T)b=T[d?s:l];else{var x=f+(g+l),O=f+(g+s);L[g]={},L[g][l]=x,L[g][s]=O,b=d?O:x}var S,D=p[b],j=!1;if(D){if(j=!0,_)for(m=0;m<D.length;m++)if(Z(D[m],h))return}else D=p[b]=[];var P=p.constructor.name,M=q[P];M&&(S=M[g]),S||(S=P+n+g),E.options=y,k&&(E.options.once=!1),E.target=p,E.capture=d,E.eventName=g,E.isExisting=j;var C=i?F:null;C&&(C.taskData=E);var R=w.scheduleEventTask(S,h,C,r,o);return E.target=null,C&&(C.taskData=null),k&&(y.once=!0),R.options=y,R.target=p,R.capture=d,R.eventName=g,v&&(R.originalDelegate=h),u?D.unshift(R):D.push(R),c?p:void 0}}};return w[o]=C(x,d,j,P,b),T&&(w[g]=C(T,y,function(e){return T.call(E.target,E.eventName,e.invoke,E.options)},P,b,!0)),w[c]=function(){var t,n=this||e,r=arguments[0],o=arguments[2];t=void 0!==o&&(!0===o||!1!==o&&!!o&&!!o.capture);var i=arguments[1];if(!i)return O.apply(this,arguments);if(!a||a(O,i,n,arguments)){var c,u=L[r];u&&(c=u[t?s:l]);var f=c&&n[c];if(f)for(var p=0;p<f.length;p++){var h=f[p];if(Z(h,i))return f.splice(p,1),h.isRemoved=!0,0===f.length&&(h.allRemoved=!0,n[c]=null),h.zone.cancelTask(h),b?n:void 0}return O.apply(this,arguments)}},w[u]=function(){for(var t=[],n=W(this||e,arguments[0]),r=0;r<n.length;r++){var o=n[r];t.push(o.originalDelegate?o.originalDelegate:o.callback)}return t},w[p]=function(){var t=this||e,n=arguments[0];if(n){var r=L[n];if(r){var o=t[r[l]],i=t[r[s]];if(o){var a=o.slice();for(h=0;h<a.length;h++)this[c].call(this,n,(u=a[h]).originalDelegate?u.originalDelegate:u.callback,u.options)}if(i)for(a=i.slice(),h=0;h<a.length;h++){var u;this[c].call(this,n,(u=a[h]).originalDelegate?u.originalDelegate:u.callback,u.options)}}}else{for(var f=Object.keys(t),h=0;h<f.length;h++){var v=A.exec(f[h]),d=v&&v[1];d&&"removeListener"!==d&&this[p].call(this,d)}this[p].call(this,"removeListener")}if(b)return this},M(w[o],x),M(w[c],O),D&&M(w[p],D),S&&M(w[u],S),!0}for(var w=[],T=0;T<t.length;T++)w[T]=b(t[T],r);return w}function W(e,t){var n=[];for(var r in e){var o=A.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}var X=v("zoneTask");function K(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[X]=null))}},n.handleId=o.apply(e,n.args),t}function u(e){return i(e.data.handleId)}o=z(e,t+=r,function(n){return function(o,i){if("function"==typeof i[0]){var s=h(t,i[0],{handleId:null,isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:null,args:i},c,u);if(!s)return s;var l=s.data.handleId;return"number"==typeof l?a[l]=s:l&&(l[X]=s),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(s.ref=l.ref.bind(l),s.unref=l.unref.bind(l)),"number"==typeof l||l?l:s}return n.apply(e,i)}}),i=z(e,n,function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[X])||(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[X]=null),o.zone.cancelTask(o)):t.apply(e,r)}})}var U=Object[v("defineProperty")]=Object.defineProperty,B=Object[v("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Y=Object.create,J=v("unconfigurables");function V(e,t){return e&&e[J]&&e[J][t]}function G(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[J]||Object.isFrozen(e)||U(e,J,{writable:!0,value:{}}),e[J]&&(e[J][t]=!0)),n}function Q(e,t,n,r){try{return U(e,t,n)}catch(i){if(!n.configurable)throw i;void 0===r?delete n.configurable:n.configurable=r;try{return U(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)}}}var $=["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"],ee=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],te=["load"],ne=["blur","error","focus","load","resize","scroll","messageerror"],re=["bounce","finish","start"],oe=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ie=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ae=["close","error","open","message"],ce=["error","message"],ue=["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","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange"],$,["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 se(e,t,n,r){e&&j(e,function(e,t,n){if(!n)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)})}(e,t,n),r)}function le(c,u){if(!T||x){var s="undefined"!=typeof WebSocket;if(function(){if((E||x)&&!e(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var n=e(Element.prototype,"onclick");if(n&&!n.configurable)return!1}var r=XMLHttpRequest.prototype,o=e(r,"onreadystatechange");if(o){t(r,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var i=!!(c=new XMLHttpRequest).onreadystatechange;return t(r,"onreadystatechange",o||{}),i}var a=v("fake");t(r,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[a]},set:function(e){this[a]=e}});var c,u=function(){};return(c=new XMLHttpRequest).onreadystatechange=u,i=c[a]===u,c.onreadystatechange=null,i}()){var l=u.__Zone_ignore_on_properties;if(E){var f=window;se(f,ue.concat(["messageerror"]),l,n(f)),se(Document.prototype,ue,l),void 0!==f.SVGElement&&se(f.SVGElement.prototype,ue,l),se(Element.prototype,ue,l),se(HTMLElement.prototype,ue,l),se(HTMLMediaElement.prototype,ee,l),se(HTMLFrameSetElement.prototype,$.concat(ne),l),se(HTMLBodyElement.prototype,$.concat(ne),l),se(HTMLFrameElement.prototype,te,l),se(HTMLIFrameElement.prototype,te,l);var h=f.HTMLMarqueeElement;h&&se(h.prototype,re,l);var d=f.Worker;d&&se(d.prototype,ce,l)}se(XMLHttpRequest.prototype,oe,l);var g=u.XMLHttpRequestEventTarget;g&&se(g&&g.prototype,oe,l),"undefined"!=typeof IDBIndex&&(se(IDBIndex.prototype,ie,l),se(IDBRequest.prototype,ie,l),se(IDBOpenDBRequest.prototype,ie,l),se(IDBDatabase.prototype,ie,l),se(IDBTransaction.prototype,ie,l),se(IDBCursor.prototype,ie,l)),s&&se(WebSocket.prototype,ae,l)}else!function(){for(var e=function(e){var t=ue[e],n="on"+t;self.addEventListener(t,function(e){var t,r,o=e.target;for(r=o?o.constructor.name+"."+n:"unknown."+n;o;)o[n]&&!o[n][fe]&&((t=p(o[n],r))[fe]=o[n],o[n]=t),o=o.parentElement},!0)},t=0;t<ue.length;t++)e(t)}(),Z("XMLHttpRequest"),s&&function(t,n){var c=n.WebSocket;n.EventTarget||N(n,[c.prototype]),n.WebSocket=function(t,n){var u,s,l=arguments.length>1?new c(t,n):new c(t),f=e(l,"onmessage");return f&&!1===f.configurable?(u=r(l),s=l,[i,a,"send","close"].forEach(function(e){u[e]=function(){var t=o.call(arguments);if(e===i||e===a){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);l[r]=u[r]}}return l[e].apply(l,t)}})):u=l,j(u,["close","error","message","open"],s),u};var u=n.WebSocket;for(var s in c)u[s]=c[s]}(0,u)}}var fe=v("unbound");Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=j,n.patchMethod=z,n.bindArguments=k}),Zone.__load_patch("timers",function(e){K(e,"set","clear","Timeout"),K(e,"set","clear","Interval"),K(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){K(e,"request","cancel","AnimationFrame"),K(e,"mozRequest","mozCancel","AnimationFrame"),K(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)z(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){var r=t.__symbol__("BLACK_LISTED_EVENTS");e[r]&&(t[r]=e[r]),function(e,t){!function(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)}})}(e,t)}(e,n),function(e,t){var n="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",r="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(","),o=[],i=e.wtf,a=n.split(",");i?o=a.map(function(e){return"HTML"+e+"Element"}).concat(r):e.EventTarget?o.push("EventTarget"):o=r;for(var c=e.__Zone_disable_IE_check||!1,u=e.__Zone_enable_cross_context_check||!1,p=I(),h="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",v=0;v<ue.length;v++){var d=f+((k=ue[v])+l),g=f+(k+s);L[k]={},L[k][l]=d,L[k][s]=g}for(v=0;v<n.length;v++)for(var y=a[v],_=q[y]={},m=0;m<ue.length;m++){var k;_[k=ue[m]]=y+".addEventListener:"+k}var b=[];for(v=0;v<o.length;v++){var w=e[o[v]];b.push(w&&w.prototype)}N(e,b,{vh:function(e,t,n,r){if(!c&&p){if(u)try{var o;if("[object FunctionWrapper]"===(o=t.toString())||o==h)return e.apply(n,r),!1}catch(i){return e.apply(n,r),!1}else if("[object FunctionWrapper]"===(o=t.toString())||o==h)return e.apply(n,r),!1}else if(u)try{t.toString()}catch(i){return e.apply(n,r),!1}return!0}}),t.patchEventTarget=N}(e,n);var o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),Z("MutationObserver"),Z("WebKitMutationObserver"),Z("IntersectionObserver"),Z("FileReader")}),Zone.__load_patch("on_property",function(t,n,r){le(0,t),Object.defineProperty=function(e,t,n){if(V(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=G(e,t,n)),Q(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]=G(e,n,t[n])}),Y(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=B(e,t);return V(e,t)&&(n.configurable=!1),n},function(n){if((E||x)&&"registerElement"in t.document){var r=document.registerElement,o=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(t,n){return n&&n.prototype&&o.forEach(function(t){var r,o,i,a,c="Document.registerElement::"+t,u=n.prototype;if(u.hasOwnProperty(t)){var s=e(u,t);s&&s.value?(s.value=p(s.value,c),a=(i=s).configurable,Q(r=n.prototype,o=t,i=G(r,o,i),a)):u[t]=p(u[t],c)}else u[t]&&(u[t]=p(u[t],c))}),r.call(document,t,n)},M(document.registerElement,r)}}()}),Zone.__load_patch("canvas",function(e){var t=e.HTMLCanvasElement;void 0!==t&&t.prototype&&t.prototype.toBlob&&function(e,n,r){var o=null;function i(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=z(t.prototype,"toBlob",function(e){return function(t,n){var r=function(e,t){return{name:"HTMLCanvasElement.toBlob",target:e,cbIdx:0,args:t}}(t,n);return r.cbIdx>=0&&"function"==typeof n[r.cbIdx]?h(r.name,n[r.cbIdx],r,i,null):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(t){var s=XMLHttpRequest.prototype,l=s[c],f=s[u];if(!l){var p=e.XMLHttpRequestEventTarget;if(p){var v=p.prototype;l=v[c],f=v[u]}}var d="readystatechange",g="scheduled";function y(e){XMLHttpRequest[i]=!1;var t=e.data,r=t.target,a=r[o];l||(l=r[c],f=r[u]),a&&f.call(r,d,a);var s=r[o]=function(){r.readyState===r.DONE&&!t.aborted&&XMLHttpRequest[i]&&e.state===g&&e.invoke()};return l.call(r,d,s),r[n]||(r[n]=e),b.apply(r,t.args),XMLHttpRequest[i]=!0,e}function _(){}function m(e){var t=e.data;return t.aborted=!0,w.apply(t.target,t.args)}var k=z(s,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],k.apply(e,t)}}),b=z(s,"send",function(){return function(e,t){return e[r]?b.apply(e,t):h("XMLHttpRequest.send",_,{target:e,url:e[a],isPeriodic:!1,delay:null,args:t,aborted:!1},y,m)}}),w=z(s,"abort",function(){return function(e){var t=e[n];if(t&&"string"==typeof t.type){if(null==t.cancelFn||t.data&&t.data.aborted)return;t.zone.cancelTask(t)}}})}();var n=v("xhrTask"),r=v("xhrSync"),o=v("xhrListener"),i=v("xhrScheduled"),a=v("xhrURL")}),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(!b(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,k(arguments,r+"."+i))};return M(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){W(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[v("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[v("rejectionHandledHandler")]=n("rejectionhandled"))})}()},1:function(e,t,n){e.exports=n("hN/g")},"1TsA":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"2OiF":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"3Lyj":function(e,t,n){var r=n("KroJ");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},"45Tv":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=n("OP3Y"),a=r.has,c=r.get,u=r.key,s=function(e,t,n){if(a(e,t,n))return c(e,t,n);var r=i(t);return null!==r?s(e,r,n):void 0};r.exp({getMetadata:function(e,t){return s(e,o(t),arguments.length<3?void 0:u(arguments[2]))}})},"49D4":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,o(n),i(r))}})},"4LiD":function(e,t,n){"use strict";var r=n("dyZX"),o=n("XKFU"),i=n("KroJ"),a=n("3Lyj"),c=n("Z6vF"),u=n("SlkY"),s=n("9gX7"),l=n("0/R4"),f=n("eeVq"),p=n("XMVh"),h=n("fyDq"),v=n("Xbzi");e.exports=function(e,t,n,d,g,y){var _=r[e],m=_,k=g?"set":"add",b=m&&m.prototype,w={},T=function(e){var t=b[e];i(b,e,"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof m&&(y||b.forEach&&!f(function(){(new m).entries().next()}))){var E=new m,x=E[k](y?{}:-0,1)!=E,O=f(function(){E.has(1)}),S=p(function(e){new m(e)}),D=!y&&f(function(){for(var e=new m,t=5;t--;)e[k](t,t);return!e.has(-0)});S||((m=t(function(t,n){s(t,m,e);var r=v(new _,t,m);return null!=n&&u(n,g,r[k],r),r})).prototype=b,b.constructor=m),(O||D)&&(T("delete"),T("has"),g&&T("get")),(D||x)&&T(k),y&&b.clear&&delete b.clear}else m=d.getConstructor(t,e,g,k),a(m.prototype,n),c.NEED=!0;return h(m,e),w[e]=m,o(o.G+o.W+o.F*(m!=_),w),y||d.setStrong(m,e,g),m}},"4R4u":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"6FMO":function(e,t,n){var r=n("0/R4"),o=n("EWmC"),i=n("K0xU")("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},"7Dlh":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},"9AAn":function(e,t,n){"use strict";var r=n("wmvG"),o=n("s5qY");e.exports=n("4LiD")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),o=n("XKFU"),i=n("KroJ"),a=n("Mukb"),c=n("hPIQ"),u=n("QaDb"),s=n("fyDq"),l=n("OP3Y"),f=n("K0xU")("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,v,d,g,y){u(n,t,v);var _,m,k,b=function(e){if(!p&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",T="values"==d,E=!1,x=e.prototype,O=x[f]||x["@@iterator"]||d&&x[d],S=O||b(d),D=d?T?b("entries"):S:void 0,j="Array"==t&&x.entries||O;if(j&&(k=l(j.call(new e)))!==Object.prototype&&k.next&&(s(k,w,!0),r||"function"==typeof k[f]||a(k,f,h)),T&&O&&"values"!==O.name&&(E=!0,S=function(){return O.call(this)}),r&&!y||!p&&!E&&x[f]||a(x,f,S),c[t]=S,c[w]=h,d)if(_={values:T?S:b("values"),keys:g?S:b("keys"),entries:D},y)for(m in _)m in x||i(x,m,_[m]);else o(o.P+o.F*(p||E),t,_);return _}},BqfV:function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},CkkT:function(e,t,n){var r=n("m0Pp"),o=n("Ymqv"),i=n("S/j/"),a=n("ne8i"),c=n("zRwo");e.exports=function(e,t){var n=1==e,u=2==e,s=3==e,l=4==e,f=6==e,p=5==e||f,h=t||c;return function(t,c,v){for(var d,g,y=i(t),_=o(y),m=r(c,v,3),k=a(_.length),b=0,w=n?h(t,k):u?h(t,0):void 0;k>b;b++)if((p||b in _)&&(g=m(d=_[b],b,y),e))if(n)w[b]=g;else if(g)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:w.push(d)}else if(l)return!1;return f?-1:s||l?l:w}}},DVgA:function(e,t,n){var r=n("zhAb"),o=n("4R4u");e.exports=Object.keys||function(e){return r(e,o)}},EK0E:function(e,t,n){"use strict";var r,o=n("CkkT")(0),i=n("KroJ"),a=n("Z6vF"),c=n("czNK"),u=n("ZD67"),s=n("0/R4"),l=n("eeVq"),f=n("s5qY"),p=a.getWeak,h=Object.isExtensible,v=u.ufstore,d={},g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(s(e)){var t=p(e);return!0===t?v(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,"WeakMap"),e,t)}},_=e.exports=n("4LiD")("WeakMap",g,y,u,!0,!0);l(function(){return 7!=(new _).set((Object.freeze||Object)(d),7).get(d)})&&(c((r=u.getConstructor(g,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=_.prototype,n=t[e];i(t,e,function(t,o){if(s(t)&&!h(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},EWmC:function(e,t,n){var r=n("LZWt");e.exports=Array.isArray||function(e){return"Array"==r(e)}},EemH:function(e,t,n){var r=n("UqcF"),o=n("RjD/"),i=n("aCFj"),a=n("apmT"),c=n("aagx"),u=n("xpql"),s=Object.getOwnPropertyDescriptor;t.f=n("nh4g")?s:function(e,t){if(e=i(e),t=a(t,!0),u)try{return s(e,t)}catch(n){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},FJW5:function(e,t,n){var r=n("hswa"),o=n("y3w9"),i=n("DVgA");e.exports=n("nh4g")?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,u=0;c>u;)r.f(e,n=a[u++],t[n]);return e}},FZcq:function(e,t,n){n("49D4"),n("zq+C"),n("45Tv"),n("uAtd"),n("BqfV"),n("fN/3"),n("iW+S"),n("7Dlh"),n("Opxb"),e.exports=n("g3g5").Reflect},H6hf:function(e,t,n){var r=n("y3w9");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}}},"I8a+":function(e,t,n){var r=n("LZWt"),o=n("K0xU")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},Iw71:function(e,t,n){var r=n("0/R4"),o=n("dyZX").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"J+6e":function(e,t,n){var r=n("I8a+"),o=n("K0xU")("iterator"),i=n("hPIQ");e.exports=n("g3g5").getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},JiEa:function(e,t){t.f=Object.getOwnPropertySymbols},K0xU:function(e,t,n){var r=n("VTer")("wks"),o=n("ylqs"),i=n("dyZX").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},KroJ:function(e,t,n){var r=n("dyZX"),o=n("Mukb"),i=n("aagx"),a=n("ylqs")("src"),c=Function.toString,u=(""+c).split("toString");n("g3g5").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(s&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||c.call(this)})},Kuth:function(e,t,n){var r=n("y3w9"),o=n("FJW5"),i=n("4R4u"),a=n("YTvA")("IE_PROTO"),c=function(){},u=function(){var e,t=n("Iw71")("iframe"),r=i.length;for(t.style.display="none",n("+rLv").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},LQAc:function(e,t){e.exports=!1},LZWt:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},M6Qj:function(e,t,n){var r=n("hPIQ"),o=n("K0xU")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},Mukb:function(e,t,n){var r=n("hswa"),o=n("RjD/");e.exports=n("nh4g")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},N6cJ:function(e,t,n){var r=n("9AAn"),o=n("XKFU"),i=n("VTer")("metadata"),a=i.store||(i.store=new(n("EK0E"))),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,map: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},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){o(o.S,"Reflect",e)}}},OP3Y:function(e,t,n){var r=n("aagx"),o=n("S/j/"),i=n("YTvA")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},Opxb:function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=n("2OiF"),a=r.key,c=r.set;r.exp({metadata:function(e,t){return function(n,r){c(e,t,(void 0!==r?o:i)(n),a(r))}}})},Q3ne:function(e,t,n){var r=n("SlkY");e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},QaDb:function(e,t,n){"use strict";var r=n("Kuth"),o=n("RjD/"),i=n("fyDq"),a={};n("Mukb")(a,n("K0xU")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},RYi7:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"RjD/":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"S/j/":function(e,t,n){var r=n("vhPU");e.exports=function(e){return Object(r(e))}},SlkY:function(e,t,n){var r=n("m0Pp"),o=n("H6hf"),i=n("M6Qj"),a=n("y3w9"),c=n("ne8i"),u=n("J+6e"),s={},l={};(t=e.exports=function(e,t,n,f,p){var h,v,d,g,y=p?function(){return e}:u(e),_=r(n,f,t?2:1),m=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(h=c(e.length);h>m;m++)if((g=t?_(a(v=e[m])[0],v[1]):_(e[m]))===s||g===l)return g}else for(d=y.call(e);!(v=d.next()).done;)if((g=o(d,_,v.value,t))===s||g===l)return g}).BREAK=s,t.RETURN=l},T39b:function(e,t,n){"use strict";var r=n("wmvG"),o=n("s5qY");e.exports=n("4LiD")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},UqcF:function(e,t){t.f={}.propertyIsEnumerable},VTer:function(e,t,n){var r=n("g3g5"),o=n("dyZX"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("LQAc")?"pure":"global",copyright:"\xa9 2018 Denis Pushkarev (zloirock.ru)"})},XKFU:function(e,t,n){var r=n("dyZX"),o=n("g3g5"),i=n("Mukb"),a=n("KroJ"),c=n("m0Pp"),u=function(e,t,n){var s,l,f,p,h=e&u.F,v=e&u.G,d=e&u.P,g=e&u.B,y=v?r:e&u.S?r[t]||(r[t]={}):(r[t]||{}).prototype,_=v?o:o[t]||(o[t]={}),m=_.prototype||(_.prototype={});for(s in v&&(n=t),n)f=((l=!h&&y&&void 0!==y[s])?y:n)[s],p=g&&l?c(f,r):d&&"function"==typeof f?c(Function.call,f):f,y&&a(y,s,f,e&u.U),_[s]!=f&&i(_,s,p),d&&m[s]!=f&&(m[s]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},XMVh:function(e,t,n){var r=n("K0xU")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],c=i[r]();c.next=function(){return{done:n=!0}},i[r]=function(){return c},e(i)}catch(a){}return n}},Xbzi:function(e,t,n){var r=n("0/R4"),o=n("i5dc").set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},YTvA:function(e,t,n){var r=n("VTer")("keys"),o=n("ylqs");e.exports=function(e){return r[e]||(r[e]=o(e))}},Ymqv:function(e,t,n){var r=n("LZWt");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},Z6vF:function(e,t,n){var r=n("ylqs")("meta"),o=n("0/R4"),i=n("aagx"),a=n("hswa").f,c=0,u=Object.isExtensible||function(){return!0},s=!n("eeVq")(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++c,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&u(e)&&!i(e,r)&&l(e),e}}},ZD67:function(e,t,n){"use strict";var r=n("3Lyj"),o=n("Z6vF").getWeak,i=n("y3w9"),a=n("0/R4"),c=n("9gX7"),u=n("SlkY"),s=n("CkkT"),l=n("aagx"),f=n("s5qY"),p=s(5),h=s(6),v=0,d=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},y=function(e,t){return p(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=h(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var s=e(function(e,r){c(e,s,t,"_i"),e._t=t,e._i=v++,e._l=void 0,null!=r&&u(r,n,e[i],e)});return r(s.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?d(f(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?d(f(this,t)).has(e):n&&l(n,this._i)}}),s},def:function(e,t,n){var r=o(i(t),!0);return!0===r?d(e).set(t,n):r[e._i]=n,e},ufstore:d}},aCFj:function(e,t,n){var r=n("Ymqv"),o=n("vhPU");e.exports=function(e){return r(o(e))}},aagx:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},apmT:function(e,t,n){var r=n("0/R4");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")}},czNK:function(e,t,n){"use strict";var r=n("DVgA"),o=n("JiEa"),i=n("UqcF"),a=n("S/j/"),c=n("Ymqv"),u=Object.assign;e.exports=!u||n("eeVq")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,s=1,l=o.f,f=i.f;u>s;)for(var p,h=c(arguments[s++]),v=l?r(h).concat(l(h)):r(h),d=v.length,g=0;d>g;)f.call(h,p=v[g++])&&(n[p]=h[p]);return n}:u},"d/Gc":function(e,t,n){var r=n("RYi7"),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},dyZX:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},eeVq:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},elZq:function(e,t,n){"use strict";var r=n("dyZX"),o=n("hswa"),i=n("nh4g"),a=n("K0xU")("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},"fN/3":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e){return i(o(e),arguments.length<2?void 0:a(arguments[1]))}})},fyDq:function(e,t,n){var r=n("hswa").f,o=n("aagx"),i=n("K0xU")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},g3g5:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"hN/g":function(e,t,n){"use strict";n.r(t),n("FZcq"),n("0TWp"),window.global=window},hPIQ:function(e,t){e.exports={}},hswa:function(e,t,n){var r=n("y3w9"),o=n("xpql"),i=n("apmT"),a=Object.defineProperty;t.f=n("nh4g")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(c){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},i5dc:function(e,t,n){var r=n("0/R4"),o=n("y3w9"),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n("m0Pp")(Function.call,n("EemH").f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},"iW+S":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=n("OP3Y"),a=r.has,c=r.key,u=function(e,t,n){if(a(e,t,n))return!0;var r=i(t);return null!==r&&u(e,r,n)};r.exp({hasMetadata:function(e,t){return u(e,o(t),arguments.length<3?void 0:c(arguments[2]))}})},m0Pp:function(e,t,n){var r=n("2OiF");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){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)}}},ne8i:function(e,t,n){var r=n("RYi7"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},nh4g:function(e,t,n){e.exports=!n("eeVq")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},s5qY:function(e,t,n){var r=n("0/R4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},uAtd:function(e,t,n){var r=n("T39b"),o=n("Q3ne"),i=n("N6cJ"),a=n("y3w9"),c=n("OP3Y"),u=i.keys,s=i.key,l=function(e,t){var n=u(e,t),i=c(e);if(null===i)return n;var a=l(i,t);return a.length?n.length?o(new r(n.concat(a))):a:n};i.exp({getMetadataKeys:function(e){return l(a(e),arguments.length<2?void 0:s(arguments[1]))}})},vhPU:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},w2a5:function(e,t,n){var r=n("aCFj"),o=n("ne8i"),i=n("d/Gc");e.exports=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}}},wmvG:function(e,t,n){"use strict";var r=n("hswa").f,o=n("Kuth"),i=n("3Lyj"),a=n("m0Pp"),c=n("9gX7"),u=n("SlkY"),s=n("Afnz"),l=n("1TsA"),f=n("elZq"),p=n("nh4g"),h=n("Z6vF").fastKey,v=n("s5qY"),d=p?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,s){var l=e(function(e,r){c(e,l,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[d]=0,null!=r&&u(r,n,e[s],e)});return i(l.prototype,{clear:function(){for(var e=v(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[d]=0},delete:function(e){var n=v(this,t),r=g(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function(e){v(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(v(this,t),e)}}),p&&r(l.prototype,"size",{get:function(){return v(this,t)[d]}}),l},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[d]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){s(e,t,function(e,n){this._t=v(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?l(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),f(t)}}},xpql:function(e,t,n){e.exports=!n("nh4g")&&!n("eeVq")(function(){return 7!=Object.defineProperty(n("Iw71")("div"),"a",{get:function(){return 7}}).a})},y3w9:function(e,t,n){var r=n("0/R4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ylqs:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},zRwo:function(e,t,n){var r=n("6FMO");e.exports=function(e,t){return new(r(e))(t)}},zhAb:function(e,t,n){var r=n("aagx"),o=n("aCFj"),i=n("w2a5")(!1),a=n("YTvA")("IE_PROTO");e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)n!=a&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},"zq+C":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=r.key,a=r.map,c=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:i(arguments[2]),r=a(o(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var u=c.get(t);return u.delete(n),!!u.size||c.delete(t)}})}},[[1,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,noModule:!0};function y(e,t,n){var o,i=(t=t||r).createElement("script");if(i.text=e,n)for(o in v)n[o]&&(i[o]=n[o]);t.head.appendChild(i).parentNode.removeChild(i)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function w(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!m(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:"3.3.1",constructor:x,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=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.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(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},x.extend=x.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)n=a[t],a!==(r=e[t])&&(l&&r&&(x.isPlainObject(r)||(o=Array.isArray(r)))?(o?(o=!1,i=n&&Array.isArray(n)?n:[]):i=n&&x.isPlainObject(n)?n:{},a[t]=x.extend(l,i,r)):void 0!==r&&(a[t]=r));return a},x.extend({expando:"jQuery"+("3.3.1"+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){y(e)},each:function(e,t){var n,r=0;if(w(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(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?x.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(w(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&&(x.fn[Symbol.iterator]=n[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var E=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=ae(),L=ae(),A=ae(),H=function(e,t){return e===t&&(f=!0),0},M={}.hasOwnProperty,S=[],D=S.pop,N=S.push,k=S.push,j=S.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",R="\\["+P+"*("+I+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+P+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",B=new RegExp(P+"+","g"),W=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),$=new RegExp("^"+P+"*,"+P+"*"),_=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),U=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),V=new RegExp(F),z=new RegExp("^"+I+"$"),X={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+q+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),ee=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)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},oe=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{k.apply(S=j.call(T.childNodes),T.childNodes)}catch(e){k={apply:S.length?function(e,t){N.apply(e,j.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(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=J.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 k.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!A[e+" "]&&(!g||!g.test(e))){if(1!==w)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=x),s=(h=a(e)).length;s--;)h[s]="#"+c+" "+ve(h[s]);v=h.join(","),y=K.test(e)&&me(t.parentNode)||t}if(v)try{return k.apply(r,y.querySelectorAll(v)),r}catch(e){}finally{c===x&&t.removeAttribute("id")}}}return u(e.replace(W,"$1"),t,r,o)}function ae(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function se(e){return e[x]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function ce(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 fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(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&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(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 me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=ie.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",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(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(Z,ee);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(Z,ee);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=Q.test(d.querySelectorAll))&&(ue(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("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+q+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),ue(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"+P+"*[*^$|!~]?="),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=Q.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",F)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(h.compareDocumentPosition),b=t||Q.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},H=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?O(c,e)-O(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?O(c,e)-O(c,t):0;if(o===i)return ce(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?ce(a[r],s[r]):a[r]===T?-1:s[r]===T?1:0},d):d},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(U,"='$1']"),n.matchesSelector&&m&&!A[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){}return ie(t,d,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&M.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},ie.escape=function(e){return(e+"").replace(te,ne)},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],o=0,i=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(H),f){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return c=null,e},o=ie.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=ie.selectors={cacheLength:50,createPseudo:se,match:X,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(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===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]||ie.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]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.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(Z,ee).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("(^|"+P+")"+e+"("+P+"|$)"))&&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=ie.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(B," ")+" ").indexOf(n)>-1:"|="===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&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=O(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?se(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:se(function(e){return function(t){return ie(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:se(function(e){return z.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(Z,ee).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:de(!1),disabled:de(!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 Y.test(e.nodeName)},input:function(e){return G.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:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(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]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ge(){}function ve(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(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,p[2]=e(t,n,u))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function xe(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 Te(e,t,n,r,o,i){return r&&!r[x]&&(r=Te(r)),o&&!o[x]&&(o=Te(o,i)),se(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++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?m:xe(m,p,e,s,u),v=n?o||(i?e:h||r)?[]:a:g;if(n&&n(g,v,s,u),r)for(l=xe(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])&&(l=o?O(i,f):p[c])>-1&&(i[l]=!(a[l]=f))}}else v=xe(v===a?v.splice(h,v.length):v),o?o(null,a,v,u):k.apply(a,v)})}function we(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=ye(function(e){return e===t},s,!0),f=ye(function(e){return O(t,e)>-1},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=[ye(be(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 Te(u>1&&be(p),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(W,"$1"),n,u<o&&we(e.slice(u,o)),o<i&&we(e=e.slice(o)),o<i&&ve(e))}p.push(n)}return be(p)}function Ee(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,u,c){var f,h,g,v=0,y="0",b=i&&[],x=[],T=l,E=i||o&&r.find.TAG("*",c),C=w+=null==T?1:Math.random()||.1,L=E.length;for(c&&(l=a===d||a||c);y!==L&&null!=(f=E[y]);y++){if(o&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!m);g=e[h++];)if(g(f,a||d,s)){u.push(f);break}c&&(w=C)}n&&((f=!g&&f)&&v--,i&&b.push(f))}if(v+=y,n&&y!==v){for(h=0;g=t[h++];)g(b,x,a,s);if(i){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=D.call(u));x=xe(x)}k.apply(u,x),c&&!i&&x.length>0&&v+t.length>1&&ie.uniqueSort(u)}return c&&(w=C,l=T),b};return n?se(i):i}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,a=ie.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=_.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(W," ")}),s=s.slice(n.length)),r.filter)!(o=X[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?ie.error(e):L(e,u).slice(0)},s=ie.compile=function(e,t){var n,r=[],o=[],i=A[e+" "];if(!i){for(t||(t=a(e)),n=t.length;n--;)(i=we(t[n]))[x]?r.push(i):o.push(i);(i=A(e,Ee(o,r))).selector=e}return i},u=ie.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((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&m&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(i=X.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(Z,ee),K.test(u[0].type)&&me(t.parentNode)||t))){if(u.splice(i,1),!(e=o.length&&ve(u)))return k.apply(n,o),n;break}}return(p||s(e,d))(o,t,!m,n,!t||K.test(e)&&me(t.parentNode)||t),n},n.sortStable=x.split("").sort(H).join("")===x,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(q,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(e);x.find=E,x.expr=E.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=E.uniqueSort,x.text=E.getText,x.isXMLDoc=E.isXML,x.contains=E.contains,x.escapeSelector=E.escape;var C=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(n))break;r.push(e)}return r},L=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=x.expr.match.needsContext;function H(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(e,t,n){return m(t)?x.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?x.grep(e,function(e){return e===t!==n}):"string"!=typeof t?x.grep(e,function(e){return u.call(t,e)>-1!==n}):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<r;t++)if(x.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,o[t],n);return r>1?x.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&&A.test(e)?x(e):e||[],!1).length}});var D,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.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]&&e.length>=3?[null,e,null]:N.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(x.merge(this,x.parseHTML(o[1],(t=t instanceof x?t[0]:t)&&t.nodeType?t.ownerDocument||t:r,!0)),M.test(o[1])&&x.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(x):x.makeArray(e,this)}).prototype=x.fn,D=x(r);var k=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&x(e);if(!A.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?x.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(x(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(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return H(e,"iframe")?e.contentDocument:(H(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(e,t){x.fn[e]=function(n,r){var o=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=x.filter(r,o)),this.length>1&&(j[e]||x.uniqueSort(o),k.test(e)&&o.reverse()),this.pushStack(o)}});var q=/[^\x20\t\r\n\f]+/g;function P(e){return e}function I(e){throw e}function R(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])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(q)||[],function(e,n){t[n]=!0}),t}(e):x.extend({},e);var t,n,r,o,i=[],a=[],s=-1,u=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},l={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){x.each(n,function(n,r){m(r)?e.unique&&l.has(r)||i.push(r):r&&r.length&&"string"!==b(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return x.each(arguments,function(e,t){for(var n;(n=x.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?x.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},x.extend({Deferred:function(t){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.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 x.Deferred(function(t){x.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,P,o),a(i,n,I,o)):l.call(e,a(++i,n,P,o),a(i,n,I,o),a(i,n,P,n.notifyWith)):(r!==P&&(s=void 0,u=[e]),(o||n.resolveWith)(s,u))}},c=o?l:function(){try{l()}catch(e){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,c.stackTrace),t+1>=i&&(r!==I&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),e.setTimeout(c))}}return x.Deferred(function(e){n[0][3].add(a(0,e,m(o)?o:P,e.notifyWith)),n[1][3].add(a(0,e,m(t)?t:P)),n[2][3].add(a(0,e,m(r)?r:I))}).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},i={};return x.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=x.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?i.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(R(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||m(o[n]&&o[n].then)))return a.then();for(;n--;)R(o[n],s(n),a.reject);return a.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&F.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},x.readyException=function(t){e.setTimeout(function(){throw t})};var B=x.Deferred();function W(){r.removeEventListener("DOMContentLoaded",W),e.removeEventListener("load",W),x.ready()}x.fn.ready=function(e){return B.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||B.resolveWith(r,[x]))}}),x.ready.then=B.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(x.ready):(r.addEventListener("DOMContentLoaded",W),e.addEventListener("load",W));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(x(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},_=/^-ms-/,U=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function z(e){return e.replace(_,"ms-").replace(U,V)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=x.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(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[z(t)]=n;else for(r in t)o[z(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(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(z):(t=z(t))in r?[t]:t.match(q)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.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&&!x.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),x.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=Q.get(i),1===i.nodeType&&!Y.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=z(r.slice(5)),Z(i,r,o[r]));Y.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Q.set(this,e)}):$(this,function(t){var n;if(i&&void 0===t){if(void 0!==(n=Q.get(i,e)))return n;if(void 0!==(n=Z(i,e)))return n}else this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),x.extend({queue:function(e,t,n){var r;if(e)return r=Y.get(e,t=(t||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=Y.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=x.queue(e,t=t||"fx"),r=n.length,o=n.shift(),i=x._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){x.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:x.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=x.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=Y.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&x.contains(e.ownerDocument,e)&&"none"===x.css(e,"display")},oe=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 ie(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},u=s(),l=n&&n[3]||(x.cssNumber[t]?"":"px"),c=(x.cssNumber[t]||"px"!==l&&+u)&&te.exec(x.css(e,t));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;a--;)x.style(e,t,c+l),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),c/=i;x.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 ae={};function se(e){var t,n=e.ownerDocument,r=e.nodeName,o=ae[r];return o||(t=n.body.appendChild(n.createElement(r)),o=x.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ae[r]=o,o)}function ue(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=Y.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&re(r)&&(o[i]=se(r))):"none"!==n&&(o[i]="none",Y.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}x.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){re(this)?x(this).show():x(this).hide()})}});var le=/^(?:checkbox|radio)$/i,ce=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,fe=/^$|^module$|\/(?:java|ecma)script/i,pe={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 de(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&H(e,t)?x.merge([e],n):n}function he(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}pe.optgroup=pe.option,pe.tbody=pe.tfoot=pe.colgroup=pe.caption=pe.thead,pe.th=pe.td;var me=/<|&#?\w+;/;function ge(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))x.merge(p,i.nodeType?[i]:i);else if(me.test(i)){for(a=a||f.appendChild(t.createElement("div")),s=(ce.exec(i)||["",""])[1].toLowerCase(),a.innerHTML=(u=pe[s]||pe._default)[1]+x.htmlPrefilter(i)+u[2],c=u[0];c--;)a=a.lastChild;x.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(i));for(f.textContent="",d=0;i=p[d++];)if(r&&x.inArray(i,r)>-1)o&&o.push(i);else if(l=x.contains(i.ownerDocument,i),a=de(f.appendChild(i),"script"),l&&he(a),n)for(c=0;i=a[c++];)fe.test(i.type||"")&&n.push(i);return f}!function(){var e=r.createDocumentFragment().appendChild(r.createElement("div")),t=r.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var ve=r.documentElement,ye=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function we(){return!1}function Ee(){try{return r.activeElement}catch(e){}}function Ce(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)Ce(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=we;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return x().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),e.each(function(){x.event.add(this,t,o,r,n)})}x.event={global:{},add:function(e,t,n,r,o){var i,a,s,u,l,c,f,p,d,h,m,g=Y.get(e);if(g)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&x.find.matchesSelector(ve,o),n.guid||(n.guid=x.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(q)||[""]).length;l--;)d=m=(s=xe.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},f=x.event.special[d=(o?f.delegateType:f.bindType)||d]||{},c=x.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&x.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),x.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,l,c,f,p,d,h,m,g=Y.hasData(e)&&Y.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(q)||[""]).length;l--;)if(d=m=(s=xe.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=x.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)||x.removeEvent(e,d,g.handle),delete u[d])}else for(d in u)x.event.remove(e,d+t[l],n,r,!0);x.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=x.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[s.type]||[],c=x.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=x.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&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((x.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&&e.button>=1))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?x(o,this).index(l)>-1:x.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(x.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[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ee()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ee()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&H(this,"input"))return this.click(),!1},_default:function(e){return H(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:we,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&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:we,isPropagationStopped:we,isImmediatePropagationStopped:we,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.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,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&&ye.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&be.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||x.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.fn.extend({on:function(e,t,n,r){return Ce(this,e,t,n,r)},one:function(e,t,n,r){return Ce(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(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=we),this.each(function(){x.event.remove(this,e,n,t)})}});var Le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/<script|<style|<link/i,He=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Se(e,t){return H(e,"table")&&H(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ke(e,t){var n,r,o,i,a,s,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(i=Y.access(e),a=Y.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++)x.event.add(t,o,l[o][n]);Q.hasData(e)&&(s=Q.access(e),u=x.extend({},s),Q.set(t,u))}}function je(e,t){var n=t.nodeName.toLowerCase();"input"===n&&le.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Oe(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||p>1&&"string"==typeof g&&!h.checkClone&&He.test(g))return e.each(function(o){var i=e.eq(o);v&&(t[0]=g.call(this,o,i.html())),Oe(i,t,n,r)});if(p&&(i=(o=ge(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(u=(s=x.map(de(o,"script"),De)).length;f<p;f++)l=o,f!==d&&(l=x.clone(l,!0,!0),u&&x.merge(s,de(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,x.map(s,Ne),f=0;f<u;f++)fe.test((l=s[f]).type||"")&&!Y.access(l,"globalEval")&&x.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&x._evalUrl(l.src):y(l.textContent.replace(Me,""),c,l))}return e}function qe(e,t,n){for(var r,o=t?x.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||x.cleanData(de(r)),r.parentNode&&(n&&x.contains(r.ownerDocument,r)&&he(de(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e.replace(Le,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(a=de(s),r=0,o=(i=de(e)).length;r<o;r++)je(i[r],a[r]);if(t)if(n)for(i=i||de(e),a=a||de(s),r=0,o=i.length;r<o;r++)ke(i[r],a[r]);else ke(e,s);return(a=de(s,"script")).length>0&&he(a,!u&&de(e,"script")),s},cleanData:function(e){for(var t,n,r,o=x.event.special,i=0;void 0!==(n=e[i]);i++)if(X(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)o[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),x.fn.extend({detach:function(e){return qe(this,e,!0)},remove:function(e){return qe(this,e)},text:function(e){return $(this,function(e){return void 0===e?x.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 Oe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Se(this,e).appendChild(e)})},prepend:function(){return Oe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Se(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Oe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Oe(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&&(x.cleanData(de(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.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&&!Ae.test(e)&&!pe[(ce.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(de(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Oe(this,arguments,function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(de(this)),n&&n.replaceChild(t,this))},e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){for(var n,r=[],o=x(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),x(o[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Re=new RegExp(ne.join("|"),"i");function Fe(e,t,n){var r,o,i,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),!h.pixelBoxStyles()&&Pe.test(a)&&Re.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 Be(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%",ve.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=36===c.offsetWidth||"absolute",ve.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,x.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 We=/^(none|table(?!-c[ea]).+)/,$e=/^--/,_e={position:"absolute",visibility:"hidden",display:"block"},Ue={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","Moz","ms"],ze=r.createElement("div").style;function Xe(e){var t=x.cssProps[e];return t||(t=x.cssProps[e]=function(e){if(e in ze)return 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),t}function Ge(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ye(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+=x.css(e,n+ne[a],!0,o)),r?("content"===n&&(u-=x.css(e,"padding"+ne[a],!0,o)),"margin"!==n&&(u-=x.css(e,"border"+ne[a]+"Width",!0,o))):(u+=x.css(e,"padding"+ne[a],!0,o),"padding"!==n?u+=x.css(e,"border"+ne[a]+"Width",!0,o):s+=x.css(e,"border"+ne[a]+"Width",!0,o));return!r&&i>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-u-s-.5))),u}function Qe(e,t,n){var r=Ie(e),o=Fe(e,t,r),i="border-box"===x.css(e,"boxSizing",!1,r),a=i;if(Pe.test(o)){if(!n)return o;o="auto"}return a=a&&(h.boxSizingReliable()||o===e.style[t]),("auto"===o||!parseFloat(o)&&"inline"===x.css(e,"display",!1,r))&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(o=parseFloat(o)||0)+Ye(e,t,n||(i?"border":"content"),a,r,o)+"px"}function Je(e,t,n,r,o){return new Je.prototype.init(e,t,n,r,o)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Fe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!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=z(t),u=$e.test(t),l=e.style;if(u||(t=Xe(s)),a=x.cssHooks[t]||x.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=te.exec(n))&&o[1]&&(n=ie(e,t,o),i="number"),null!=n&&n==n&&("number"===i&&(n+=o&&o[3]||(x.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=z(t);return $e.test(t)||(t=Xe(s)),(a=x.cssHooks[t]||x.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Fe(e,t,r)),"normal"===o&&t in Ue&&(o=Ue[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!We.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Qe(e,t,r):oe(e,_e,function(){return Qe(e,t,r)})},set:function(e,n,r){var o,i=Ie(e),a="border-box"===x.css(e,"boxSizing",!1,i),s=r&&Ye(e,t,r,a,i);return a&&h.scrollboxSize()===i.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-Ye(e,t,"border",!1,i)-.5)),s&&(o=te.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),Ge(0,n,s)}}}),x.cssHooks.marginLeft=Be(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Fe(e,"marginLeft"))||e.getBoundingClientRect().left-oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ne[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(x.cssHooks[e+t].set=Ge)}),x.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Ie(e),o=t.length;a<o;a++)i[t[a]]=x.css(e,t[a],!1,r);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)}}),x.Tween=Je,(Je.prototype={constructor:Je,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=Je.propHooks[this.prop];return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,n=Je.propHooks[this.prop];return this.pos=t=this.options.duration?x.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):Je.propHooks._default.set(this),this}}).init.prototype=Je.prototype,(Je.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=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[x.cssProps[e.prop]]&&!x.cssHooks[e.prop]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=Je.prototype.init,x.fx.step={};var Ke,Ze,et=/^(?:toggle|show|hide)$/,tt=/queueHooks$/;function nt(){Ze&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,x.fx.interval),x.fx.tick())}function rt(){return e.setTimeout(function(){Ke=void 0}),Ke=Date.now()}function ot(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ne[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function it(e,t,n){for(var r,o=(at.tweeners[t]||[]).concat(at.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function at(e,t,n){var r,o,i=0,a=at.prefilters.length,s=x.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var t=Ke||rt(),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:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ke||rt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.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=z(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=x.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=at.prefilters[i].call(l,e,c,l.opts))return m(r.stop)&&(x._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return x.map(c,it,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),x.fx.timer(x.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}x.Animation=x.extend(at,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ie(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(q);for(var n,r=0,o=e.length;r<o;r++)(at.tweeners[n=e[r]]=at.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&&re(e),g=Y.get(e,"fxshow");for(r in n.queue||(null==(a=x._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--,x.queue(e,"fx").length||a.empty.fire()})})),t)if(et.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]||x.style(e,r)}if((u=!x.isEmptyObject(t))||!x.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=g&&g.display)&&(l=Y.get(e,"display")),"none"===(c=x.css(e,"display"))&&(l?c=l:(ue([e],!0),l=e.style.display||l,c=x.css(e,"display"),ue([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===x.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=Y.access(e,"fxshow",{display:l}),i&&(g.hidden=!m),m&&ue([e],!0),p.done(function(){for(r in m||ue([e]),Y.remove(e,"fxshow"),d)x.style(e,r,d[r])})),u=it(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?at.prefilters.unshift(e):at.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.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&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(re).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=x.isEmptyObject(e),i=x.speed(t,n,r),a=function(){var t=at(this,x.extend({},e),i);(o||Y.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=x.timers,a=Y.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&tt.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||x.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Y.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=x.timers,a=r?r.length:0;for(n.finish=!0,x.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})}}),x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(t,!0),e,r,o)}}),x.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(Ke=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),Ke=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){Ze||(Ze=!0,nt())},x.fx.stop=function(){Ze=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,n){return t=x.fx&&x.fx.speeds[t]||t,this.queue(n=n||"fx",function(n,r){var o=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(o)}})},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var st,ut=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return $(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?st:void 0)),void 0!==n?null===n?void x.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=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&H(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(q);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),st={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ut[t]||x.find.attr;ut[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=ut[a],ut[a]=o,o=null!=n(e,t,r)?a:null,ut[a]=i),o}});var lt=/^(?:input|select|textarea|button)$/i,ct=/^(?:a|area)$/i;function ft(e){return(e.match(q)||[]).join(" ")}function pt(e){return e.getAttribute&&e.getAttribute("class")||""}function dt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(q)||[]}x.fn.extend({prop:function(e,t){return $(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&x.isXMLDoc(e)||(o=x.propHooks[t=x.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=x.find.attr(e,"tabindex");return t?parseInt(t,10):lt.test(e.nodeName)||ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(x.propHooks.selected={get:function(e){return null},set:function(e){}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,u=0;if(m(e))return this.each(function(t){x(this).addClass(e.call(this,t,pt(this)))});if((t=dt(e)).length)for(;n=this[u++];)if(o=pt(n),r=1===n.nodeType&&" "+ft(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=ft(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){x(this).removeClass(e.call(this,t,pt(this)))});if(!arguments.length)return this.attr("class","");if((t=dt(e)).length)for(;n=this[u++];)if(o=pt(n),r=1===n.nodeType&&" "+ft(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=ft(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){x(this).toggleClass(e.call(this,n,pt(this),t),t)}):this.each(function(){var t,o,i,a;if(r)for(o=0,i=x(this),a=dt(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=pt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ft(pt(n))+" ").indexOf(t)>-1)return!0;return!1}});var ht=/\r/g;x.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,x(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ht,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:ft(x.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||!H(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=x.makeArray(t),a=o.length;a--;)((r=o[a]).selected=x.inArray(x.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},h.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var mt=/^(?:focusinfocus|focusoutblur)$/,gt=function(e){e.stopPropagation()};x.extend(x.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&&!mt.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[x.expando]?t:new x.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]:x.makeArray(n,[t]),d=x.event.special[y]||{},i||!d.trigger||!1!==d.trigger.apply(o,n))){if(!i&&!d.noBubble&&!g(o)){for(mt.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=a>1?l:d.bindType||y,(p=(Y.get(s,"events")||{})[t.type]&&Y.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&X(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)||!X(o)||c&&m(o[y])&&!g(o)&&((u=o[c])&&(o[c]=null),x.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,gt),o[y](),t.isPropagationStopped()&&h.removeEventListener(y,gt),x.event.triggered=void 0,u&&(o[c]=u)),t.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=Y.access(r,t);o||r.addEventListener(e,n,!0),Y.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=Y.access(r,t)-1;o?Y.access(r,t,o):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}});var vt=e.location,yt=Date.now(),bt=/\?/;x.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+t),n};var xt=/\[\]$/,Tt=/\r?\n/g,wt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,r){var o;if(Array.isArray(t))x.each(t,function(t,o){n||xt.test(e)?r(e,o):Ct(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==b(t))r(e,t);else for(o in t)Ct(e+"["+o+"]",t[o],n,r)}x.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(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(n in e)Ct(n,e[n],t,o);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Et.test(this.nodeName)&&!wt.test(e)&&(this.checked||!le.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var Lt=/%20/g,At=/#.*$/,Ht=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:GET|HEAD)$/,Dt=/^\/\//,Nt={},kt={},jt="*/".concat("*"),Ot=r.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(q)||[];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 Pt(e,t,n,r){var o={},i=e===kt;function a(s){var u;return o[s]=!0,x.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 It(e,t){var n,r,o=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}Ot.href=vt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(vt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?It(It(e,x.ajaxSettings),t):It(x.ajaxSettings,e)},ajaxPrefilter:qt(Nt),ajaxTransport:qt(kt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0);var o,i,a,s,u,l,c,f,p,d,h=x.ajaxSetup({},n=n||{}),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?x(m):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=h.statusCode||{},T={},w={},E="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Mt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,T[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||vt.href)+"").replace(Dt,vt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(q)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ot.protocol+"//"+Ot.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Pt(Nt,h,n,C),c)return C;for(p in(f=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!St.test(h.type),i=h.url.replace(At,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(bt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Ht,"$1"),d=(bt.test(i)?"&":"?")+"_="+yt+++d),h.url=i+d),h.ifModified&&(x.lastModified[i]&&C.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&C.setRequestHeader("If-None-Match",x.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]?", "+jt+"; 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=Pt(kt,h,n,C)){if(C.readyState=1,f&&g.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(u=e.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,o.send(T,L)}catch(e){if(c)throw e;L(-1,e)}}else L(-1,"No Transport");function L(t,n,r,s){var l,p,d,T,w,E=n;c||(c=!0,u&&e.clearTimeout(u),o=void 0,a=s||"",C.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(T=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)),T=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,T,C,l),l?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(x.etag[i]=w)),204===t||"HEAD"===h.type?E="nocontent":304===t?E="notmodified":(E=T.state,p=T.data,l=!(d=T.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]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,r,o){return m(n)&&(o=o||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:o,data:n,success:r},x.isPlainObject(e)&&e))}}),x._evalUrl=function(e){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=x(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){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},Ft=x.ajaxSettings.xhr();h.cors=!!Ft&&"withCredentials"in Ft,h.ajax=Ft=!!Ft,x.ajaxTransport(function(t){var n,r;if(h.cors||Ft&&!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(Rt[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(e){if(n)throw e}},abort:function(){n&&n()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(o,i){t=x("<script>").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 Bt=[],Wt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||x.expando+"_"+yt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,a,s=!1!==t.jsonp&&(Wt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.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(Wt,"$1"+o):!1!==t.jsonp&&(t.url+=(bt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||x.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?x(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(o)),a&&m(i)&&i(a[0]),a=i=void 0}),"script"}),h.createHTMLDocument=function(){var e=r.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),x.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=M.exec(e))?[t.createElement(i[1])]:(i=ge([e],t,a),a&&a.length&&x(a).remove(),x.merge([],i.childNodes)));var o,i,a},x.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=ft(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&x.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(e,t,n){var r,o,i,a,s,u,l=x.css(e,"position"),c=x(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),i=x.css(e,"top"),u=x.css(e,"left"),("absolute"===l||"fixed"===l)&&(i+u).indexOf("auto")>-1?(a=(r=c.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(u)||0),m(t)&&(t=t.call(e,n,x.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)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.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"===x.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"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),o.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-x.css(r,"marginTop",!0),left:t.left-o.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ve})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.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)}}),x.each(["top","left"],function(e,t){x.cssHooks[t]=Be(h.pixelPosition,function(e,n){if(n)return n=Fe(e,t),Pe.test(n)?x(e).position()[t]+"px":n})}),x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){x.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?x.css(t,n,s):x.style(t,n,o,s)},t,a?o:void 0,a)}})}),x.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){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.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)}}),x.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||x.guid++,o},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=H,x.isFunction=m,x.isWindow=g,x.camelCase=z,x.type=b,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var $t=e.jQuery,_t=e.$;return x.noConflict=function(t){return e.$===x&&(e.$=_t),t&&e.jQuery===x&&(e.jQuery=$t),x},t||(e.jQuery=e.$=x),x}),function(e,t){"use strict";var n=e.document,r=e.Object,o=function(e){var t,n,o,i,a=/^[A-Z]+[a-z]/,s=function(e,t){(t=t.toLowerCase())in u||(u[e]=(u[e]||[]).concat(t),u[t]=u[t.toUpperCase()]=e)},u=(r.create||r)(null),l={};for(n in e)for(i in e[n])for(u[i]=o=e[n][i],t=0;t<o.length;t++)u[o[t].toLowerCase()]=u[o[t].toUpperCase()]=i;return l.get=function(e){return"string"==typeof e?u[e]||(a.test(e)?[]:""):function(e){var t,n=[];for(t in u)e.test(t)&&n.push(t);return n}(e)},l.set=function(e,t){return a.test(e)?s(e,t):s(t,e),l},l}({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 i,a,s,u,l,c,f,p,d,h="registerElement",m="__"+h+(1e5*e.Math.random()>>0),g="addEventListener",v="attached",y="Callback",b="detached",x="extends",T="attributeChanged"+y,w=v+y,E="connected"+y,C="disconnected"+y,L="created"+y,A=b+y,H="ADDITION",M="REMOVAL",S="DOMAttrModified",D="DOMContentLoaded",N="DOMSubtreeModified",k="<",j="=",O=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,q=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],P=[],I=[],R="",F=n.documentElement,B=P.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},W=r.prototype,$=W.hasOwnProperty,_=W.isPrototypeOf,U=r.defineProperty,V=[],z=r.getOwnPropertyDescriptor,X=r.getOwnPropertyNames,G=r.getPrototypeOf,Y=r.setPrototypeOf,Q=!!r.__proto__,J="__dreCEv1",K=e.customElements,Z=!/^force/.test(t.type)&&!!(K&&K.define&&K.get&&K.whenDefined),ee=r.create||r,te=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[B.call(t,e)]},set:function(r,o){(e=B.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},ne=e.Promise||function(e){var t=[],n=!1,r={catch:function(){return r},then:function(e){return t.push(e),n&&setTimeout(o,1),r}};function o(e){for(n=!0;t.length;)t.shift()(e)}return e(o),r},re=!1,oe=ee(null),ie=ee(null),ae=new te,se=function(e){return e.toLowerCase()},ue=r.create||function e(t){return t?(e.prototype=t,new e):this},le=Y||(Q?function(e,t){return e.__proto__=t,e}:X&&z?function(){function e(e,t){for(var n,r=X(t),o=0,i=r.length;o<i;o++)$.call(e,n=r[o])||U(e,n,z(t,n))}return function(t,n){do{e(t,n)}while((n=G(n))&&!_.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),ce=e.MutationObserver||e.WebKitMutationObserver,fe=(e.HTMLElement||e.Element||e.Node).prototype,pe=!_.call(fe,F),de=pe?function(e,t,n){return e[t]=n.value,e}:U,he=pe?function(e){return 1===e.nodeType}:function(e){return _.call(fe,e)},me=pe&&[],ge=fe.attachShadow,ve=fe.cloneNode,ye=fe.dispatchEvent,be=fe.getAttribute,xe=fe.hasAttribute,Te=fe.removeAttribute,we=fe.setAttribute,Ee=n.createElement,Ce=Ee,Le=ce&&{attributes:!0,characterData:!0,attributeOldValue:!0},Ae=ce||function(e){Ne=!1,F.removeEventListener(S,Ae)},He=0,Me=h in n&&!/^force-all/.test(t.type),Se=!0,De=!1,Ne=!0,ke=!0,je=!0;function Oe(){var e=i.splice(0,i.length);for(He=0;e.length;)e.shift().call(null,e.shift())}function qe(e,t){for(var n=0,r=e.length;n<r;n++)Ve(e[n],t)}function Pe(e){return function(t){he(t)&&(Ve(t,e),R.length&&qe(t.querySelectorAll(R),e))}}function Ie(e){var t=be.call(e,"is"),n=e.nodeName.toUpperCase(),r=B.call(P,t?j+t.toUpperCase():k+n);return t&&-1<r&&!Re(n,t)?-1:r}function Re(e,t){return-1<R.indexOf(e+'[is="'+t+'"]')}function Fe(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,i=e[H]||2,a=e[M]||3;!je||o&&o!==t||!t[T]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==i&&n!==a)||t[T](r,n===i?null:e.prevValue,n===a?null:e.newValue)}function Be(e){var t=Pe(e);return function(e){i.push(t,e.target),He&&clearTimeout(He),He=setTimeout(Oe,1)}}function We(e){ke&&(ke=!1,e.currentTarget.removeEventListener(D,We)),R.length&&qe((e.target||n).querySelectorAll(R),e.detail===b?b:v),pe&&function(){for(var e,t=0,n=me.length;t<n;t++)F.contains(e=me[t])||(n--,me.splice(t--,1),Ve(e,b))}()}function $e(e,t){we.call(this,e,t),a.call(this,{target:this})}function _e(e,t){le(e,t),l?l.observe(e,Le):(Ne&&(e.setAttribute=$e,e[m]=u(e),e[g](N,a)),e[g](S,Fe)),e[L]&&je&&(e.created=!0,e[L](),e.created=!1)}function Ue(e){throw new Error("A "+e+" type is already registered")}function Ve(e,t){var n,r,o=Ie(e);-1<o&&(f(e,I[o]),o=0,t!==v||e[v]?t!==b||e[b]||(e[v]=!1,e[b]=!0,r="disconnected",o=1):(e[b]=!1,e[v]=!0,r="connected",o=1,pe&&B.call(me,e)<0&&me.push(e)),o&&(n=e[t+y]||e[r+y])&&n.call(e))}function ze(){}function Xe(e,t,r){var o=r&&r[x]||"",i=t.prototype,a=ue(i),s=t.observedAttributes||V,u={prototype:a};de(a,L,{value:function(){if(re)re=!1;else if(!this[J]){this[J]=!0,new t(this),i[L]&&i[L].call(this);var e=oe[ae.get(t)];(!Z||e.create.length>1)&&Qe(this)}}}),de(a,T,{value:function(e){-1<B.call(s,e)&&i[T].apply(this,arguments)}}),i[E]&&de(a,w,{value:i[E]}),i[C]&&de(a,A,{value:i[C]}),o&&(u[x]=o),e=e.toUpperCase(),oe[e]={constructor:t,create:o?[o,se(e)]:[e]},ae.set(t,e),n[h](e.toLowerCase(),u),Je(e),ie[e].r()}function Ge(e){var t=oe[e.toUpperCase()];return t&&t.constructor}function Ye(e){return"string"==typeof e?e:e&&e.is||""}function Qe(e){for(var t,n=e[T],r=n?e.attributes:V,o=r.length;o--;)n.call(e,(t=r[o]).name||t.nodeName,null,t.value||t.nodeValue)}function Je(e){return(e=e.toUpperCase())in ie||(ie[e]={},ie[e].p=new ne(function(t){ie[e].r=t})),ie[e].p}function Ke(){K&&delete e.customElements,U(e,"customElements",{configurable:!0,value:new ze}),U(e,"CustomElementRegistry",{configurable:!0,value:ze});for(var t=function(t){var r=e[t];if(r){e[t]=function(e){var t,o;return e||(e=this),e[J]||(re=!0,t=oe[ae.get(e.constructor)],(e=(o=Z&&1===t.create.length)?Reflect.construct(r,V,t.constructor):n.createElement.apply(n,t.create))[J]=!0,re=!1,o||Qe(e)),e},e[t].prototype=r.prototype;try{r.prototype.constructor=e[t]}catch(o){U(r,J,{value:e[t]})}}},r=o.get(/^HTML[A-Z]*[a-z]/),i=r.length;i--;t(r[i]));n.createElement=function(e,t){var n=Ye(t);return n?Ce.call(this,e,se(n)):Ce.call(this,e)},Me||(De=!0,n[h](""))}if(ce&&((d=n.createElement("div")).innerHTML="<div><div></div></div>",new ce(function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(d=z(fe,"innerHTML"))&&d.set;n&&U(fe,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),d=null}).observe(d,{childList:!0,subtree:!0}),d.innerHTML=""),Me||(Y||Q?(f=function(e,t){_.call(t,e)||_e(e,t)},p=_e):p=f=function(e,t){e[m]||(e[m]=r(!0),_e(e,t))},pe?(Ne=!1,function(){var e=z(fe,g),t=e.value,n=function(e){var t=new CustomEvent(S,{bubbles:!0});t.attrName=e,t.prevValue=be.call(this,e),t.newValue=null,t[M]=t.attrChange=2,Te.call(this,e),ye.call(this,t)},r=function(e,t){var n=xe.call(this,e),r=n&&be.call(this,e),o=new CustomEvent(S,{bubbles:!0});we.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[H]=o.attrChange=0,ye.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[m],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(S,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[H]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,ye.call(n,t))};e.value=function(e,i,a){e===S&&this[T]&&this.setAttribute!==r&&(this[m]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,i,a)},U(fe,g,e)}()):ce||(F[g](S,Ae),F.setAttribute(m,1),F.removeAttribute(m),Ne&&(a=function(e){var t,n,r;if(this===e.target){for(r in t=this[m],this[m]=n=u(this),n){if(!(r in t))return s(0,this,r,t[r],n[r],H);if(n[r]!==t[r])return s(1,this,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return s(2,this,r,t[r],n[r],M)}},s=function(e,t,n,r,o,i){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[i]=e,Fe(a)},u=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})),n[h]=function(e,t){if(r=e.toUpperCase(),Se&&(Se=!1,ce?(l=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new ce(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,je&&i[T]&&"style"!==o.attributeName&&(a=be.call(i,o.attributeName))!==o.oldValue&&i[T](o.attributeName,o.oldValue,a))})}(Pe(v),Pe(b)),(c=function(e){return l.observe(e,{childList:!0,subtree:!0}),e})(n),ge&&(fe.attachShadow=function(){return c(ge.apply(this,arguments))})):(i=[],n[g]("DOMNodeInserted",Be(v)),n[g]("DOMNodeRemoved",Be(b))),n[g](D,We),n[g]("readystatechange",We),fe.cloneNode=function(e){var t=ve.call(this,!!e),n=Ie(t);return-1<n&&p(t,I[n]),e&&R.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)p(t=e[n],I[Ie(t)])}(t.querySelectorAll(R)),t}),De)return De=!1;if(-2<B.call(P,j+r)+B.call(P,k+r)&&Ue(e),!O.test(r)||-1<B.call(q,r))throw new Error("The type "+e+" is invalid");var r,o,a=function(){return u?n.createElement(f,r):n.createElement(f)},s=t||W,u=$.call(s,x),f=u?t[x].toUpperCase():r;return u&&-1<B.call(P,k+f)&&Ue(f),o=P.push((u?j:k)+r)-1,R=R.concat(R.length?",":"",u?f+'[is="'+e.toLowerCase()+'"]':f),a.prototype=I[o]=$.call(s,"prototype")?s.prototype:ue(fe),R.length&&qe(n.querySelectorAll(R),v),a},n.createElement=Ce=function(e,t){var r=Ye(t),o=r?Ee.call(n,e,se(r)):Ee.call(n,e),i=""+e,a=B.call(P,(r?j:k)+(r||i).toUpperCase()),s=-1<a;return r&&(o.setAttribute("is",r=r.toLowerCase()),s&&(s=Re(i.toUpperCase(),r))),je=!n.createElement.innerHTMLHelper,s&&p(o,I[a]),o}),ze.prototype={constructor:ze,define:Z?function(e,t,n){if(n)Xe(e,t,n);else{var r=e.toUpperCase();oe[r]={constructor:t,create:[r]},ae.set(t,r),K.define(e,t)}}:Xe,get:Z?function(e){return K.get(e)||Ge(e)}:Ge,whenDefined:Z?function(e){return ne.race([K.whenDefined(e),Je(e)])}:Je},!K||/^force/.test(t.type))Ke();else if(!t.noBuiltIn)try{!function(t,r,o){if(r[x]="a",(t.prototype=ue(HTMLAnchorElement.prototype)).constructor=t,e.customElements.define(o,t,r),be.call(n.createElement("a",{is:o}),"is")!==o||Z&&be.call(new t,"is")!==o)throw r}(function e(){return Reflect.construct(HTMLAnchorElement,[],e)},{},"document-register-element-a")}catch(Ze){Ke()}if(!t.noBuiltIn)try{Ee.call(n,"a","a")}catch(et){se=function(e){return{is:e.toLowerCase()}}}}(window);
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+27z":function(e,t){function n(e,t,n){var r={audio:!1,video:{mandatory:{chromeMediaSource:e?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(r.audio={mandatory:{chromeMediaSource:e?"screen":"desktop"},optional:[]}),t&&(r.video.mandatory.chromeMediaSourceId=t,r.audio&&r.audio.mandatory&&(r.audio.mandatory.chromeMediaSourceId=t)),r}function r(e){i?i.isLoaded?i.contentWindow.postMessage(e?e.forEach?{captureCustomSourceId:e}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){r(e)},100):o(function(){r(e)})}var i;function o(e){i?e():((i=document.createElement("iframe")).onload=function(){i.isLoaded=!0,e()},i.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",i.style.display="none",(document.body||document.documentElement).appendChild(i))}function s(){i?i.isLoaded?i.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(s,100):o(s)}window.getScreenId=function(e,t,i){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?t(null,"firefox",{video:{mozMediaSource:e,mediaSource:e}}):(window.addEventListener("message",function e(r){r.data&&(r.data.chromeMediaSourceId&&("PermissionDeniedError"===r.data.chromeMediaSourceId?t("permission-denied"):t(null,r.data.chromeMediaSourceId,n(null,r.data.chromeMediaSourceId,r.data.canRequestAudioTrack)),window.removeEventListener("message",e)),r.data.chromeExtensionStatus&&(t(r.data.chromeExtensionStatus,null,n(r.data.chromeExtensionStatus)),window.removeEventListener("message",e)))}),i?setTimeout(function(){r(i)},100):setTimeout(r,100)):t({video:!0})},window.getScreenConstraints=function(e){o(function(){getScreenId(function(t,n,r){r||(r={video:!0}),e(t,r.video)})})},window.getChromeExtensionStatus=function(e){navigator.mozGetUserMedia?e("installed-enabled"):(window.addEventListener("message",function t(n){n.data&&n.data.chromeExtensionStatus&&(e(n.data.chromeExtensionStatus),window.removeEventListener("message",t))}),setTimeout(s,100))},t.getScreenId=getScreenId},"+FKC":function(e,t,n){"use strict";t.__esModule=!0;var r=n("bDgZ");t.WebRtcStats=function(){function e(e){this.stream=e,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 e.prototype.isEnabled=function(){return this.webRtcStatsEnabled},e.prototype.initWebRtcStats=function(){var e=this,t=localStorage.getItem("elastest-instrumentation");if(t){console.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),this.webRtcStatsEnabled=!0;var n=JSON.parse(t);return this.statsInterval=n.webrtc.interval,console.warn("localStorage item: "+JSON.stringify(n)),void(this.webRtcStatsIntervalId=setInterval(function(){e.sendStatsToHttpEndpoint(n)},1e3*this.statsInterval))}console.debug("WebRtc stats not enabled")},e.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))},e.prototype.getSelectedIceCandidateInfo=function(){var e=this;return new Promise(function(t,n){e.getStatsAgnostic(e.stream.getRTCPeerConnection(),function(i){if(-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera")){var o=void 0,s=void 0,a=void 0,l={},u={};for(var c in i){var d=i[c];"localcandidate"===d.type?l[d.id]=d:"remotecandidate"===d.type?u[d.id]=d:"googCandidatePair"===d.type&&"true"===d.googActiveConnection&&(a=d,o=d.localCandidateId,s=d.remoteCandidateId)}var h=l[o];if(h){var p=e.stream.getLocalIceCandidateList().filter(function(e){return!!e.candidate&&e.candidate.indexOf(h.ipAddress)>=0&&e.candidate.indexOf(h.portNumber)>=0&&e.candidate.indexOf(h.priority)>=0});h.raw=p[0]?p[0].candidate:"ERROR: Cannot find local candidate in list of sent ICE candidates"}else h="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";var f=u[s];f?(p=e.stream.getRemoteIceCandidateList().filter(function(e){return!!e.candidate&&e.candidate.indexOf(f.ipAddress)>=0&&e.candidate.indexOf(f.portNumber)>=0&&e.candidate.indexOf(f.priority)>=0}),f.raw=p[0]?p[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",t({googCandidatePair:a,localCandidate:h,remoteCandidate:f})}else n("Selected ICE candidate info only available for Chrome")},function(e){n(e)})})},e.prototype.sendStatsToHttpEndpoint=function(e){var t=this,n=function(n){var r=new XMLHttpRequest,i=e.webrtc.httpEndpoint;r.open("POST",i,!0),r.setRequestHeader("Content-type","application/json"),r.onreadystatechange=function(){4===r.readyState&&200===r.status&&console.log("WebRtc stats successfully sent to "+i+" for stream "+t.stream.streamId+" of connection "+t.stream.connection.connectionId)},r.send(n)};this.getStatsAgnostic(this.stream.getRTCPeerConnection(),function(i){if(-1!==r.name.indexOf("Firefox"))i.forEach(function(r){var i={};if("inbound-rtp"===r.type&&null!==r.nackCount&&!1===r.isRemote&&r.id.startsWith("inbound")&&r.remoteId.startsWith("inbound")){var o="webrtc_inbound_"+r.mediaType+"_"+r.ssrc,s={bytesReceived:(r.bytesReceived-t.stats.inbound[r.mediaType].bytesReceived)/t.statsInterval,jitter:1e3*r.jitter,packetsReceived:(r.packetsReceived-t.stats.inbound[r.mediaType].packetsReceived)/t.statsInterval,packetsLost:(r.packetsLost-t.stats.inbound[r.mediaType].packetsLost)/t.statsInterval},a={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===r.mediaType&&(s.framesDecoded=(r.framesDecoded-t.stats.inbound.video.framesDecoded)/t.statsInterval,s.nackCount=(r.nackCount-t.stats.inbound.video.nackCount)/t.statsInterval,a.framesDecoded="frames",a.nackCount="packets",t.stats.inbound.video.framesDecoded=r.framesDecoded,t.stats.inbound.video.nackCount=r.nackCount),t.stats.inbound[r.mediaType].bytesReceived=r.bytesReceived,t.stats.inbound[r.mediaType].packetsReceived=r.packetsReceived,t.stats.inbound[r.mediaType].packetsLost=r.packetsLost,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",type:o,stream_type:"composed_metrics",units:a})[o]=s,n(JSON.stringify(i))}else"outbound-rtp"===r.type&&!1===r.isRemote&&r.id.toLowerCase().includes("outbound")&&(o="webrtc_outbound_"+r.mediaType+"_"+r.ssrc,s={bytesSent:(r.bytesSent-t.stats.outbound[r.mediaType].bytesSent)/t.statsInterval,packetsSent:(r.packetsSent-t.stats.outbound[r.mediaType].packetsSent)/t.statsInterval},a={bytesSent:"bytes",packetsSent:"packets"},"video"===r.mediaType&&(s.framesEncoded=(r.framesEncoded-t.stats.outbound.video.framesEncoded)/t.statsInterval,a.framesEncoded="frames",t.stats.outbound.video.framesEncoded=r.framesEncoded),t.stats.outbound[r.mediaType].bytesSent=r.bytesSent,t.stats.outbound[r.mediaType].packetsSent=r.packetsSent,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",type:o,stream_type:"composed_metrics",units:a})[o]=s,n(JSON.stringify(i)))});else if(-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera"))for(var o=0,s=Object.keys(i);o<s.length;o++){var a=i[s[o]];if("ssrc"===a.type){var l={};if("bytesReceived"in a&&("audio"===a.mediaType&&"audioOutputLevel"in a||"video"===a.mediaType&&"qpSum"in a)){var u="webrtc_inbound_"+a.mediaType+"_"+a.ssrc,c={bytesReceived:(a.bytesReceived-t.stats.inbound[a.mediaType].bytesReceived)/t.statsInterval,jitter:a.googJitterBufferMs,packetsReceived:(a.packetsReceived-t.stats.inbound[a.mediaType].packetsReceived)/t.statsInterval,packetsLost:(a.packetsLost-t.stats.inbound[a.mediaType].packetsLost)/t.statsInterval},d={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===a.mediaType&&(c.framesDecoded=(a.framesDecoded-t.stats.inbound.video.framesDecoded)/t.statsInterval,c.nackCount=(a.googNacksSent-t.stats.inbound.video.nackCount)/t.statsInterval,d.framesDecoded="frames",d.nackCount="packets",t.stats.inbound.video.framesDecoded=a.framesDecoded,t.stats.inbound.video.nackCount=a.googNacksSent),t.stats.inbound[a.mediaType].bytesReceived=a.bytesReceived,t.stats.inbound[a.mediaType].packetsReceived=a.packetsReceived,t.stats.inbound[a.mediaType].packetsLost=a.packetsLost,(l={"@timestamp":new Date(a.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",type:u,stream_type:"composed_metrics",units:d})[u]=c,n(JSON.stringify(l))}else"bytesSent"in a&&(u="webrtc_outbound_"+a.mediaType+"_"+a.ssrc,c={bytesSent:(a.bytesSent-t.stats.outbound[a.mediaType].bytesSent)/t.statsInterval,packetsSent:(a.packetsSent-t.stats.outbound[a.mediaType].packetsSent)/t.statsInterval},d={bytesSent:"bytes",packetsSent:"packets"},"video"===a.mediaType&&(c.framesEncoded=(a.framesEncoded-t.stats.outbound.video.framesEncoded)/t.statsInterval,d.framesEncoded="frames",t.stats.outbound.video.framesEncoded=a.framesEncoded),t.stats.outbound[a.mediaType].bytesSent=a.bytesSent,t.stats.outbound[a.mediaType].packetsSent=a.packetsSent,(l={"@timestamp":new Date(a.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",type:u,stream_type:"composed_metrics",units:d})[u]=c,n(JSON.stringify(l)))}}},function(e){console.log(e)})},e.prototype.standardizeReport=function(e){console.log(e);var t={};return-1!==r.name.indexOf("Firefox")?(Object.keys(e).forEach(function(t){console.log(e[t])}),e):(e.result().forEach(function(e){var n={id:e.id,timestamp:e.timestamp,type:e.type};e.names().forEach(function(t){n[t]=e.stat(t)}),t[n.id]=n}),t)},e.prototype.getStatsAgnostic=function(e,t,n){var i=this;return-1!==r.name.indexOf("Firefox")?e.getStats(null).then(function(e){var n=i.standardizeReport(e);t(n)}).catch(n):-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera")?e.getStats(function(e){var n=i.standardizeReport(e);t(n)},null,n):void 0},e}()},"+ig+":function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.FilterEvent=function(e){function t(t,n,r){var i=e.call(this,!1,t,n)||this;return i.data=r,i}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},"/dLB":function(e,t,n){"use strict";t.__esModule=!0,function(e){e.AFTER="AFTER",e.APPEND="APPEND",e.BEFORE="BEFORE",e.PREPEND="PREPEND",e.REPLACE="REPLACE"}(t.VideoInsertMode||(t.VideoInsertMode={}))},0:function(e,t,n){e.exports=n("zUnb")},"0wxW":function(e,t,n){var r=n("de4E"),i=n("pLL0");t.JsonRPC=r,t.XmlRPC=i},"1Kca":function(e,t,n){"use strict";var r=n("dY/r");e.exports=function(e){var t,i={stun:(e||{}).stun||n("KFtI"),turn:(e||{}).turn||n("hw9W")},o=(e||{}).turnCount||0;function s(e,t){for(var n,o=[],s=[].concat(i[e]);s.length&&o.length<t;)n=Math.random()*s.length|0,o=o.concat(s.splice(n,1));return o.map(function(t){return"string"==typeof t||t instanceof String?r(e+":"+t):t})}return t=[].concat(s("stun",(e||{}).stunCount||2)),o&&(t=t.concat(s("turn",o))),t}},"5kmN":function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("1Kca"),o=n("Wfi+"),s=function(){function e(e){var t=this;this.configuration=e,this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,this.configuration.iceServers=this.configuration.iceServers&&this.configuration.iceServers.length>0?this.configuration.iceServers:i(),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.id=e.id?e.id:o.v4(),this.pc.onicecandidate=function(e){if(e.candidate){var n=e.candidate;n?(t.localCandidatesQueue.push({candidate:n.candidate}),t.candidategatheringdone=!1,t.configuration.onicecandidate(e.candidate)):t.candidategatheringdone||(t.candidategatheringdone=!0)}},this.pc.onsignalingstatechange=function(){if("stable"===t.pc.signalingState)for(;t.iceCandidateList.length>0;)t.pc.addIceCandidate(t.iceCandidateList.shift())},this.start()}return e.prototype.start=function(){var e=this;return new Promise(function(t,n){if("closed"===e.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'),e.configuration.mediaStream){for(var r=0,i=e.configuration.mediaStream.getTracks();r<i.length;r++)e.pc.addTrack(i[r],e.configuration.mediaStream);t()}})},e.prototype.dispose=function(e){console.debug("Disposing WebRtcPeer");try{if(this.pc){if("closed"===this.pc.signalingState)return;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[];for(var t=0,n=this.pc.getSenders();t<n.length;t++){var r=n[t];e||r.track&&r.track.stop(),this.pc.removeTrack(r)}for(var i=0,o=this.pc.getReceivers();i<o.length;i++){var s=o[i];s.track&&s.track.stop()}this.pc.close()}}catch(a){console.warn("Exception disposing webrtc peer "+a)}},e.prototype.generateOffer=function(){var e=this;return new Promise(function(t,n){var r,i=!0;e.configuration.mediaConstraints&&(r="boolean"!=typeof e.configuration.mediaConstraints.audio||e.configuration.mediaConstraints.audio,i="boolean"!=typeof e.configuration.mediaConstraints.video||e.configuration.mediaConstraints.video);var o={offerToReceiveAudio:"sendonly"!==e.configuration.mode&&r,offerToReceiveVideo:"sendonly"!==e.configuration.mode&&i};console.debug("RTCPeerConnection constraints: "+JSON.stringify(o)),e.pc.createOffer(o).then(function(t){return console.debug("Created SDP offer"),e.pc.setLocalDescription(t)}).then(function(){var r=e.pc.localDescription;r?(console.debug("Local description set",r.sdp),t(r.sdp)):n("Local description is not defined")}).catch(function(e){return n(e)})})},e.prototype.processOffer=function(e){var t=this;return new Promise(function(n,r){var i={type:"offer",sdp:e};console.debug("SDP offer received, setting remote description"),"closed"===t.pc.signalingState&&r("PeerConnection is closed"),t.pc.setRemoteDescription(i).then(function(){return t.pc.createAnswer()}).then(function(e){return console.debug("Created SDP answer"),t.pc.setLocalDescription(e)}).then(function(){var e=t.pc.localDescription;e?(console.debug("Local description set",e.sdp),n(e.sdp)):r("Local description is not defined")}).catch(function(e){return r(e)})})},e.prototype.processAnswer=function(e){var t=this;return new Promise(function(n,r){var i={type:"answer",sdp:e};console.debug("SDP answer received, setting remote description"),"closed"===t.pc.signalingState&&r("RTCPeerConnection is closed"),t.pc.setRemoteDescription(i).then(function(){return n()}).catch(function(e){return r(e)})})},e.prototype.addIceCandidate=function(e){var t=this;return new Promise(function(n,r){switch(console.debug("Remote ICE candidate received",e),t.remoteCandidatesQueue.push(e),t.pc.signalingState){case"closed":r(new Error("PeerConnection object is closed"));break;case"stable":t.pc.remoteDescription&&t.pc.addIceCandidate(e).then(function(){return n()}).catch(function(e){return r(e)});break;default:t.iceCandidateList.push(e),n()}})},e}();t.WebRtcPeer=s,t.WebRtcPeerRecvonly=function(e){function t(t){return t.mode="recvonly",e.call(this,t)||this}return r(t,e),t}(s),t.WebRtcPeerSendonly=function(e){function t(t){return t.mode="sendonly",e.call(this,t)||this}return r(t,e),t}(s),t.WebRtcPeerSendrecv=function(e){function t(t){return t.mode="sendrecv",e.call(this,t)||this}return r(t,e),t}(s)},"6+/i":function(e,t,n){var r;!function(t){"use strict";function i(){}var o=i.prototype,s=t.EventEmitter;function a(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function l(e){return function(){return this[e].apply(this,arguments)}}o.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp)for(n in t={},r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n]);else t=r[e]||(r[e]=[]);return t},o.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},o.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},o.addListener=function(e,t){if(!function e(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&e(t.listener)}(t))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(e),i="object"==typeof t;for(n in r)r.hasOwnProperty(n)&&-1===a(r[n],t)&&r[n].push(i?t:{listener:t,once:!1});return this},o.on=l("addListener"),o.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},o.once=l("addOnceListener"),o.defineEvent=function(e){return this.getListeners(e),this},o.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},o.removeListener=function(e,t){var n,r,i=this.getListenersAsObject(e);for(r in i)i.hasOwnProperty(r)&&-1!==(n=a(i[r],t))&&i[r].splice(n,1);return this},o.off=l("removeListener"),o.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},o.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},o.manipulateListeners=function(e,t,n){var r,i,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)o.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(i=t[r])&&("function"==typeof i?o.call(this,r,i):s.call(this,r,i));return this},o.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if(e instanceof RegExp)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},o.removeAllListeners=l("removeEvent"),o.emitEvent=function(e,t){var n,r,i,o,s=this.getListenersAsObject(e);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(e,r.listener),r.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,r.listener);return this},o.trigger=l("emitEvent"),o.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},o.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},i.noConflict=function(){return t.EventEmitter=s,i},void 0===(r=(function(){return i}).call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof window?window:this||{})},"74bm":function(e,t,n){"use strict";t.__esModule=!0;var r=n("BwMD"),i=n("Tt94");t.Filter=function(){function e(e,t){this.handlers={},this.type=e,this.options=t}return e.prototype.execMethod=function(e,t){var n=this;return new Promise(function(o,s){var a;if(console.info("Executing filter method to stream "+n.stream.streamId),"string"!=typeof t)try{a=JSON.stringify(t)}catch(u){var l="'params' property must be a JSON formatted object";console.error(l),s(l)}else a=t;n.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:n.stream.streamId,method:e,params:a},function(t,l){if(t)console.error("Error executing filter method for Stream "+n.stream.streamId,t),s(401===t.code?new i.OpenViduError(i.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):t);else{console.info("Filter method successfully executed on Stream "+n.stream.streamId);var u=Object.assign({},n.stream.filter);n.stream.filter.lastExecMethod={method:e,params:JSON.parse(a)},n.stream.session.emitEvent("streamPropertyChanged",[new r.StreamPropertyChangedEvent(n.stream.session,n.stream,"filter",n.stream.filter,u,"execFilterMethod")]),n.stream.streamManager.emitEvent("streamPropertyChanged",[new r.StreamPropertyChangedEvent(n.stream.streamManager,n.stream,"filter",n.stream.filter,u,"execFilterMethod")]),o()}})})},e.prototype.addEventListener=function(e,t){var n=this;return new Promise(function(r,o){console.info("Adding filter event listener to event "+e+" to stream "+n.stream.streamId),n.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:n.stream.streamId,eventType:e},function(s,a){s?(console.error("Error adding filter event listener to event "+e+"for Stream "+n.stream.streamId,s),o(401===s.code?new i.OpenViduError(i.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):s)):(n.handlers[e]=t,console.info("Filter event listener to event "+e+" successfully applied on Stream "+n.stream.streamId),r())})})},e.prototype.removeEventListener=function(e){var t=this;return new Promise(function(n,r){console.info("Removing filter event listener to event "+e+" to stream "+t.stream.streamId),t.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:t.stream.streamId,eventType:e},function(o,s){o?(console.error("Error removing filter event listener to event "+e+"for Stream "+t.stream.streamId,o),r(401===o.code?new i.OpenViduError(i.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):o)):(delete t.handlers[e],console.info("Filter event listener to event "+e+" successfully removed on Stream "+t.stream.streamId),n())})})},e}()},"8KVD":function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.ConnectionEvent=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.connection=i,s.reason=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},AeG9:function(e,t,n){var r=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(f){r=!0}Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i});var i=n("txJ/").EventEmitter,o=n("HgqT"),s=n("0wxW"),a=n("gUCu"),l=5e3;function u(e){if(e){if(e instanceof Function)return{send:e};if(e.send instanceof Function)return e;if(e.postMessage instanceof Function)return e.send=e.postMessage,e;if(e.write instanceof Function)return e.send=e.write,e;if(void 0===e.onmessage&&!(e.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function c(e,t){r?(this.method=e,this.params=t):(Object.defineProperty(this,"method",{value:e,enumerable:!0}),Object.defineProperty(this,"params",{value:t,enumerable:!0}))}function d(e,t,n,s){var d=this;if(!e)throw new SyntaxError("Packer is not defined");if(!e.pack||!e.unpack)throw new SyntaxError("Packer is invalid");var h=function(e){if(!e)return{};for(var t in e){var n=e[t];"string"==typeof n&&(e[t]={response:n})}return e}(e.responseMethods);if(t instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after onRequest");s=t,n=void 0,t=void 0}if(t&&t.send instanceof Function){if(n&&!(n instanceof Function))throw new SyntaxError("Only a function can be after transport");s=n,n=t,t=void 0}if(n instanceof Function){if(null!=s)throw new SyntaxError("There can't be parameters after onRequest");s=n,n=void 0}if(n&&n.send instanceof Function&&s&&!(s instanceof Function))throw new SyntaxError("Only a function can be after transport");t=t||{},i.call(this),s&&this.on("request",s),r?this.peerID=t.peerID:Object.defineProperty(this,"peerID",{value:t.peerID});var p=t.max_retries||0;function m(e){d.decode(e.data||e)}this.getTransport=function(){return n},this.setTransport=function(e){n&&(n.removeEventListener?n.removeEventListener("message",m):n.removeListener&&n.removeListener("data",m)),e&&(e.addEventListener?e.addEventListener("message",m):e.addListener&&e.addListener("data",m)),n=u(e)},r||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(n);var g=t.request_timeout||l,v=t.ping_request_timeout||g,y=t.response_timeout||l,b=t.duplicates_timeout||l,_=0,w=new a,C=new a,S=new a,E={};function O(e,t){var n=setTimeout(function(){S.remove(e,t)},b);S.set(n,e,t)}function T(t,n,i,o,s){c.call(this,t,n),this.getTransport=function(){return s},this.setTransport=function(e){s=u(e)},r||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var a=C.get(i,o);s||d.getTransport()||(r?this.duplicated=Boolean(a):Object.defineProperty(this,"duplicated",{value:Boolean(a)}));var l=h[t];this.pack=e.pack.bind(e,this,i),this.reply=function(t,n,r){if(t instanceof Function||t&&t.send instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after callback");r=t,n=null,t=void 0}else if(n instanceof Function||n&&n.send instanceof Function){if(null!=r)throw new SyntaxError("There can't be parameters after callback");r=n,n=null}var s;return r=u(r),a&&clearTimeout(a.timeout),null!=o&&(t&&(t.dest=o),n&&(n.dest=o)),t||null!=n?(null!=d.peerID&&(t?t.from=d.peerID:n.from=d.peerID),s=e.pack(s=l?null==l.error&&t?{error:t}:{method:t?l.error:l.response,params:t||n}:{error:t,result:n},i)):s=a?a.message:e.pack({result:null},i),function(e,t,n){var r={message:e,timeout:setTimeout(function(){C.remove(t,n)},y)};C.set(r,t,n)}(s,i,o),(r=r||this.getTransport()||d.getTransport())?r.send(s):s}}function x(e){var t=E[e];if(t){delete E[e];var n=w.pop(t.id,t.dest);n&&(clearTimeout(n.timeout),O(t.id,t.dest))}}o(T,c),this.cancel=function(e){if(e)return x(e);for(var e in E)x(e)},this.close=function(){var e=this.getTransport();e&&e.close&&e.close(),this.cancel(),S.forEach(clearTimeout),C.forEach(function(e){clearTimeout(e.timeout)})},this.encode=function(t,n,r,i,o){if(n instanceof Function){if(null!=r)throw new SyntaxError("There can't be parameters after callback");o=n,i=void 0,r=void 0,n=void 0}else if(r instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");o=r,i=void 0,r=void 0}else if(i instanceof Function){if(null!=o)throw new SyntaxError("There can't be parameters after callback");o=i,i=void 0}null!=d.peerID&&((n=n||{}).from=d.peerID),null!=r&&((n=n||{}).dest=r);var s={method:t,params:n};if(o){var a=_++,l=0;function c(e,t){d.cancel(s),o(e,t)}var f={message:s=e.pack(s,a),callback:c,responseMethods:h[t]||{}},m=u(i);function y(e){return f.timeout=setTimeout(C,("ping"===t?v:g)*Math.pow(2,l++)),E[s]={id:a,dest:r},w.set(f,a,r),(e=e||m||d.getTransport())?e.send(s):s}function b(e){e=u(e),console.warn(l+" retry for request message:",s);var t=S.pop(a,r);return clearTimeout(t),y(e)}function C(){if(l<p)return b(i);var e=new Error("Request has timed out");e.request=s,e.retry=b,c(e)}return y(i)}return s=e.pack(s),(i=i||this.getTransport())?i.send(s):s},this.decode=function(t,n){if(!t)throw new TypeError("Message is not defined");try{t=e.unpack(t)}catch(f){return console.debug(f,t)}var r=t.id,i=t.ack,o=t.method,s=t.params||{},a=s.from,l=s.dest;if(null==d.peerID||a!=d.peerID){if(null==r&&null==i){var h=new c(o,s);if(d.emit("request",h))return;return h}if(o){if(null==l||l==d.peerID){if(v=w.get(i,a)){var p=v.responseMethods;return o==p.error?_(v,s):o==p.response?_(v,null,s):b()}if(y=S.get(i,a))return E(y)}return b()}var m=t.error,g=t.result;if(!(m&&m.dest&&m.dest!=d.peerID||g&&g.dest&&g.dest!=d.peerID)){var v,y;if(!(v=w.get(i,a)))return(y=S.get(i,a))?E(y):console.warn("No callback was defined for this message",t);_(v,m,g)}}function b(){if(n=u(n)||d.getTransport()){var e=C.get(r,a);if(e)return n.send(e.message)}var t=new T(o,s,null!=r?r:i,a,n);if(!d.emit("request",t))return t}function _(e,t,n){e.callback(t,n)}function E(e){console.warn("Response already processed",t),clearTimeout(e),O(i,a)}}}o(d,i),d.RpcNotification=c,e.exports=d;var h=n("SYuc"),p=n("ee8k");(d.clients=h).transports=p,d.packers=s},BwMD:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.StreamPropertyChangedEvent=function(e){function t(t,n,r,i,o,s){var a=e.call(this,!1,t,"streamPropertyChanged")||this;return a.stream=n,a.changedProperty=r,a.newValue=i,a.oldValue=o,a.reason=s,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},DPKQ:function(e,t,n){"use strict";t.__esModule=!0;var r=n("74bm"),i=n("5kmN"),o=n("+FKC"),s=n("e8ps"),a=n("BwMD"),l=n("6+/i"),u=n("ttXH"),c=n("Tt94");t.Stream=function(){function e(e,t){var n=this;this.ee=new l,this.isSubscribeToRemote=!1,this.isLocalStreamReadyToPublish=!1,this.isLocalStreamPublished=!1,this.publishedOnce=!1,this.session=e,t.hasOwnProperty("id")?(this.inboundStreamOpts=t,this.streamId=this.inboundStreamOpts.id,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=t,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=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 e.prototype.on=function(e,t){var n=this;return this.ee.on(e,function(r){r?console.info("Event '"+e+"' triggered by stream '"+n.streamId+"'",r):console.info("Event '"+e+"' triggered by stream '"+n.streamId+"'"),t(r)}),this},e.prototype.once=function(e,t){var n=this;return this.ee.once(e,function(r){r?console.info("Event '"+e+"' triggered once by stream '"+n.streamId+"'",r):console.info("Event '"+e+"' triggered once by stream '"+n.streamId+"'"),t(r)}),this},e.prototype.off=function(e,t){return t?this.ee.off(e,t):this.ee.removeAllListeners(e),this},e.prototype.applyFilter=function(e,t){var n=this;return new Promise(function(i,o){console.info("Applying filter to stream "+n.streamId),"string"!=typeof(t=t||{})&&(t=JSON.stringify(t)),n.session.openvidu.sendRequest("applyFilter",{streamId:n.streamId,type:e,options:t},function(s,l){if(s)console.error("Error applying filter for Stream "+n.streamId,s),o(401===s.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):s);else{console.info("Filter successfully applied on Stream "+n.streamId);var u=n.filter;n.filter=new r.Filter(e,t),n.filter.stream=n,n.session.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(n.session,n,"filter",n.filter,u,"applyFilter")]),n.streamManager.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(n.streamManager,n,"filter",n.filter,u,"applyFilter")]),i(n.filter)}})})},e.prototype.removeFilter=function(){var e=this;return new Promise(function(t,n){console.info("Removing filter of stream "+e.streamId),e.session.openvidu.sendRequest("removeFilter",{streamId:e.streamId},function(r,i){if(r)console.error("Error removing filter for Stream "+e.streamId,r),n(401===r.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):r);else{console.info("Filter successfully removed from Stream "+e.streamId);var o=e.filter;delete e.filter,e.session.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(e.session,e,"filter",e.filter,o,"applyFilter")]),e.streamManager.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(e.streamManager,e,"filter",e.filter,o,"applyFilter")]),t()}})})},e.prototype.getMediaStream=function(){return this.mediaStream},e.prototype.setMediaStream=function(e){this.mediaStream=e},e.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated")},e.prototype.getWebRtcPeer=function(){return this.webRtcPeer},e.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},e.prototype.subscribeToMyRemote=function(e){this.isSubscribeToRemote=e},e.prototype.setOutboundStreamOptions=function(e){this.outboundStreamOpts=e},e.prototype.subscribe=function(){var e=this;return new Promise(function(t,n){e.initWebRtcPeerReceive().then(function(){t()}).catch(function(e){n(e)})})},e.prototype.publish=function(){var e=this;return new Promise(function(t,n){e.isLocalStreamReadyToPublish?e.initWebRtcPeerSend().then(function(){t()}).catch(function(e){n(e)}):e.ee.once("stream-ready-to-publish",function(){e.publish().then(function(){t()}).catch(function(e){n(e)})})})},e.prototype.disposeWebRtcPeer=function(){if(this.webRtcPeer){var e=!!this.outboundStreamOpts&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack;this.webRtcPeer.dispose(e)}this.speechEvent&&this.speechEvent.stop(),this.stopWebRtcStats(),console.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"WebRTCPeer from 'Stream' with id ["+this.streamId+"] is now closed")},e.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(e){e.stop()}),this.mediaStream.getVideoTracks().forEach(function(e){e.stop()}),delete this.mediaStream),console.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},e.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},e.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},e.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},e.prototype.isSendScreen=function(){return!!this.outboundStreamOpts&&"screen"===this.outboundStreamOpts.publisherProperties.videoSource},e.prototype.setSpeechEventIfNotExists=function(){if(!this.speechEvent){var e=this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};e.interval="number"==typeof e.interval?e.interval:50,e.threshold="number"==typeof e.threshold?e.threshold:-50,this.speechEvent=u(this.mediaStream,e)}},e.prototype.enableSpeakingEvents=function(){var e=this;this.setSpeechEventIfNotExists(),this.speechEvent.on("speaking",function(){e.session.emitEvent("publisherStartSpeaking",[new s.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)])}),this.speechEvent.on("stopped_speaking",function(){e.session.emitEvent("publisherStopSpeaking",[new s.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)])})},e.prototype.enableOnceSpeakingEvents=function(){var e=this;this.setSpeechEventIfNotExists(),this.speechEvent.on("speaking",function(){e.session.emitEvent("publisherStartSpeaking",[new s.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.disableSpeakingEvents()}),this.speechEvent.on("stopped_speaking",function(){e.session.emitEvent("publisherStopSpeaking",[new s.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.disableSpeakingEvents()})},e.prototype.disableSpeakingEvents=function(){this.speechEvent.stop(),this.speechEvent=void 0},e.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},e.prototype.getSelectedIceCandidate=function(){var e=this;return new Promise(function(t,n){e.webRtcStats.getSelectedIceCandidateInfo().then(function(e){return t(e)}).catch(function(e){return n(e)})})},e.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},e.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},e.prototype.initWebRtcPeerSend=function(){var e=this;return new Promise(function(t,n){var r={audio:e.isSendAudio(),video:e.isSendVideo()},o={mediaStream:e.mediaStream,mediaConstraints:r,onicecandidate:e.connection.sendIceCandidate.bind(e.connection),iceServers:e.getIceServersConf(),simulcast:!1};e.webRtcPeer=e.displayMyRemote()?new i.WebRtcPeerSendrecv(o):new i.WebRtcPeerSendonly(o),e.webRtcPeer.generateOffer().then(function(r){!function(r){console.debug("Sending SDP offer to publish as "+e.streamId,r);var i="";e.isSendVideo()&&(i=e.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":e.isSendScreen()?"SCREEN":"CAMERA"),e.session.openvidu.sendRequest("publishVideo",{sdpOffer:r,doLoopback:e.displayMyRemote()||!1,hasAudio:e.isSendAudio(),hasVideo:e.isSendVideo(),audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:i,frameRate:e.frameRate?e.frameRate:-1,videoDimensions:JSON.stringify(e.videoDimensions),filter:e.outboundStreamOpts.publisherProperties.filter},function(r,i){r?n(401===r.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(r)):(e.webRtcPeer.processAnswer(i.sdpAnswer).then(function(){e.streamId=i.id,e.isLocalStreamPublished=!0,e.publishedOnce=!0,e.displayMyRemote()&&e.remotePeerSuccessfullyEstablished(),e.ee.emitEvent("stream-created-by-publisher"),e.initWebRtcStats(),t()}).catch(function(e){n(e)}),console.info("'Publisher' successfully published to session"))})}(r)}).catch(function(e){n(new Error("(publish) SDP offer error: "+JSON.stringify(e)))})})},e.prototype.initWebRtcPeerReceive=function(){var e=this;return new Promise(function(t,n){var r={audio:e.inboundStreamOpts.hasAudio,video:e.inboundStreamOpts.hasVideo};console.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer",r);var o={onicecandidate:e.connection.sendIceCandidate.bind(e.connection),mediaConstraints:r,iceServers:e.getIceServersConf(),simulcast:!1};e.webRtcPeer=new i.WebRtcPeerRecvonly(o),e.webRtcPeer.generateOffer().then(function(r){var i;i=r,console.debug("Sending SDP offer to subscribe to "+e.streamId,i),e.session.openvidu.sendRequest("receiveVideoFrom",{sender:e.streamId,sdpOffer:i},function(r,i){r?n(new Error("Error on recvVideoFrom: "+JSON.stringify(r))):e.webRtcPeer.processAnswer(i.sdpAnswer).then(function(){e.remotePeerSuccessfullyEstablished(),e.initWebRtcStats(),t()}).catch(function(e){n(e)})})}).catch(function(e){n(new Error("(subscribe) SDP offer error: "+JSON.stringify(e)))})})},e.prototype.remotePeerSuccessfullyEstablished=function(){var e;this.mediaStream=new MediaStream;for(var t=0,n=this.webRtcPeer.pc.getReceivers();t<n.length;t++)(e=n[t]).track&&this.mediaStream.addTrack(e.track);console.debug("Peer remote stream",this.mediaStream),this.mediaStream&&(this.ee.emitEvent("mediastream-updated"),!this.displayMyRemote()&&this.mediaStream.getAudioTracks()[0]&&this.session.speakingEventsEnabled&&this.enableSpeakingEvents())},e.prototype.initWebRtcStats=function(){this.webRtcStats=new o.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},e.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},e.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},e}()},EDod:function(e,t,n){var r=n("AeG9"),i=n("cUzU");Date.now=Date.now||function(){return+new Date};var o=5e3,s=console;e.exports=function(e){var t,n=this,a=e.ws,l=-1,u=0,c=!0,d=!1,h="DISCONNECTED",p=a.onreconnecting,f=a.onreconnected,m=a.onconnected,g=a.onerror;e.rpc.pull=function(e,t){t.reply(null,"push")},a.onreconnecting=function(){s.debug("--------- ONRECONNECTING -----------"),"RECONNECTING"!==h?(h="RECONNECTING",p&&p()):s.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},a.onreconnected=function(){s.debug("--------- ONRECONNECTED -----------"),"CONNECTED"!==h?(h="CONNECTED",c=!0,b(),w(),f&&f()):s.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},a.onconnected=function(){s.debug("--------- ONCONNECTED -----------"),"CONNECTED"!==h?(h="CONNECTED",c=!0,w(),m&&m()):s.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},a.onerror=function(e){s.debug("--------- ONERROR -----------"),h="DISCONNECTED",g&&g(e)};var v=new i(a);s.debug("Connecting websocket to URI: "+a.uri);var y=new r(r.packers.JsonRPC,{request_timeout:e.rpc.requestTimeout,ping_request_timeout:e.rpc.heartbeatRequestTimeout},v,function(t){s.debug("Received request: "+JSON.stringify(t));try{var n=e.rpc[t.method];void 0===n?s.error("Method "+t.method+" not registered in client"):n(t.params,t)}catch(r){s.error("Exception processing request: "+JSON.stringify(t)),s.error(r)}});function b(){s.debug("notReconnectIfNumLessThan = "+u+" (old="+l+")"),l=u}function _(){if(c){var t=null;0!=u&&u!=l||(t={interval:e.heartbeat||o}),n.send("ping",t,(r=++u,function(e,t){e&&(s.debug("Error in ping request #"+r+" ("+e.message+")"),r>l&&(c=!1,b(),s.debug("Server did not respond to ping message #"+r+". Reconnecting... "),v.reconnectWs()))}))}else s.debug("Trying to send ping, but ping is not enabled");var r}function w(){d||(s.debug("Starting ping (if configured)"),d=!0,null!=e.heartbeat&&(t=setInterval(_,e.heartbeat),_()))}this.send=function(e,t,n){"ping"!==e&&s.debug("Request: method:"+e+" params:"+JSON.stringify(t));var r=Date.now();y.encode(e,t,function(i,o){if(i){try{s.error("ERROR:"+i.message+" in Request: method:"+e+" params:"+JSON.stringify(t)+" request:"+i.request),i.data&&s.error("ERROR DATA:"+JSON.stringify(i.data))}catch(a){}i.requestTime=r}n&&(null!=o&&"pong"!==o.value&&s.debug("Response: "+JSON.stringify(o)),n(i,o))})},this.close=function(){s.debug("Closing jsonRpcClient explicitly by client"),null!=t&&(s.debug("Clearing ping interval"),clearInterval(t)),d=!1,c=!1,e.sendCloseMessage?(s.debug("Sending close message"),this.send("closeSession",null,function(e,t){e&&s.error("Error sending close message: "+JSON.stringify(e)),v.close()})):v.close()},this.forceClose=function(e){v.forceClose(e)},this.reconnect=function(){v.reconnectWs()}}},EcWD:function(e,t){var n,r,i="screen",o=void 0!==window.InstallTrigger;function s(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);r=e,window.postMessage("get-sourceId","*")}function a(e,t){if(n="",o)return e(null,{mozMediaSource:"window",mediaSource:"window"});var a={mandatory:{chromeMediaSource:i,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=i||n?("desktop"==i&&(a.mandatory.chromeMediaSourceId=n),e(null,a)):t?function(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);r=e,window.postMessage("audio-plus-tab","*")}(function(t,n){a.mandatory.chromeMediaSourceId=t,n&&(a.canRequestAudioTrack=!0),e("PermissionDeniedError"==t?t:null,a)}):s(function(t){a.mandatory.chromeMediaSourceId=t,e("PermissionDeniedError"==t?t:null,a)})}window.opera||navigator.userAgent.indexOf(" OPR/"),window,window.addEventListener("message",function(e){e.origin==window.location.origin&&function(e){if("PermissionDeniedError"==e){if(r)return r("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==e&&(i="desktop"),e.sourceId&&r&&r(n=e.sourceId,!0===e.canRequestAudioTrack)}(e.data)}),t.getScreenConstraints=a,t.getScreenConstraintsWithAudio=function(e){a(e,!0)},t.isChromeExtensionAvailable=function(e){if(e){if("desktop"==i)return e(!0);window.postMessage("are-you-there","*"),setTimeout(function(){e("screen"!=i)},2e3)}},t.getChromeExtensionStatus=function(e,t){if(o)return t("not-chrome");2!=arguments.length&&(t=e,e="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+e+"/icon.png",n.onload=function(){i="screen",window.postMessage("are-you-there","*"),setTimeout(function(){t("screen"==i?"installed-disabled":"installed-enabled")},2e3)},n.onerror=function(){t("not-installed")}},t.getSourceId=s},HgqT:function(e,t){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},HxXY:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.StreamManagerEvent=function(e){function t(t){return e.call(this,!1,t,"streamPlaying")||this}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},JTMn:function(e,t,n){"use strict";t.__esModule=!0;var r=n("ryRr"),i=n("74bm"),o=n("bk74"),s=n("8KVD"),a=n("+ig+"),l=n("rUL0"),u=n("ksJj"),c=n("suHS"),d=n("Te8r"),h=n("BwMD"),p=n("Tt94"),f=n("/dLB"),m=n("bDgZ"),g=n("6+/i");t.Session=function(){function e(e){this.streamManagers=[],this.remoteStreamsCreated={},this.remoteConnections={},this.speakingEventsEnabled=!1,this.ee=new g,this.openvidu=e}return e.prototype.connect=function(e,t){var n=this;return new Promise(function(r,i){n.processToken(e),n.openvidu.checkSystemRequirements()?(n.options={sessionId:n.sessionId,participantId:e,metadata:t?n.stringClientMetadata(t):""},n.connectAux(e).then(function(){r()}).catch(function(e){i(e)})):i(new p.OpenViduError(p.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+m.name+" "+m.version+" is not supported in OpenVidu"))})},e.prototype.disconnect=function(){this.leave(!1,"disconnect")},e.prototype.subscribe=function(e,t,n,r){var i,s={};s=n&&"function"!=typeof n?{insertMode:void 0!==n.insertMode?"string"==typeof n.insertMode?f.VideoInsertMode[n.insertMode]:s.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?i=n:r&&(i=r),console.info("Subscribing to "+e.connection.connectionId),e.subscribe().then(function(){console.info("Subscribed correctly to "+e.connection.connectionId),void 0!==i&&i(void 0)}).catch(function(e){void 0!==i&&i(e)});var a=new o.Subscriber(e,t,s);return a.targetElement&&e.streamManager.createVideoElement(a.targetElement,s.insertMode),a},e.prototype.subscribeAsync=function(e,t,n){var r=this;return new Promise(function(i,o){var s,a=function(e){e?o(e):i(s)};s=n?r.subscribe(e,t,n,a):r.subscribe(e,t,a)})},e.prototype.unsubscribe=function(e){var t=e.stream.connection.connectionId;console.info("Unsubscribing from "+t),this.openvidu.sendRequest("unsubscribeFromVideo",{sender:e.stream.connection.connectionId},function(n,r){n?console.error("Error unsubscribing from "+t,n):console.info("Unsubscribed correctly from "+t),e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream()}),e.stream.streamManager.removeAllVideos()},e.prototype.publish=function(e){var t=this;return new Promise(function(n,r){e.session=t,e.stream.session=t,e.stream.publishedOnce?e.initialize().then(function(){t.connection.addStream(e.stream),e.reestablishStreamPlayingEvent(),e.stream.publish().then(function(){n()}).catch(function(e){r(e)})}).catch(function(e){r(e)}):(t.connection.addStream(e.stream),e.stream.publish().then(function(){n()}).catch(function(e){r(e)}))})},e.prototype.unpublish=function(e){var t=e.stream;if(t.connection)if(t.connection===this.connection){console.info("Unpublishing local media ("+t.connection.connectionId+")"),this.openvidu.sendRequest("unpublishVideo",function(e,t){e?console.error(e):console.info("Media unpublished correctly")}),t.disposeWebRtcPeer(),delete t.connection.stream;var n=new d.StreamEvent(!0,e,"streamDestroyed",e.stream,"unpublish");e.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",t);else console.error("The associated Connection object of this Publisher is null",t)},e.prototype.forceDisconnect=function(e){var t=this;return new Promise(function(n,r){console.info("Forcing disconnect for connection "+e.connectionId),t.openvidu.sendRequest("forceDisconnect",{connectionId:e.connectionId},function(t,i){t?(console.error("Error forcing disconnect for Connection "+e.connectionId,t),r(401===t.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):t)):(console.info("Forcing disconnect correctly for Connection "+e.connectionId),n())})})},e.prototype.forceUnpublish=function(e){var t=this;return new Promise(function(n,r){console.info("Forcing unpublish for stream "+e.streamId),t.openvidu.sendRequest("forceUnpublish",{streamId:e.streamId},function(t,i){t?(console.error("Error forcing unpublish for Stream "+e.streamId,t),r(401===t.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):t)):(console.info("Forcing unpublish correctly for Stream "+e.streamId),n())})})},e.prototype.signal=function(e){var t=this;return new Promise(function(n,r){var i={};if(e.to&&e.to.length>0){var o=[];e.to.forEach(function(e){o.push(e.connectionId)}),i.to=o}else i.to=[];i.data=e.data?e.data:"",i.type=e.type?e.type:"",t.openvidu.sendRequest("sendMessage",{message:JSON.stringify(i)},function(e,t){e?r(e):n()})})},e.prototype.on=function(e,t){if(this.ee.on(e,function(n){n?console.info("Event '"+e+"' triggered by 'Session'",n):console.info("Event '"+e+"' triggered by 'Session'"),t(n)}),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!0,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&!r.speechEvent&&r.hasAudio&&r.enableSpeakingEvents()}return this},e.prototype.once=function(e,t){if(this.ee.once(e,function(n){n?console.info("Event '"+e+"' triggered by 'Session'",n):console.info("Event '"+e+"' triggered by 'Session'"),t(n)}),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!0,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&!r.speechEvent&&r.hasAudio&&r.enableOnceSpeakingEvents()}return this},e.prototype.off=function(e,t){if(t?this.ee.off(e,t):this.ee.removeAllListeners(e),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!1,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&r.speechEvent&&r.disableSpeakingEvents()}return this},e.prototype.onParticipantJoined=function(e){var t=this;this.getConnection(e.id,"").then(function(t){console.warn("Connection "+e.id+" already exists in connections list")}).catch(function(n){var i=new r.Connection(t,e);t.remoteConnections[e.id]=i,t.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,t,"connectionCreated",i,"")])})},e.prototype.onParticipantLeft=function(e){var t=this;this.getRemoteConnection(e.connectionId,"Remote connection "+e.connectionId+" unknown when 'onParticipantLeft'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){if(n.stream){var r=n.stream,i=new d.StreamEvent(!0,t,"streamDestroyed",r,e.reason);t.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior(),delete t.remoteStreamsCreated[r.streamId]}delete t.remoteConnections[n.connectionId],t.ee.emitEvent("connectionDestroyed",[new s.ConnectionEvent(!1,t,"connectionDestroyed",n,e.reason)])}).catch(function(e){console.error(e)})},e.prototype.onParticipantPublished=function(e){var t,n=this,i=function(e){n.remoteConnections[e.connectionId]=e,n.remoteStreamsCreated[e.stream.streamId]||n.ee.emitEvent("streamCreated",[new d.StreamEvent(!1,n,"streamCreated",e.stream,"")]),n.remoteStreamsCreated[e.stream.streamId]=!0};this.getRemoteConnection(e.id,"Remote connection '"+e.id+"' unknown when 'onParticipantPublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){t=n,e.metadata=n.data,t.options=e,t.initRemoteStreams(e.streams),i(t)}).catch(function(o){t=new r.Connection(n,e),i(t)})},e.prototype.onParticipantUnpublished=function(e){var t=this;e.connectionId===this.connection.connectionId?this.stopPublisherStream(e.reason):this.getRemoteConnection(e.connectionId,"Remote connection '"+e.connectionId+"' unknown when 'onParticipantUnpublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){var r=new d.StreamEvent(!0,t,"streamDestroyed",n.stream,e.reason);t.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior();var i=n.stream.streamId;delete t.remoteStreamsCreated[i],n.removeStream(i)}).catch(function(e){console.error(e)})},e.prototype.onParticipantEvicted=function(e){e.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,e.reason)},e.prototype.onNewMessage=function(e){var t=this;console.info("New signal: "+JSON.stringify(e)),this.getConnection(e.from,"Connection '"+e.from+"' unknow when 'onNewMessage'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))+". Existing local connection: "+this.connection.connectionId).then(function(n){t.ee.emitEvent("signal",[new c.SignalEvent(t,e.type,e.data,n)]),t.ee.emitEvent("signal:"+e.type,[new c.SignalEvent(t,e.type,e.data,n)])}).catch(function(e){console.error(e)})},e.prototype.onStreamPropertyChanged=function(e){var t=this,n=function(n){if(n.stream&&n.stream.streamId===e.streamId){var r=n.stream,o=void 0;switch(e.property){case"audioActive":o=r.audioActive,e.newValue="true"===e.newValue,r.audioActive=e.newValue;break;case"videoActive":o=r.videoActive,e.newValue="true"===e.newValue,r.videoActive=e.newValue;break;case"videoDimensions":o=r.videoDimensions,e.newValue=JSON.parse(JSON.parse(e.newValue)),r.videoDimensions=e.newValue;break;case"filter":o=r.filter,e.newValue=Object.keys(e.newValue).length>0?e.newValue:void 0,void 0!==e.newValue?(r.filter=new i.Filter(e.newValue.type,e.newValue.options),r.filter.stream=r,e.newValue.lastExecMethod&&(r.filter.lastExecMethod=e.newValue.lastExecMethod)):delete r.filter,e.newValue=r.filter}t.ee.emitEvent("streamPropertyChanged",[new h.StreamPropertyChangedEvent(t,r,e.property,e.newValue,o,e.reason)]),r.streamManager.emitEvent("streamPropertyChanged",[new h.StreamPropertyChangedEvent(r.streamManager,r,e.property,e.newValue,o,e.reason)])}else console.error("No stream with streamId '"+e.streamId+"' found for connection '"+e.connectionId+"' on 'streamPropertyChanged' event")};e.connectionId===this.connection.connectionId?n(this.connection):this.getRemoteConnection(e.connectionId,"Remote connection "+e.connectionId+" unknown when 'onStreamPropertyChanged'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(e){n(e)}).catch(function(e){console.error(e)})},e.prototype.recvIceCandidate=function(e){var t={candidate:e.candidate,component:e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex,tcpType:e.tcpType,usernameFragment:e.usernameFragment,type:e.type,toJSON:function(){return{candidate:e.candidate}}};this.getConnection(e.endpointName,"Connection not found for endpoint "+e.endpointName+". Ice candidate will be ignored: "+t).then(function(n){var r=n.stream;r.getWebRtcPeer().addIceCandidate(t).catch(function(t){console.error("Error adding candidate for "+r.streamId+" stream of endpoint "+e.endpointName+": "+t)})}).catch(function(e){console.error(e)})},e.prototype.onSessionClosed=function(e){console.info("Session closed: "+JSON.stringify(e));var t=e.sessionId;void 0!==t?this.ee.emitEvent("session-closed",[{session:t}]):console.warn("Session undefined on session closed",e)},e.prototype.onLostConnection=function(){console.warn("Lost connection in Session "+this.sessionId),this.sessionId&&!this.connection.disposed&&this.leave(!0,"networkDisconnect")},e.prototype.onRecoveredConnection=function(){console.warn("Recovered connection in Session "+this.sessionId),this.ee.emitEvent("connectionRecovered",[])},e.prototype.onMediaError=function(e){console.error("Media error: "+JSON.stringify(e));var t=e.error;t?this.ee.emitEvent("error-media",[{error:t}]):console.warn("Received undefined media error. Params:",e)},e.prototype.onRecordingStarted=function(e){this.ee.emitEvent("recordingStarted",[new l.RecordingEvent(this,"recordingStarted",e.id,e.name)])},e.prototype.onRecordingStopped=function(e){this.ee.emitEvent("recordingStopped",[new l.RecordingEvent(this,"recordingStopped",e.id,e.name)])},e.prototype.onFilterEventDispatched=function(e){var t=e.connectionId;this.getConnection(t,"No connection found for connectionId "+t).then(function(t){console.info("Filter event dispatched");var n=t.stream;n.filter.handlers[e.eventType](new a.FilterEvent(n.filter,e.eventType,e.data))})},e.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},e.prototype.leave=function(e,t){var n=this;if(e=!!e,console.info("Leaving Session (forced="+e+")"),this.connection){if(this.connection.disposed||e?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(e,t){e&&console.error(e),n.openvidu.closeWs()}),this.stopPublisherStream(t),!this.connection.disposed){var r=new u.SessionDisconnectedEvent(this,t);this.ee.emitEvent("sessionDisconnected",[r]),r.callDefaultBehavior()}}else console.warn("You were not connected to the session "+this.sessionId)},e.prototype.connectAux=function(e){var t=this;return new Promise(function(n,i){t.openvidu.startWs(function(o){if(o)i(o);else{var a={token:e||"",session:t.sessionId,platform:m.description,metadata:t.options.metadata?t.options.metadata:"",secret:t.openvidu.getSecret(),recorder:t.openvidu.getRecorder()};t.openvidu.sendRequest("joinRoom",a,function(e,o){if(e)i(e);else{t.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==t.openvidu.role,forceUnpublish:"MODERATOR"===t.openvidu.role,forceDisconnect:"MODERATOR"===t.openvidu.role},t.connection=new r.Connection(t),t.connection.connectionId=o.id,t.connection.data=o.metadata;var a={connections:new Array,streams:new Array};o.value.forEach(function(e){var n=new r.Connection(t,e);t.remoteConnections[n.connectionId]=n,a.connections.push(n),n.stream&&(t.remoteStreamsCreated[n.stream.streamId]=!0,a.streams.push(n.stream))}),t.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,t,"connectionCreated",t.connection,"")]),a.connections.forEach(function(e){t.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,t,"connectionCreated",e,"")])}),a.streams.forEach(function(e){t.ee.emitEvent("streamCreated",[new d.StreamEvent(!1,t,"streamCreated",e,"")])}),n()}})}})})},e.prototype.stopPublisherStream=function(e){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[e]))},e.prototype.stringClientMetadata=function(e){return"string"!=typeof e?JSON.stringify(e):e},e.prototype.getConnection=function(e,t){var n=this;return new Promise(function(r,i){var o=n.remoteConnections[e];o?r(o):n.connection.connectionId===e?r(n.connection):i(new p.OpenViduError(p.OpenViduErrorName.GENERIC_ERROR,t))})},e.prototype.getRemoteConnection=function(e,t){var n=this;return new Promise(function(r,i){var o=n.remoteConnections[e];o?r(o):i(new p.OpenViduError(p.OpenViduErrorName.GENERIC_ERROR,t))})},e.prototype.processToken=function(e){var t=new URL(e);this.sessionId=t.searchParams.get("sessionId");var n=t.searchParams.get("secret"),r=t.searchParams.get("recorder"),i=t.searchParams.get("turnUsername"),o=t.searchParams.get("turnCredential"),s=t.searchParams.get("role");if(n&&(this.openvidu.secret=n),r&&(this.openvidu.recorder=!0),i&&o){var a="turn:"+t.hostname+":3478";this.openvidu.iceServers=[{urls:["stun:"+t.hostname+":3478"]},{urls:[a,a+"?transport=tcp"],username:i,credential:o}],console.log("TURN temp credentials ["+i+":"+o+"]")}s&&(this.openvidu.role=s),this.openvidu.wsUri="wss://"+t.host+"/openvidu"},e}()},KFtI:function(e){e.exports=["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"]},P3vI:function(e,t,n){"use strict";t.__esModule=!0;var r=n("HxXY"),i=n("oIG1"),o=n("/dLB"),s=n("6+/i");t.StreamManager=function(){function e(e,t){var n=this;if(this.videos=[],this.lazyLaunchVideoElementCreatedEvent=!1,this.ee=new s,this.stream=e,this.stream.streamManager=this,this.remote=!this.stream.isLocal(),t){var o=void 0;"string"==typeof t?o=document.getElementById(t):t instanceof HTMLElement&&(o=t),o&&(this.firstVideoElement={targetElement:o,video:document.createElement("video"),id:""},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 i.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 i.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 i.VideoElementEvent(n.videos[0].video,n,"videoPlaying")])),n.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(n)])}}return e.prototype.on=function(e,t){var n=this;return this.ee.on(e,function(r){r?console.info("Event '"+e+"' triggered by '"+(n.remote?"Subscriber":"Publisher")+"'",r):console.info("Event '"+e+"' triggered by '"+(n.remote?"Subscriber":"Publisher")+"'"),t(r)}),"videoElementCreated"===e&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new i.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"!==e&&"videoPlaying"!==e||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 r.StreamManagerEvent(this)]),this.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this},e.prototype.once=function(e,t){return this.ee.once(e,function(n){n?console.info("Event '"+e+"' triggered once",n):console.info("Event '"+e+"' triggered once"),t(n)}),"videoElementCreated"===e&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new i.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"!==e&&"videoPlaying"!==e||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 r.StreamManagerEvent(this)]),this.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this},e.prototype.off=function(e,t){return t?this.ee.off(e,t):this.ee.removeAllListeners(e),this},e.prototype.addVideoElement=function(e){this.initializeVideoProperties(e),this.stream.isLocal()&&this.stream.displayMyRemote()&&(e.srcObject=this.stream.getMediaStream());for(var t=0,n=this.videos;t<n.length;t++)if(n[t].video===e)return 0;for(var r=1,i=0,o=this.stream.session.streamManagers;i<o.length;i++)if(o[i].disassociateVideo(e)){r=-1;break}return this.stream.session.streamManagers.forEach(function(t){t.disassociateVideo(e)}),this.pushNewStreamManagerVideo({video:e,id:e.id}),console.info("New video element associated to ",this),r},e.prototype.createVideoElement=function(e,t){var n;if("string"==typeof e){if(!(n=document.getElementById(n)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+e)}else{if(!(e instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+e);n=e}var r=document.createElement("video");this.initializeVideoProperties(r);var s=t||o.VideoInsertMode.APPEND;switch(s){case o.VideoInsertMode.AFTER:n.parentNode.insertBefore(r,n.nextSibling);break;case o.VideoInsertMode.APPEND:n.appendChild(r);break;case o.VideoInsertMode.BEFORE:n.parentNode.insertBefore(r,n);break;case o.VideoInsertMode.PREPEND:n.insertBefore(r,n.childNodes[0]);break;case o.VideoInsertMode.REPLACE:n.parentNode.replaceChild(r,n);break;default:s=o.VideoInsertMode.APPEND,n.appendChild(r)}var a={targetElement:n,video:r,insertMode:s,id:r.id};return this.pushNewStreamManagerVideo(a),this.ee.emitEvent("videoElementCreated",[new i.VideoElementEvent(a.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,r},e.prototype.initializeVideoProperties=function(e){this.stream.isLocal()&&this.stream.displayMyRemote()||(e.srcObject=this.stream.getMediaStream()),e.autoplay=!0,e.controls=!1,e.id||(e.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&this.targetElement&&(this.id=e.id)),this.remote||this.stream.displayMyRemote()||(e.muted=!0,this.stream.outboundStreamOpts.publisherProperties.mirror&&this.mirrorVideo(e))},e.prototype.removeAllVideos=function(){for(var e=this,t=this.stream.session.streamManagers.length-1;t>=0;--t)this.stream.session.streamManagers[t]===this&&this.stream.session.streamManagers.splice(t,1);this.videos.forEach(function(t){t.video.removeEventListener("canplay",e.canPlayListener),t.targetElement&&(t.video.parentNode.removeChild(t.video),e.ee.emitEvent("videoElementDestroyed",[new i.VideoElementEvent(t.video,e,"videoElementDestroyed")])),t.video.srcObject=null,e.videos.filter(function(e){return!e.targetElement})})},e.prototype.disassociateVideo=function(e){for(var t=!1,n=0;n<this.videos.length;n++)if(this.videos[n].video===e){this.videos.splice(n,1),t=!0,console.info("Video element disassociated from ",this);break}return t},e.prototype.addPlayEventToFirstVideo=function(){this.videos[0]&&this.videos[0].video&&null===this.videos[0].video.oncanplay&&this.videos[0].video.addEventListener("canplay",this.canPlayListener)},e.prototype.updateMediaStream=function(e){this.videos.forEach(function(t){t.video.srcObject=e})},e.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},e.prototype.pushNewStreamManagerVideo=function(e){this.videos.push(e),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},e.prototype.mirrorVideo=function(e){e.style.transform="rotateY(180deg)",e.style.webkitTransform="rotateY(180deg)"},e}()},PEz1:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("JTMn"),o=n("DPKQ"),s=n("P3vI"),a=n("Te8r"),l=n("BwMD"),u=n("oIG1"),c=n("Tt94"),d=n("bDgZ");t.Publisher=function(e){function t(t,n,r){var s=e.call(this,new o.Stream(r.session?r.session:new i.Session(r),{publisherProperties:n,mediaConstraints:{}}),t)||this;return s.accessAllowed=!1,s.isSubscribedToRemote=!1,s.accessDenied=!1,s.properties=n,s.openvidu=r,s.stream.ee.on("local-stream-destroyed",function(e){s.stream.isLocalStreamPublished=!1;var t=new a.StreamEvent(!0,s,"streamDestroyed",s.stream,e);s.emitEvent("streamDestroyed",[t]),t.callDefaultBehavior()}),s}return r(t,e),t.prototype.publishAudio=function(e){var t=this;this.stream.audioActive!==e&&(this.stream.getMediaStream().getAudioTracks().forEach(function(t){t.enabled=e}),this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:e,reason:"publishAudio"},function(n,r){n?console.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new l.StreamPropertyChangedEvent(t.session,t.stream,"audioActive",e,!e,"publishAudio")]),t.emitEvent("streamPropertyChanged",[new l.StreamPropertyChangedEvent(t,t.stream,"audioActive",e,!e,"publishAudio")]))}),this.stream.audioActive=e,console.info("'Publisher' has "+(e?"published":"unpublished")+" its audio stream"))},t.prototype.publishVideo=function(e){var t=this;this.stream.videoActive!==e&&(this.stream.getMediaStream().getVideoTracks().forEach(function(t){t.enabled=e}),this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:e,reason:"publishVideo"},function(n,r){n?console.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new l.StreamPropertyChangedEvent(t.session,t.stream,"videoActive",e,!e,"publishVideo")]),t.emitEvent("streamPropertyChanged",[new l.StreamPropertyChangedEvent(t,t.stream,"videoActive",e,!e,"publishVideo")]))}),this.stream.videoActive=e,console.info("'Publisher' has "+(e?"published":"unpublished")+" its video stream"))},t.prototype.subscribeToRemote=function(e){this.isSubscribedToRemote=e=void 0===e||e,this.stream.subscribeToMyRemote(e)},t.prototype.on=function(t,n){var r=this;return e.prototype.on.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new a.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){r.emitEvent("streamCreated",[new a.StreamEvent(!1,r,"streamCreated",r.stream,"")])})),"remoteVideoPlaying"===t&&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 u.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.once=function(t,n){var r=this;return e.prototype.once.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new a.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){r.emitEvent("streamCreated",[new a.StreamEvent(!1,r,"streamCreated",r.stream,"")])})),"remoteVideoPlaying"===t&&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 u.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.initialize=function(){var e=this;return new Promise(function(t,n){var r=function(t){e.accessDenied=!0,e.accessAllowed=!1,n(t)},i=function(n){if(e.accessAllowed=!0,e.accessDenied=!1,e.properties.audioSource instanceof MediaStreamTrack&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(e.properties.audioSource)),e.properties.videoSource instanceof MediaStreamTrack&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(e.properties.videoSource)),n.getAudioTracks()[0]){var r=null!=e.stream.audioActive?e.stream.audioActive:!!e.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=r}if(n.getVideoTracks()[0]&&(r=null!=e.stream.videoActive?e.stream.videoActive:!!e.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=r),e.videoReference=document.createElement("video"),e.videoReference.srcObject=n,e.stream.setMediaStream(n),e.stream.displayMyRemote()||e.stream.updateMediaStreamInVideos(),e.firstVideoElement&&e.createVideoElement(e.firstVideoElement.targetElement,e.properties.insertMode),delete e.firstVideoElement,e.stream.isSendVideo())if(e.stream.isSendScreen())e.videoReference.onloadedmetadata=function(){e.stream.videoDimensions={width:e.videoReference.videoWidth,height:e.videoReference.videoHeight},e.screenShareResizeInterval=setInterval(function(){var t=n.getVideoTracks()[0].getSettings(),r="Chrome"===d.name?e.videoReference.videoWidth:t.width,i="Chrome"===d.name?e.videoReference.videoHeight:t.height;if(e.stream.isLocalStreamPublished&&(r!==e.stream.videoDimensions.width||i!==e.stream.videoDimensions.height)){var o={width:e.stream.videoDimensions.width,height:e.stream.videoDimensions.height};e.stream.videoDimensions={width:r||0,height:i||0},e.session.openvidu.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:"screenResized"},function(t,n){t?console.error("Error sending 'streamPropertyChanged' event",t):(e.session.emitEvent("streamPropertyChanged",[new l.StreamPropertyChangedEvent(e.session,e.stream,"videoDimensions",e.stream.videoDimensions,o,"screenResized")]),e.emitEvent("streamPropertyChanged",[new l.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,o,"screenResized")]))})}},500),e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])};else{var i=n.getVideoTracks()[0].getSettings(),o=i.width,s=i.height;e.stream.videoDimensions=-1!==d.name.toLowerCase().indexOf("mobile")&&window.innerHeight>window.innerWidth?{width:s||0,height:o||0}:{width:o||0,height:s||0},e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])}else e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[]);t()};if(e.properties.videoSource instanceof MediaStreamTrack&&!e.properties.audioSource||e.properties.audioSource instanceof MediaStreamTrack&&!e.properties.videoSource||e.properties.videoSource instanceof MediaStreamTrack&&e.properties.audioSource instanceof MediaStreamTrack){var o=new MediaStream;return e.properties.videoSource instanceof MediaStreamTrack&&o.addTrack(e.properties.videoSource),e.properties.audioSource instanceof MediaStreamTrack&&o.addTrack(e.properties.audioSource),void i(o)}e.openvidu.generateMediaConstraints(e.properties).then(function(t){e.stream.setOutboundStreamOptions({mediaConstraints:t,publisherProperties:e.properties});var o={};if(e.stream.isSendVideo()||e.stream.isSendAudio()){var s=void 0===t.audio||t.audio;o.audio=!e.stream.isSendScreen()&&s,o.video=t.video;var a=Date.now();e.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then(function(n){e.clearPermissionDialogTimer(a,1250),e.stream.isSendScreen()&&e.stream.isSendAudio()?(o.audio=s,o.video=!1,a=Date.now(),e.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then(function(t){e.clearPermissionDialogTimer(a,1250),n.addTrack(t.getAudioTracks()[0]),i(n)}).catch(function(n){var i,o;switch(e.clearPermissionDialogTimer(a,1250),n.name.toLowerCase()){case"notfounderror":i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o));break;case"notallowederror":i=c.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=n.toString(),r(new c.OpenViduError(i,o));break;case"overconstrainederror":"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+t.video.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))}})):i(n)}).catch(function(n){var i,o;switch(e.clearPermissionDialogTimer(a,1250),n.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:t.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o))}).catch(function(e){i=c.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o))});break;case"notallowederror":i=e.stream.isSendScreen()?c.OpenViduErrorName.SCREEN_CAPTURE_DENIED:c.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=n.toString(),r(new c.OpenViduError(i,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:t.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+t.audio.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))}).catch(function(e){"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+t.video.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))})}})}else n(new c.OpenViduError(c.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time when calling 'OpenVidu.initPublisher'"))}).catch(function(e){r(e)})})},t.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},t.prototype.setPermissionDialogTimer=function(e){var t=this;this.permissionDialogTimeout=setTimeout(function(){t.emitEvent("accessDialogOpened",[])},e)},t.prototype.clearPermissionDialogTimer=function(e,t){clearTimeout(this.permissionDialogTimeout),Date.now()-e>t&&this.emitEvent("accessDialogClosed",[])},t}(s.StreamManager)},PPcv:function(e,t,n){"use strict";t.__esModule=!0;var r=n("tInm"),i=n("PEz1"),o=n("JTMn"),s=n("BwMD"),a=n("Tt94"),l=n("/dLB"),u=n("+27z"),c=n("EcWD"),d=n("AeG9"),h=n("bDgZ");t.OpenVidu=function(){function e(){var e=this;this.publishers=[],this.secret="",this.recorder=!1,this.advancedConfiguration={},console.info("'OpenVidu' initialized"),-1!==h.name.toLowerCase().indexOf("mobile")&&(window.onorientationchange=function(){e.publishers.forEach(function(t){if(t.stream&&t.stream.hasVideo&&t.stream.streamManager.videos[0])var n=0,r=t.stream.videoDimensions.width,i=t.stream.videoDimensions.height,o=t.stream.getMediaStream().getVideoTracks()[0].getSettings(),a=-1!==h.name.toLowerCase().indexOf("firefox")?o.width:t.videoReference.videoWidth,l=-1!==h.name.toLowerCase().indexOf("firefox")?o.height:t.videoReference.videoHeight,u=setInterval(function(){o=t.stream.getMediaStream().getVideoTracks()[0].getSettings(),a=-1!==h.name.toLowerCase().indexOf("firefox")?o.width:t.videoReference.videoWidth,l=-1!==h.name.toLowerCase().indexOf("firefox")?o.height:t.videoReference.videoHeight,c(r,i,a,l)},100),c=function(r,i,o,a){++n>4&&clearTimeout(u),o===r&&a===i||(t.stream.videoDimensions={width:o||0,height:a||0},e.sendRequest("streamPropertyChanged",{streamId:t.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(t.stream.videoDimensions),reason:"deviceRotated"},function(n,o){n?console.error("Error sending 'streamPropertyChanged' event",n):(e.session.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(e.session,t.stream,"videoDimensions",t.stream.videoDimensions,{width:r,height:i},"deviceRotated")]),t.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(t,t.stream,"videoDimensions",t.stream.videoDimensions,{width:r,height:i},"deviceRotated")]))}),clearTimeout(u))}})})}return e.prototype.initSession=function(){return this.session=new o.Session(this),this.session},e.prototype.initPublisher=function(e,t,n){var r;r=t&&"function"!=typeof t?{audioSource:void 0!==(r=t).audioSource?r.audioSource:void 0,frameRate:r.videoSource instanceof MediaStreamTrack?void 0:void 0!==r.frameRate?r.frameRate:void 0,insertMode:void 0!==r.insertMode?"string"==typeof r.insertMode?l.VideoInsertMode[r.insertMode]:r.insertMode:l.VideoInsertMode.APPEND,mirror:void 0===r.mirror||r.mirror,publishAudio:void 0===r.publishAudio||r.publishAudio,publishVideo:void 0===r.publishVideo||r.publishVideo,resolution:r.videoSource instanceof MediaStreamTrack?void 0:void 0!==r.resolution?r.resolution:"640x480",videoSource:void 0!==r.videoSource?r.videoSource:void 0,filter:r.filter}:{insertMode:l.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var o,s=new i.Publisher(e,r,this);return t&&"function"==typeof t?o=t:n&&(o=n),s.initialize().then(function(){void 0!==o&&o(void 0),s.emitEvent("accessAllowed",[])}).catch(function(e){void 0!==o&&o(e),s.emitEvent("accessDenied",[])}),this.publishers.push(s),s},e.prototype.initPublisherAsync=function(e,t){var n=this;return new Promise(function(r,i){var o,s=function(e){e?i(e):r(o)};o=t?n.initPublisher(e,t,s):n.initPublisher(e,s)})},e.prototype.initLocalRecorder=function(e){return new r.LocalRecorder(e)},e.prototype.checkSystemRequirements=function(){var e=h.name;return"Chrome"!==e&&"Chrome Mobile"!==e&&"Firefox"!==e&&"Firefox Mobile"!==e&&"Firefox for iOS"!==e&&"Opera"!==e&&"Opera Mobile"!==e&&"Safari"!==e?0:1},e.prototype.checkScreenSharingCapabilities=function(){var e=h.name;return"Chrome"!==e&&"Firefox"!==e&&"Opera"!==e?0:1},e.prototype.getDevices=function(){return new Promise(function(e,t){navigator.mediaDevices.enumerateDevices().then(function(t){var n=[];t.forEach(function(e){"audioinput"!==e.kind&&"videoinput"!==e.kind||n.push({kind:e.kind,deviceId:e.deviceId,label:e.label})}),e(n)}).catch(function(e){console.error("Error getting devices",e),t(e)})})},e.prototype.getUserMedia=function(e){var t=this;return new Promise(function(n,r){t.generateMediaConstraints(e).then(function(t){navigator.mediaDevices.getUserMedia(t).then(function(e){n(e)}).catch(function(t){var n=t.toString();r(new a.OpenViduError("screen"!==e.videoSource?a.OpenViduErrorName.DEVICE_ACCESS_DENIED:a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))})}).catch(function(e){r(e)})})},e.prototype.enableProdMode=function(){console.log=function(){},console.debug=function(){},console.info=function(){},console.warn=function(){}},e.prototype.setAdvancedConfiguration=function(e){this.advancedConfiguration=e},e.prototype.generateMediaConstraints=function(e){var t=this;return new Promise(function(n,r){var i={audio:null!==e.audioSource&&!1!==e.audioSource&&(void 0===e.audioSource||e.audioSource),video:null!==e.videoSource&&!1!==e.videoSource&&{height:{ideal:480},width:{ideal:640}}};if("string"==typeof i.audio&&(i.audio={deviceId:{exact:i.audio}}),i.video){if(e.resolution){var o=e.resolution.toLowerCase().split("x"),s=Number(o[0]),l=Number(o[1]);i.video.width.ideal=s,i.video.height.ideal=l}if(e.frameRate&&(i.video.frameRate={ideal:e.frameRate}),e.videoSource&&"string"==typeof e.videoSource)if("screen"===e.videoSource||-1!==h.name.indexOf("Firefox")&&"window"===e.videoSource)if("Chrome"!==h.name&&-1===h.name.indexOf("Firefox")&&"Opera"!==h.name){var d=new a.OpenViduError(a.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome and Firefox. Detected browser: "+h.name);console.error(d),r(d)}else{if(t.advancedConfiguration.screenShareChromeExtension&&-1===h.name.indexOf("Firefox"))c.getScreenConstraints(function(e,o){if(e||o.mandatory&&"screen"===o.mandatory.chromeMediaSource)if("permission-denied"===e||"PermissionDeniedError"===e){var s=new a.OpenViduError(a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(s),r(s)}else{var l=t.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();c.getChromeExtensionStatus(l,function(e){if("installed-disabled"===e){var n=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(n),r(n)}if("not-installed"===e){var i=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,t.advancedConfiguration.screenShareChromeExtension);console.error(i),r(i)}})}else i.video=o,n(i)});else{var p=-1!==h.name.indexOf("Firefox")?e.videoSource:void 0;u.getScreenId(p,function(e,o,s){if(e){if("not-installed"===e){var l=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,t.advancedConfiguration.screenShareChromeExtension?t.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");console.error(l),r(l)}else if("installed-disabled"===e){var u=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(u),r(u)}else if("permission-denied"===e){var c=new a.OpenViduError(a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(c),r(c)}}else i.video=s.video,n(i)})}e.videoSource="screen"}else i.video.deviceId={exact:e.videoSource},n(i);else n(i)}else n(i)})},e.prototype.startWs=function(e){var t={heartbeat:5e3,sendCloseMessage:!1,ws:{uri:this.wsUri,useSockJS:!1,onconnected:e,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 d.clients.JsonRpcClient(t)},e.prototype.closeWs=function(){this.jsonRpcClient.close()},e.prototype.sendRequest=function(e,t,n){t&&t instanceof Function&&(n=t,t={}),console.debug('Sending request: {method:"'+e+'", params: '+JSON.stringify(t)+"}"),this.jsonRpcClient.send(e,t,n)},e.prototype.getWsUri=function(){return this.wsUri},e.prototype.getSecret=function(){return this.secret},e.prototype.getRecorder=function(){return this.recorder},e.prototype.disconnectCallback=function(){console.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection():alert("Connection error. Please reload page.")},e.prototype.reconnectingCallback=function(){console.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.onLostConnection():alert("Connection error. Please reload page.")},e.prototype.reconnectedCallback=function(){console.warn("Websocket reconnected"),this.isRoomAvailable()?this.session.onRecoveredConnection():alert("Connection error. Please reload page.")},e.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof o.Session||(console.warn("Session instance not found"),!1)},e}()},PZzU:function(e,t,n){"use strict";t.__esModule=!0;var r=n("PPcv");t.OpenVidu=r.OpenVidu;var i=n("JTMn");t.Session=i.Session;var o=n("PEz1");t.Publisher=o.Publisher;var s=n("bk74");t.Subscriber=s.Subscriber;var a=n("P3vI");t.StreamManager=a.StreamManager;var l=n("DPKQ");t.Stream=l.Stream;var u=n("ryRr");t.Connection=u.Connection;var c=n("tInm");t.LocalRecorder=c.LocalRecorder;var d=n("74bm");t.Filter=d.Filter;var h=n("Yn0Z");t.LocalRecorderState=h.LocalRecorderState;var p=n("Tt94");t.OpenViduError=p.OpenViduError;var f=n("/dLB");t.VideoInsertMode=f.VideoInsertMode;var m=n("hzOQ");t.Event=m.Event;var g=n("8KVD");t.ConnectionEvent=g.ConnectionEvent;var v=n("e8ps");t.PublisherSpeakingEvent=v.PublisherSpeakingEvent;var y=n("rUL0");t.RecordingEvent=y.RecordingEvent;var b=n("ksJj");t.SessionDisconnectedEvent=b.SessionDisconnectedEvent;var _=n("suHS");t.SignalEvent=_.SignalEvent;var w=n("Te8r");t.StreamEvent=w.StreamEvent;var C=n("HxXY");t.StreamManagerEvent=C.StreamManagerEvent;var S=n("oIG1");t.VideoElementEvent=S.VideoElementEvent;var E=n("BwMD");t.StreamPropertyChangedEvent=E.StreamPropertyChangedEvent;var O=n("+ig+");t.FilterEvent=O.FilterEvent},"S+k6":function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return s}),n.d(t,"__decorate",function(){return a}),n.d(t,"__param",function(){return l}),n.d(t,"__metadata",function(){return u}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return d}),n.d(t,"__exportStar",function(){return h}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return f}),n.d(t,"__spread",function(){return m}),n.d(t,"__await",function(){return g}),n.d(t,"__asyncGenerator",function(){return v}),n.d(t,"__asyncDelegator",function(){return y}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return C});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}l((r=r.apply(e,t||[])).next())})}function d(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(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}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof g?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function y(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}},SYuc:function(e,t,n){var r=n("EDod");t.JsonRpcClient=r},Te8r:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ"),o=n("PEz1"),s=n("JTMn");t.StreamEvent=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.stream=i,s.reason=o,s}return r(t,e),t.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 o.Publisher){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var e=this.target.openvidu.publishers,t=0;t<e.length;t++)if(e[t]===this.target){e.splice(t,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 r=n.options.streams;for(t=r.length-1;t>=0;--t)r[t].id===this.stream.streamId&&r.splice(t,1)}}},t}(i.Event)},Tt94:function(e,t,n){"use strict";t.__esModule=!0,function(e){e.BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",e.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",e.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",e.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",e.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",e.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",e.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",e.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",e.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",e.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",e.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",e.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",e.GENERIC_ERROR="GENERIC_ERROR"}(t.OpenViduErrorName||(t.OpenViduErrorName={})),t.OpenViduError=function(){return function(e,t){this.name=e,this.message=t}}()},VZ2u:function(e,t,n){var r=n("jrAl"),i=n("qa4Q");e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},"Wfi+":function(e,t,n){var r=n("k3G7"),i=n("VZ2u"),o=i;o.v1=r,o.v4=i,e.exports=o},Yn0Z:function(e,t,n){"use strict";t.__esModule=!0,function(e){e.READY="READY",e.RECORDING="RECORDING",e.PAUSED="PAUSED",e.FINISHED="FINISHED"}(t.LocalRecorderState||(t.LocalRecorderState={}))},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},bDgZ:function(e,t,n){(function(e){var r;(function(){"use strict";var i={function:!0,object:!0},o=i[typeof window]&&window||this,s=i[typeof t]&&t&&i[typeof e]&&e&&!e.nodeType&&e&&"object"==typeof global&&global;!s||s.global!==s&&s.window!==s&&s.self!==s||(o=s);var a=Math.pow(2,53)-1,l=/\bOpera/,u=Object.prototype,c=u.hasOwnProperty,d=u.toString;function h(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function p(e){return e=y(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:h(e)}function f(e,t){for(var n in e)c.call(e,n)&&t(e[n],n,e)}function m(e){return null==e?h(e):d.call(e).slice(8,-1)}function g(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function v(e,t){var n=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=a)for(;++n<r;)t(e[n],n);else f(e,t)}(e,function(r,i){n=t(n,r,i,e)}),n}function y(e){return String(e).replace(/^ +| +$/g,"")}var b=function e(t){var n=o,r=t&&"object"==typeof t&&"String"!=m(t);r&&(n=t,t=null);var i=n.navigator||{},s=i.userAgent||"";t||(t=s);var a,u,c,h,b=r?!!i.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(d.toString()),_=r?"Object":"ScriptBridgingProxyObject",w=r?"Object":"Environment",C=r&&n.java?"JavaPackage":m(n.java),S=r?"Object":"RuntimeObject",E=/\bJava/.test(C)&&n.java,O=E&&m(n.environment)==w,T=E?"a":"\u03b1",x=E?"b":"\u03b2",I=n.document||{},P=n.operamini||n.opera,k=l.test(k=r&&P?P["[[Class]]"]:m(P))?k:P=null,M=t,A=[],R=null,N=t==s,D=N&&P&&"function"==typeof P.version&&P.version(),L=v([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(e,n){return e||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(t)&&(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(e,n){return e||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(t)&&(n.label||n)}),V=z([{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(e,n,r){return e||(n[V]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(V)]||RegExp("\\b"+g(r)+"(?:\\b|\\w*\\d)","i").exec(t))&&r}),U=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(e,n){var r=n.pattern||g(n);return!e&&(e=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var r={"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 t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),p(e.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])}(e,r,n.label||n)),e});function z(e){return v(e,function(e,n){var r=n.pattern||g(n);return!e&&(e=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=p(e[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e})}if(L&&(L=[L]),F&&!V&&(V=z([F])),(a=/\bGoogle TV\b/.exec(V))&&(V=a[0]),/\bSimulator\b/i.test(t)&&(V=(V?V+" ":"")+"Simulator"),"Opera Mini"==j&&/\bOPiOS\b/.test(t)&&A.push("running in Turbo/Uncompressed mode"),"IE"==j&&/\blike iPhone OS\b/.test(t)?(F=(a=e(t.replace(/like iPhone OS/,""))).manufacturer,V=a.product):/^iP/.test(V)?(j||(j="Safari"),U="iOS"+((a=/ OS ([\d_]+)/i.exec(t))?" "+a[1].replace(/_/g,"."):"")):"Konqueror"!=j||/buntu/i.test(U)?F&&"Google"!=F&&(/Chrome/.test(j)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(V))||/\bAndroid\b/.test(U)&&/^Chrome/.test(j)&&/\bVersion\//i.test(t)?(j="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==j?(/\bMobi/i.test(t)||(U="Android",A.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&A.unshift("accelerated")):"PaleMoon"==j&&(a=/\bFirefox\/([\d.]+)\b/.exec(t))?A.push("identifying as Firefox "+a[1]):"Firefox"==j&&(a=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(U||(U="Firefox OS"),V||(V=a[1])):!j||(a=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(j))?(j&&!V&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(a+"/")+8))&&(j=null),(a=V||F||U)&&(V||F||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(j=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:a)+" Browser")):"Electron"==j&&(a=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&A.push("Chromium "+a):U="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(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null})),(a=("iCab"==L&&parseFloat(D)>3?"WebKit":/\bOpera\b/.test(j)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(L)&&"WebKit"||!L&&/\bMSIE\b/i.test(t)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==L&&/\bPlayStation\b(?! Vita\b)/i.test(j)&&"NetFront")&&(L=[a]),"IE"==j&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(j+=" Mobile",U="Windows Phone "+(/\+$/.test(a)?a:a+".x"),A.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(j="IE Mobile",U="Windows Phone 8.x",A.unshift("desktop mode"),D||(D=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=j&&"Trident"==L&&(a=/\brv:([\d.]+)/.exec(t))&&(j&&A.push("identifying as "+j+(D?" "+D:"")),j="IE",D=a[1]),N){if(/^(?:boolean|number|string|undefined)$/.test(h=null!=(c=n)?typeof c.global:"number")||"object"==h&&!c.global)m(a=n.runtime)==_?(j="Adobe AIR",U=a.flash.system.Capabilities.os):m(a=n.phantom)==S?(j="PhantomJS",D=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof I.documentMode&&(a=/\bTrident\/(\d+)/i.exec(t))?((a=+a[1]+4)!=(D=[D,I.documentMode])[1]&&(A.push("IE "+D[1]+" mode"),L&&(L[1]=""),D[1]=a),D="IE"==j?String(D[1].toFixed(1)):D[0]):"number"==typeof I.documentMode&&/^(?:Chrome|Firefox)\b/.test(j)&&(A.push("masking as "+j+" "+D),j="IE",D="11.0",L=["Trident"],U="Windows");else if(E&&(M=(a=E.lang.System).getProperty("os.arch"),U=U||a.getProperty("os.name")+" "+a.getProperty("os.version")),O){try{D=n.require("ringo/engine").version.join("."),j="RingoJS"}catch(H){(a=n.system)&&a.global.system==n.system&&(j="Narwhal",U||(U=a[0].os||null))}j||(j="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(a=n.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(A.push("Node "+a.versions.node),j="Electron",D=a.versions.electron):"string"==typeof a.versions.nw&&(A.push("Chromium "+D,"Node "+a.versions.node),j="NW.js",D=a.versions.nw)),j||(j="Node.js",M=a.arch,U=a.platform,D=(D=/[\d.]+/.exec(a.version))?D[0]:null));U=U&&p(U)}if(D&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(D)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(N&&i.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(R=/b/i.test(a)?"beta":"alpha",D=D.replace(RegExp(a+"\\+?$"),"")+("beta"==R?x:T)+(/\d+\+?/.exec(a)||"")),"Fennec"==j||"Firefox"==j&&/\b(?:Android|Firefox OS)\b/.test(U))j="Firefox Mobile";else if("Maxthon"==j&&D)D=D.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(V))"Xbox 360"==V&&(U=null),"Xbox 360"==V&&/\bIEMobile\b/.test(t)&&A.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(j)&&(!j||V||/Browser|Mobi/.test(j))||"Windows CE"!=U&&!/Mobi/i.test(t))if("IE"==j&&N)try{null===n.external&&A.unshift("platform preview")}catch(H){A.unshift("embedded")}else(/\bBlackBerry\b/.test(V)||/\bBB10\b/.test(t))&&(a=(RegExp(V.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||D)?(U=((a=[a,/BB10/.test(t)])[1]?(V=null,F="BlackBerry"):"Device Software")+" "+a[0],D=null):this!=f&&"Wii"!=V&&(N&&P||/Opera/.test(j)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==j&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==j&&(U&&!/^Win/.test(U)&&D>5.5||/\bWindows XP\b/.test(U)&&D>8||8==D&&!/\bTrident\b/.test(t)))&&!l.test(a=e.call(f,t.replace(l,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),l.test(j)?(/\bIE\b/.test(a)&&"Mac OS"==U&&(U=null),a="identify"+a):(a="mask"+a,j=k?p(k.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(U=null),N||(D=null)),L=["Presto"],A.push(a));else j+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==j&&"+"==a[1].slice(-1)?(j="WebKit Nightly",R="alpha",D=a[1].slice(0,-1)):D!=a[1]&&D!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(D=null),a[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==L&&(L=["Blink"]),N&&(b||a[1])?(L&&(L[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=L?"27":"28")):(L&&(L[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:"8"),L&&(L[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==j&&(!D||parseInt(D)>45)&&(D=a)),"Opera"==j&&(a=/\bzbov|zvav$/.exec(U))?(j+=" ",A.unshift("desktop mode"),"zvav"==a?(j+="Mini",D=null):j+="Mobile",U=U.replace(RegExp(" *"+a+"$"),"")):"Safari"==j&&/\bChrome\b/.exec(L&&L[1])&&(A.unshift("desktop mode"),j="Chrome Mobile",D=null,/\bOS X\b/.test(U)?(F="Apple",U="iOS 4.3+"):U=null),D&&0==D.indexOf(a=/[\d.]+$/.exec(U))&&t.indexOf("/"+a+"-")>-1&&(U=y(U.replace(a,""))),L&&!/\b(?:Avant|Nook)\b/.test(j)&&(/Browser|Lunascape|Maxthon/.test(j)||"Safari"!=j&&/^iOS/.test(U)&&/\bSafari\b/.test(L[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(j)&&L[1])&&(a=L[L.length-1])&&A.push(a),A.length&&(A=["("+A.join("; ")+")"]),F&&V&&V.indexOf(F)<0&&A.push("on "+F),V&&A.push((/^on /.test(A[A.length-1])?"":"on ")+V),U&&(a=/ ([\d.+]+)$/.exec(U),u=a&&"/"==U.charAt(U.length-a[0].length-1),U={architecture:32,family:a&&!u?U.replace(a[0],""):U,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!u?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(M))&&!/\bi686\b/i.test(M)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+a),"")),j&&(/\bWOW64\b/i.test(t)||N&&/\w(?:86|32)$/.test(i.cpuClass||i.platform)&&!/\bWin64; x64\b/i.test(t))&&A.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==j&&parseFloat(D)>=39&&(U.architecture=64),t||(t=null);var B={};return B.description=t,B.layout=L&&L[0],B.manufacturer=F,B.name=j,B.prerelease=R,B.product=V,B.ua=t,B.version=j&&D,B.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},B.parse=e,B.toString=function(){return this.description||""},B.version&&A.unshift(D),B.name&&A.unshift(j),U&&j&&(U!=String(U).split(" ")[0]||U!=j.split(" ")[0]&&!V)&&A.push(V?"("+U+")":"on "+U),A.length&&(B.description=A.join(" ")),B}();o.platform=b,void 0===(r=(function(){return b}).call(t,n,t,e))||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},bk74:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("P3vI");t.Subscriber=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.element=i.targetElement,i.stream=t,i.properties=r,i}return r(t,e),t.prototype.subscribeToAudio=function(e){return this.stream.getMediaStream().getAudioTracks().forEach(function(t){t.enabled=e}),console.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its audio stream"),this},t.prototype.subscribeToVideo=function(e){return this.stream.getMediaStream().getVideoTracks().forEach(function(t){t.enabled=e}),console.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its video stream"),this},t}(i.StreamManager)},cUzU:function(e,t,n){"use strict";global.WebSocket||global;var r=console,i=3e3;e.exports=function(e){var t,n,o=!1,s=e.uri,a=e.useSockJS,l=!1,u=!1;function c(e,t){try{r.debug("WebSocket connected to "+t)}catch(n){r.error(n)}}(n=a?new SockJS(s):new WebSocket(s)).onopen=function(){c(0,s),e.onconnected&&e.onconnected()},n.onerror=function(t){r.error("Could not connect to "+s+" (invoking onerror if defined)",t),e.onerror&&e.onerror(t)};var d=function(){3===n.readyState?o?r.debug("Connection closed by user"):(r.debug("Connection closed unexpectecly. Reconnecting..."),h(2e3,1)):r.debug("Close callback from previous websocket. Ignoring it")};function h(t,n){if(r.debug("reconnectToSameUri (attempt #"+n+", max="+t+")"),1===n){if(l)return void r.warn("Trying to reconnectToNewUri when reconnecting... Ignoring this reconnection.");l=!0,e.onreconnecting&&e.onreconnecting()}u?p(t,n,s):e.newWsUriOnReconnection?e.newWsUriOnReconnection(function(e,o){e?(r.debug(e),setTimeout(function(){h(t,n+1)},i)):p(t,n,o)}):p(t,n,s)}function p(o,u,p){var f;r.debug("Reconnection attempt #"+u),n.close(),s=p||s,(f=a?new SockJS(s):new WebSocket(s)).onopen=function(){r.debug("Reconnected after "+u+" attempts..."),c(0,s),l=!1,t(),e.onreconnected()&&e.onreconnected(),f.onclose=d},f.onerror=function(t){r.warn("Reconnection error: ",t),u===o?e.ondisconnect&&e.ondisconnect():setTimeout(function(){h(o,u+1)},i)},n=f}n.onclose=d,this.close=function(){o=!0,n.close()},this.forceClose=function(e){if(r.debug("Testing: Force WebSocket close"),e){r.debug("Testing: Change wsUri for "+e+" millis to simulate net failure");var t=s;s="wss://21.234.12.34.4:443/",u=!0,setTimeout(function(){r.debug("Testing: Recover good wsUri "+t),s=t,u=!1},e)}n.close()},this.reconnectWs=function(){r.debug("reconnectWs"),h(2e3,1)},this.send=function(e){n.send(e)},this.addEventListener=function(e,r){(t=function(){n.addEventListener(e,r)})()}}},crnd:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},"dY/r":function(e,t){var n=["stun:","turn:"];e.exports=function(e){var t,r,i=(e||{}).url||e,o={};return"string"==typeof i||i instanceof String?(i=i.trim(),(t=n[n.indexOf(i.slice(0,5))])?(r=(i=i.slice(5)).split("@"),o.username=e.username,o.credential=e.credential,r.length>1&&(i=r[1],r=r[0].split(":"),o.username=r[0],o.credential=(e||{}).credential||r[1]||""),o.url=t+i,o.urls=[o.url],o):e):e}},de4E:function(e,t){t.pack=function(e,t){var n={jsonrpc:"2.0"};if(e.method)n.method=e.method,e.params&&(n.params=e.params),null!=t&&(n.id=t);else if(null!=t){if(e.error){if(void 0!==e.result)throw new TypeError("Both result and error are defined");n.error=e.error}else{if(void 0===e.result)throw new TypeError("No result or error is defined");n.result=e.result}n.id=t}return JSON.stringify(n)},t.unpack=function(e){var t=e;("string"==typeof e||e instanceof String)&&(t=JSON.parse(e));var n=t.jsonrpc;if("2.0"!==n)throw new TypeError("Invalid JsonRPC version '"+n+"': "+e);if(null==t.method){if(null==t.id)throw new TypeError("Invalid message: "+e);var r=void 0!==t.result,i=void 0!==t.error;if(r&&i)throw new TypeError("Both result and error are defined: "+e);if(!r&&!i)throw new TypeError("No result or error is defined: "+e);t.ack=t.id,delete t.id}return t}},e8ps:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.PublisherSpeakingEvent=function(e){function t(t,n,r,i){var o=e.call(this,!1,t,n)||this;return o.type=n,o.connection=r,o.streamId=i,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},ee8k:function(e,t,n){var r=n("cUzU");t.WebSocketWithReconnection=r},gUCu:function(e,t){function n(){var e={};this.forEach=function(t){for(var n in e){var r=e[n];for(var i in r)t(r[i])}},this.get=function(t,n){var r=e[n];if(null!=r)return r[t]},this.remove=function(t,n){var r=e[n];if(null!=r){for(var i in delete r[t],r)return!1;delete e[n]}},this.set=function(t,n,r){if(null==t)return this.remove(n,r);var i=e[r];null==i&&(e[r]=i={}),i[n]=t}}n.prototype.pop=function(e,t){var n=this.get(e,t);if(null!=n)return this.remove(e,t),n},e.exports=n},hw9W:function(e){e.exports=[]},hzOQ:function(e,t,n){"use strict";t.__esModule=!0,t.Event=function(){function e(e,t,n){this.hasBeenPrevented=!1,this.cancelable=e,this.target=t,this.type=n}return e.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},e.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},e}()},jrAl:function(e,t){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 r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},k3G7:function(e,t,n){var r,i,o=n("jrAl"),s=n("qa4Q"),a=0,l=0;e.exports=function(e,t,n){var u=t&&n||0,c=t||[],d=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==h){var p=o();null==d&&(d=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==h&&(h=i=16383&(p[6]<<8|p[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,g=f-a+(m-l)/1e4;if(g<0&&void 0===e.clockseq&&(h=h+1&16383),(g<0||f>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=f,l=m,i=h;var v=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;c[u++]=v>>>24&255,c[u++]=v>>>16&255,c[u++]=v>>>8&255,c[u++]=255&v;var y=f/4294967296*1e4&268435455;c[u++]=y>>>8&255,c[u++]=255&y,c[u++]=y>>>24&15|16,c[u++]=y>>>16&255,c[u++]=h>>>8|128,c[u++]=255&h;for(var b=0;b<6;++b)c[u+b]=d[b];return t||s(c)}},kiQV:function(e){e.exports={dependencies:{"@angular/animations":"7.0.0","@angular/cdk":"7.0.0","@angular/common":"7.0.0","@angular/compiler":"7.0.0","@angular/core":"7.0.0","@angular/elements":"7.0.0","@angular/forms":"7.0.0","@angular/http":"7.0.0","@angular/material":"7.0.0","@angular/platform-browser":"7.0.0","@angular/platform-browser-dynamic":"7.0.0","@angular/router":"7.0.0",concat:"1.0.3","core-js":"2.5.7","document-register-element":"1.8.1","elements-zone-strategy":"6.0.4","fs-extra":"7.0.0",hammerjs:"2.0.8",jquery:"3.3.1","openvidu-browser":"2.6.0",rxjs:"6.3.3","zone.js":"0.8.26"},devDependencies:{"@angular-devkit/build-angular":"0.10.1","@angular-devkit/build-ng-packagr":"0.10.1","@angular/cli":"7.0.1","@angular/compiler-cli":"7.0.0","@angular/language-service":"7.0.0","@types/jasmine":"2.8.9","@types/jasminewd2":"2.0.5","@types/jquery":"3.3.21","@types/node":"10.12.0",codelyzer:"4.5.0","jasmine-core":"3.2.1","jasmine-spec-reporter":"4.2.1",karma:"3.0.0","karma-chrome-launcher":"2.2.0","karma-coverage-istanbul-reporter":"2.0.4","karma-jasmine":"1.1.2","karma-jasmine-html-reporter":"1.3.1","ng-packagr":"4.3.1",protractor:"5.4.1","ts-node":"7.0.1",tsickle:"0.33.0",tslib:"1.9.3",tslint:"5.11.0",typescript:"3.1.3"},name:"openvidu-call",private:!0,scripts:{build:"ng build","build:openvidu-angular":"node openvidu-angular-build.js && ng build openvidu-angular --prod","build:openvidu-webcomponent":"ng build --prod --output-hashing none && node openvidu-webcomponent-build.js",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.6.0"}},ksJj:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.SessionDisconnectedEvent=function(e){function t(t,n){var r=e.call(this,!0,t,"sessionDisconnected")||this;return r.reason=n,r}return r(t,e),t.prototype.callDefaultBehavior=function(){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var e=this.target;for(var t in e.remoteConnections)e.remoteConnections[t].stream&&(e.remoteConnections[t].stream.disposeWebRtcPeer(),e.remoteConnections[t].stream.disposeMediaStream(),e.remoteConnections[t].stream.streamManager&&e.remoteConnections[t].stream.streamManager.removeAllVideos(),delete e.remoteStreamsCreated[e.remoteConnections[t].stream.streamId],e.remoteConnections[t].dispose()),delete e.remoteConnections[t]},t}(i.Event)},oIG1:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.VideoElementEvent=function(e){function t(t,n,r){var i=e.call(this,!1,n,r)||this;return i.element=t,i}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},pLL0:function(e,t){t.pack=function(e){throw new TypeError("Not yet implemented")},t.unpack=function(e){throw new TypeError("Not yet implemented")}},qa4Q:function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},rUL0:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.RecordingEvent=function(e){function t(t,n,r,i){var o=e.call(this,!1,t,n)||this;return o.id=r,i!==r&&(o.name=i),o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},ryRr:function(e,t,n){"use strict";t.__esModule=!0;var r=n("DPKQ");t.Connection=function(){function e(e,t){this.session=e,this.disposed=!1;var n="'Connection' created ";console.info(n+=t?"(remote) with 'connectionId' ["+t.id+"]":"(local)"),this.options=t,t&&(this.connectionId=t.id,t.metadata&&(this.data=t.metadata),t.streams&&this.initRemoteStreams(t.streams)),this.creationTime=(new Date).getTime()}return e.prototype.sendIceCandidate=function(e){console.debug(this.stream.outboundStreamOpts?"Local":"Remote","candidate for",this.connectionId,JSON.stringify(e)),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:e.candidate,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex},function(e,t){e&&console.error("Error sending ICE candidate: "+JSON.stringify(e))})},e.prototype.initRemoteStreams=function(e){var t=this;e.forEach(function(e){var n={id:e.id,connection:t,hasAudio:e.hasAudio,hasVideo:e.hasVideo,audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:e.typeOfVideo,frameRate:e.frameRate,videoDimensions:e.videoDimensions?JSON.parse(e.videoDimensions):void 0,filter:e.filter?e.filter:void 0},i=new r.Stream(t.session,n);t.addStream(i)}),console.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},e.prototype.addStream=function(e){e.connection=this,this.stream=e},e.prototype.removeStream=function(e){delete this.stream},e.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},e}()},suHS:function(e,t,n){"use strict";var r=n("S+k6").__extends;t.__esModule=!0;var i=n("hzOQ");t.SignalEvent=function(e){function t(t,n,r,i){var o=e.call(this,!1,t,n)||this;return o.type=n,o.data=r,o.from=i,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},tInm:function(e,t,n){"use strict";t.__esModule=!0;var r=n("Yn0Z");t.LocalRecorder=function(){function e(e){this.stream=e,this.chunks=[],this.count=0,this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=r.LocalRecorderState.READY}return e.prototype.record=function(){var e=this;return new Promise(function(t,n){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!==r.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");if(console.log("Starting local recording of stream '"+e.stream.streamId+"' of connection '"+e.connectionId+"'"),"function"==typeof MediaRecorder.isTypeSupported){var i=void 0;MediaRecorder.isTypeSupported("video/webm;codecs=vp9")?i={mimeType:"video/webm;codecs=vp9"}:MediaRecorder.isTypeSupported("video/webm;codecs=h264")?i={mimeType:"video/webm;codecs=h264"}:MediaRecorder.isTypeSupported("video/webm;codecs=vp8")&&(i={mimeType:"video/webm;codecs=vp8"}),console.log("Using mimeType "+i.mimeType),e.mediaRecorder=new MediaRecorder(e.stream.getMediaStream(),i)}else console.warn("isTypeSupported is not supported, using default codecs for browser"),e.mediaRecorder=new MediaRecorder(e.stream.getMediaStream());e.mediaRecorder.start(10)}catch(o){n(o)}e.mediaRecorder.ondataavailable=function(t){e.chunks.push(t.data)},e.mediaRecorder.onerror=function(e){console.error("MediaRecorder error: ",e)},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(e){console.log("MediaRecorder warning: "+e)},e.state=r.LocalRecorderState.RECORDING,t()})},e.prototype.stop=function(){var e=this;return new Promise(function(t,n){try{if(e.state===r.LocalRecorderState.READY||e.state===r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+e.state+"'). Call 'LocalRecorder.start()' before");e.mediaRecorder.onstop=function(){e.onStopDefault(),t()},e.mediaRecorder.stop()}catch(i){n(i)}})},e.prototype.pause=function(){var e=this;return new Promise(function(t,n){try{e.state!==r.LocalRecorderState.RECORDING&&n(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+e.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")),e.mediaRecorder.pause(),e.state=r.LocalRecorderState.PAUSED}catch(i){n(i)}})},e.prototype.resume=function(){var e=this;return new Promise(function(t,n){try{if(e.state!==r.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+e.state+"'). Call 'LocalRecorder.pause()' before");e.mediaRecorder.resume(),e.state=r.LocalRecorderState.RECORDING}catch(i){n(i)}})},e.prototype.preview=function(e){if(this.state!==r.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,"string"==typeof e){this.htmlParentElementId=e;var t=document.getElementById(e);t&&(this.videoPreview=t.appendChild(this.videoPreview))}else this.htmlParentElementId=e.id,this.videoPreview=e.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},e.prototype.clean=function(){var e=this,t=function(){delete e.blob,e.chunks=[],e.count=0,delete e.mediaRecorder,e.state=r.LocalRecorderState.READY};this.state===r.LocalRecorderState.RECORDING||this.state===r.LocalRecorderState.PAUSED?this.stop().then(function(){return t()}).catch(function(){return t()}):t()},e.prototype.download=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var e=document.createElement("a");e.style.display="none",document.body.appendChild(e);var t=window.URL.createObjectURL(this.blob);e.href=t,e.download=this.id+".webm",e.click(),window.URL.revokeObjectURL(t),document.body.removeChild(e)},e.prototype.getBlob=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},e.prototype.uploadAsBinary=function(e,t){var n=this;return new Promise(function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var s=new XMLHttpRequest;if(s.open("POST",e,!0),"object"==typeof t)for(var a=0,l=Object.keys(t);a<l.length;a++){var u=l[a];s.setRequestHeader(u,t[u])}s.onreadystatechange=function(){4===s.readyState&&("2"===s.status.toString().charAt(0)?i(s.responseText):o(s.status))},s.send(n.blob)}})},e.prototype.uploadAsMultipartfile=function(e,t){var n=this;return new Promise(function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)o(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));else{var s=new XMLHttpRequest;if(s.open("POST",e,!0),"object"==typeof t)for(var a=0,l=Object.keys(t);a<l.length;a++){var u=l[a];s.setRequestHeader(u,t[u])}var c=new FormData;c.append("file",n.blob,n.id+".webm"),s.onreadystatechange=function(){4===s.readyState&&("2"===s.status.toString().charAt(0)?i(s.responseText):o(s.status))},s.send(c)}})},e.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=r.LocalRecorderState.FINISHED},e}()},tMSY:function(e,t){function n(){}e.exports=n,n.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var r=3===arguments.length,i=r?arguments[2]:arguments[1];return i._groupName=r?arguments[1]:void 0,(this.callbacks[e]=this.callbacks[e]||[]).push(i),this},t.once=function(e,t,n){var r=this,i=3===arguments.length,o=i?arguments[2]:arguments[1];return this.on(e,i?arguments[1]:void 0,function t(){r.off(e,t),o.apply(this,arguments)}),this},t.releaseGroup=function(e){var t,n,r,i;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,r=(i=this.callbacks[t]).length;n<r;n++)i[n]._groupName===e&&(i.splice(n,1),n--,r--);return this},t.off=function(e,t){this.callbacks=this.callbacks||{};var n,r=this.callbacks[e];return r?1===arguments.length?(delete this.callbacks[e],this):(n=r.indexOf(t),r.splice(n,1),0===r.length&&delete this.callbacks[e],this):this},t.emit=function(e){this.callbacks=this.callbacks||{};var t,n,r,i=[].slice.call(arguments,1),o=this.callbacks[e],s=this.getWildcardCallbacks(e);if(o)for(t=0,n=(r=o.slice()).length;t<n&&r[t];++t)r[t].apply(this,i);if(s)for(n=s.length,t=0,n=(r=s.slice()).length;t<n&&r[t];++t)r[t].apply(this,[e].concat(i));return this},t.getWildcardCallbacks=function(e){this.callbacks=this.callbacks||{};var t,n,r=[];for(t in this.callbacks)n=t.split("*"),("*"===t||2===n.length&&e.slice(0,n[0].length)===n[0])&&(r=r.concat(this.callbacks[t]));return r}},n.mixin(n)},ttXH:function(e,t,n){var r,i=n("tMSY");"undefined"!=typeof window&&(r=window.AudioContext||window.webkitAudioContext);var o=null;e.exports=function(e,t){var n=new i;if(!r)return n;var s,a,l,u=(t=t||{}).smoothing||.1,c=t.interval||50,d=t.threshold,h=t.play,p=t.history||10,f=!0;o=t.audioContext||o||new r,(l=o.createAnalyser()).fftSize=512,l.smoothingTimeConstant=u,a=new Float32Array(l.frequencyBinCount),e.jquery&&(e=e[0]),e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?(s=o.createMediaElementSource(e),void 0===h&&(h=!0),d=d||-50):(s=o.createMediaStreamSource(e),d=d||-50),s.connect(l),h&&l.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(e){d=e},n.setInterval=function(e){c=e},n.stop=function(){f=!1,n.emit("volume_change",-100,d),n.speaking&&(n.speaking=!1,n.emit("stopped_speaking")),l.disconnect(),s.disconnect()},n.speakingHistory=[];for(var m=0;m<p;m++)n.speakingHistory.push(0);var g=function(){setTimeout(function(){if(f){var e=function(e,t){var n=-1/0;e.getFloatFrequencyData(t);for(var r=4,i=t.length;r<i;r++)t[r]>n&&t[r]<0&&(n=t[r]);return n}(l,a);n.emit("volume_change",e,d);var t=0;if(e>d&&!n.speaking){for(var r=n.speakingHistory.length-3;r<n.speakingHistory.length;r++)t+=n.speakingHistory[r];t>=2&&(n.speaking=!0,n.emit("speaking"))}else if(e<d&&n.speaking){for(r=0;r<n.speakingHistory.length;r++)t+=n.speakingHistory[r];0==t&&(n.speaking=!1,n.emit("stopped_speaking"))}n.speakingHistory.shift(),n.speakingHistory.push(0+(e>d)),g()}},c)};return g(),n}},"txJ/":function(e,t){var n=Object.create||function(e){var t=function(){};return t.prototype=e,new t},r=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},i=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var s,a=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),s=0===l.x}catch(g){s=!1}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var o,s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),a=s[t]):(s=e._events=n(null),e._eventsCount=0),a){if("function"==typeof a?a=s[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),!a.warned&&(o=u(e))&&o>0&&a.length>o){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else a=s[t]=r,++e._eventsCount;return e}function d(){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 e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=i.call(d,r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(!r)return[];var i=r[t];return i?"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length):[]}function f(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}s?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');a=e}}):o.defaultMaxListeners=a,o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){var t,n,r,i,o,s,a="error"===e;if(s=this._events)a=a&&null==s.error;else if(!a)return!1;if(a){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(n=s[e]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=m(e,r),o=0;o<r;++o)i[o].call(n)}(n,u,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,o=m(e,i),s=0;s<i;++s)o[s].call(n,r)}(n,u,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var o=e.length,s=m(e,o),a=0;a<o;++a)s[a].call(n,r,i)}(n,u,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,o){if(t)e.call(n,r,i,o);else for(var s=e.length,a=m(e,s),l=0;l<s;++l)a[l].call(n,r,i,o)}(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,o=m(e,i),s=0;s<i;++s)o[s].apply(n,r)}(n,u,this,i)}return!0},o.prototype.on=o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,i,o,s,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=n(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){a=r[s].listener,o=s;break}if(o<0)return this;0===o?r.shift():function(e,t){for(var n=o,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}(r),1===r.length&&(i[e]=r[0]),i.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.removeAllListeners=function(e){var t,i,o;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):i[e]&&(0==--this._eventsCount?this._events=n(null):delete i[e]),this;if(0===arguments.length){var s,a=r(i);for(o=0;o<a.length;++o)"removeListener"!==(s=a[o])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},yLV6:function(e,t,n){var r;!function(i,o,s,a){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),d="function",h=Math.round,p=Math.abs,f=Date.now;function m(e,t,n){return setTimeout(C(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(v(e,n[t],n),!0)}function v(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function y(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==a&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var b=y(function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===a)&&(e[r[i]]=t[r[i]]),i++;return e},"extend","Use `assign`."),_=y(function(e,t){return b(e,t,!0)},"merge","Use `assign`.");function w(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&l(r,n)}function C(e,t){return function(){return e.apply(t,arguments)}}function S(e,t){return typeof e==d?e.apply(t&&t[0]||a,t):e}function E(e,t){return e===a?t:e}function O(e,t,n){v(P(t),function(t){e.addEventListener(t,n,!1)})}function T(e,t,n){v(P(t),function(t){e.removeEventListener(t,n,!1)})}function x(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function I(e,t){return e.indexOf(t)>-1}function P(e){return e.trim().split(/\s+/g)}function k(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function M(e){return Array.prototype.slice.call(e,0)}function A(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var s=t?e[o][t]:e[o];k(i,s)<0&&r.push(e[o]),i[o]=s,o++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}function R(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<u.length;){if((r=(n=u[o])?n+i:t)in e)return r;o++}return a}var N=1;function D(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var L="ontouchstart"in i,j=R(i,"PointerEvent")!==a,V=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F=25,U=1,z=4,B=8,H=1,W=2,G=4,q=8,Z=16,Q=W|G,Y=q|Z,K=Q|Y,J=["x","y"],X=["clientX","clientY"];function $(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){S(e.options.enable,[e])&&n.handler(t)},this.init()}function ee(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=t&U&&r-i==0,s=t&(z|B)&&r-i==0;n.isFirst=!!o,n.isFinal=!!s,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=te(t)),i>1&&!n.firstMultiple?n.firstMultiple=te(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,l=s?s.center:o.center,u=t.center=ne(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=se(l,u),t.distance=oe(l,u),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==U&&o.eventType!==z||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=ie(t.deltaX,t.deltaY);var c,d,h=re(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=p(h.x)>p(h.y)?h.x:h.y,t.scale=s?(c=s.pointers,oe((d=r)[0],d[1],X)/oe(c[0],c[1],X)):1,t.rotation=s?function(e,t){return se(r[1],r[0],X)+se(e[1],e[0],X)}(s.pointers):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(t.eventType!=B&&(l>F||s.velocity===a)){var u=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,d=re(l,u,c);r=d.x,i=d.y,n=p(d.x)>p(d.y)?d.x:d.y,o=ie(u,c),e.lastInterval=t}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var m=e.element;x(t.srcEvent.target,m)&&(m=t.srcEvent.target),t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function te(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:t,center:ne(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ne(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}function re(e,t,n){return{x:t/e||0,y:n/e||0}}function ie(e,t){return e===t?H:p(e)>=p(t)?e<0?W:G:t<0?q:Z}function oe(e,t,n){n||(n=J);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function se(e,t,n){return n||(n=J),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(D(this.element),this.evWin,this.domHandler)}};var ae={mousedown:U,mousemove:2,mouseup:z},le="mousedown",ue="mousemove mouseup";function ce(){this.evEl=le,this.evWin=ue,this.pressed=!1,$.apply(this,arguments)}w(ce,$,{handler:function(e){var t=ae[e.type];t&U&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=z),this.pressed&&(t&z&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var de={pointerdown:U,pointermove:2,pointerup:z,pointercancel:B,pointerout:B},he={2:"touch",3:"pen",4:"mouse",5:"kinect"},pe="pointerdown",fe="pointermove pointerup pointercancel";function me(){this.evEl=pe,this.evWin=fe,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(pe="MSPointerDown",fe="MSPointerMove MSPointerUp MSPointerCancel"),w(me,$,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=de[r],o=he[e.pointerType]||e.pointerType,s="touch"==o,a=k(t,e.pointerId,"pointerId");i&U&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):i&(z|B)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var ge={touchstart:U,touchmove:2,touchend:z,touchcancel:B},ve="touchstart",ye="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ve,this.evWin=ye,this.started=!1,$.apply(this,arguments)}w(be,$,{handler:function(e){var t=ge[e.type];if(t===U&&(this.started=!0),this.started){var n=(function(e,t){var n=M(e.touches),r=M(e.changedTouches);return t&(z|B)&&(n=A(n.concat(r),"identifier",!0)),[n,r]}).call(this,e,t);t&(z|B)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var _e={touchstart:U,touchmove:2,touchend:z,touchcancel:B},we="touchstart touchmove touchend touchcancel";function Ce(){this.evTarget=we,this.targetIds={},$.apply(this,arguments)}w(Ce,$,{handler:function(e){var t=_e[e.type],n=(function(e,t){var n=M(e.touches),r=this.targetIds;if(t&(2|U)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=M(e.changedTouches),a=[],l=this.target;if(o=n.filter(function(e){return x(e.target,l)}),t===U)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),t&(z|B)&&delete r[s[i].identifier],i++;return a.length?[A(o.concat(a),"identifier",!0),a]:void 0}).call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var Se=2500;function Ee(){$.apply(this,arguments);var e=C(this.handler,this);this.touch=new Ce(this.manager,e),this.mouse=new ce(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Oe(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout(function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)},Se)}}w(Ee,$,{handler:function(e,t,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)(function(e,t){e&U?(this.primaryTouch=t.changedPointers[0].identifier,Oe.call(this,t)):e&(z|B)&&Oe.call(this,t)}).call(this,t,n);else if(r&&(function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),s=Math.abs(n-i.y);if(o<=25&&s<=25)return!0}return!1}).call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Te=R(c.style,"touchAction"),xe=Te!==a,Ie=function(){if(!xe)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!t||i.CSS.supports("touch-action",n)}),e}();function Pe(e,t){this.manager=e,this.set(t)}Pe.prototype={set:function(e){"compute"==e&&(e=this.compute()),xe&&this.manager.element.style&&Ie[e]&&(this.manager.element.style[Te]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return v(this.manager.recognizers,function(t){S(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(I(e,"none"))return"none";var t=I(e,"pan-x"),n=I(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":I(e,"manipulation")?"manipulation":"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=I(r,"none")&&!Ie.none,o=I(r,"pan-y")&&!Ie["pan-y"],s=I(r,"pan-x")&&!Ie["pan-x"];if(i&&1===e.pointers.length&&e.distance<2&&e.deltaTime<250)return;if(!s||!o)return i||o&&n&Q||s&&n&Y?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ke=1,Me=2,Ae=4,Re=8,Ne=Re,De=16;function Le(e){this.options=l({},this.defaults,e||{}),this.id=N++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=ke,this.simultaneous={},this.requireFail=[]}function je(e){return e&De?"cancel":e&Re?"end":e&Ae?"move":e&Me?"start":""}function Ve(e){return e==Z?"down":e==q?"up":e==W?"left":e==G?"right":""}function Fe(e,t){var n=t.manager;return n?n.get(e):e}function Ue(){Le.apply(this,arguments)}function ze(){Ue.apply(this,arguments),this.pX=null,this.pY=null}function Be(){Ue.apply(this,arguments)}function He(){Le.apply(this,arguments),this._timer=null,this._input=null}function We(){Ue.apply(this,arguments)}function Ge(){Ue.apply(this,arguments)}function qe(){Le.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ze(e,t){return(t=t||{}).recognizers=E(t.recognizers,Ze.defaults.preset),new Qe(e,t)}function Qe(e,t){var n;this.options=l({},Ze.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(j?me:V?Ce:L?Ee:ce))(n,ee),this.touchAction=new Pe(this,this.options.touchAction),Ye(this,!0),v(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Ye(e,t){var n,r=e.element;r.style&&(v(e.options.cssProps,function(i,o){n=R(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}Le.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Fe(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)?this:(e=Fe(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===k(t,e=Fe(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=Fe(e,this);var t=k(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<Re&&r(t.options.event+je(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=Re&&r(t.options.event+je(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|ke)))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!S(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(Ne|De|32)&&(this.state=ke),this.state=this.process(t),this.state&(Me|Ae|Re|De)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Ue,Le,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=t&(Me|Ae),i=this.attrTest(e);return r&&(n&B||!i)?t|De:r||i?n&z?t|Re:t&Me?t|Ae:Me:32}}),w(ze,Ue,{defaults:{event:"pan",threshold:10,pointers:1,direction:K},getTouchAction:function(){var e=this.options.direction,t=[];return e&Q&&t.push("pan-y"),e&Y&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,s=e.deltaY;return i&t.direction||(t.direction&Q?(i=0===o?H:o<0?W:G,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===s?H:s<0?q:Z,n=s!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Ue.prototype.attrTest.call(this,e)&&(this.state&Me||!(this.state&Me)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ve(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Be,Ue,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Me)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),w(He,Le,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(z|B)&&!i)this.reset();else if(e.eventType&U)this.reset(),this._timer=m(function(){this.state=Ne,this.tryEmit()},t.time,this);else if(e.eventType&z)return Ne;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Ne&&(e&&e.eventType&z?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w(We,Ue,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Me)}}),w(Ge,Ue,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Q|Y,pointers:1},getTouchAction:function(){return ze.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Q|Y)?t=e.overallVelocity:n&Q?t=e.overallVelocityX:n&Y&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&e.eventType&z},emit:function(e){var t=Ve(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(qe,Le,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&U&&0===this.count)return this.failTimeout();if(r&&i&&n){if(e.eventType!=z)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||oe(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=m(function(){this.state=Ne,this.tryEmit()},t.interval,this),Me):Ne}return 32},failTimeout:function(){return this._timer=m(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ne&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ze.VERSION="2.0.7",Ze.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[We,{enable:!1}],[Be,{enable:!1},["rotate"]],[Ge,{direction:Q}],[ze,{direction:Q},["swipe"]],[qe],[qe,{event:"doubletap",taps:2},["tap"]],[He]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Qe.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&i.state&Ne)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&n.state&(Me|Ae|Re)&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Le)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=k(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==a&&t!==a){var n=this.handlers;return v(P(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==a){var n=this.handlers;return v(P(e),function(e){t?n[e]&&n[e].splice(k(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Ye(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Ze,{INPUT_START:U,INPUT_MOVE:2,INPUT_END:z,INPUT_CANCEL:B,STATE_POSSIBLE:ke,STATE_BEGAN:Me,STATE_CHANGED:Ae,STATE_ENDED:Re,STATE_RECOGNIZED:Ne,STATE_CANCELLED:De,STATE_FAILED:32,DIRECTION_NONE:H,DIRECTION_LEFT:W,DIRECTION_RIGHT:G,DIRECTION_UP:q,DIRECTION_DOWN:Z,DIRECTION_HORIZONTAL:Q,DIRECTION_VERTICAL:Y,DIRECTION_ALL:K,Manager:Qe,Input:$,TouchAction:Pe,TouchInput:Ce,MouseInput:ce,PointerEventInput:me,TouchMouseInput:Ee,SingleTouchInput:be,Recognizer:Le,AttrRecognizer:Ue,Tap:qe,Pan:ze,Swipe:Ge,Pinch:Be,Rotate:We,Press:He,on:O,off:T,each:v,merge:_,extend:b,assign:l,inherit:w,bindFn:C,prefixed:R}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Ze,(r=(function(){return Ze}).call(t,n,t,e))===a||(e.exports=r)}(window,document)},zUnb:function(e,t,n){"use strict";n.r(t);var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(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}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}var d=Array.isArray||function(e){return e&&"number"==typeof e.length};function h(e){return null!=e&&"object"==typeof e}function p(e){return"function"==typeof e}var f,m={e:{}};function g(){try{return f.apply(this,arguments)}catch(e){return m.e=e,m}}function v(e){return f=e,g}function y(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}y.prototype=Object.create(Error.prototype);var b=y,_=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,i=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(p(i)&&v(i).call(this)===m&&(t=!0,e=e||(m.e instanceof b?w(m.e.errors):[m.e])),d(o))for(s=-1,a=o.length;++s<a;){var l=o[s];if(h(l)&&v(l.unsubscribe).call(l)===m){t=!0,e=e||[];var u=m.e;u instanceof b?e=e.concat(w(u.errors)):e.push(u)}}if(t)throw new b(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function w(e){return e.reduce(function(e,t){return e.concat(t instanceof b?t.errors:t)},[])}var C=!1,S={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){C=e},get useDeprecatedSynchronousErrorHandling(){return C}};function E(e){setTimeout(function(){throw e})}var O={closed:!0,next:function(e){},error:function(e){if(S.useDeprecatedSynchronousErrorHandling)throw e;E(e)},complete:function(){}},T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),x=function(e){function t(n,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,o._parentSubscription=null,arguments.length){case 0:o.destination=O;break;case 1:if(!n){o.destination=O;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new I(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new I(o,n,r,i)}return o}return i(t,e),t.prototype[T]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this._parentSubscription=null,this},t}(_),I=function(e){function t(t,n,r,i){var o,s=e.call(this)||this;s._parentSubscriber=t;var a=s;return p(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==O&&(p((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=o,s._error=r,s._complete=i,s}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;S.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=S.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):E(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;E(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};S.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),S.useDeprecatedSynchronousErrorHandling)throw n;E(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!S.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return S.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(E(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(x),P="function"==typeof Symbol&&Symbol.observable||"@@observable";function k(){}function M(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return A(e)}function A(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:k}var R=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof x)return e;if(e[T])return e[T]()}return e||t||n?new x(e,t,n):new x(O)}(e,t,n);if(r?r.call(i,this.source):i.add(this.source||S.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),S.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){S.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof x?t:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=N(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[P]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:A(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=N(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function N(e){if(e||(e=S.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function D(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}D.prototype=Object.create(Error.prototype);var L=D,j=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return i(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(_),V=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i(t,e),t}(x),F=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype[T]=function(){return new V(this)},t.prototype.lift=function(e){var t=new U(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new L;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new L;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new L;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new L;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new L;return this.hasError?(e.error(this.thrownError),_.EMPTY):this.isStopped?(e.complete(),_.EMPTY):(this.observers.push(e),new j(this,e))},t.prototype.asObservable=function(){var e=new R;return e.source=this,e},t.create=function(e,t){return new U(e,t)},t}(R),U=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return i(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):_.EMPTY},t}(F);function z(e){return e&&"function"==typeof e.schedule}var B=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(x),H=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},W=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,E),t}};function G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var q=G(),Z=function(e){return function(t){for(var n=e[q]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}},Q=function(e){return function(t){var n=e[P]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},Y=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function K(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var J=function(e){if(e instanceof R)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[P])return Q(e);if(Y(e))return H(e);if(K(e))return W(e);if(e&&"function"==typeof e[q])return Z(e);var t=h(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function X(e,t,n,r,i){if(void 0===i&&(i=new B(e,n,r)),!i.closed)return J(t)(i)}var ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(x);function te(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new ne(e,t))}}var ne=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new re(e,this.project,this.thisArg))},e}(),re=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return i(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(x);function ie(e,t){return new R(t?function(n){var r=new _,i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:H(e))}function oe(e,t){if(!t)return e instanceof R?e:new R(J(e));if(null!=e){if(function(e){return e&&"function"==typeof e[P]}(e))return function(e,t){return new R(t?function(n){var r=new _;return r.add(t.schedule(function(){var i=e[P]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r}:Q(e))}(e,t);if(K(e))return function(e,t){return new R(t?function(n){var r=new _;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r}:W(e))}(e,t);if(Y(e))return ie(e,t);if(function(e){return e&&"function"==typeof e[q]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(t?function(n){var r,i=new _;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[q](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),i}:Z(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function se(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(se(function(n,r){return oe(e(n,r)).pipe(te(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new le(e,n))})}var ae,le=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new ue(e,this.project,this.concurrent))},e}(),ue=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new B(this,void 0,void 0);this.destination.add(r),X(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(ee);function ce(e){return e}function de(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),se(ce,e)}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return z(i)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof R?e[0]:de(n)(ie(e,r))}function pe(){return function(e){return e.lift(new fe(e))}}Function,(ae={})[4]=4,ae[1]=1,ae[2]=2,ae[0]=0,ae[3]=3;var fe=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new me(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),me=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return i(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(x),ge=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new _).add(this.source.subscribe(new ye(this.getSubject(),this))),e.closed?(this._connection=null,e=_.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return pe()(this)},t}(R).prototype,ve={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ge._subscribe},_isComplete:{value:ge._isComplete,writable:!0},getSubject:{value:ge.getSubject},connect:{value:ge.connect},refCount:{value:ge.refCount}},ye=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return i(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(V);function be(){return new F}function _e(){return function(e){return pe()((t=be,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ve);return r.source=e,r.subjectFactory=n,r})(e));var t}}function we(e){for(var t in e)if(e[t]===we)return t;throw Error("Could not find renamed property on target object.")}function Ce(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}var Se=we({ngComponentDef:we}),Ee=we({ngInjectableDef:we}),Oe=we({ngInjectorDef:we}),Te=we({ngModuleDef:we}),xe=we({ngBaseDef:we});function Ie(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Pe(e){return e.hasOwnProperty(Ee)?e[Ee]:null}function ke(e){return e.hasOwnProperty(Oe)?e[Oe]:null}var Me=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?Ie({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),Ae="__parameters__",Re="__prop__metadata__";function Ne(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=e.apply(void 0,c(t));for(var i in r)this[i]=r[i]}}}function De(e,t,n){var r=Ne(t);function i(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var o=new((e=i).bind.apply(e,c([void 0],t)));return s.annotation=o,s;function s(e,t,n){for(var r=e.hasOwnProperty(Ae)?e[Ae]:Object.defineProperty(e,Ae,{value:[]})[Ae];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}function Le(e,t,n,r){var i=Ne(t);function o(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof o)return i.apply(this,t),this;var s=new((e=o).bind.apply(e,c([void 0],t)));return function(e,n){var i=e.constructor,o=i.hasOwnProperty(Re)?i[Re]:Object.defineProperty(i,Re,{value:{}})[Re];o[n]=o.hasOwnProperty(n)&&o[n]||[],o[n].unshift(s),r&&r.apply(void 0,c([e,n],t))}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}var je=new Me("AnalyzeForEntryComponents"),Ve="undefined"!=typeof window&&window,Fe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ue="undefined"!=typeof global&&global||Ve||Fe,ze=Promise.resolve(0),Be=null;function He(){if(!Be){var e=Ue.Symbol;if(e&&e.iterator)Be=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Be=r)}}return Be}function We(e){"undefined"==typeof Zone?ze.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function Ge(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function qe(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(qe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ze(e){return e.__forward_ref__=Ze,e.toString=function(){return qe(this())},e}function Qe(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===Ze?e():e}var Ye=De("Inject",function(e){return{token:e}}),Ke=De("Optional"),Je=De("Self"),Xe=De("SkipSelf"),$e="__source",et=new Object,tt=et,nt=new Me("INJECTOR"),rt=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=et),t===et)throw new Error("NullInjectorError: No provider for "+qe(e)+"!");return t},e}(),it=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?new pt(e,t):new pt(e.providers,e.parent,e.name||null)},e.THROW_IF_NOT_FOUND=et,e.NULL=new rt,e.ngInjectableDef=Ie({providedIn:"any",factory:function(){return bt(nt)}}),e}(),ot=function(e){return e},st=[],at=ot,lt=function(){return Array.prototype.slice.call(arguments)},ut=we({provide:String,useValue:we}),ct=it.NULL,dt=/\n/gm,ht="\u0275",pt=function(){function e(e,t,n){void 0===t&&(t=ct),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(it,{token:it,fn:ot,deps:st,value:this,useNew:!1}),r.set(nt,{token:nt,fn:ot,deps:st,value:this,useNew:!1}),function e(t,n){if(n)if((n=Qe(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw gt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw gt("Unexpected provider",n);var i=Qe(n.provide),o=function(e){var t=function(e){var t=st,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var i=6;if((l=Qe(n[r]))instanceof Array)for(var o=0,s=l;o<s.length;o++){var a=s[o];a instanceof Ke||a==Ke?i|=1:a instanceof Xe||a==Xe?i&=-3:a instanceof Je||a==Je?i&=-5:l=a instanceof Ye?a.token:Qe(a)}t.push({token:l,options:i})}}else if(e.useExisting){var l;t=[{token:l=Qe(e.useExisting),options:6}]}else if(!(n||ut in e))throw gt("'deps' required",e);return t}(e),n=ot,r=st,i=!1,o=Qe(e.provide);if(ut in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=Qe(e.useClass);else{if("function"!=typeof o)throw gt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=o}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var s=t.get(i);if(s){if(s.fn!==lt)throw ft(i)}else t.set(i,s={token:n.provide,deps:[],useNew:!1,fn:lt,value:st});s.deps.push({token:i=n,options:6})}var a=t.get(i);if(a&&a.fn==lt)throw ft(i);t.set(i,o)}}(r,e)}return e.prototype.get=function(e,t,n){void 0===n&&(n=0);var r=this._records.get(e);try{return function e(t,n,r,i,o,s){try{return function(t,n,r,i,o,s){var a,l;if(!n||4&s)2&s||(l=i.get(t,o,0));else{if((l=n.value)==at)throw Error(ht+"Circular dependency");if(l===st){n.value=at;var u=n.useNew,d=n.fn,h=n.deps,p=st;if(h.length){p=[];for(var f=0;f<h.length;f++){var m=h[f],g=m.options,v=2&g?r.get(m.token):void 0;p.push(e(m.token,v,r,v||4&g?i:ct,1&g?null:it.THROW_IF_NOT_FOUND,0))}}n.value=l=u?new((a=d).bind.apply(a,c([void 0],p))):d.apply(void 0,p)}}return l}(t,n,r,i,o,s)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),n&&n.value==at&&(n.value=st),a}}(e,r,this._records,this.parent,t,n)}catch(o){var i=o.ngTempTokenPath;throw e[$e]&&i.unshift(e[$e]),o.message=mt("\n"+o.message,i,this.source),o.ngTokenPath=i,o.ngTempTokenPath=null,o}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(qe(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function ft(e){return gt("Cannot mix multi providers and regular providers",e)}function mt(e,t,n){void 0===n&&(n=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==ht?e.substr(2):e;var r=qe(t);if(t instanceof Array)r=t.map(qe).join(" -> ");else if("object"==typeof t){var i=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):qe(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(dt,"\n ")}function gt(e,t){return new Error(mt(e,t))}var vt=void 0;function yt(e){var t=vt;return vt=e,t}function bt(e,t){if(void 0===t&&(t=0),void 0===vt)throw new Error("inject() must be called from an injection context");if(null===vt){var n=Pe(e);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&t)return null;throw new Error("Injector: NOT_FOUND ["+qe(e)+"]")}return vt.get(e,8&t?null:void 0,t)}function _t(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=0,s=0;s<r.length;s++){var a=r[s];a instanceof Ke||"Optional"===a.ngMetadataName?o|=8:a instanceof Xe||"SkipSelf"===a.ngMetadataName?o|=4:a instanceof Je||"Self"===a.ngMetadataName?o|=2:i=a instanceof Ye?a.token:a}t.push(bt(i,o))}else t.push(bt(r))}return t}Function;var wt=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Ct="__ngContext__",St=17,Et=0,Ot=1,Tt=2,xt=3,It=4,Pt=5,kt=6,Mt=7,At=8,Rt=9,Nt=10,Dt=11,Lt=12,jt=14,Vt=16;function Ft(e,t){var n=Bt(e),r=Bt(t);return n&&r?function(e,t,n){for(var r=e[He()](),i=t[He()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(e,t,Ft):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Ge(e,t)}var Ut=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),zt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Bt(e){return!!Ht(e)&&(Array.isArray(e)||!(e instanceof Map)&&He()in e)}function Ht(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Wt=0,Gt=1,qt=6;function Zt(e){for(;Array.isArray(e);)e=e[Pt];return e}function Qt(e,t){return Zt(t[e.index])}function Yt(e,t){var n=t[e];return n.length>=St?n:n[Pt]}function Kt(e){return e[Ct]}function Jt(e){var t=Kt(e);return t?Array.isArray(t)?t:t.lViewData:null}function Xt(e,t){e[Ct]=t}function $t(e,t,n){e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked))}function en(e,t,n){e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked))}function tn(e,t,n){null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}function nn(e,t,n){16&e[Ot]&&(rn(e,t.initHooks,t.checkHooks,n),e[Ot]&=-17)}function rn(e,t,n,r){var i=r?t:n;i&&on(e,i)}function on(e,t){for(var n=0;n<t.length;n+=2)t[n+1].call(e[t[n]])}var sn=9,an="ngProjectAs";function ln(e){return!!e.listen}var un={createRenderer:function(e,t){return document}},cn=[];function dn(e){for(var t=e[kt];t&&2===t.type;)t=(e=e[Tt])[kt];return e}function hn(e,t,n,r,i){0===e?ln(t)?t.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===e?ln(t)?t.removeChild(n,r):n.removeChild(r):2===e&&t.destroyNode(r)}function pn(e){var t=e[Et].childIndex;return-1===t?null:e[t]}function fn(e,t){var n;return e.length>=St&&(n=e[kt])&&2===n.type?function(t,n){if(-1===t.index){var r=e[jt];return r>-1?e[Tt][r]:null}return e[Tt][t.parent.index]}(n):e[Tt]===t?null:e[Tt]}function mn(e){if(e.length>=St){var t=e;!function(e){var t=e[Et].cleanup;if(null!=t){for(var n=0;n<t.length-1;n+=2)"string"==typeof t[n]?(Zt(e[t[n+1]]).removeEventListener(t[n],e[At][t[n+2]],t[n+3]),n+=2):"number"==typeof t[n]?(0,e[At][t[n]])():t[n].call(e[At][t[n+1]]);e[At]=null}}(t),function(e){var t,n=e[Et];null!=n&&null!=(t=n.destroyHooks)&&on(e,t)}(t),(r=(n=t)[Et]&&n[Et].pipeDestroyHooks)&&on(n,r),-1===t[Et].id&&ln(t[Dt])&&t[Dt].destroy()}var n,r}var gn,vn,yn,bn,_n,wn,Cn,Sn,En=Promise.resolve(null);function On(){return vn}var Tn=!1,xn=!0,In=-1;function Pn(e,t){var n=Sn;return _n=e&&e[Et],Cn=e&&1==(1&e[Ot]),xn=e&&_n.firstTemplatePass,In=e&&_n.bindingStartIndex,gn=e&&e[Dt],yn=t,bn=!0,Sn=e,n&&(n[It]=wn),wn=e&&e[It],n}function kn(e,t){t||(Tn||rn(Sn,_n.viewHooks,_n.viewCheckHooks,Cn),Sn[Ot]&=-6),Sn[Ot]|=16,Sn[Mt]=_n.bindingStartIndex,Pn(e,null)}function Mn(){An();var e=xn;_n.firstTemplatePass=xn=!1,Tn||nn(Sn,_n,Cn),function(e){for(var t=pn(Sn);null!==t;t=t[xt])if(t.length<St&&-1===t[Wt])for(var n=t,r=0;r<n[Gt].length;r++){var i=n[Gt][r];Dn(i,i[Et],i[Rt],2)}}(),function(e){if(null!=e.contentQueries)for(var t=0;t<e.contentQueries.length;t+=2){var n=e.contentQueries[t];e.data[n].contentQueriesRefresh(n-St,e.contentQueries[t+1])}}(_n),Tn||rn(Sn,_n.contentHooks,_n.contentCheckHooks,Cn),function(e,t){if(null!=e)for(var n=0;n<e.length;n++)Hn(e[n],t)}(_n.components,e)}function An(){if(_n.expandoInstructions){In=Sn[Mt]=_n.expandoStartIndex;for(var e=-1,t=-1,n=0;n<_n.expandoInstructions.length;n++){var r=_n.expandoInstructions[n];"number"==typeof r?r<=0?(t=-r,"number"==typeof Sn[In]&&(In+=sn),e=In):In+=r:(Sn[Mt]=In,r(e-St,t),e++)}}}function Rn(e,t,n,r,i){var o=t.blueprint.slice();return o[Ot]=25|r,o[Tt]=o[Vt]=Sn,o[Rt]=n,o[Nt]=Sn?Sn[Nt]:null,o[Dt]=e,o[Lt]=i||null,o}function Nn(e,t,n,r,i){var o=e+St;Sn[o]=n;var s=_n.data[o];return null==s&&(s=_n.data[o]=Bn(t,o,r,i,null),yn&&(!bn||null!=yn.child||null===s.parent&&2!==yn.type?bn||(yn.next=s):yn.child=s)),null==_n.firstChild&&3===t&&(_n.firstChild=s),yn=s,bn=!0,s}function Dn(e,t,n,r){var i,o=bn,s=yn;if(64&e[Ot])Gn(e[Rt]);else try{bn=!0,yn=null,i=Pn(e,e[kt]),Fn(),t.template(r,n),2&r?Mn():e[Et].firstTemplatePass=xn=!1}finally{kn(i,1==(1&r)),bn=o,yn=s}}function Ln(e,t,n){var r=Pn(e,e[kt]);try{vn.begin&&vn.begin(),n?(Fn(),n(jn(e),t),Mn()):(Tn||(nn(Sn,_n,Cn),rn(Sn,_n.contentHooks,_n.contentCheckHooks,Cn)),An(),Hn(St,!1))}finally{vn.end&&vn.end(),kn(r)}}function jn(e){return 1&e[Ot]?3:2}var Vn=null;function Fn(){Vn=null}function Un(e,t,n,r,i,o,s){var a=St+n,l=a+r,u=function(e,t){var n=new Array(t).fill(null,0,e).fill(Yn,e);return n[jt]=-1,n[Mt]=e,n}(a,l);return u[Et]={id:e,blueprint:u,template:t,viewQuery:s,node:null,data:u.slice(),childIndex:-1,bindingStartIndex:a,expandoStartIndex:l,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,currentMatches:null,firstChild:null}}function zn(e,t){vn=e;var n=e.createRenderer(null,null);return"string"==typeof t?ln(n)?n.selectRootElement(t):n.querySelector(t):t}function Bn(e,t,n,r,i){var o=bn?yn:yn&&yn.parent,s=o&&Sn&&o!==Sn[kt]?o:null;return{type:e,index:t,injectorIndex:s?s.injectorIndex:-1,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:s,detached:null,stylingTemplate:null,projection:null}}function Hn(e,t){var n=Yt(e,Sn);Wn(n)&&6&n[Ot]&&(t&&function(e){for(var t=e[Et],n=e.length;n<t.blueprint.length;n++)e[n]=t.blueprint[n]}(n),Qn(n,n[Rt]))}function Wn(e){return 8==(8&e[Ot])}function Gn(e){for(var t=0;t<e.components.length;t++){var n=e.components[t];Ln(Jt(n),n)}}function qn(e){Qn(function(e){var t,n=Kt(e);if(Array.isArray(n)){var r=function(e,t){var n=e[Et].components;if(n)for(var r=0;r<n.length;r++){var i=n[r];if(Yt(i,e)[Rt]===t)return i}else if(Yt(St,e)[Rt]===t)return St;return-1}(n,e);(i=function(e,t,n){return{lViewData:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}(n,r,(t=Yt(r,n))[Pt])).component=e,Xt(e,i),Xt(i.native,i)}else{var i;t=Yt((i=n).nodeIndex,i.lViewData)}return t}(e),e)}function Zn(e){Gn(e[Rt])}function Qn(e,t){var n=e[Et],r=Pn(e,e[kt]),i=n.template,o=n.viewQuery;try{Fn(),function(t,n,r){t&&1&e[Ot]&&t(1,r)}(o,0,t),i(jn(e),t),Mn(),function(e,t){e&&e(2,t)}(o,t)}finally{kn(r)}}var Yn={},Kn=En,Jn=[0,1];function Xn(e,t,n,r,i,o){var s=function(e,t,n,r){if(Xt(t,Sn),r&&Xt(r,Sn),Sn[e]=t,xn){var i=yn.flags;0===i?yn.flags=e<<15|4096&i|1:yn.flags++,_n.data.push(n),_n.blueprint.push(null),n.hostBindings&&_n.expandoInstructions.push((s=n).hostBindings,s.hostVars)}else{var o=n.diPublic;o&&o(n)}var s;return null!=n.attributes&&3==yn.type&&function(e,t){for(var n=ln(gn),r=0;r<t.length;){var i=t[r];if(1===i)break;if(i===an)r+=2;else if(0===i){var o=t[r+1],s=t[r+2],a=t[r+3];n?gn.setAttribute(e,s,a,o):e.setAttributeNS(o,s,a),r+=4}else a=t[r+1],n?gn.setAttribute(e,i,a):e.setAttribute(i,a),r+=2}}(r,n.attributes),t}(r.length,n.factory(),n,e);return i.components.push(s),t[Rt]=s,o&&o.forEach(function(e){return e(s,n)}),r[Et].firstTemplatePass&&function(e){for(var t=0;t<e;t++)Sn.push(Yn),_n.blueprint.push(Yn),_n.data.push(null)}(n.hostVars),An(),s}function $n(e,t){return{components:[],scheduler:e,clean:Kn,playerHandler:t||null,flags:0}}function er(e,t){var n,r,i,o,s=Jt(e)[Et],a=s.data.length-1;n=a,i=t.doCheck,o=s,(r=t.onInit)&&(o.initHooks||(o.initHooks=[])).push(n,r),i&&((o.initHooks||(o.initHooks=[])).push(n,i),(o.checkHooks||(o.checkHooks=[])).push(n,i)),function(e,t){if(t.firstTemplatePass)for(var n=e>>15,r=n+(4095&e),i=n;i<r;i++){var o=t.data[i];$t(o,t,i),en(o,t,i),tn(o,t,i)}}(a<<15|1,s)}var tr=function(){return function(){}}(),nr=function(){return function(){}}();function rr(e){var t=Error("No component factory found for "+qe(e)+". Did you add it to @NgModule.entryComponents?");return t[or]=e,t}var ir,or="ngComponent",sr=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw rr(e)},e}(),ar=function(){function e(){}return e.NULL=new sr,e}(),lr=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var i=e[r];this._factories.set(i.componentType,i)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw rr(e);return new ur(t,this._ngModule)},e}(),ur=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return i(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(nr),cr=function(){return function(){}}(),dr=function(){return function(){}}(),hr=function(e){function t(t){var n=e.call(this,t,null,-1)||this;return n._view=t,n}return i(t,e),t.prototype.detectChanges=function(){Zn(this._view)},t.prototype.checkNoChanges=function(){!function(e){Tn=!0;try{Zn(e)}finally{Tn=!1}}(this._view)},t}(function(){function e(e,t,n){this._context=t,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._view=e}return Object.defineProperty(e.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 32==(32&this._view[Ot])},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){var e,t;this._viewContainerRef&&Wn(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),ln(t=(e=this._view)[Dt])&&t.destroyNode&&function(t,n,r,i,o){for(var s=e[Et].node,a=-1,l=e,u=s.child;u;){var c=null;if(3===u.type){hn(2,r,null,Qt(u,l),o);var d=l[u.index];m=d,Array.isArray(m)&&"number"==typeof m[Wt]&&hn(2,r,null,d[qt],o)}else if(0===u.type){var h=l[u.index];hn(2,r,null,h[qt],o),h[Gt].length&&(c=(l=h[Gt][0])[Et].node,o=h[qt])}else if(1===u.type){var p=dn(l),f=p[kt].projection[u.projection];cn[++a]=u,cn[++a]=l,f&&(c=(l=p[Tt])[Et].data[f.index])}else c=u.child;if(null===c)for(null===u.next&&8192&u.flags&&(l=cn[a--],u=cn[a--]),c=u.next;!c;){if(null===(u=u.parent||l[Et].node)||u===s)return null;0===u.type&&(o=(l=l[Tt])[u.index][qt]),c=2===u.type&&l[xt]?(l=l[xt])[Et].node:u.next}u=c}var m}(0,0,t),function(e){if(-1===e[Et].childIndex)return mn(e);for(var t=pn(e);t;){var n=null;if(t.length>=St?t[Et].childIndex>-1&&(n=pn(t)):t[Gt].length&&(n=t[Gt][0]),null==n){for(;t&&!t[xt]&&t!==e;)mn(t),t=fn(t,e);mn(t||e),n=t&&t[xt]}t=n}}(e),e[Ot]|=32},e.prototype.onDestroy=function(e){var t,n;n=e,function(e){return e[At]||(e[At]=[])}(t=this._view).push(n),t[Et].firstTemplatePass&&function(e){return e[Et].cleanup||(e[Et].cleanup=[])}(t).push(t[At].length-1,null)},e.prototype.markForCheck=function(){!function(e){for(var t=e;t&&!(64&t[Ot]);)t[Ot]|=4,t=t[Tt];t[Ot]|=4;var n=t[Rt],r=0===n.flags;n.flags|=1,r&&function(e){var t;e.clean==En&&(e.clean=new Promise(function(e){return t=e}),e.scheduler(function(){if(1&e.flags&&(e.flags&=-2,Gn(e)),2&e.flags){e.flags&=-3;var n=e.playerHandler;n&&n.flushPlayers()}e.clean=En,t(null)}))}(n)}(this._view)},e.prototype.detach=function(){this._view[Ot]&=-9},e.prototype.reattach=function(){this._view[Ot]|=8},e.prototype.detectChanges=function(){var e=On();e.begin&&e.begin(),qn(this.context),e.end&&e.end()},e.prototype.checkNoChanges=function(){!function(e){Tn=!0;try{qn(e)}finally{Tn=!1}}(this.context)},e.prototype.attachToViewContainerRef=function(e){this._viewContainerRef=e},e.prototype.detachFromAppRef=function(){this._appRef=null},e.prototype.attachToAppRef=function(e){this._appRef=e},e.prototype._lookUpContext=function(){return this._context=this._view[Tt][this._componentIndex]},e}());function pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}var fr=pr,mr=pr,gr=pr,vr=pr,yr=pr,br=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return fr(e)},e}(),_r=function(){return function(){}}(),wr=function(){return function(){}}(),Cr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Sr=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return yr()},e}(),Er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.resolveComponentFactory=function(e){return new Pr(e[Se]||null)},t}(ar);function Or(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Tr=new Me("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return $n(bt(xr))}}),xr=new Me("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return"undefined"!=typeof requestAnimationFrame&&"undefined"!=typeof window?requestAnimationFrame.bind(window):setTimeout}}),Ir=new Me("WRAP_RENDERER_FACTORY2"),Pr=function(e){function t(t){var n=e.call(this)||this;return n.componentDef=t,n.componentType=t.type,n.selector=t.selectors[0][0],n.ngContentSelectors=[],n}return i(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){return Or(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return Or(this.componentDef.outputs)},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){var o,s=void 0===n;o=r?r.injector.get(Ir,function(e){return e})(r.injector.get(wr)):un;var a,l,u=s?(a=this.selector,ln(l=o.createRenderer(null,this.componentDef)||gn)?l.createElement(a,Vn):null===Vn?l.createElement(a):l.createElementNS(Vn,a)):zn(o,n),c=this.componentDef.onPush?68:66,d=r&&!s?r.injector.get(Tr):$n(requestAnimationFrame.bind(window)),h=o.createRenderer(u,this.componentDef),p=Rn(h,Un(-1,null,1,0,null,null,null),d,c);p[Nt]=r&&r.injector||null;var f,m,g,v,y=Pn(p,null);try{o.begin&&o.begin();var b=function(e,t,n,r,i){bn=!1,yn=null;var o,s=n[Et],a=Rn(r,(o=t.template).ngPrivateData||(o.ngPrivateData=Un(-1,o,t.consts,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery)),null,t.onPush?4:2,i),l=Nn(0,3,e,null,null);return s.firstTemplatePass&&(s.expandoInstructions=Jn.slice(),t.diPublic&&t.diPublic(t),l.flags=n.length<<15|4096),a[Pt]=n[St],a[kt]=l,n[St]=a}(u,this.componentDef,p,h);if(m=p[Et].data[0+St],t)for(var _=0,w=m.projection=[],C=0;C<t.length;C++){for(var S=t[C],E=null,O=null,T=0;T<S.length;T++){v=void 0,(v=(g=p)[Et]).firstTemplatePass&&(v.expandoStartIndex++,v.blueprint.push(null),g.push(null));var x=Nn(++_,3,S[T],null,null);O?O.next=x:E=x,O=x}w.push(E)}f=Xn(u,b,this.componentDef,p,d,[er]),Dn(b,b[Et],f,1),b[Ot]&=-2}finally{Pn(y,null),o.end&&o.end()}var I=new kr(this.componentType,f,p,e,function(e,t,n){return ir||(ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(br)),new ir(Qt(t,n))}(0,m,p));return s&&(I.hostView._tViewNode.child=m),I},t}(nr),kr=function(e){function t(t,n,r,i,o){var s,a=e.call(this)||this;return a.location=o,a.destroyCbs=[],a.instance=n,a.hostView=a.changeDetectorRef=new hr(r),a.hostView._tViewNode=(-1,null==(s=r)[Et].node&&(s[Et].node=Bn(2,-1,null,null,null)),bn=!0,yn=s[kt]=s[Et].node),a.injector=i,a.componentType=t,a}return i(t,e),t.prototype.destroy=function(){this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(tr),Mr=new Me("The presence of this token marks an injector as being the root injector."),Ar={},Rr={},Nr=[],Dr=void 0;function Lr(){return void 0===Dr&&(Dr=new rt),Dr}var jr=function(){function e(e,t,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,Ur([e],function(e){return r.processInjectorType(e,new Set)}),t&&Ur(t,function(e){return r.processProvider(e)}),this.records.set(nt,Fr(void 0,this)),this.isRootInjector=this.records.has(Mr),this.injectorDefTypes.forEach(function(e){return r.get(e)})}return e.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},e.prototype.get=function(e,t,n){void 0===t&&(t=tt),void 0===n&&(n=0),this.assertNotDestroyed();var r,i=yt(this);try{if(!(4&n)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Me)&&Pe(e);s&&this.injectableDefInScope(s)&&(o=Vr(e),this.records.set(e,o))}if(void 0!==o)return this.hydrate(e,o)}return 2&n&&Lr(),this.parent.get(e,t)}finally{yt(i)}},e.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},e.prototype.processInjectorType=function(e,t){var n=this,r=ke(e=Qe(e)),i=null==r&&e.ngModule||void 0,o=void 0===i?e:i,s=void 0!==i&&e.providers||Nr;if(void 0!==i&&(r=ke(i)),null!=r){if(t.has(o))throw new Error("Circular dependency: type "+qe(o)+" ends up importing itself.");if(this.injectorDefTypes.add(o),this.records.set(o,Fr(r.factory)),null!=r.imports){t.add(o);try{Ur(r.imports,function(e){return n.processInjectorType(e,t)})}finally{t.delete(o)}}null!=r.providers&&Ur(r.providers,function(e){return n.processProvider(e)}),Ur(s,function(e){return n.processProvider(e)})}},e.prototype.processProvider=function(e){var t=zr(e=Qe(e))?e:Qe(e.provide),n=function(e){var t=Qe(e),n=Ar,r=void 0;if(zr(e))return Vr(e);if(t=Qe(e.provide),ut in e)n=e.useValue;else if(e.useExisting)r=function(){return bt(e.useExisting)};else if(e.useFactory)r=function(){return e.useFactory.apply(e,c(_t(e.deps||[])))};else{var i=e.useClass||t;if(!e.deps)return Vr(i);r=function(){return new(i.bind.apply(i,c([void 0],_t(e.deps))))}}return Fr(r,n)}(e);if(zr(e)||!0!==e.multi){var r=this.records.get(t);if(r&&void 0!==r.multi)throw new Error("Mixed multi-provider for "+qe(t))}else{var i=this.records.get(t);if(i){if(void 0===i.multi)throw new Error("Mixed multi-provider for "+t+".")}else(i=Fr(void 0,Ar,!0)).factory=function(){return _t(i.multi)},this.records.set(t,i);t=e,i.multi.push(e)}this.records.set(t,n)},e.prototype.hydrate=function(e,t){if(t.value===Rr)throw new Error("Circular dep for "+qe(e));var n;return t.value===Ar&&(t.value=Rr,t.value=t.factory()),"object"==typeof t.value&&t.value&&"object"==typeof(n=t.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value},e.prototype.injectableDefInScope=function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||"root"===e.providedIn&&this.isRootInjector:this.injectorDefTypes.has(e.providedIn))},e}();function Vr(e){var t=Pe(e);if(null===t){if(e instanceof Me)throw new Error("Token "+qe(e)+" is missing an ngInjectableDef definition.");return Fr(function(){return new e})}return Fr(t.factory)}function Fr(e,t,n){return void 0===t&&(t=Ar),void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function Ur(e,t){e.forEach(function(e){return Array.isArray(e)?Ur(e,t):t(e)})}function zr(e){return"function"==typeof e}var Br={provide:ar,useFactory:function(){return new Er},deps:[]},Hr=function(e){function t(t,n){var r=e.call(this)||this;return r._bootstrapComponents=[],r.destroyCbs=[],r._bootstrapComponents=(t[Te]||null).bootstrap,r.injector=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),t=t||Lr(),new jr(e,n,t)}(t,n,[Br,{provide:cr,useValue:r}]),r.instance=r.injector.get(t),r.componentFactoryResolver=new Er,r}return i(t,e),t.prototype.destroy=function(){this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(cr);!function(e){function t(t){var n=e.call(this)||this;return n.moduleType=t,n}i(t,e),t.prototype.create=function(e){return new Hr(this.moduleType,e)}}(dr);var Wr=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return i(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var i,o=function(e){return null},s=function(){return null};t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=e.prototype.subscribe.call(this,i,o,s);return t instanceof _&&t.add(a),a},t}(F),Gr=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return mr(e,br)},e}(),qr=!0,Zr=!1;function Qr(){return Zr=!0,qr}var Yr=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},e}(),Kr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Jr=/^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 Xr(e){return(e=String(e)).match(Kr)||e.match(Jr)?e:(Qr()&&console.warn("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function $r(e){var t,n,r={};try{for(var i=l(e.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function ei(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=l(n),s=o.next();!s.done;s=o.next()){var a=s.value;for(var u in a)a.hasOwnProperty(u)&&(i[u]=!0)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return i}var ti,ni=$r("area,br,col,hr,img,wbr"),ri=$r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ii=$r("rp,rt"),oi=ei(ii,ri),si=ei(ni,ei(ri,$r("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")),ei(ii,$r("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")),oi),ai=$r("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),li=$r("srcset"),ui=ei(ai,li,$r("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")),ci=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(t.nodeType===Node.ELEMENT_NODE?this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var n=this.checkClobberedElement(t,t.nextSibling);if(n){t=n;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")},e.prototype.startElement=function(e){var t=e.nodeName.toLowerCase();if(si.hasOwnProperty(t)){this.buf.push("<"),this.buf.push(t);for(var n,r=e.attributes,i=0;i<r.length;i++){var o=r.item(i),s=o.name,a=s.toLowerCase();if(ui.hasOwnProperty(a)){var l=o.value;ai[a]&&(l=Xr(l)),li[a]&&(n=l,l=(n=String(n)).split(",").map(function(e){return Xr(e.trim())}).join(", ")),this.buf.push(" ",s,'="',pi(l),'"')}else this.sanitizedSomething=!0}this.buf.push(">")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();si.hasOwnProperty(t)&&!ni.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(pi(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),di=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hi=/([^\#-~ |!])/g;function pi(e){return e.replace(/&/g,"&").replace(di,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(hi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function fi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),gi=function(){return function(){}}(),vi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),yi=/^url\(([^)]+)\)$/;String,String;var bi=Le("Input",function(e){return{bindingPropertyName:e}},void 0,function(e){return function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=e.constructor;i.hasOwnProperty(xe)||function(e){var t=e.constructor,n=t.ngBaseDef,r=t.ngBaseDef={inputs:{},outputs:{},declaredInputs:{}};n&&(Ce(r.inputs,n.inputs),Ce(r.outputs,n.outputs),Ce(r.declaredInputs,n.declaredInputs))}(e),(function(e){return e.inputs||{}}(i.ngBaseDef))[t]=n[0]}}()),_i=Le("HostBinding",function(e){return{hostPropertyName:e}}),wi=new(function(){return function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}())("7.0.0"),Ci="ngDebugContext",Si="ngOriginalError",Ei="ngErrorLogger";function Oi(e){return e[Ci]}function Ti(e){return e[Si]}function xi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,c(t))}var Ii=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[Ei]||xi}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?Oi(e)?Oi(e):this._findContext(Ti(e)):null},e.prototype._findOriginalError=function(e){for(var t=Ti(e);t&&Ti(t);)t=Ti(t);return t},e}();function Pi(e){return!!e&&"function"==typeof e.then}function ki(e){return!!e&&"function"==typeof e.subscribe}var Mi=new Me("Application Initializer"),Ai=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Pi(i)&&t.push(i)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e}(),Ri=new Me("AppId");function Ni(){return""+Di()+Di()+Di()}function Di(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Li=new Me("Platform Initializer"),ji=new Me("Platform ID"),Vi=new Me("appBootstrapListener"),Fi=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e}();function Ui(){throw new Error("Runtime compiler is not loaded")}var zi,Bi,Hi=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw Ui()},e.prototype.compileModuleAsync=function(e){throw Ui()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw Ui()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw Ui()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.prototype.getModuleId=function(e){},e}(),Wi=function(){return function(){}}();function Gi(){var e=Ue.wtf;return!(!e||!(zi=e.trace)||(Bi=zi.events,0))}var qi=Gi();function Zi(e,t){return null}var Qi=qi?function(e,t){return void 0===t&&(t=null),Bi.createScope(e,t)}:function(e,t){return Zi},Yi=qi?function(e,t){return zi.leaveScope(e,t),t}:function(e,t){return t},Ki=function(){function e(e){var t,n=e.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Wr(!1),this.onMicrotaskEmpty=new Wr(!1),this.onStable=new Wr(!1),this.onError=new Wr(!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)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return eo(t),e.invokeTask(r,i,o,s)}finally{to(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return eo(t),e.invoke(r,i,o,s,a)}finally{to(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,$i(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Xi,Ji,Ji);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function Ji(){}var Xi={};function $i(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function eo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function to(e){e._nesting--,$i(e)}var no,ro=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Wr,this.onMicrotaskEmpty=new Wr,this.onStable=new Wr,this.onError=new Wr}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),io=function(){function e(e){var t=this;this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),e.run(function(){t.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Ki.assertNotInAngularZone(),We(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;if(this.isStable())We(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}},e.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]},e.prototype.addCallback=function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),oo=function(){function e(){this._applications=new Map,so.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),so.findTestabilityInTree(this,e,t)},s([a("design:paramtypes",[])],e)}(),so=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),ao=new Me("AllowMultipleToken"),lo=function(){return function(e,t){this.name=e,this.token=t}}();function uo(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new Me(r);return function(t){void 0===t&&(t=[]);var o=co();if(!o||o.injector.get(ao,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(no&&!no.destroyed&&!no.injector.get(ao,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");no=e.get(ho);var t=e.get(Li,null);t&&t.forEach(function(e){return e()})}(it.create({providers:s,name:r}))}return function(e){var t=co();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function co(){return no&&!no.destroyed?no:null}var ho=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new ro:("zone.js"===n?void 0:n)||new Ki({enableLongStackTrace:Qr()}),o=[{provide:Ki,useValue:i}];return i.run(function(){var t=it.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(Ii,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return mo(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,i){try{var o=((s=n.injector.get(Ai)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Pi(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(a){throw t.runOutsideAngular(function(){return e.handleError(a)}),a}var s}(s,i)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=po({},t);return function(e,t,n){return e.get(Wi).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(fo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+qe(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function po(e,t){return Array.isArray(t)?t.reduce(po,e):o({},e,t)}var fo=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Qr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new R(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),l=new R(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Ki.assertNotInAngularZone(),We(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ki.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=he(a,l.pipe(_e()))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof nr?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof ur?null:this._injector.get(cr),o=n.create(it.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(io,null);return s&&o.injector.get(oo).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Qr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Yi(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;mo(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Vi,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),mo(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Qi("ApplicationRef#tick()"),e}();function mo(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var go=function(){return function(){}}(),vo=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Wr,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[He()]=function(){return this._results[He()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),yo=function(){return function(){}}(),bo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},_o=function(){function e(e,t){this._compiler=e,this._config=t||bo}return e.prototype.load=function(e){return this._compiler instanceof Hi?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=u(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then(function(e){return e[o]}).then(function(e){return wo(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=u(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return wo(e,r,i)})},e}();function wo(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Co,So=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return vr(e,br)},e}(),Eo=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return gr()},e}(),Oo=(i(function(){return null!==Co&&Co.apply(this,arguments)||this},Co=Eo),function(){return function(e,t){this.name=e,this.callback=t}}()),To=function(){function e(e,t,n){this.nativeNode=e,this._debugContext=n,this.listeners=[],this.parent=null,t&&t instanceof xo&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),xo=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return i(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,c([i+1,0],t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof xo&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof xo&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof xo&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(To),Io=new Map;function Po(e){return Io.get(e)||null}function ko(e){Io.set(e.nativeNode,e)}var Mo=function(){function e(){}return e.prototype.supports=function(e){return Bt(e)},e.prototype.create=function(e){return new Ro(e)},e}(),Ao=function(e,t){return t},Ro=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ao}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<jo(n,r,i)?t:n,s=jo(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var l=s-r,u=a-r;if(l!=u){for(var c=0;c<l;c++){var d=c<i.length?i[c]:i[c]=0,h=d+c;u<=h&&h<l&&(i[c]=d+1)}i[o.previousIndex]=u-l}}s!==a&&e(o,s,a)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!Bt(e))throw new Error("Error trying to diff '"+qe(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)i=this._trackByFn(a,r=e[a]),null!==o&&Ge(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),Ge(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[He()](),i=void 0;!(i=r.next()).done;)t(i.value)}(e,function(e){i=t._trackByFn(n,e),null!==o&&Ge(o.trackById,i)?(s&&(o=t._verifyReinsertion(o,e,i,n)),Ge(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Ge(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ge(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new No(t,n),i,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}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)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Lo),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Lo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),No=function(){return function(e,t){this.item=e,this.trackById=t,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}}(),Do=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Ge(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),Lo=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Do,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function jo(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var Vo=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||Ht(e)},e.prototype.create=function(){return new Fo},e}(),Fo=function(){function e(){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(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||Ht(e)))throw new Error("Error trying to diff '"+qe(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new Uo(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){Ge(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),Uo=function(){return function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),zo=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Xe,new Ke]]}},e.prototype.find=function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e.ngInjectableDef=Ie({providedIn:"root",factory:function(){return new e([new Mo])}}),e}(),Bo=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Xe,new Ke]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),Ho=[new Vo],Wo=new zo([new Mo]),Go=new Bo(Ho),qo=uo(null,"core",[{provide:ji,useValue:"unknown"},{provide:ho,deps:[it]},{provide:oo,deps:[]},{provide:Fi,deps:[]}]),Zo=new Me("LocaleId");function Qo(){return Wo}function Yo(){return Go}function Ko(e){return e||"en-US"}var Jo=function(){return function(e){}}();function Xo(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function $o(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function es(e,t){return e.nodes[t]}function ts(e,t){return e.nodes[t]}function ns(e,t){return e.nodes[t]}function rs(e,t){return e.nodes[t]}function is(e,t){return e.nodes[t]}var os={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function ss(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return as(n,t),n}(i,e)}function as(e,t){e[Ci]=t,e[Ei]=t.logError.bind(t)}function ls(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var us=function(){},cs=new Map;function ds(e){var t=cs.get(e);return t||(t=qe(e)+"_"+cs.size,cs.set(e,t)),t}var hs="$$undefined",ps="$$empty";function fs(e){return{id:hs,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var ms=0;function gs(e,t,n,r){return!(!(2&e.state)&&Ge(e.oldValues[t.bindingIndex+n],r))}function vs(e,t,n,r){return!!gs(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function ys(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Ft(i,r)){var o=t.bindings[n].name;throw ss(os.createDebugContext(e,t.nodeIndex),o+": "+i,o+": "+r,0!=(1&e.state))}}function bs(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function _s(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ws(e,t,n,r){try{return bs(33554432&e.def.nodes[t].flags?ts(e,t).componentView:e),os.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function Cs(e){return e.parent?ts(e.parent,e.parentNodeDef.nodeIndex):null}function Ss(e){return e.parent?e.parentNodeDef.parent:null}function Es(e,t){switch(201347067&t.flags){case 1:return ts(e,t.nodeIndex).renderElement;case 2:return es(e,t.nodeIndex).renderText}}function Os(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Ts(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function xs(e){return 1<<e%32}function Is(e){var t={},n=0,r={};return e&&e.forEach(function(e){var i=u(e,2),o=i[0],s=i[1];"number"==typeof o?(t[o]=s,n|=xs(o)):r[o]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Ps(e,t){return e.map(function(e){var n,r,i;return Array.isArray(e)?(i=(n=u(e,2))[0],r=n[1]):(i=0,r=e),r&&("function"==typeof r||"object"==typeof r)&&t&&Object.defineProperty(r,$e,{value:t,configurable:!0}),{flags:i,token:r,tokenKey:ds(r)}})}function ks(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===wt.Native?ts(e,n.renderParent.nodeIndex).renderElement:void 0:t}var Ms=new WeakMap;function As(e){var t=Ms.get(e);return t||((t=e(function(){return us})).factory=e,Ms.set(e,t)),t}function Rs(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(Es(e,e.def.lastRenderRootNode))),Ns(e,t,0,e.def.nodes.length-1,n,r,i)}function Ns(e,t,n,r,i,o,s){for(var a=n;a<=r;a++){var l=e.def.nodes[a];11&l.flags&&Ls(e,l,t,i,o,s),a+=l.childCount}}function Ds(e,t,n,r,i,o){for(var s=e;s&&!Os(s);)s=s.parent;for(var a=s.parent,l=Ss(s),u=l.nodeIndex+l.childCount,c=l.nodeIndex+1;c<=u;c++){var d=a.def.nodes[c];d.ngContentIndex===t&&Ls(a,d,n,r,i,o),c+=d.childCount}if(!a.parent){var h=e.root.projectableNodes[t];if(h)for(c=0;c<h.length;c++)js(e,h[c],n,r,i,o)}}function Ls(e,t,n,r,i,o){if(8&t.flags)Ds(e,t.ngContent.index,n,r,i,o);else{var s=Es(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&js(e,s,n,r,i,o),32&t.bindingFlags&&js(ts(e,t.nodeIndex).componentView,s,n,r,i,o)):js(e,s,n,r,i,o),16777216&t.flags)for(var a=ts(e,t.nodeIndex).viewContainer._embeddedViews,l=0;l<a.length;l++)Rs(a[l],n,r,i,o);1&t.flags&&!t.element.name&&Ns(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,o)}}function js(e,t,n,r,i,o){var s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,i);break;case 3:s.removeChild(r,t);break;case 0:o.push(t)}}var Vs=/^:([^:]+):(.+)$/;function Fs(e){if(":"===e[0]){var t=e.match(Vs);return[t[1],t[2]]}return["",e]}function Us(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function zs(e,t,n,r,i,o){e|=1;var s=Is(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s.matchedQueries,matchedQueryIds:s.matchedQueryIds,references:s.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?As(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||us},provider:null,text:null,query:null,ngContent:null}}function Bs(e,t,n,r,i,o,s,a,l,c,d,h){var p;void 0===s&&(s=[]),c||(c=us);var f=Is(n),m=f.matchedQueries,g=f.references,v=f.matchedQueryIds,y=null,b=null;o&&(y=(p=u(Fs(o),2))[0],b=p[1]),a=a||[];for(var _=new Array(a.length),w=0;w<a.length;w++){var C=u(a[w],3),S=C[0],E=C[2],O=u(Fs(C[1]),2),T=O[0],x=O[1],I=void 0,P=void 0;switch(15&S){case 4:P=E;break;case 1:case 8:I=E}_[w]={flags:S,ns:T,name:x,nonMinifiedName:x,securityContext:I,suffix:P}}l=l||[];var k=new Array(l.length);for(w=0;w<l.length;w++){var M=u(l[w],2);k[w]={type:0,target:M[0],eventName:M[1],propName:null}}var A=(s=s||[]).map(function(e){var t=u(e,2),n=t[1],r=u(Fs(t[0]),2);return[r[0],r[1],n]});return h=function(e){if(e&&e.id===hs){var t=null!=e.encapsulation&&e.encapsulation!==wt.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+ms++:ps}return e&&e.id===ps&&(e=null),e||null}(h),d&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:m,matchedQueryIds:v,references:g,ngContentIndex:r,childCount:i,bindings:_,bindingFlags:Us(_),outputs:k,element:{ns:y,name:b,attrs:A,template:null,componentProvider:null,componentView:d||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||us},provider:null,text:null,query:null,ngContent:null}}function Hs(e,t,n){var r,i=n.element,o=e.root.selectorOrNode,s=e.renderer;if(e.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=ks(e,t,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o,!!i.componentRendererType&&i.componentRendererType.encapsulation===wt.ShadowDom);if(i.attrs)for(var l=0;l<i.attrs.length;l++){var c=u(i.attrs[l],3);s.setAttribute(r,c[1],c[2],c[0])}return r}function Ws(e,t,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Gs(e,n.nodeIndex,(d=o.eventName,(c=o.target)?c+":"+d:d)),a=o.target,l=e;"component"===o.target&&(a=null,l=t);var u=l.renderer.listen(a||r,o.eventName,s);e.disposables[n.outputIndex+i]=u}var c,d}function Gs(e,t,n){return function(r){return ws(e,t,n,r)}}function qs(e,t,n,r){if(!vs(e,t,n,r))return!1;var i=t.bindings[n],o=ts(e,t.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,o){var s=t.securityContext,a=s?e.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var l=e.renderer;null!=o?l.setAttribute(n,i,a,r):l.removeAttribute(n,i,r)}(e,i,s,i.ns,a,r);break;case 2:!function(e,t,n,r){var i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,s,a,r);break;case 4:!function(e,t,n,r,i){var o=e.root.sanitizer.sanitize(mi.STYLE,i);if(null!=o){o=o.toString();var s=t.suffix;null!=s&&(o+=s)}else o=null;var a=e.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(e,i,s,a,r);break;case 8:!function(e,t,n,r,i){var o=t.securityContext,s=o?e.root.sanitizer.sanitize(o,i):i;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&i.flags?o.componentView:e,i,s,a,r)}return!0}var Zs=new Object,Qs=ds(it),Ys=ds(nt),Ks=ds(cr);function Js(e,t,n,r){return n=Qe(n),{index:-1,deps:Ps(r,qe(t)),flags:e,token:t,value:n}}function Xs(e,t,n){void 0===n&&(n=it.THROW_IF_NOT_FOUND);var r,i,o=yt(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var s=t.tokenKey;switch(s){case Qs:case Ys:case Ks:return e}var a,l=e._def.providersByKey[s];if(l){var u=e._providers[l.index];return void 0===u&&(u=e._providers[l.index]=$s(e,l)),u===Zs?void 0:u}if((a=Pe(t.token))&&(r=e,null!=(i=a).providedIn&&(function(e,t){return e._def.modules.indexOf(i.providedIn)>-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:t.token},e._providers[c]=Zs,e._providers[c]=$s(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{yt(o)}}function $s(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Xs(e,n[0]));case 2:return new t(Xs(e,n[0]),Xs(e,n[1]));case 3:return new t(Xs(e,n[0]),Xs(e,n[1]),Xs(e,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=Xs(e,n[o]);return new(t.bind.apply(t,c([void 0],i)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(Xs(e,n[0]));case 2:return t(Xs(e,n[0]),Xs(e,n[1]));case 3:return t(Xs(e,n[0]),Xs(e,n[1]),Xs(e,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=Xs(e,n[o]);return t.apply(void 0,c(i))}}(e,t.value,t.deps);break;case 2048:n=Xs(e,t.deps[0]);break;case 256:n=t.value}return n===Zs||null==n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Zs:n}function ea(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,ia(n,t),os.dirtyParentQueries(r),na(r),r}function ta(e,t,n){var r=t?Es(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);Rs(n,2,i,o,void 0)}function na(e){Rs(e,3,null,null,void 0)}function ra(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ia(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var oa=new Object;function sa(e,t,n,r,i,o){return new aa(e,t,n,r,i,o)}var aa=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return i(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=As(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=os.createRootView(e,t||[],n,i,r,oa),a=ns(s,o).instance;return n&&s.renderer.setAttribute(ts(s,0).renderElement,"ng-version",wi.full),new la(s,new ha(s),a)},t}(nr),la=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return i(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new br(ts(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ga(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(tr);function ua(e,t,n){return new ca(e,t,n)}var ca=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new br(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ga(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Ss(e),e=e.parent;return e?new ga(e,t):new ga(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=ea(this._data,e);os.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new ha(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof ur||(i=o.get(cr));var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,s=e;return o=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=o.length),(i=s._view).viewContainerParent=this._view,ra(o,r,i),function(e,t){var n=Cs(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,i),os.dirtyParentQueries(i),ta(n,r>0?o[r-1]:null,i),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,s,a=this._embeddedViews.indexOf(e._view);return i=t,s=(o=(n=this._data).viewContainer._embeddedViews)[r=a],ia(o,r),null==i&&(i=o.length),ra(o,i,s),os.dirtyParentQueries(s),na(s),ta(n,i>0?o[i-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=ea(this._data,e);t&&os.destroyView(t)},e.prototype.detach=function(e){var t=ea(this._data,e);return t?new ha(t):null},e}();function da(e){return new ha(e)}var ha=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return Rs(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){bs(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{os.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){os.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),os.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,na(this._view),os.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function pa(e,t){return new fa(e,t)}var fa=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return i(t,e),t.prototype.createEmbeddedView=function(e){return new ha(os.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new br(ts(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Gr);function ma(e,t){return new ga(e,t)}var ga=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=it.THROW_IF_NOT_FOUND),os.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:ds(e)},t)},e}();function va(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=ts(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return es(e,n.nodeIndex).renderText;if(20240&n.flags)return ns(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function ya(e){return new ba(e.renderer)}var ba=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=u(Fs(t),2),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=u(Fs(t),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(e,o,n,i):this.delegate.removeAttribute(e,o,i)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function _a(e,t,n,r){return new wa(e,t,n,r)}var wa=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=$s(e,i))}}(this)}return e.prototype.get=function(e,t,n){void 0===t&&(t=it.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),Xs(this,{token:e,tokenKey:ds(e),flags:r},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(ar)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+qe(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=e._providers[i];if(o&&o!==Zs){var s=o.ngOnDestroy;"function"!=typeof s||r.has(o)||(s.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),Ca=ds(_r),Sa=ds(Sr),Ea=ds(br),Oa=ds(So),Ta=ds(Gr),xa=ds(Eo),Ia=ds(it),Pa=ds(nt);function ka(e,t,n,r,i,o,s,a){var l=[];if(s)for(var c in s){var d=u(s[c],2);l[d[0]]={flags:8,name:c,nonMinifiedName:d[1],ns:null,securityContext:null,suffix:null}}var h=[];if(a)for(var p in a)h.push({type:1,propName:p,target:null,eventName:a[p]});return Aa(e,t|=16384,n,r,i,i,o,l,h)}function Ma(e,t,n,r,i){return Aa(-1,e,t,0,n,r,i)}function Aa(e,t,n,r,i,o,s,a,l){var u=Is(n),c=u.matchedQueries,d=u.references,h=u.matchedQueryIds;l||(l=[]),a||(a=[]),o=Qe(o);var p=Ps(s,qe(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:d,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Us(a),outputs:l,element:null,provider:{token:i,value:o,deps:p},text:null,query:null,ngContent:null}}function Ra(e,t){return ja(e,t)}function Na(e,t){for(var n=e;n.parent&&!Os(n);)n=n.parent;return Va(n.parent,Ss(n),!0,t.provider.value,t.provider.deps)}function Da(e,t){var n=Va(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r<t.outputs.length;r++){var i=t.outputs[r],o=n[i.propName];if(!ki(o))throw new Error("@Output "+i.propName+" not initialized in '"+n.constructor.name+"'.");var s=o.subscribe(La(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=s.unsubscribe.bind(s)}return n}function La(e,t,n){return function(r){return ws(e,t,n,r)}}function ja(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Va(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Ua(e,t,n,i[0]));case 2:return r(Ua(e,t,n,i[0]),Ua(e,t,n,i[1]));case 3:return r(Ua(e,t,n,i[0]),Ua(e,t,n,i[1]),Ua(e,t,n,i[2]));default:for(var s=Array(o),a=0;a<o;a++)s[a]=Ua(e,t,n,i[a]);return r.apply(void 0,c(s))}}(e,t.parent,n,r.value,r.deps);case 2048:return Ua(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Va(e,t,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(Ua(e,t,n,i[0]));case 2:return new r(Ua(e,t,n,i[0]),Ua(e,t,n,i[1]));case 3:return new r(Ua(e,t,n,i[0]),Ua(e,t,n,i[1]),Ua(e,t,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=Ua(e,t,n,i[a]);return new(r.bind.apply(r,c([void 0],s)))}}var Fa={};function Ua(e,t,n,r,i){if(void 0===i&&(i=it.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var s=r.tokenKey;s===xa&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var a=e;a;){if(t)switch(s){case Ca:return ya(za(a,t,n));case Sa:return za(a,t,n).renderer;case Ea:return new br(ts(a,t.nodeIndex).renderElement);case Oa:return ts(a,t.nodeIndex).viewContainer;case Ta:if(t.element.template)return ts(a,t.nodeIndex).template;break;case xa:return da(za(a,t,n));case Ia:case Pa:return ma(a,t);default:var l=(n?t.element.allProviders:t.element.publicProviders)[s];if(l){var u=ns(a,l.nodeIndex);return u||(u={instance:ja(a,l)},a.nodes[l.nodeIndex]=u),u.instance}}n=Os(a),t=Ss(a),a=a.parent,4&r.flags&&(a=null)}var c=o.root.injector.get(r.token,Fa);return c!==Fa||i===Fa?c:o.root.ngModule.injector.get(r.token,i)}function za(e,t,n){var r;if(n)r=ts(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Os(r);)r=r.parent;return r}function Ba(e,t,n,r,i,o){if(32768&n.flags){var s=ts(e,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var a=Ut.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new zt(a,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function Ha(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&t&&Ga(e,i,o.flags&t,r++),0==(o.childFlags&t)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=Wa(e,s,t,r)),s=s.parent}}function Wa(e,t,n,r){for(var i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){var o=e.def.nodes[i];o.flags&n&&Ga(e,i,o.flags&n,r++),i+=o.childCount}return r}function Ga(e,t,n,r){var i=ns(e,t);if(i){var o=i.instance;o&&(os.setCurrentNode(e,t),1048576&n&&$o(e,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&$o(e,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function qa(e,t,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:xs(t),bindings:r},ngContent:null}}function Za(e){for(var t=e.def.nodeMatchedQueries;e.parent&&Ts(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=e.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&t)===o.query.filterId&&is(e,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&e.def.nodeFlags)for(i=0;i<e.def.nodes.length;i++){var o;134217728&(o=e.def.nodes[i]).flags&&536870912&o.flags&&is(e,i).setDirty(),i+=o.childCount}}function Qa(e,t){var n=is(e,t.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&t.flags){var o=t.parent.parent;i=Ya(e,o.nodeIndex,o.nodeIndex+o.childCount,t.query,[]),r=ns(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=Ya(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);for(var s=t.query.bindings,a=!1,l=0;l<s.length;l++){var u=s[l],c=void 0;switch(u.bindingType){case 0:c=n.first;break;case 1:c=n,a=!0}r[u.propName]=c}a&&n.notifyOnChanges()}}function Ya(e,t,n,r,i){for(var o=t;o<=n;o++){var s=e.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(Ka(e,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var l=ts(e,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(Ya(e,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var u=l.viewContainer._embeddedViews,c=0;c<u.length;c++){var d=u[c],h=Cs(d);h&&h===l&&Ya(d,0,d.def.nodes.length-1,r,i)}var p=l.template._projectedViews;if(p)for(c=0;c<p.length;c++){var f=p[c];Ya(f,0,f.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function Ka(e,t,n){if(null!=n)switch(n){case 1:return ts(e,t.nodeIndex).renderElement;case 0:return new br(ts(e,t.nodeIndex).renderElement);case 2:return ts(e,t.nodeIndex).template;case 3:return ts(e,t.nodeIndex).viewContainer;case 4:return ns(e,t.nodeIndex).instance}}function Ja(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function Xa(e,t,n){var r=ks(e,t,n);r&&Ds(e,n.ngContent.index,1,r,null,void 0)}function $a(e,t,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function el(e,t,n){var r,i=e.renderer;r=i.createText(n.text.prefix);var o=ks(e,t,n);return o&&i.appendChild(o,r),{renderText:r}}function tl(e,t){return(null!=e?e.toString():"")+t.suffix}function nl(e,t,n,r){for(var i=0,o=0,s=0,a=0,l=0,u=null,c=null,d=!1,h=!1,p=null,f=0;f<t.length;f++){var m=t[f];if(m.nodeIndex=f,m.parent=u,m.bindingIndex=i,m.outputIndex=o,m.renderParent=c,s|=m.flags,l|=m.matchedQueryIds,m.element){var g=m.element;g.publicProviders=u?u.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,d=!1,h=!1,m.element.template&&(l|=m.element.template.nodeMatchedQueries)}if(il(u,m,t.length),i+=m.bindings.length,o+=m.outputs.length,!c&&3&m.flags&&(p=m),20224&m.flags){d||(d=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var v=0!=(32768&m.flags);0==(8192&m.flags)||v?u.element.publicProviders[ds(m.provider.token)]=m:(h||(h=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[ds(m.provider.token)]=m),v&&(u.element.componentProvider=m)}if(u?(u.childFlags|=m.flags,u.directChildFlags|=m.flags,u.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(u.childMatchedQueries|=m.element.template.nodeMatchedQueries)):a|=m.flags,m.childCount>0)u=m,rl(m)||(c=m);else for(;u&&f===u.nodeIndex+u.childCount;){var y=u.parent;y&&(y.childFlags|=u.childFlags,y.childMatchedQueries|=u.childMatchedQueries),c=(u=y)&&rl(u)?u.renderParent:u}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||us,updateRenderer:r||us,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:p}}function rl(e){return 0!=(1&e.flags)&&null===e.element.name}function il(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function ol(e,t,n,r){var i=ll(e.root,e.renderer,e,t,n);return ul(i,e.component,r),cl(i),i}function sl(e,t,n){var r=ll(e,e.renderer,null,null,t);return ul(r,n,n),cl(r),r}function al(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,ll(e.root,i,e,t.element.componentProvider,n)}function ll(e,t,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function ul(e,t,n){e.component=t,e.context=n}function cl(e){var t;Os(e)&&(t=ts(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];os.setCurrentNode(e,i);var s=void 0;switch(201347067&o.flags){case 1:var a=Hs(e,t,o),l=void 0;if(33554432&o.flags){var u=As(o.element.componentView);l=os.createComponentView(e,o,u,a)}Ws(e,l,o,a),s={renderElement:a,componentView:l,viewContainer:null,template:o.element.template?pa(e,o):void 0},16777216&o.flags&&(s.viewContainer=ua(e,o,s));break;case 2:s=el(e,t,o);break;case 512:case 1024:case 2048:case 256:(s=r[i])||4096&o.flags||(s={instance:Ra(e,o)});break;case 16:s={instance:Na(e,o)};break;case 16384:(s=r[i])||(s={instance:Da(e,o)}),32768&o.flags&&ul(ts(e,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new vo;break;case 8:Xa(e,t,o),s=void 0}r[i]=s}bl(e,yl.CreateViewNodes),Sl(e,201326592,268435456,0)}function dl(e){fl(e),os.updateDirectives(e,1),_l(e,yl.CheckNoChanges),os.updateRenderer(e,1),bl(e,yl.CheckNoChanges),e.state&=-97}function hl(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Xo(e,0,256),fl(e),os.updateDirectives(e,0),_l(e,yl.CheckAndUpdate),Sl(e,67108864,536870912,0);var t=Xo(e,256,512);Ha(e,2097152|(t?1048576:0)),os.updateRenderer(e,0),bl(e,yl.CheckAndUpdate),Sl(e,134217728,536870912,0),Ha(e,8388608|((t=Xo(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Xo(e,768,1024)}function pl(e,t,n,r,i,o,s,a,l,u,d,h,p){return 0===n?function(e,t,n,r,i,o,s,a,l,u,c,d){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,o,s,a,l,u,c,d){var h=t.bindings.length,p=!1;return h>0&&qs(e,t,0,n)&&(p=!0),h>1&&qs(e,t,1,r)&&(p=!0),h>2&&qs(e,t,2,i)&&(p=!0),h>3&&qs(e,t,3,o)&&(p=!0),h>4&&qs(e,t,4,s)&&(p=!0),h>5&&qs(e,t,5,a)&&(p=!0),h>6&&qs(e,t,6,l)&&(p=!0),h>7&&qs(e,t,7,u)&&(p=!0),h>8&&qs(e,t,8,c)&&(p=!0),h>9&&qs(e,t,9,d)&&(p=!0),p}(e,t,n,r,i,o,s,a,l,u,c,d);case 2:return function(e,t,n,r,i,o,s,a,l,u,c,d){var h=!1,p=t.bindings,f=p.length;if(f>0&&vs(e,t,0,n)&&(h=!0),f>1&&vs(e,t,1,r)&&(h=!0),f>2&&vs(e,t,2,i)&&(h=!0),f>3&&vs(e,t,3,o)&&(h=!0),f>4&&vs(e,t,4,s)&&(h=!0),f>5&&vs(e,t,5,a)&&(h=!0),f>6&&vs(e,t,6,l)&&(h=!0),f>7&&vs(e,t,7,u)&&(h=!0),f>8&&vs(e,t,8,c)&&(h=!0),f>9&&vs(e,t,9,d)&&(h=!0),h){var m=t.text.prefix;f>0&&(m+=tl(n,p[0])),f>1&&(m+=tl(r,p[1])),f>2&&(m+=tl(i,p[2])),f>3&&(m+=tl(o,p[3])),f>4&&(m+=tl(s,p[4])),f>5&&(m+=tl(a,p[5])),f>6&&(m+=tl(l,p[6])),f>7&&(m+=tl(u,p[7])),f>8&&(m+=tl(c,p[8])),f>9&&(m+=tl(d,p[9]));var g=es(e,t.nodeIndex).renderText;e.renderer.setValue(g,m)}return h}(e,t,n,r,i,o,s,a,l,u,c,d);case 16384:return function(e,t,n,r,i,o,s,a,l,u,c,d){var h=ns(e,t.nodeIndex),p=h.instance,f=!1,m=void 0,g=t.bindings.length;return g>0&&gs(e,t,0,n)&&(f=!0,m=Ba(e,h,t,0,n,m)),g>1&&gs(e,t,1,r)&&(f=!0,m=Ba(e,h,t,1,r,m)),g>2&&gs(e,t,2,i)&&(f=!0,m=Ba(e,h,t,2,i,m)),g>3&&gs(e,t,3,o)&&(f=!0,m=Ba(e,h,t,3,o,m)),g>4&&gs(e,t,4,s)&&(f=!0,m=Ba(e,h,t,4,s,m)),g>5&&gs(e,t,5,a)&&(f=!0,m=Ba(e,h,t,5,a,m)),g>6&&gs(e,t,6,l)&&(f=!0,m=Ba(e,h,t,6,l,m)),g>7&&gs(e,t,7,u)&&(f=!0,m=Ba(e,h,t,7,u,m)),g>8&&gs(e,t,8,c)&&(f=!0,m=Ba(e,h,t,8,c,m)),g>9&&gs(e,t,9,d)&&(f=!0,m=Ba(e,h,t,9,d,m)),m&&p.ngOnChanges(m),65536&t.flags&&$o(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,i,o,s,a,l,u,c,d);case 32:case 64:case 128:return function(e,t,n,r,i,o,s,a,l,u,c,d){var h=t.bindings,p=!1,f=h.length;if(f>0&&vs(e,t,0,n)&&(p=!0),f>1&&vs(e,t,1,r)&&(p=!0),f>2&&vs(e,t,2,i)&&(p=!0),f>3&&vs(e,t,3,o)&&(p=!0),f>4&&vs(e,t,4,s)&&(p=!0),f>5&&vs(e,t,5,a)&&(p=!0),f>6&&vs(e,t,6,l)&&(p=!0),f>7&&vs(e,t,7,u)&&(p=!0),f>8&&vs(e,t,8,c)&&(p=!0),f>9&&vs(e,t,9,d)&&(p=!0),p){var m=rs(e,t.nodeIndex),g=void 0;switch(201347067&t.flags){case 32:g=new Array(h.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=i),f>3&&(g[3]=o),f>4&&(g[4]=s),f>5&&(g[5]=a),f>6&&(g[6]=l),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=d);break;case 64:g={},f>0&&(g[h[0].name]=n),f>1&&(g[h[1].name]=r),f>2&&(g[h[2].name]=i),f>3&&(g[h[3].name]=o),f>4&&(g[h[4].name]=s),f>5&&(g[h[5].name]=a),f>6&&(g[h[6].name]=l),f>7&&(g[h[7].name]=u),f>8&&(g[h[8].name]=c),f>9&&(g[h[9].name]=d);break;case 128:var v=n;switch(f){case 1:g=v.transform(n);break;case 2:g=v.transform(r);break;case 3:g=v.transform(r,i);break;case 4:g=v.transform(r,i,o);break;case 5:g=v.transform(r,i,o,s);break;case 6:g=v.transform(r,i,o,s,a);break;case 7:g=v.transform(r,i,o,s,a,l);break;case 8:g=v.transform(r,i,o,s,a,l,u);break;case 9:g=v.transform(r,i,o,s,a,l,u,c);break;case 10:g=v.transform(r,i,o,s,a,l,u,c,d)}}m.value=g}return p}(e,t,n,r,i,o,s,a,l,u,c,d);default:throw"unreachable"}}(e,t,r,i,o,s,a,l,u,d,h,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i<n.length;i++)qs(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)vs(e,t,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=tl(n[o],r[o]);s=t.text.prefix+s;var a=es(e,t.nodeIndex).renderText;e.renderer.setValue(a,s)}return i}(e,t,n);case 16384:return function(e,t,n){for(var r=ns(e,t.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)gs(e,t,a,n[a])&&(o=!0,s=Ba(e,r,t,a,n[a],s));return s&&i.ngOnChanges(s),65536&t.flags&&$o(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),o}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,i=!1,o=0;o<n.length;o++)vs(e,t,o,n[o])&&(i=!0);if(i){var s=rs(e,t.nodeIndex),a=void 0;switch(201347067&t.flags){case 32:a=n;break;case 64:for(a={},o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var l=n[0],u=n.slice(1);a=l.transform.apply(l,c(u))}s.value=a}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function fl(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var i=ts(e,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,_s(s,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function ml(e,t,n,r,i,o,s,a,l,u,c,d,h){return 0===n?function(e,t,n,r,i,o,s,a,l,u,c,d){var h=t.bindings.length;h>0&&ys(e,t,0,n),h>1&&ys(e,t,1,r),h>2&&ys(e,t,2,i),h>3&&ys(e,t,3,o),h>4&&ys(e,t,4,s),h>5&&ys(e,t,5,a),h>6&&ys(e,t,6,l),h>7&&ys(e,t,7,u),h>8&&ys(e,t,8,c),h>9&&ys(e,t,9,d)}(e,t,r,i,o,s,a,l,u,c,d,h):function(e,t,n){for(var r=0;r<n.length;r++)ys(e,t,r,n[r])}(e,t,r),!1}function gl(e,t){if(is(e,t.nodeIndex).dirty)throw ss(os.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function vl(e){if(!(128&e.state)){if(_l(e,yl.Destroy),bl(e,yl.Destroy),Ha(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=Cs(e);if(t){var n=t.template._projectedViews;n&&(ia(n,n.indexOf(e)),os.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(ts(e,n).renderElement):2&r.flags?e.renderer.destroyNode(es(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&is(e,n).destroy()}}(e),Os(e)&&e.renderer.destroy(),e.state|=128}}var yl=function(e){return e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy",e}({});function bl(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?wl(ts(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function _l(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=ts(e,r).viewContainer._embeddedViews,s=0;s<o.length;s++)wl(o[s],t);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function wl(e,t){var n=e.state;switch(t){case yl.CheckNoChanges:0==(128&n)&&(12==(12&n)?dl(e):64&n&&Cl(e,yl.CheckNoChangesProjectedViews));break;case yl.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?dl(e):64&n&&Cl(e,t));break;case yl.CheckAndUpdate:0==(128&n)&&(12==(12&n)?hl(e):64&n&&Cl(e,yl.CheckAndUpdateProjectedViews));break;case yl.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?hl(e):64&n&&Cl(e,t));break;case yl.Destroy:vl(e);break;case yl.CreateViewNodes:cl(e)}}function Cl(e,t){_l(e,t),bl(e,t)}function Sl(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var i=e.def.nodes.length,o=0;o<i;o++){var s=e.def.nodes[o];if(s.flags&t&&s.flags&n)switch(os.setCurrentNode(e,s.nodeIndex),r){case 0:Qa(e,s);break;case 1:gl(e,s)}s.childFlags&t&&s.childFlags&n||(o+=s.childCount)}}var El=!1;function Ol(e,t,n,r,i,o){var s=i.injector.get(wr);return sl(xl(e,i,s,t,n),r,o)}function Tl(e,t,n,r,i,o){var s=i.injector.get(wr),a=xl(e,i,new au(s),t,n),l=jl(r);return ou(ql.create,sl,null,[a,l,o])}function xl(e,t,n,r,i){var o=t.injector.get(gi),s=t.injector.get(Ii),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:s}}function Il(e,t,n,r){var i=jl(n);return ou(ql.create,ol,null,[e,t,i,r])}function Pl(e,t,n,r){return n=Rl.get(t.element.componentProvider.provider.token)||jl(n),ou(ql.create,al,null,[e,t,n,r])}function kl(e,t,n,r){return _a(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===Ml.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(function(e){var r=Ml.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(function(e){Al.forEach(function(r,i){Pe(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasDeprecatedOverrides;return t.hasOverrides?(function(e){for(var t=0;t<e.providers.length;t++){var r=e.providers[t];n&&(r.flags|=4096);var i=Ml.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=Ps(i.deps),r.value=i.value)}if(Al.size>0){var o=new Set(e.modules);Al.forEach(function(t,r){if(o.has(Pe(r).providedIn)){var i={token:r,flags:t.flags|(n?4096:0),deps:Ps(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[ds(r)]=i}})}}(e=e.factory(function(){return us})),e):e}(r))}var Ml=new Map,Al=new Map,Rl=new Map;function Nl(e){var t;Ml.set(e.token,e),"function"==typeof e.token&&(t=Pe(e.token))&&"function"==typeof t.providedIn&&Al.set(e.token,e)}function Dl(e,t){var n=As(t.viewDefFactory),r=As(n.nodes[0].element.componentView);Rl.set(e,r)}function Ll(){Ml.clear(),Al.clear(),Rl.clear()}function jl(e){if(0===Ml.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Ml.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return us});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=Ml.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=Ps(o.deps),i.value=o.value)}}}}function Vl(e,t,n,r,i,o,s,a,l,u,c,d,h){var p=e.def.nodes[t];return pl(e,p,n,r,i,o,s,a,l,u,c,d,h),224&p.flags?rs(e,t).value:void 0}function Fl(e,t,n,r,i,o,s,a,l,u,c,d,h){var p=e.def.nodes[t];return ml(e,p,n,r,i,o,s,a,l,u,c,d,h),224&p.flags?rs(e,t).value:void 0}function Ul(e){return ou(ql.detectChanges,hl,null,[e])}function zl(e){return ou(ql.checkNoChanges,dl,null,[e])}function Bl(e){return ou(ql.destroy,vl,null,[e])}var Hl,Wl,Gl,ql=function(e){return e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent",e}({});function Zl(e,t){Wl=e,Gl=t}function Ql(e,t,n,r){return Zl(e,t),ou(ql.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Yl(e,t){if(128&e.state)throw ls(ql[Hl]);return Zl(e,tu(e,0)),e.def.updateDirectives(function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=e.def.nodes[n];return 0===t?Jl(e,s,r,i):Xl(e,s,r,i),16384&s.flags&&Zl(e,tu(e,n)),224&s.flags?rs(e,s.nodeIndex).value:void 0},e)}function Kl(e,t){if(128&e.state)throw ls(ql[Hl]);return Zl(e,nu(e,0)),e.def.updateRenderer(function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=e.def.nodes[n];return 0===t?Jl(e,s,r,i):Xl(e,s,r,i),3&s.flags&&Zl(e,nu(e,n)),224&s.flags?rs(e,s.nodeIndex).value:void 0},e)}function Jl(e,t,n,r){if(pl.apply(void 0,c([e,t,n],r))){var i=1===n?r[0]:r;if(16384&t.flags){for(var o={},s=0;s<t.bindings.length;s++){var a=t.bindings[s],l=i[s];8&a.flags&&(o[(p=a.nonMinifiedName,f=void 0,f=p.replace(/[$@]/g,"_"),"ng-reflect-"+(p=f.replace($l,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()})))]=eu(l))}var u=t.parent,d=ts(e,u.nodeIndex).renderElement;if(u.element.name)for(var h in o)null!=(l=o[h])?e.renderer.setAttribute(d,h,l):e.renderer.removeAttribute(d,h);else e.renderer.setValue(d,"bindings="+JSON.stringify(o,null,2))}}var p,f}function Xl(e,t,n,r){ml.apply(void 0,c([e,t,n],r))}var $l=/([A-Z])/g;function eu(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function tu(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function nu(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var ru=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Ss(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return ts(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return ma(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){iu(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&iu(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!Os(e);)e=e.parent;return e.parent?ts(e.parent,Ss(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Es(this.view,this.nodeDef):Es(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var o=function(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(t,n),s=-1;t.factory(function(){var t;return++s===o?(t=e.error).bind.apply(t,c([e],r)):us}),s<o&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,c(r)))},e}();function iu(e,t,n){for(var r in t.references)n[r]=Ka(e,t,t.references[r])}function ou(e,t,n,r){var i=Hl,o=Wl,s=Gl;try{Hl=e;var a=t.apply(n,r);return Wl=o,Gl=s,Hl=i,a}catch(l){if(Oi(l)||!Wl)throw l;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),as(e,t),e}(l,su())}}function su(){return Wl?new ru(Wl,Gl):null}var au=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new lu(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),lu=function(){function e(e){this.delegate=e,this.debugContextFactory=su,this.data=this.delegate.data}return e.prototype.createDebugContext=function(e){return this.debugContextFactory(e)},e.prototype.destroyNode=function(e){!function(e){Io.delete(e.nativeNode)}(Po(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var i=new xo(n,null,r);i.name=e,ko(i)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&ko(new To(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&ko(new To(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=Po(e),r=Po(t);n&&r&&n instanceof xo&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=Po(e),i=Po(t),o=Po(n);r&&i&&r instanceof xo&&r.insertBefore(o,i),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=Po(e),r=Po(t);n&&r&&n instanceof xo&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e,t){var n=this.delegate.selectRootElement(e,t),r=su()||null;return r&&ko(new xo(n,null,r)),n},e.prototype.setAttribute=function(e,t,n,r){var i=Po(e);i&&i instanceof xo&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=Po(e);r&&r instanceof xo&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=Po(e);n&&n instanceof xo&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=Po(e);n&&n instanceof xo&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var i=Po(e);i&&i instanceof xo&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=Po(e);r&&r instanceof xo&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=Po(e);r&&r instanceof xo&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=Po(e);r&&r.listeners.push(new Oo(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function uu(e,t,n){return new cu(e,t,n)}var cu=function(e){function t(t,n,r){var i=e.call(this)||this;return i.moduleType=t,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return i(t,e),t.prototype.create=function(e){!function(){if(!El){El=!0;var e=Qr()?{setCurrentNode:Zl,createRootView:Tl,createEmbeddedView:Il,createComponentView:Pl,createNgModuleRef:kl,overrideProvider:Nl,overrideComponentView:Dl,clearOverrides:Ll,checkAndUpdateView:Ul,checkNoChangesView:zl,destroyView:Bl,createDebugContext:function(e,t){return new ru(e,t)},handleEvent:Ql,updateDirectives:Yl,updateRenderer:Kl}:{setCurrentNode:function(){},createRootView:Ol,createEmbeddedView:ol,createComponentView:al,createNgModuleRef:_a,overrideProvider:us,overrideComponentView:us,clearOverrides:us,checkAndUpdateView:hl,checkNoChangesView:dl,destroyView:vl,createDebugContext:function(e,t){return new ru(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Vl:Fl,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Vl:Fl,e)}};os.setCurrentNode=e.setCurrentNode,os.createRootView=e.createRootView,os.createEmbeddedView=e.createEmbeddedView,os.createComponentView=e.createComponentView,os.createNgModuleRef=e.createNgModuleRef,os.overrideProvider=e.overrideProvider,os.overrideComponentView=e.overrideComponentView,os.clearOverrides=e.clearOverrides,os.checkAndUpdateView=e.checkAndUpdateView,os.checkNoChangesView=e.checkNoChangesView,os.destroyView=e.destroyView,os.resolveDep=Ua,os.createDebugContext=e.createDebugContext,os.handleEvent=e.handleEvent,os.updateDirectives=e.updateDirectives,os.updateRenderer=e.updateRenderer,os.dirtyParentQueries=Za}}();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(As(this._ngModuleDefFactory));return os.createNgModuleRef(this.moduleType,e||it.NULL,this._bootstrapComponents,t)},t}(dr),du={production:!0,openvidu_url:"",openvidu_secret:""},hu=(n("yLV6"),Element.prototype),pu=hu.matches||hu.matchesSelector||hu.mozMatchesSelector||hu.msMatchesSelector||hu.oMatchesSelector||hu.webkitMatchesSelector,fu={schedule:function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(e){if("undefined"==typeof window)return fu.schedule(e,0);if(void 0===window.requestAnimationFrame)return fu.schedule(e,16);var t=window.requestAnimationFrame(e);return function(){return window.cancelAnimationFrame(t)}}};function mu(e,t,n){var r=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some(function(t,n){return!("*"===t||!function(t,n){return pu.call(e,n)}(0,t)||(r=n,0))}),r}var gu=function(){function e(e,t){this.component=e,this.injector=t,this.componentFactory=t.get(ar).resolveComponentFactory(e)}return e.prototype.create=function(e){return new vu(this.componentFactory,e)},e}(),vu=function(){function e(e,t){this.componentFactory=e,this.injector=t,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.uninitializedInputs=new Set}return e.prototype.connect=function(e){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);this.componentRef||this.initializeComponent(e)},e.prototype.disconnect=function(){var e=this;this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=fu.schedule(function(){e.componentRef&&(e.componentRef.destroy(),e.componentRef=null)},10))},e.prototype.getInputValue=function(e){return this.componentRef?this.componentRef.instance[e]:this.initialInputValues.get(e)},e.prototype.setInputValue=function(e,t){var n,r;(n=t)===(r=this.getInputValue(e))||n!=n&&r!=r||(this.componentRef?(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t))},e.prototype.initializeComponent=function(e){var t=it.create({providers:[],parent:this.injector}),n=function(t,n){var r=e.childNodes,i=n.map(function(){return[]}),o=-1;n.some(function(e,t){return"*"===e&&(o=t,!0)});for(var s=0,a=r.length;s<a;++s){var l=r[s],u=mu(l,n,o);-1!==u&&i[u].push(l)}return i}(0,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(),this.detectChanges(),this.injector.get(fo).attachView(this.componentRef.hostView)},e.prototype.initializeInputs=function(){var e=this;this.componentFactory.inputs.forEach(function(t){var n=t.propName,r=e.initialInputValues.get(n);r?e.setInputValue(n,r):e.uninitializedInputs.add(n)}),this.initialInputValues.clear()},e.prototype.initializeOutputs=function(){var e=this,t=this.componentFactory.outputs.map(function(t){var n=t.templateName;return e.componentRef.instance[t.propName].pipe(te(function(e){return{name:n,value:e}}))});this.events=he.apply(void 0,c(t))},e.prototype.callNgOnChanges=function(){if(this.implementsOnChanges&&null!==this.inputChanges){var e=this.inputChanges;this.inputChanges=null,this.componentRef.instance.ngOnChanges(e)}},e.prototype.scheduleDetectChanges=function(){var e=this;this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=fu.scheduleBeforeRender(function(){e.scheduledChangeDetectionFn=null,e.detectChanges()}))},e.prototype.recordInputChange=function(e,t){if(!this.componentRef||this.implementsOnChanges){null===this.inputChanges&&(this.inputChanges={});var n=this.inputChanges[e];if(n)n.currentValue=t;else{var r=this.uninitializedInputs.has(e);this.uninitializedInputs.delete(e);var i=r?void 0:this.getInputValue(e);this.inputChanges[e]=new zt(i,t,r)}}},e.prototype.detectChanges=function(){this.componentRef&&(this.callNgOnChanges(),this.componentRef.changeDetectorRef.detectChanges())},e}(),yu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ngElementEventsSubscription=null,t}return i(t,e),t}(HTMLElement);function bu(e,t){var n=function(e,n){return t.injector.get(ar).resolveComponentFactory(e).inputs}(e),r=t.strategyFactory||new gu(e,t.injector),o=function(e){var t={};return e.forEach(function(e){var n,r=e.propName;t[(n=e.templateName,n.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}))]=r}),t}(n),s=function(e){function n(n){var i=e.call(this)||this;return i.ngElementStrategy=r.create(n||t.injector),i}return i(n,e),n.prototype.attributeChangedCallback=function(e,n,i,s){this.ngElementStrategy||(this.ngElementStrategy=r.create(t.injector)),this.ngElementStrategy.setInputValue(o[e],i)},n.prototype.connectedCallback=function(){var e=this;this.ngElementStrategy||(this.ngElementStrategy=r.create(t.injector)),this.ngElementStrategy.connect(this),this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(function(t){var n=function(t,n,r){if("function"!=typeof CustomEvent){var i=e.ownerDocument.createEvent("CustomEvent");return i.initCustomEvent(n,!1,!1,r),i}return new CustomEvent(n,{bubbles:!1,cancelable:!1,detail:r})}(0,t.name,t.value);e.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}(yu);return n.map(function(e){return e.propName}).forEach(function(e){Object.defineProperty(s.prototype,e,{get:function(){return this.ngElementStrategy.getInputValue(e)},set:function(t){this.ngElementStrategy.setInputValue(e,t)},configurable:!0,enumerable:!0})}),s}var _u=n("PZzU"),wu=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){},e}(),Cu=function(){function e(){}return e.prototype.fixAspectRatio=function(e,t){var n=e.querySelector(".OT_root");if(n){var r=n.style.width;n.style.width=t+"px",n.style.width=r||""}},e.prototype.positionElement=function(e,t,n,r,i,o){var s=this,a={left:t+"px",top:n+"px",width:r+"px",height:i+"px"};this.fixAspectRatio(e,r),o&&$?($(e).stop(),$(e).animate(a,o.duration||200,o.easing||"swing",function(){s.fixAspectRatio(e,r),o.complete&&o.complete.call(s)})):$(e).css(a),this.fixAspectRatio(e,r)},e.prototype.getVideoRatio=function(e){if(!e)return.75;var t=e.querySelector("video");return t&&t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:.75},e.prototype.getCSSNumber=function(e,t){var n=$(e).css(t);return n?parseInt(n,10):0},e.prototype.cheapUUID=function(){return(1e8*Math.random()).toFixed(0)},e.prototype.getHeight=function(e){var t=$(e).css("height");return t?parseInt(t,10):0},e.prototype.getWidth=function(e){var t=$(e).css("width");return t?parseInt(t,10):0},e.prototype.getBestDimensions=function(e,t,n,r,i,o){for(var s,a,l,u,c,d,h,p=1;p<=n;p++){var f=p,m=Math.ceil(n/f);(h=(d=Math.floor(i/m))/(c=Math.floor(r/f)))>t?d=c*(h=t):h<e&&(c=d/(h=e));var g=c*d*n;(void 0===s||g>s)&&(s=g,o=d,u=c,a=f,l=m)}return{maxArea:s,targetCols:a,targetRows:l,targetHeight:o,targetWidth:u,ratio:o/u}},e.prototype.arrange=function(e,t,n,r,i,o,s,a,l){var u,c,d=e.length;if(o){var h=this.getVideoRatio(e.length>0?e[0]:null);c=this.getBestDimensions(h,h,d,t,n,u)}else c=this.getBestDimensions(s,a,d,t,n,u);for(var p,f=0,m=0,g=[],v=0;v<e.length;v++){v%c.targetCols==0&&g.push(p={children:[],width:0,height:0}),p.children.push(E=e[v]);var y=c.targetWidth;u=c.targetHeight,o&&(y=u/this.getVideoRatio(E)),p.width+=y,p.height=u}var b=0,_=0;for(v=0;v<g.length;v++)(p=g[v]).width>t?(p.height=Math.floor(p.height*(t/p.width)),p.width=t):p.width<t&&(_+=1),b+=p.height;if(b<n&&_>0){var w=n-b;for(b=0,v=0;v<g.length;v++){if((p=g[v]).width<t){var C=w/_;C/p.height>(t-p.width)/p.width&&(C=Math.floor((t-p.width)/p.width*p.height)),p.width+=Math.floor(C/p.height*p.width),p.height+=C,w-=C,_-=1}b+=p.height}}for(m=(n-b)/2,v=0;v<g.length;v++){f=(t-(p=g[v]).width)/2;for(var S=0;S<p.children.length;S++){var E=p.children[S];y=c.targetWidth,u=p.height,o&&(y=Math.floor(u/this.getVideoRatio(E))),E.style.position="absolute";var O=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"),T=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+r,m+i,O,T,l),f+=y}m+=u}},e.prototype.filterDisplayNone=function(e){return"none"!==e.style.display},e.prototype.updateLayout=function(){if("none"!==this.layoutContainer.style.display){var e=this.layoutContainer.id;e||(e="OT_"+this.cheapUUID(),this.layoutContainer.id=e);var t=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),n=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight"),r=t/n,i=0,o=0,s=0,a=0,l=Array.prototype.filter.call(this.layoutContainer.querySelectorAll("#"+e+">."+this.opts.bigClass),this.filterDisplayNone),u=Array.prototype.filter.call(this.layoutContainer.querySelectorAll("#"+e+">*:not(."+this.opts.bigClass+")"),this.filterDisplayNone);if(l.length>0&&u.length>0){var c=void 0,d=void 0;r>this.getVideoRatio(l[0])?(c=n,s=t-(o=d=Math.floor(t*this.opts.bigPercentage))):(d=t,a=n-(i=c=Math.floor(n*this.opts.bigPercentage))),this.opts.bigFirst?(this.arrange(l,c,d,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate),this.arrange(u,n-i,t-o,i,o,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)):(this.arrange(u,n-i,t-o,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate),this.arrange(l,c,d,a,s,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate))}else l.length>0&&0===u.length?this.arrange(l,n,t,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate):this.arrange(u,n-i,t-o,i,o,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)}},e.prototype.initLayoutContainer=function(e,t){this.opts={maxRatio:null!=t.maxRatio?t.maxRatio:1.5,minRatio:null!=t.minRatio?t.minRatio:9/16,fixedRatio:null!=t.fixedRatio&&t.fixedRatio,animate:null!=t.animate&&t.animate,bigClass:null!=t.bigClass?t.bigClass:"OT_big",bigPercentage:null!=t.bigPercentage?t.bigPercentage:.8,bigFixedRatio:null!=t.bigFixedRatio&&t.bigFixedRatio,bigMaxRatio:null!=t.bigMaxRatio?t.bigMaxRatio:1.5,bigMinRatio:null!=t.bigMinRatio?t.bigMinRatio:9/16,bigFirst:null==t.bigFirst||t.bigFirst},this.layoutContainer="string"==typeof e?$(e):e},e.prototype.setLayoutOptions=function(e){this.opts=e},e}(),Su=function(){function e(){this.connectionId="",this.audioActive=!0,this.videoActive=!0,this.screenShareActive=!1,this.nickname="",this.streamManager=null,this.type="local",this.createAvatar()}return e.prototype.isAudioActive=function(){return this.audioActive},e.prototype.isVideoActive=function(){return this.videoActive},e.prototype.isScreenShareActive=function(){return this.screenShareActive},e.prototype.getConnectionId=function(){return this.connectionId},e.prototype.getNickname=function(){return this.nickname},e.prototype.getStreamManager=function(){return this.streamManager},e.prototype.getAvatar=function(){return this.avatar.toDataURL()},e.prototype.isLocal=function(){return"local"===this.type},e.prototype.isRemote=function(){return!this.isLocal()},e.prototype.setAudioActive=function(e){this.audioActive=e},e.prototype.setVideoActive=function(e){this.videoActive=e},e.prototype.setScreenShareActive=function(e){this.screenShareActive=e},e.prototype.setStreamManager=function(e){this.streamManager=e},e.prototype.setConnectionId=function(e){this.connectionId=e},e.prototype.setNickname=function(e){this.nickname=e},e.prototype.setType=function(e){this.type=e},e.prototype.setUserAvatar=function(){var e=this;return new Promise(function(t){setTimeout(function(){var n=document.getElementById("video-"+e.getStreamManager().stream.streamId);e.avatar.getContext("2d").drawImage(n,200,120,285,285,0,0,60,60),console.log("Photo was taken: ",e.avatar),t()},2e3)})},e.prototype.createAvatar=function(){this.avatar=document.createElement("canvas"),this.avatar.className="user-img",this.avatar.width=60,this.avatar.height=60},e}(),Eu=new R(function(e){return e.complete()});function Ou(e){return e?function(e){return new R(function(t){return e.schedule(function(){return t.complete()})})}(e):Eu}function Tu(e){var t=new R(function(t){t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function xu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(z(n)?e.pop():n=void 0,e.length){case 0:return Ou(n);case 1:return n?ie(e,n):Tu(e[0]);default:return ie(e,n)}}function Iu(e,t){return se(e,t,1)}function Pu(e,t){return function(n){return n.lift(new ku(e,t))}}var ku=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Mu(e,this.predicate,this.thisArg))},e}(),Mu=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return i(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)},t}(x),Au=function(){return function(){}}(),Ru=new Me("Location Initialized"),Nu=function(){return function(){}}(),Du=new Me("appBaseHref"),Lu=function(){function e(e){var n=this;this._subject=new Wr,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(ju(r)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,state:e.state,type:e.type})})}var t;return t=e,e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},e.prototype.normalize=function(e){return t.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,ju(e)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",e,t)},e.prototype.replaceState=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function ju(e){return e.replace(/\/index.html$/,"")}var Vu=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return i(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=Lu.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+Lu.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+Lu.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(Nu),Fu=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return i(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return Lu.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+Lu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+Lu.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+Lu.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(Nu),Uu=void 0,zu=["en",[["a","p"],["AM","PM"],Uu],[["AM","PM"],Uu,Uu],[["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"]],Uu,[["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"]],Uu,[["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}",Uu,"{1} 'at' {0}",Uu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Bu={},Hu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Wu=new Me("UseV4Plurals"),Gu=function(){return function(){}}(),qu=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return i(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=Bu[t];if(n)return n;var r=t.split("-")[0];if(n=Bu[r])return n;if("en"===r)return zu;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[18]}(t||this.locale)(e)){case Hu.Zero:return"zero";case Hu.One:return"one";case Hu.Two:return"two";case Hu.Few:return"few";case Hu.Many:return"many";default:return"other"}},t}(Gu);function Zu(e,t){var n,r;t=encodeURIComponent(t);try{for(var i=l(e.split(";")),o=i.next();!o.done;o=i.next()){var s=o.value,a=s.indexOf("="),c=u(-1==a?[s,""]:[s.slice(0,a),s.slice(a+1)],2),d=c[1];if(c[0].trim()===t)return decodeURIComponent(d)}}catch(h){n={error:h}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}var Qu=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Bt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+qe(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),Yu=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),Ku=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Qr()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new Yu(null,t._ngForOf,-1,-1),i),s=new Ju(e,o);n.push(s)}else null==i?t._viewContainer.remove(r):(o=t._viewContainer.get(r),t._viewContainer.move(o,i),s=new Ju(e,o),n.push(s))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e.ngTemplateContextGuard=function(e,t){return!0},e}(),Ju=function(){return function(e,t){this.record=e,this.view=t}}(),Xu=function(){function e(e,t){this._viewContainer=e,this._context=new $u,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){ec("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){ec("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.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)))},e.ngTemplateGuard_ngIf=function(e,t){return!0},e}(),$u=function(){return function(){this.$implicit=null,this.ngIf=null}}();function ec(e,t){if(t&&!t.createEmbeddedView)throw new Error(e+" must be a TemplateRef, but received '"+qe(t)+"'.")}var tc=function(){function e(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}return e.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},e.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},e.prototype.enforceState=function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()},e}(),nc=function(){function e(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(e.prototype,"ngSwitch",{set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),e.prototype._addCase=function(){return this._caseCount++},e.prototype._addDefault=function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)},e.prototype._matchCase=function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t},e.prototype._updateDefaultCases=function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}},e}(),rc=function(){function e(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new tc(e,t)}return e.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},e}(),ic=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),oc=new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),sc=new ic,ac=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var t;return t=e,e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,Ut.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(e){if(Pi(e))return oc;if(ki(e))return sc;throw Error("InvalidPipeArgument: '"+e+"' for pipe '"+qe(t)+"'")},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e}(),lc=function(){return function(){}}(),uc=new Me("DocumentToken"),cc="browser",dc="server",hc=function(){function e(){}return e.ngInjectableDef=Ie({providedIn:"root",factory:function(){return new pc(bt(uc),window)}}),e}(),pc=function(){function e(e,t){this.document=e,this.window=t,this.offset=function(){return[0,0]}}return e.prototype.setOffset=function(e){this.offset=Array.isArray(e)?function(){return e}:e},e.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},e.prototype.scrollToPosition=function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])},e.prototype.scrollToAnchor=function(e){if(this.supportScrollRestoration()){var t=this.document.querySelector("#"+e);if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='"+e+"']");if(n)return void this.scrollToElement(n)}},e.prototype.setHistoryScrollRestoration=function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}},e.prototype.scrollToElement=function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])},e.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}},e}(),fc=function(){return function(){}}(),mc=function(){return function(){}}(),gc=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,c(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),vc=function(){function e(){}return e.prototype.encodeKey=function(e){return yc(e)},e.prototype.encodeValue=function(e){return yc(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function yc(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var bc=function(){function e(e){void 0===e&&(e={});var t,n,r,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new vc,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),i=u(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),o=i[0],s=i[1],a=r.get(o)||[];a.push(s),r.set(o,a)}),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];i.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=null)},e}();function _c(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function wc(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Cc(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Sc=function(){function e(e,t,n,r){var i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new gc),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s<t.length-1?"&":"")+o}}else this.params=new bc,this.urlWithParams=t}return e.prototype.serializeBody=function(){return null===this.body?null:_c(this.body)||wc(this.body)||Cc(this.body)||"string"==typeof this.body?this.body:this.body instanceof bc?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},e.prototype.detectContentTypeHeader=function(){return null===this.body?null:Cc(this.body)?null:wc(this.body)?this.body.type||null:_c(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof bc?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},e.prototype.clone=function(t){void 0===t&&(t={});var n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},l)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,r,o,{params:u,headers:l,reportProgress:a,responseType:i,withCredentials:s})},e}(),Ec=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),Oc=function(){return function(e,t,n){void 0===t&&(t=200),void 0===n&&(n="OK"),this.headers=e.headers||new gc,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}(),Tc=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=Ec.ResponseHeader,n}return i(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Oc),xc=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.type=Ec.Response,n.body=void 0!==t.body?t.body:null,n}return i(t,e),t.prototype.clone=function(e){return void 0===e&&(e={}),new t({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},t}(Oc),Ic=function(e){function t(t){var n=e.call(this,t,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,n.error=t.error||null,n}return i(t,e),t}(Oc);function Pc(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var kc=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r,i=this;if(void 0===n&&(n={}),e instanceof Sc)r=e;else{var o;o=n.headers instanceof gc?n.headers:new gc(n.headers);var s=void 0;n.params&&(s=n.params instanceof bc?n.params:new bc({fromObject:n.params})),r=new Sc(e,t,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=xu(r).pipe(Iu(function(e){return i.handler.handle(e)}));if(e instanceof Sc||"events"===n.observe)return a;var l=a.pipe(Pu(function(e){return e instanceof xc}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(te(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(te(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(te(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(te(function(e){return e.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new bc).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,Pc(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,Pc(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,Pc(n,t))},e}(),Mc=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),Ac=new Me("HTTP_INTERCEPTORS"),Rc=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e}(),Nc=/^\)\]\}',?\n/,Dc=function(){return function(){}}(),Lc=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}(),jc=function(){function e(e){this.xhrFactory=e}return e.prototype.handle=function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new R(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var s=e.serializeBody(),a=null,l=function(){if(null!==a)return a;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new gc(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new Tc({headers:i,status:t,statusText:n,url:o})},u=function(){var t=l(),i=t.headers,o=t.status,s=t.statusText,a=t.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var d=u;u=u.replace(Nc,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=d,c&&(c=!1,u={error:h,text:u})}}c?(n.next(new xc({body:u,headers:i,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new Ic({error:u,headers:i,status:o,statusText:s,url:a||void 0}))},c=function(e){var t=new Ic({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(t)},d=!1,h=function(t){d||(n.next(l()),d=!0);var i={type:Ec.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},p=function(e){var t={type:Ec.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",u),r.addEventListener("error",c),e.reportProgress&&(r.addEventListener("progress",h),null!==s&&r.upload&&r.upload.addEventListener("progress",p)),r.send(s),n.next({type:Ec.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),e.reportProgress&&(r.removeEventListener("progress",h),null!==s&&r.upload&&r.upload.removeEventListener("progress",p)),r.abort()}})},e}(),Vc=new Me("XSRF_COOKIE_NAME"),Fc=new Me("XSRF_HEADER_NAME"),Uc=function(){return function(){}}(),zc=function(){function e(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Zu(e,this.cookieName),this.lastCookieString=e),this.lastToken},e}(),Bc=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)},e}(),Hc=function(){function e(e,t){this.backend=e,this.injector=t,this.chain=null}return e.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(Ac,[]);this.chain=t.reduceRight(function(e,t){return new Mc(e,t)},this.backend)}return this.chain.handle(e)},e}(),Wc=function(){function e(){}var t;return t=e,e.disable=function(){return{ngModule:t,providers:[{provide:Bc,useClass:Rc}]}},e.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:Vc,useValue:e.cookieName}:[],e.headerName?{provide:Fc,useValue:e.headerName}:[]]}},e}(),Gc=function(){return function(){}}();function qc(e,t){return new R(t?function(n){return t.schedule(Zc,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function Zc(e){e.subscriber.error(e.error)}function Qc(e){return function(t){var n=new Yc(e),r=t.lift(n);return n.caught=r}}var Yc=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new Kc(e,this.selector,this.caught))},e}(),Kc=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(i){return void e.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new B(this,void 0,void 0);this.add(r),X(this,n,void 0,void 0,r)}},t}(ee),Jc=function(){function e(e){this.http=e,this.MY_SECRET="MY_SECRET",du.openvidu_url?(this.URL_OV=du.openvidu_url,this.MY_SECRET=du.openvidu_secret):this.URL_OV="https://"+location.hostname+":4443",console.log("url environment",this.URL_OV)}return e.prototype.getToken=function(e,t,n){var r=this;return void 0===t&&(t=this.URL_OV),void 0===n&&(n=this.MY_SECRET),this.createSession(e,t,n).then(function(e){return r.createToken(e,t,n)})},e.prototype.createSession=function(e,t,n){var r=this;return new Promise(function(i,o){var s=JSON.stringify({customSessionId:e}),a={headers:new gc({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return r.http.post(t+"/api/sessions",s,a).pipe(Qc(function(t){return 409===t.status?i(e):o(t),qc(t)})).subscribe(function(e){console.log(e),i(e.id)})})},e.prototype.createToken=function(e,t,n){var r=this;return new Promise(function(i,o){var s=JSON.stringify({session:e}),a={headers:new gc({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return r.http.post(t+"/api/tokens",s,a).pipe(Qc(function(e){return o(e),qc(e)})).subscribe(function(e){console.log(e),i(e.token)})})},e.ngInjectableDef=Ie({factory:function(){return new e(bt(kc))},token:e,providedIn:"root"}),e}(),Xc=function(){function e(){this.messageList=[],this.closeChat=new Wr}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"isDisplayed",{set:function(e){this._chatDisplay=e,"block"===this._chatDisplay&&this.scrollToBottom()},enumerable:!0,configurable:!0}),e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.sendMessage()},e.prototype.sendMessage=function(){if(this.user&&this.message&&(this.message=this.message.replace(/ +(?= )/g,""),""!==this.message&&" "!==this.message)){var e={connectionId:this.user.getConnectionId(),message:this.message,nickname:this.user.getNickname()};this.user.getStreamManager().stream.session.signal({data:JSON.stringify(e),type:"chat"}),this.message=""}},e.prototype.scrollToBottom=function(){var e=this;setTimeout(function(){try{e.chatScroll.nativeElement.scrollTop=e.chatScroll.nativeElement.scrollHeight}catch(t){}},20)},e.prototype.close=function(){this.closeChat.emit()},e}(),$c=function(){function e(e,t,n,r){this.openViduSrv=e,this.router=t,this.route=n,this.dialog=r,this.joinSession=new Wr,this.leaveSession=new Wr,this.error=new Wr,this.BIG_ELEMENT_CLASS="OV_big",this.compact=!1,this.messageReceived=!1,this.chatDisplay="none",this.showDialogExtension=!1,this.messageList=[]}return e.prototype.beforeunloadHandler=function(){this.exitSession()},e.prototype.sizeChange=function(e){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.openviduLayout.updateLayout()},20),this.checkSizeComponent()},e.prototype.ngOnInit=function(){this.localUser=new Su,this.localUser.setType("local"),this.remoteUsers=[],this.generateParticipantInfo(),this.checkTheme(),this.joinToSession(),this.openviduLayout=new Cu,this.openviduLayoutOptions={maxRatio:1.5,minRatio:9/16,fixedRatio:!1,bigClass:this.BIG_ELEMENT_CLASS,bigPercentage:.8,bigFixedRatio:!1,bigMaxRatio:1.5,bigMinRatio:9/16,bigFirst:!0,animate:!0},this.openviduLayout.initLayoutContainer(document.getElementById("layout"),this.openviduLayoutOptions)},e.prototype.ngOnDestroy=function(){this.exitSession()},e.prototype.toggleChat=function(e){var t=this;this.chatDisplay=e||("none"===this.chatDisplay?"block":"none"),"block"===this.chatDisplay&&(this.messageReceived=!1),setTimeout(function(){return t.openviduLayout.updateLayout()},20)},e.prototype.checkNotification=function(){this.messageReceived="none"===this.chatDisplay},e.prototype.joinToSession=function(){this.OV=new _u.OpenVidu,this.session=this.OV.initSession(),this.subscribeToUserChanged(),this.subscribeToStreamCreated(),this.subscribedToStreamDestroyed(),this.subscribedToChat(),this.connectToSession()},e.prototype.exitSession=function(){this.session&&this.session.disconnect(),this.remoteUsers=[],this.session=null,this.localUser=null,this.OV=null,this.openviduLayout=null,this.router.navigate([""]),this.leaveSession.emit()},e.prototype.micStatusChanged=function(){this.localUser.setAudioActive(!this.localUser.isAudioActive()),this.localUser.getStreamManager().publishAudio(this.localUser.isAudioActive()),this.sendSignalUserChanged({isAudioActive:this.localUser.isAudioActive()})},e.prototype.camStatusChanged=function(){this.localUser.setVideoActive(!this.localUser.isVideoActive()),this.localUser.getStreamManager().publishVideo(this.localUser.isVideoActive()),this.sendSignalUserChanged({isVideoActive:this.localUser.isVideoActive()})},e.prototype.nicknameChanged=function(e){this.localUser.setNickname(e),this.sendSignalUserChanged({nickname:this.localUser.getNickname()})},e.prototype.screenShareDisabled=function(){this.session.unpublish(this.localUser.getStreamManager()),this.connectWebCam()},e.prototype.toggleDialogExtension=function(){this.showDialogExtension=!this.showDialogExtension},e.prototype.screenShare=function(){var e=this,t=this.OV.initPublisher(void 0,{videoSource:"screen",publishAudio:this.localUser.isAudioActive(),publishVideo:this.localUser.isVideoActive(),mirror:!1},function(t){t&&"SCREEN_EXTENSION_NOT_INSTALLED"===t.name?e.toggleDialogExtension():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&&"SCREEN_CAPTURE_DENIED"===t.name&&alert("You need to choose a window or application to share")});t.once("accessAllowed",function(){e.session.unpublish(e.localUser.getStreamManager()),e.localUser.setStreamManager(t),e.session.publish(e.localUser.getStreamManager()).then(function(){e.localUser.setScreenShareActive(!0),e.sendSignalUserChanged({isScreenShareActive:e.localUser.isScreenShareActive()})})}),t.on("streamPlaying",function(){e.openviduLayout.updateLayout(),t.videos[0].video.parentElement.classList.remove("custom-class")})},e.prototype.checkSizeComponent=function(){document.getElementById("layout").offsetWidth<=700?(this.compact=!0,this.toggleChat("none")):this.compact=!1},e.prototype.enlargeElement=function(e){var t=e.path.filter(function(e){return e.className&&e.className.includes("OT_root")})[0];this.bigElement&&this.bigElement.classList.remove(this.BIG_ELEMENT_CLASS),this.bigElement!==t?(t.classList.add(this.BIG_ELEMENT_CLASS),this.bigElement=t):this.bigElement=void 0,this.openviduLayout.updateLayout()},e.prototype.generateParticipantInfo=function(){var e=this;this.route.params.subscribe(function(t){e.mySessionId=void 0!==t.roomName?t.roomName:e.sessionName,e.myUserName=e.user||"OpenVidu_User"+Math.floor(100*Math.random())})},e.prototype.deleteRemoteStream=function(e){var t=this.remoteUsers.filter(function(t){return t.getStreamManager().stream===e})[0],n=this.remoteUsers.indexOf(t,0);n>-1&&this.remoteUsers.splice(n,1)},e.prototype.subscribeToUserChanged=function(){var e=this;this.session.on("signal:userChanged",function(t){e.remoteUsers.forEach(function(e){if(e.getConnectionId()===t.from.connectionId){var n=JSON.parse(t.data);void 0!==n.isAudioActive&&e.setAudioActive(n.isAudioActive),void 0!==n.isVideoActive&&e.setVideoActive(n.isVideoActive),void 0!==n.nickname&&e.setNickname(n.nickname),void 0!==n.isScreenShareActive&&e.setScreenShareActive(n.isScreenShareActive)}}),e.checkSomeoneShareScreen()})},e.prototype.subscribeToStreamCreated=function(){var e=this;this.session.on("streamCreated",function(t){var n=e.session.subscribe(t.stream,void 0);n.on("streamPlaying",function(t){e.checkSomeoneShareScreen(),n.videos[0].video.parentElement.classList.remove("custom-class")});var r=new Su;r.setStreamManager(n),r.setConnectionId(t.stream.connection.connectionId);var i=t.stream.connection.data.split("%")[0];r.setNickname(JSON.parse(i).clientData),r.setType("remote"),console.log("----------- taking photo from remote User -----------"),r.setUserAvatar(),e.remoteUsers.push(r),e.sendSignalUserChanged({isAudioActive:e.localUser.isAudioActive(),isVideoActive:e.localUser.isVideoActive(),isScreenShareActive:e.localUser.isScreenShareActive(),nickname:e.localUser.getNickname()})})},e.prototype.subscribedToStreamDestroyed=function(){var e=this;this.session.on("streamDestroyed",function(t){e.deleteRemoteStream(t.stream),clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.checkSomeoneShareScreen()},20),t.preventDefault()})},e.prototype.subscribedToChat=function(){var e=this;this.session.on("signal:chat",function(t){var n=JSON.parse(t.data),r=e.localUser.getConnectionId()===n.connectionId?e.localUser:e.remoteUsers.filter(function(e){return e.getConnectionId()===n.connectionId})[0];e.messageList.push({connectionId:t.from.connectionId,nickname:n.nickname,message:n.message,userAvatar:r.getAvatar()}),e.checkNotification(),e.chatComponent.scrollToBottom()})},e.prototype.connectToSession=function(){var e=this;this.token?this.connect(this.token):this.openViduSrv.getToken(this.mySessionId,this.openviduServerUrl,this.openviduSecret).then(function(t){e.connect(t)}).catch(function(t){e.error.emit({error:t.error,messgae:t.message,code:t.code,status:t.status}),console.log("There was an error getting the token:",t.code,t.message),e.openDialogError("There was an error getting the token:",t.message)})},e.prototype.connect=function(e){var t=this;this.session.connect(e,{clientData:this.myUserName}).then(function(){t.connectWebCam()}).catch(function(e){t.error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),console.log("There was an error connecting to the session:",e.code,e.message),t.openDialogError("There was an error connecting to the session:",e.message)})},e.prototype.connectWebCam=function(){var e=this;this.localUser.setStreamManager(this.OV.initPublisher(void 0,{audioSource:void 0,videoSource:void 0,publishAudio:this.localUser.isAudioActive(),publishVideo:this.localUser.isVideoActive(),resolution:"640x480",frameRate:30,insertMode:"APPEND"})),this.session.capabilities.publish&&this.session.publish(this.localUser.getStreamManager()).then(function(){console.log("----------- taking photo from Local User -----------"),e.localUser.setUserAvatar(),e.joinSession.emit()}),this.localUser.setNickname(this.myUserName),this.localUser.setConnectionId(this.session.connection.connectionId),this.localUser.setScreenShareActive(!1),this.sendSignalUserChanged({isScreenShareActive:this.localUser.isScreenShareActive()}),this.localUser.getStreamManager().on("streamPlaying",function(){e.openviduLayout.updateLayout(),e.localUser.getStreamManager().videos[0].video.parentElement.classList.remove("custom-class")})},e.prototype.sendSignalUserChanged=function(e){var t={data:JSON.stringify(e),type:"userChanged"};this.session.signal(t)},e.prototype.openDialogError=function(e,t){this.dialog.open(wu,{width:"450px",data:{message:e,messageError:t}})},e.prototype.checkSomeoneShareScreen=function(){var e;e=this.remoteUsers.some(function(e){return e.isScreenShareActive()})||this.localUser.isScreenShareActive(),this.openviduLayoutOptions.fixedRatio=e,this.openviduLayout.setLayoutOptions(this.openviduLayoutOptions),this.openviduLayout.updateLayout()},e.prototype.checkTheme=function(){this.lightTheme="light"===this.theme},e}(),ed=function(){function e(){this.joinSession=new Wr,this.leaveSession=new Wr,this.error=new Wr,this.display=!1}return Object.defineProperty(e.prototype,"sessionConfig",{set:function(e){var t;console.log("Session config input ",e),t=e,"string"==typeof e&&(t=JSON.parse(e)),t?(this._sessionName=t.sessionName,this._user=t.user,this._token=t.token,this.validateParameters()&&(this.display=!0)):this.videoRoom.exitSession()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.validateParameters=function(){return!!(this._sessionName&&this.openviduServerUrl&&this.openviduSecret&&this._user||this._token&&this._user)},e.prototype.emitJoinSessionEvent=function(e){this.joinSession.emit(e),this.videoRoom.checkSizeComponent()},e.prototype.emitLeaveSessionEvent=function(e){this.leaveSession.emit(e),this.display=!1},e.prototype.emitErrorEvent=function(e){var t=this;setTimeout(function(){return t.error.emit(e)},20)},e}(),td=function(){function e(e,t){this.strategy=e,this.injector=t,this.ngZone=this.injector.get(Ki)}return e.prototype.connect=function(e){var t=this;this.runInZone(function(){t.strategy.connect(e)}),this.events=this.strategy.events},e.prototype.disconnect=function(){var e=this;this.runInZone(function(){e.strategy.disconnect()})},e.prototype.getInputValue=function(e){var t=this;return this.runInZone(function(){return t.strategy.getInputValue(e)})},e.prototype.setInputValue=function(e,t){var n=this;this.runInZone(function(){n.strategy.setInputValue(e,t)})},e.prototype.runInZone=function(e){return this.ngZone.run(e)},e}(),nd=function(){function e(e,t){this.component=e,this.injector=t,this.ngElement=bu(this.component,{injector:this.injector}),customElements.define(this.generateName(),this.ngElement)}return e.prototype.string4=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},e.prototype.generateName=function(){var t="dummy-name-n";return t=t+(e.counter+"")+"-"+this.string4()+this.string4()+this.string4()+"-"+this.string4()+this.string4()+"-"+this.string4(),e.counter++,t},e.prototype.create=function(e){var t=new this.ngElement(this.injector),n=t.ngElementStrategy;return t=null,new td(n,this.injector)},e.counter=1,e}(),rd=function(){function e(e){this.injector=e;var t=new nd(ed,this.injector),n=bu(ed,{injector:this.injector,strategyFactory:t});customElements.define("openvidu-webcomponent",n)}return e.prototype.ngDoBootstrap=function(){},e}(),id=function(){return function(){this.title="OpenVidu-call"}}(),od=function(){return function(){}}(),sd=function(){return function(){}}(),ad="*";function ld(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function ud(e){return{type:6,styles:e,offset:null}}function cd(e){Promise.resolve(null).then(e)}var dd=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;cd(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),hd=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,i=0,o=this.players.length;0==o?cd(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==o&&t._onFinish()}),e.onDestroy(function(){++r==o&&t._onDestroy()}),e.onStart(function(){++i==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),pd="!";function fd(){throw Error("Host already has a portal attached")}var md=function(){function e(){}return e.prototype.attach=function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&fd(),this._attachedHost=e,e.attach(this)},e.prototype.detach=function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())},Object.defineProperty(e.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),e.prototype.setAttachedHost=function(e){this._attachedHost=e},e}(),gd=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.component=t,o.viewContainerRef=n,o.injector=r,o.componentFactoryResolver=i,o}return i(t,e),t}(md),vd=function(e){function t(t,n,r){var i=e.call(this)||this;return i.templateRef=t,i.viewContainerRef=n,i.context=r,i}return i(t,e),Object.defineProperty(t.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),t.prototype.attach=function(t,n){return void 0===n&&(n=this.context),this.context=n,e.prototype.attach.call(this,t)},t.prototype.detach=function(){return this.context=void 0,e.prototype.detach.call(this)},t}(md),yd=function(){function e(){this._isDisposed=!1}return e.prototype.hasAttached=function(){return!!this._attachedPortal},e.prototype.attach=function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&fd(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof gd?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof vd?(this._attachedPortal=e,this.attachTemplatePortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},e.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},e.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},e.prototype.setDisposeFn=function(e){this._disposeFn=e},e.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},e}(),bd=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.outletElement=t,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return i(t,e),t.prototype.attachComponentPortal=function(e){var t,n=this,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t},t.prototype.attachTemplatePortal=function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.detectChanges(),r.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),this.setDisposeFn(function(){var e=n.indexOf(r);-1!==e&&n.remove(e)}),r},t.prototype.dispose=function(){e.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},t.prototype._getComponentRootNode=function(e){return e.hostView.rootNodes[0]},t}(yd),_d=function(e){function t(t,n){var r=e.call(this)||this;return r._componentFactoryResolver=t,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new Wr,r}return i(t,e),Object.defineProperty(t.prototype,"portal",{get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&e.prototype.detach.call(this),t&&e.prototype.attach.call(this,t),this._attachedPortal=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0},t.prototype.ngOnDestroy=function(){e.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},t.prototype.attachComponentPortal=function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(t.component),i=n.createComponent(r,n.length,t.injector||n.injector);return e.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i},t.prototype.attachTemplatePortal=function(t){var n=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return e.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r},t}(yd),wd=function(){return function(){}}(),Cd=function(){function e(e,t){this._parentInjector=e,this._customTokens=t}return e.prototype.get=function(e,t){var n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)},e}(),Sd=27;function Ed(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Ed.prototype=Object.create(Error.prototype);var Od=Ed;function Td(e){return function(t){return 0===e?Ou():t.lift(new xd(e))}}var xd=function(){function e(e){if(this.total=e,this.total<0)throw new Od}return e.prototype.call=function(e,t){return t.subscribe(new Id(e,this.total))},e}(),Id=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return i(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(x);function Pd(){return de(1)}function kd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];z(n)?e.pop():n=null;var r=e.length;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length||2===e.length&&z(e[1])?oe(e[0]):Pd()(xu.apply(void 0,e))}(1!==r||n?r>0?ie(e,n):Ou(n):Tu(e[0]),t)}}var Md=new Me("cdk-dir-doc",{providedIn:"root",factory:function(){return bt(uc)}}),Ad=function(){function e(e){if(this.value="ltr",this.change=new Wr,e){var t=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===t||"rtl"===t?t:"ltr"}}return e.prototype.ngOnDestroy=function(){this.change.complete()},e.ngInjectableDef=Ie({factory:function(){return new e(bt(Md,8))},token:e,providedIn:"root"}),e}(),Rd=function(){return function(){}}();function Nd(e){return null!=e&&""+e!="false"}function Dd(e){return Array.isArray(e)?e:[e]}function Ld(e){return null==e?"":"string"==typeof e?e:e+"px"}function jd(e,t,n,r){return p(n)&&(r=n,n=void 0),r?jd(e,t,n).pipe(te(function(e){return d(e)?r.apply(void 0,e):r(e)})):new R(function(r){!function e(t,n,r,i,o){var s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var a=t;t.addEventListener(n,r,o),s=function(){return a.removeEventListener(n,r,o)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var l=t;t.on(n,r),s=function(){return l.off(n,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var u=t;t.addListener(n,r),s=function(){return u.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,d=t.length;c<d;c++)e(t[c],n,r,i,o)}i.add(s)}(e,t,function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},r,n)})}Object;var Vd=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(_)),Fd=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),Ud=function(e){function t(n,r){void 0===r&&(r=Fd.now);var i=e.call(this,n,function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(Fd),zd=new Ud(Vd),Bd=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Hd(e,this.durationSelector))},e}(),Hd=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return i(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=v(this.durationSelector)(e);if(t===m)this.destination.error(m.e);else{var n=X(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,r){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(ee);function Wd(e){return!d(e)&&e-parseFloat(e)+1>=0}function Gd(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function qd(e,t){return void 0===t&&(t=zd),n=function(){return function(e,t,n){void 0===e&&(e=0);var r=-1;return Wd(t)?r=Number(t)<1?1:Number(t):z(t)&&(n=t),z(n)||(n=zd),new R(function(t){var i=Wd(e)?e:+e-n.now();return n.schedule(Gd,i,{index:0,period:r,subscriber:t})})}(e,t)},function(e){return e.lift(new Bd(n))};var n}function Zd(e){return function(t){return t.lift(new Qd(e))}}var Qd=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Yd(e),r=X(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),Yd=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(ee);function Kd(e,t){return"function"==typeof t?function(n){return n.pipe(Kd(function(n,r){return oe(e(n,r)).pipe(te(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new $d(e))}}var Jd,Xd,$d=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new eh(e,this.project))},e}(),eh=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return i(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new B(this,void 0,void 0);this.destination.add(i),this.innerSubscription=X(this,e,t,n,i)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t}(ee),th="undefined"!=typeof Intl&&Intl.v8BreakIterator,nh=function(){function e(e){this._platformId=e,this.isBrowser=this._platformId?this._platformId===cc:"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&&!th)&&"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 e.ngInjectableDef=Ie({factory:function(){return new e(bt(ji,8))},token:e,providedIn:"root"}),e}(),rh=function(){return function(){}}(),ih=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function oh(){if(Jd)return Jd;if("object"!=typeof document||!document)return Jd=new Set(ih);var e=document.createElement("input");return Jd=new Set(ih.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function sh(){if(null==Xd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Xd=!0}}))}finally{Xd=Xd||!1}return Xd}var ah=function(){function e(e,t){this._ngZone=e,this._platform=t,this._scrolled=new F,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return e.prototype.register=function(e){var t=this,n=e.elementScrolled().subscribe(function(){return t._scrolled.next(e)});this.scrollContainers.set(e,n)},e.prototype.deregister=function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))},e.prototype.scrolled=function(e){var t=this;return void 0===e&&(e=20),this._platform.isBrowser?R.create(function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(qd(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):xu()},e.prototype.ngOnDestroy=function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()},e.prototype.ancestorScrolled=function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Pu(function(e){return!e||n.indexOf(e)>-1}))},e.prototype.getAncestorScrollContainers=function(e){var t=this,n=[];return this.scrollContainers.forEach(function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)}),n},e.prototype._scrollableContainsElement=function(e,t){var n=t.nativeElement,r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},e.prototype._addGlobalListener=function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return jd(window.document,"scroll").subscribe(function(){return e._scrolled.next()})})},e.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},e.ngInjectableDef=Ie({factory:function(){return new e(bt(Ki),bt(nh))},token:e,providedIn:"root"}),e}(),lh=function(){return function(){}}(),uh=function(){function e(e,t){var n=this;this._platform=e,t.runOutsideAngular(function(){n._change=e.isBrowser?he(jd(window,"resize"),jd(window,"orientationchange")):xu(),n._invalidateCache=n.change().subscribe(function(){return n._updateViewportSize()})})}return e.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},e.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e},e.prototype.getViewportRect=function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}},e.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=document.documentElement,t=e.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||e.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||e.scrollLeft||0}},e.prototype.change=function(e){return void 0===e&&(e=20),e>0?this._change.pipe(qd(e)):this._change},e.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},e.ngInjectableDef=Ie({factory:function(){return new e(bt(nh),bt(Ki))},token:e,providedIn:"root"}),e}(),ch=function(){function e(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return e.prototype.attach=function(){},e.prototype.enable=function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Ld(-this._previousScrollPosition.left),e.style.top=Ld(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},e.prototype.disable=function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,r=t.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=r,n.scrollBehavior=i}},e.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width},e}();function dh(){return Error("Scroll strategy has already been attached.")}var hh=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return e.prototype.attach=function(e){if(this._overlayRef)throw dh();this._overlayRef=e},e.prototype.enable=function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}(),ph=function(){function e(){}return e.prototype.enable=function(){},e.prototype.disable=function(){},e.prototype.attach=function(){},e}();function fh(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function mh(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var gh=function(){function e(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}return e.prototype.attach=function(e){if(this._overlayRef)throw dh();this._overlayRef=e},e.prototype.enable=function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;fh(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}(),vh=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=function(){return new ph},this.close=function(e){return new hh(i._scrollDispatcher,i._ngZone,i._viewportRuler,e)},this.block=function(){return new ch(i._viewportRuler,i._document)},this.reposition=function(e){return new gh(i._scrollDispatcher,i._viewportRuler,i._ngZone,e)},this._document=r}return e.ngInjectableDef=Ie({factory:function(){return new e(bt(ah),bt(uh),bt(Ki),bt(uc))},token:e,providedIn:"root"}),e}(),yh=function(){return function(e){var t=this;this.scrollStrategy=new ph,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e&&Object.keys(e).forEach(function(n){void 0!==e[n]&&(t[n]=e[n])})}}(),bh=function(){return function(e,t,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}(),_h=function(){return function(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}();function wh(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "top", "bottom" or "center".')}function Ch(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "start", "end" or "center".')}var Sh=function(){function e(e){var t=this;this._attachedOverlays=[],this._keydownListener=function(e){for(var n=t._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEventSubscriptions>0){n[r]._keydownEvents.next(e);break}},this._document=e}return e.prototype.ngOnDestroy=function(){this._detach()},e.prototype.add=function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(e)},e.prototype.remove=function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()},e.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},e.ngInjectableDef=Ie({factory:function(){return new e(bt(uc))},token:e,providedIn:"root"}),e}(),Eh=function(){function e(e){this._document=e}return e.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},e.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},e.prototype._createContainer=function(){var e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),this._document.body.appendChild(e),this._containerElement=e},e.ngInjectableDef=Ie({factory:function(){return new e(bt(uc))},token:e,providedIn:"root"}),e}(),Oh=function(){function e(e,t,n,r,i,o,s,a){var l=this;this._portalOutlet=e,this._host=t,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._location=a,this._backdropElement=null,this._backdropClick=new F,this._attachments=new F,this._detachments=new F,this._locationChanges=_.EMPTY,this._keydownEventsObservable=R.create(function(e){var t=l._keydownEvents.subscribe(e);return l._keydownEventSubscriptions++,function(){t.unsubscribe(),l._keydownEventSubscriptions--}}),this._keydownEvents=new F,this._keydownEventSubscriptions=0,r.scrollStrategy&&r.scrollStrategy.attach(this),this._positionStrategy=r.positionStrategy}return Object.defineProperty(e.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this,n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Td(1)).subscribe(function(){t.hasAttached()&&t.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 t.dispose()})),n},e.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}},e.prototype.dispose=function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),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,e&&this._detachments.next(),this._detachments.complete()},e.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},e.prototype.backdropClick=function(){return this._backdropClick.asObservable()},e.prototype.attachments=function(){return this._attachments.asObservable()},e.prototype.detachments=function(){return this._detachments.asObservable()},e.prototype.keydownEvents=function(){return this._keydownEventsObservable},e.prototype.getConfig=function(){return this._config},e.prototype.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()},e.prototype.updatePositionStrategy=function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))},e.prototype.updateSize=function(e){this._config=o({},this._config,e),this._updateElementSize()},e.prototype.setDirection=function(e){this._config=o({},this._config,{direction:e}),this._updateElementDirection()},e.prototype.getDirection=function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"},e.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},e.prototype._updateElementSize=function(){var e=this._pane.style;e.width=Ld(this._config.width),e.height=Ld(this._config.height),e.minWidth=Ld(this._config.minWidth),e.minHeight=Ld(this._config.minHeight),e.maxWidth=Ld(this._config.maxWidth),e.maxHeight=Ld(this._config.maxHeight)},e.prototype._togglePointerEvents=function(e){this._pane.style.pointerEvents=e?"auto":"none"},e.prototype._attachBackdrop=function(){var e=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",function(t){return e._backdropClick.next(t)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},e.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},e.prototype.detachBackdrop=function(){var e=this,t=this._backdropElement;if(t){var n=void 0,r=function(){t&&t.parentNode&&t.parentNode.removeChild(t),e._backdropElement==t&&(e._backdropElement=null),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",r)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(r,500)})}},e.prototype._toggleClasses=function(e,t,n){var r=e.classList;Dd(t).forEach(function(e){n?r.add(e):r.remove(e)})},e.prototype._detachContentWhenStable=function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.asObservable().pipe(Zd(he(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})},e}(),Th=function(){function e(e,t,n,r,i){var o=this;this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i,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 F,this._resizeSubscription=_.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this._appliedPanelClasses=[],this.positionChanges=R.create(function(e){var t=o._positionChanges.subscribe(e);return o._positionChangeSubscriptions++,function(){t.unsubscribe(),o._positionChangeSubscriptions--}}),this.setOrigin(e)}return Object.defineProperty(e.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this;if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})},e.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!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._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var e,t=this._originRect,n=this._overlayRect,r=this._viewportRect,i=[],o=0,s=this._preferredPositions;o<s.length;o++){var a=s[o],l=this._getOriginPoint(t,a),u=this._getOverlayPoint(l,n,a),c=this._getOverlayFit(u,n,r,a);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(c,u,r)?i.push({position:a,origin:l,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!e||e.overlayFit.visibleArea<c.visibleArea)&&(e={overlayFit:c,overlayPoint:u,originPoint:l,position:a,overlayRect:n})}if(i.length){for(var d=null,h=-1,p=0,f=i;p<f.length;p++){var m=f[p],g=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);g>h&&(h=g,d=m)}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}},e.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},e.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&xh(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)},e.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}},e.prototype.withScrollableContainers=function(e){this.scrollables=e},e.prototype.withPositions=function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},e.prototype.withViewportMargin=function(e){return this._viewportMargin=e,this},e.prototype.withFlexibleDimensions=function(e){return void 0===e&&(e=!0),this._hasFlexibleDimensions=e,this},e.prototype.withGrowAfterOpen=function(e){return void 0===e&&(e=!0),this._growAfterOpen=e,this},e.prototype.withPush=function(e){return void 0===e&&(e=!0),this._canPush=e,this},e.prototype.withLockedPosition=function(e){return void 0===e&&(e=!0),this._positionLocked=e,this},e.prototype.setOrigin=function(e){return this._origin=e instanceof br?e.nativeElement:e,this},e.prototype.withDefaultOffsetX=function(e){return this._offsetX=e,this},e.prototype.withDefaultOffsetY=function(e){return this._offsetY=e,this},e.prototype.withTransformOriginOn=function(e){return this._transformOriginSelector=e,this},e.prototype._getOriginPoint=function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}},e.prototype._getOverlayPoint=function(e,t,n){var r;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+r,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}},e.prototype._getOverlayFit=function(e,t,n,r){var i=e.x,o=e.y,s=this._getOffset(r,"x"),a=this._getOffset(r,"y");s&&(i+=s),a&&(o+=a);var l=0-o,u=o+t.height-n.height,c=this._subtractOverflows(t.width,0-i,i+t.width-n.width),d=this._subtractOverflows(t.height,l,u),h=c*d;return{visibleArea:h,isCompletelyWithinViewport:t.width*t.height===h,fitsInViewportVertically:d===t.height,fitsInViewportHorizontally:c==t.width}},e.prototype._canFitWithFlexibleDimensions=function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,o=this._overlayRef.getConfig().minHeight,s=this._overlayRef.getConfig().minWidth;return(e.fitsInViewportVertically||null!=o&&o<=r)&&(e.fitsInViewportHorizontally||null!=s&&s<=i)}},e.prototype._pushOverlayOnScreen=function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var r,i,o=this._viewportRect,s=Math.max(e.x+t.width-o.right,0),a=Math.max(e.y+t.height-o.bottom,0),l=Math.max(o.top-n.top-e.y,0),u=Math.max(o.left-n.left-e.x,0);return this._previousPushAmount={x:r=t.width<o.width?u||-s:e.x<this._viewportMargin?o.left-n.left-e.x:0,y:i=t.height<o.height?l||-a:e.y<this._viewportMargin?o.top-n.top-e.y:0},{x:e.x+r,y:e.y+i}},e.prototype._applyPosition=function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChangeSubscriptions>0){var n=this._getScrollVisibility(),r=new _h(e,n);this._positionChanges.next(r)}this._isInitialRender=!1},e.prototype._setTransformOrigin=function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var i=0;i<n.length;i++)n[i].style.transformOrigin=t+" "+r}},e.prototype._calculateBoundingBoxRect=function(e,t){var n,r,i,o,s,a,l=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)r=e.y,n=l.bottom-e.y;else if("bottom"===t.overlayY)n=l.height-(i=l.height-e.y+2*this._viewportMargin)+this._viewportMargin;else{var c=Math.min(l.bottom-e.y+l.top,e.y),d=this._lastBoundingBoxSize.height;r=e.y-c,(n=2*c)>d&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-d/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)a=l.right-e.x+this._viewportMargin,o=e.x-l.left;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)s=e.x,o=l.right-e.x;else{c=Math.min(l.right-e.x+l.left,e.x);var h=this._lastBoundingBoxSize.width;s=e.x-c,(o=2*c)>h&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.x-h/2)}return{top:r,left:s,bottom:i,right:a,width:o,height:n}},e.prototype._setBoundingBoxStyles=function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Ld(n.height),r.top=Ld(n.top),r.bottom=Ld(n.bottom),r.width=Ld(n.width),r.left=Ld(n.left),r.right=Ld(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=Ld(i)),o&&(r.maxWidth=Ld(o))}this._lastBoundingBoxSize=n,xh(this._boundingBox.style,r)},e.prototype._resetBoundingBoxStyles=function(){xh(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},e.prototype._resetOverlayElementStyles=function(){xh(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},e.prototype._setOverlayElementStyles=function(e,t){var n={};if(this._hasExactPosition()){var r=this._viewportRuler.getViewportScrollPosition();xh(n,this._getExactOverlayY(t,e,r)),xh(n,this._getExactOverlayX(t,e,r))}else n.position="static";var i="",o=this._getOffset(t,"x"),s=this._getOffset(t,"y");o&&(i+="translateX("+o+"px) "),s&&(i+="translateY("+s+"px)"),n.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),xh(this._pane.style,n)},e.prototype._getExactOverlayY=function(e,t,n){var r={top:null,bottom:null},i=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer?this._overlayContainer.getContainerElement().getBoundingClientRect().top:0;return i.y-=o,"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=Ld(i.y),r},e.prototype._getExactOverlayX=function(e,t,n){var r={left:null,right:null},i=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?r.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":r.left=Ld(i.x),r},e.prototype._getScrollVisibility=function(){var e=this._origin.getBoundingClientRect(),t=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:mh(e,n),isOriginOutsideView:fh(e,n),isOverlayClipped:mh(t,n),isOverlayOutsideView:fh(t,n)}},e.prototype._subtractOverflows=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(e,t){return e-Math.max(t,0)},e)},e.prototype._getNarrowedViewportRect=function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}},e.prototype._isRtl=function(){return"rtl"===this._overlayRef.getDirection()},e.prototype._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed},e.prototype._getOffset=function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY},e.prototype._validatePositions=function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(function(e){Ch("originX",e.originX),wh("originY",e.originY),Ch("overlayX",e.overlayX),wh("overlayY",e.overlayY)})},e.prototype._addPanelClasses=function(e){var t=this;this._pane&&Dd(e).forEach(function(e){-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})},e.prototype._clearPanelClasses=function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){return e._pane.classList.remove(t)}),this._appliedPanelClasses=[])},e}();function xh(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var Ih=function(){function e(e,t,n,r,i,o){this._preferredPositions=[],this._positionStrategy=new Th(n,r,i,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t)}return Object.defineProperty(e.prototype,"_isRtl",{get:function(){return"rtl"===this._overlayRef.getDirection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onPositionChange",{get:function(){return this._positionStrategy.positionChanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)},e.prototype.dispose=function(){this._positionStrategy.dispose()},e.prototype.detach=function(){this._positionStrategy.detach()},e.prototype.apply=function(){this._positionStrategy.apply()},e.prototype.recalculateLastPosition=function(){this._positionStrategy.reapplyLastPosition()},e.prototype.withScrollableContainers=function(e){this._positionStrategy.withScrollableContainers(e)},e.prototype.withFallbackPosition=function(e,t,n,r){var i=new bh(e,t,n,r);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this},e.prototype.withDirection=function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this},e.prototype.withOffsetX=function(e){return this._positionStrategy.withDefaultOffsetX(e),this},e.prototype.withOffsetY=function(e){return this._positionStrategy.withDefaultOffsetY(e),this},e.prototype.withLockedPosition=function(e){return this._positionStrategy.withLockedPosition(e),this},e.prototype.withPositions=function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this},e.prototype.setOrigin=function(e){return this._positionStrategy.setOrigin(e),this},e}(),Ph=function(){function e(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return e.prototype.attach=function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1},e.prototype.top=function(e){return void 0===e&&(e=""),this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this},e.prototype.left=function(e){return void 0===e&&(e=""),this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this},e.prototype.bottom=function(e){return void 0===e&&(e=""),this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this},e.prototype.right=function(e){return void 0===e&&(e=""),this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this},e.prototype.width=function(e){return void 0===e&&(e=""),this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this},e.prototype.height=function(e){return void 0===e&&(e=""),this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this},e.prototype.centerHorizontally=function(e){return void 0===e&&(e=""),this.left(e),this._justifyContent="center",this},e.prototype.centerVertically=function(e){return void 0===e&&(e=""),this.top(e),this._alignItems="center",this},e.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig();e.position=this._cssPosition,e.marginLeft="100%"===n.width?"0":this._leftOffset,e.marginTop="100%"===n.height?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,"100%"===n.width?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems="100%"===n.height?"flex-start":this._alignItems}},e.prototype.dispose=function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},e}(),kh=function(){function e(e,t,n,r){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=r}return e.prototype.global=function(){return new Ph},e.prototype.connectedTo=function(e,t,n){return new Ih(t,n,e,this._viewportRuler,this._document)},e.prototype.flexibleConnectedTo=function(e){return new Th(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)},e.ngInjectableDef=Ie({factory:function(){return new e(bt(uh),bt(uc),bt(nh,8),bt(Eh,8))},token:e,providedIn:"root"}),e}(),Mh=0,Ah=function(){function e(e,t,n,r,i,o,s,a,l,u){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._injector=o,this._ngZone=s,this._document=a,this._directionality=l,this._location=u}return e.prototype.create=function(e){var t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),i=new yh(e);return i.direction=i.direction||this._directionality.value,new Oh(r,t,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location)},e.prototype.position=function(){return this._positionBuilder},e.prototype._createPaneElement=function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+Mh++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t},e.prototype._createHostElement=function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e},e.prototype._createPortalOutlet=function(e){return this._appRef||(this._appRef=this._injector.get(fo)),new bd(e,this._componentFactoryResolver,this._appRef,this._injector)},e}(),Rh=new Me("cdk-connected-overlay-scroll-strategy");function Nh(e){return function(){return e.scrollStrategies.reposition()}}var Dh=function(){return function(){}}(),Lh=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.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}();function jh(){throw Error("Attempting to attach dialog content after content is already attached")}var Vh=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s._elementRef=t,s._focusTrapFactory=n,s._changeDetectorRef=r,s._document=i,s._config=o,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new Wr,s._ariaLabelledBy=null,s}return i(t,e),t.prototype.attachComponentPortal=function(e){return this._portalOutlet.hasAttached()&&jh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)},t.prototype.attachTemplatePortal=function(e){return this._portalOutlet.hasAttached()&&jh(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)},t.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},t.prototype._restoreFocus=function(){var e=this._elementFocusedBeforeDialogWasOpened;this._config.restoreFocus&&e&&"function"==typeof e.focus&&e.focus(),this._focusTrap&&this._focusTrap.destroy()},t.prototype._savePreviouslyFocusedElement=function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()}))},t.prototype._onAnimationDone=function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)},t.prototype._onAnimationStart=function(e){this._animationStateChanged.emit(e)},t.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},t}(yd),Fh=0,Uh=function(){function e(e,t,n,r){void 0===r&&(r="mat-dialog-"+Fh++);var i=this;this._overlayRef=e,this._containerInstance=t,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new F,this._afterClosed=new F,this._beforeClosed=new F,t._id=r,t._animationStateChanged.pipe(Pu(function(e){return"done"===e.phaseName&&"enter"===e.toState}),Td(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),t._animationStateChanged.pipe(Pu(function(e){return"done"===e.phaseName&&"exit"===e.toState}),Td(1)).subscribe(function(){return i._overlayRef.dispose()}),e.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()}),e.keydownEvents().pipe(Pu(function(e){return e.keyCode===Sd&&!i.disableClose})).subscribe(function(){return i.close()})}return e.prototype.close=function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Pu(function(e){return"start"===e.phaseName}),Td(1)).subscribe(function(){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop()}),this._containerInstance._startExitAnimation()},e.prototype.afterOpened=function(){return this._afterOpened.asObservable()},e.prototype.afterClosed=function(){return this._afterClosed.asObservable()},e.prototype.beforeClosed=function(){return this._beforeClosed.asObservable()},e.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},e.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},e.prototype.updatePosition=function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this},e.prototype.updateSize=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this},e.prototype.afterOpen=function(){return this.afterOpened()},e.prototype.beforeClose=function(){return this.beforeClosed()},e.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},e}(),zh=new Me("MatDialogData"),Bh=new Me("mat-dialog-default-options"),Hh=new Me("mat-dialog-scroll-strategy");function Wh(e){return function(){return e.scrollStrategies.block()}}var Gh=function(){function e(e,t,n,r,i,o,s){var a,l=this;this._overlay=e,this._injector=t,this._location=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new F,this._afterOpenedAtThisLevel=new F,this._ariaHiddenElements=new Map,this.afterAllClosed=(a=function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(kd(void 0))},new R(function(e){var t;try{t=a()}catch(n){return void e.error(n)}return(t?oe(t):Ou()).subscribe(e)})),this._scrollStrategy=i}return Object.defineProperty(e.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"afterOpened",{get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"afterOpen",{get:function(){return this.afterOpened},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_afterAllClosed",{get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),e.prototype.open=function(e,t){var n=this;if((t=function(e,t){return o({},t,e)}(t,this._defaultOptions||new Lh)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'+t.id+'" exists already. The dialog id must be unique.');var r=this._createOverlay(t),i=this._attachDialogContainer(r,t),s=this._attachDialogContent(e,i,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(function(){return n._removeOpenDialog(s)}),this.afterOpened.next(s),s},e.prototype.closeAll=function(){this._closeDialogs(this.openDialogs)},e.prototype.getDialogById=function(e){return this.openDialogs.find(function(t){return t.id===e})},e.prototype.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel)},e.prototype._createOverlay=function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)},e.prototype._getOverlayConfig=function(e){var t=new yh({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t},e.prototype._attachDialogContainer=function(e,t){var n=new Cd(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Lh,t]])),r=new gd(Vh,t.viewContainerRef,n);return e.attach(r).instance},e.prototype._attachDialogContent=function(e,t,n,r){var i=new Uh(n,t,this._location,r.id);if(r.hasBackdrop&&n.backdropClick().subscribe(function(){i.disableClose||i.close()}),e instanceof Gr)t.attachTemplatePortal(new vd(e,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,t),s=t.attachComponentPortal(new gd(e,void 0,o));i.componentInstance=s.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i},e.prototype._createInjector=function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=new WeakMap([[Vh,n],[zh,e.data],[Uh,t]]);return!e.direction||r&&r.get(Ad,null)||i.set(Ad,{value:e.direction,change:xu()}),new Cd(r||this._injector,i)},e.prototype._removeOpenDialog=function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},e.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},e.prototype._closeDialogs=function(e){for(var t=e.length;t--;)e[t].close()},e}(),qh=0,Zh=function(){function e(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id="mat-dialog-title-"+qh++}return e.prototype.ngOnInit=function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})},e}(),Qh=function(){return function(){}}(),Yh=function(){return function(){}}(),Kh=null;function Jh(){return Kh}var Xh,$h={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},ep={"\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"},tp={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"};Ue.Node&&(Xh=Ue.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var np,rp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,Kh||(Kh=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,c(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return $h},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return Xh.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var i=n.item(r);t.set(i.name,i.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&tp.hasOwnProperty(t)&&(t=tp[t]))}return ep[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t,n=ip||(ip=document.querySelector("base"))?ip.getAttribute("href"):null;return null==n?null:(t=n,np||(np=document.createElement("a")),np.setAttribute("href",t),"/"===np.pathname.charAt(0)?np.pathname:"/"+np.pathname)},t.prototype.resetBaseElement=function(){ip=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Zu(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=t.getStyle(n,r[i]+"AnimationName")){t._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=o[e])})}catch(s){t._animationPrefix=null,t._transitionEnd=null}return t}return i(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}())),ip=null,op=uc;function sp(){return!!window.history.pushState}var ap=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}var n;return i(t,e),t.prototype._init=function(){this.location=Jh().getLocation(),this._history=Jh().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return Jh().getBaseHref(this._doc)},t.prototype.onPopState=function(e){Jh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){Jh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){sp()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){sp()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},s([(n=Ye(op),function(e,t){n(e,t,0)}),a("design:paramtypes",[Object])],t)}(Au),lp=new Me("TRANSITION_ID"),up=[{provide:Mi,useFactory:function(e,t,n){return function(){n.get(Ai).donePromise.then(function(){var n=Jh();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[lp,op,it],multi:!0}],cp=function(){function e(){}return e.init=function(){var t;t=new e,so=t},e.prototype.addToWindow=function(e){Ue.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ue.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ue.getAllAngularRootElements=function(){return e.getAllRootElements()},Ue.frameworkStabilizers||(Ue.frameworkStabilizers=[]),Ue.frameworkStabilizers.push(function(e){var t=Ue.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Jh().isShadowRoot(t)?this.findTestabilityInTree(e,Jh().getHost(t),!0):this.findTestabilityInTree(e,Jh().parentElement(t),!0):null},e}();function dp(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Ue.ng=Ue.ng||{})[e]=t)}var hp={ApplicationRef:fo,NgZone:Ki};function pp(e){return Po(e)}var fp=new Me("EventManagerPlugins"),mp=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)},e}(),gp=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=Jh().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),vp=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}(),yp=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return i(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return Jh().remove(e)})},t}(vp),bp={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/"},_p=/%COMP%/g,wp="_nghost-%COMP%",Cp="_ngcontent-%COMP%";function Sp(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?Sp(e,i,n):(i=i.replace(_p,e),n.push(i))}return n}function Ep(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Op=function(){function e(e,t){this.eventManager=e,this.sharedStylesHost=t,this.rendererByCompId=new Map,this.defaultRenderer=new Tp(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case wt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new kp(this.eventManager,this.sharedStylesHost,t),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case wt.Native:case wt.ShadowDom:return new Mp(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=Sp(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}(),Tp=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(bp[t],e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var i=bp[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=bp[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,r){r&Cr.DashCase?e.style.setProperty(t,n,r&Cr.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&Cr.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){Ip(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return Ip(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ep(n)):this.eventManager.addEventListener(e,t,Ep(n))},e}(),xp="@".charCodeAt(0);function Ip(e,t){if(e.charCodeAt(0)===xp)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var Pp,kp=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.component=r;var o=Sp(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=Cp.replace(_p,r.id),i.hostAttr=wp.replace(_p,r.id),i}return i(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(Tp),Mp=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=i.encapsulation===wt.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=Sp(i.id,i.styles,[]),a=0;a<s.length;a++){var l=document.createElement("style");l.textContent=s[a],o.shadowRoot.appendChild(l)}return o}return i(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(Tp),Ap="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},Rp=Ap("addEventListener"),Np=Ap("removeEventListener"),Dp={},Lp="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[Ap("BLACK_LISTED_EVENTS")]&&(Pp={});var jp=function(e){return!!Pp&&Pp.hasOwnProperty(e)},Vp=function(e){var t=Dp[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var i=n.slice(),o=0;o<i.length&&!0!==e[Lp];o++){var s;(s=i[o]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},Fp=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.ngZone=n,r&&function(e){return e===dc}(r)||i.patchEvent(),i}return i(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Lp]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var r=this,i=n;if(!e[Rp]||Ki.isInAngularZone()&&!jp(t))e.addEventListener(t,i,!1);else{var o=Dp[t];o||(o=Dp[t]=Ap("ANGULAR"+t+"FALSE"));var s=e[o],a=s&&s.length>0;s||(s=e[o]=[]);var l=jp(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:l,handler:i});else{for(var u=!1,c=0;c<s.length;c++)if(s[c].handler===i){u=!0;break}u||s.push({zone:l,handler:i})}a||e[Rp](t,Vp,!1)}return function(){return r.removeEventListener(e,t,i)}},t.prototype.removeEventListener=function(e,t,n){var r=e[Np];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var i=Dp[t],o=i&&e[i];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);for(var s=!1,a=0;a<o.length;a++)if(o[a].handler===n){s=!0,o.splice(a,1);break}s?0===o.length&&r.apply(e,[t,Vp,!1]):e.removeEventListener.apply(e,[t,n,!1])},t}(gp),Up={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},zp=new Me("HammerGestureConfig"),Bp=new Me("HammerLoader"),Hp=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e}(),Wp=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._config=n,o.console=r,o.loader=i,o}return i(t,e),t.prototype.supports=function(e){return!(!Up.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},t.prototype.addEventListener=function(e,t,n){var r=this,i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var o=!1,s=function(){o=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=function(){});o||(s=r.addEventListener(e,t,n))}).catch(function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),s=function(){}}),function(){s()}}return i.runOutsideAngular(function(){var o=r._config.buildHammer(e),s=function(e){i.runGuarded(function(){n(e)})};return o.on(t,s),function(){o.off(t,s),"function"==typeof o.destroy&&o.destroy()}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(gp),Gp=["alt","control","meta","shift"],qp={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Zp=function(e){function t(t){return e.call(this,t)||this}var n;return i(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Jh().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(Gp.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},t.getEventFullKey=function(e){var t="",n=Jh().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Gp.forEach(function(r){r!=n&&(0,qp[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(gp),Qp=function(){return function(){}}(),Yp=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return i(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case mi.NONE:return t;case mi.HTML:return t instanceof Jp?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{ti=ti||new Yr(e);var r=t?String(t):"";n=ti.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ti.getInertBodyElement(r)}while(r!==o);var s=new ci,a=s.sanitizeChildren(fi(n)||n);return Qr()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var l=fi(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(t)));case mi.STYLE:return t instanceof Xp?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(yi);return t&&Xr(t[1])===t[1]||e.match(vi)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(Qr()&&console.warn("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}(t));case mi.SCRIPT:if(t instanceof $p)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case mi.URL:return t instanceof tf||t instanceof ef?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Xr(String(t)));case mi.RESOURCE_URL:if(t instanceof tf)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof Kp)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new Jp(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new Xp(e)},t.prototype.bypassSecurityTrustScript=function(e){return new $p(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new ef(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new tf(e)},t}(Qp),Kp=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),Jp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Kp),Xp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Kp),$p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Kp),ef=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Kp),tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Kp),nf=uo(qo,"browser",[{provide:ji,useValue:cc},{provide:Li,useValue:function(){rp.makeCurrent(),cp.init()},multi:!0},{provide:Au,useClass:ap,deps:[op]},{provide:op,useFactory:function(){return document},deps:[]}]);function rf(){return new Ii}var of=function(){function e(e){if(e)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 t;return t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:Ri,useValue:e.appId},{provide:lp,useExisting:Ri},up]}},e}();function sf(e,t,n){return function(r){return r.lift(new af(e,t,n))}}"undefined"!=typeof window&&window;var af=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new lf(e,this.nextOrObserver,this.error,this.complete))},e}(),lf=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._tapNext=k,o._tapError=k,o._tapComplete=k,o._tapError=r||k,o._tapComplete=i||k,p(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||k,o._tapError=n.error||k,o._tapComplete=n.complete||k),o}return i(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(x);function uf(e,t){return void 0===t&&(t=zd),function(n){return n.lift(new cf(e,t))}}var cf=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new df(e,this.dueTime,this.scheduler))},e}(),df=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return i(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(hf,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(x);function hf(e){e.debouncedNext()}function pf(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var ff=0,mf=new Map,gf=null,vf=function(){function e(e){this._document=e}return e.prototype.describe=function(e,t){this._canBeDescribed(e,t)&&(mf.has(t)||this._createMessageElement(t),this._isElementDescribedByMessage(e,t)||this._addMessageReference(e,t))},e.prototype.removeDescription=function(e,t){if(this._canBeDescribed(e,t)){this._isElementDescribedByMessage(e,t)&&this._removeMessageReference(e,t);var n=mf.get(t);n&&0===n.referenceCount&&this._deleteMessageElement(t),gf&&0===gf.childNodes.length&&this._deleteMessagesContainer()}},e.prototype.ngOnDestroy=function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");gf&&this._deleteMessagesContainer(),mf.clear()},e.prototype._createMessageElement=function(e){var t=this._document.createElement("div");t.setAttribute("id","cdk-describedby-message-"+ff++),t.appendChild(this._document.createTextNode(e)),this._createMessagesContainer(),gf.appendChild(t),mf.set(e,{messageElement:t,referenceCount:0})},e.prototype._deleteMessageElement=function(e){var t=mf.get(e),n=t&&t.messageElement;gf&&n&&gf.removeChild(n),mf.delete(e)},e.prototype._createMessagesContainer=function(){if(!gf){var e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode.removeChild(e),(gf=this._document.createElement("div")).id="cdk-describedby-message-container",gf.setAttribute("aria-hidden","true"),gf.style.display="none",this._document.body.appendChild(gf)}},e.prototype._deleteMessagesContainer=function(){gf&&gf.parentNode&&(gf.parentNode.removeChild(gf),gf=null)},e.prototype._removeCdkDescribedByReferenceIds=function(e){var t=pf(e,"aria-describedby").filter(function(e){return 0!=e.indexOf("cdk-describedby-message")});e.setAttribute("aria-describedby",t.join(" "))},e.prototype._addMessageReference=function(e,t){var n,r,i,o=mf.get(t);r=o.messageElement.id,(i=pf(n=e,"aria-describedby")).some(function(e){return e.trim()==r.trim()})||(i.push(r.trim()),n.setAttribute("aria-describedby",i.join(" "))),e.setAttribute("cdk-describedby-host",""),o.referenceCount++},e.prototype._removeMessageReference=function(e,t){var n,r,i,o=mf.get(t);o.referenceCount--,r=o.messageElement.id,i=pf(n=e,"aria-describedby").filter(function(e){return e!=r.trim()}),n.setAttribute("aria-describedby",i.join(" ")),e.removeAttribute("cdk-describedby-host")},e.prototype._isElementDescribedByMessage=function(e,t){var n=pf(e,"aria-describedby"),r=mf.get(t),i=r&&r.messageElement.id;return!!i&&-1!=n.indexOf(i)},e.prototype._canBeDescribed=function(e,t){return e.nodeType===this._document.ELEMENT_NODE&&null!=t&&!!(""+t).trim()},e.ngInjectableDef=Ie({factory:function(){return new e(bt(uc))},token:e,providedIn:"root"}),e}(),yf=function(){function e(e){this._platform=e}return e.prototype.isDisabled=function(e){return e.hasAttribute("disabled")},e.prototype.isVisible=function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility},e.prototype.isTabbable=function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(t){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){var r=n&&n.nodeName.toLowerCase();if(-1===_f(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===r)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),o=_f(e);if(e.hasAttribute("contenteditable"))return-1!==o;if("iframe"===i)return!1;if("audio"===i){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0},e.prototype.isFocusable=function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||bf(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)},e.ngInjectableDef=Ie({factory:function(){return new e(bt(nh))},token:e,providedIn:"root"}),e}();function bf(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function _f(e){if(!bf(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var wf=function(){function e(e,t,n,r,i){void 0===i&&(i=!1),this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._hasAttached=!1,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},e.prototype.attachAnchors=function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",function(){return e.focusLastTabbableElement()})),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",function(){return e.focusFirstTabbableElement()}))}),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)},e.prototype.focusInitialElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})},e.prototype.focusFirstTabbableElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})},e.prototype.focusLastTabbableElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})},e.prototype._getRegionBoundary=function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-"+e+"], [cdkFocusRegion"+e+"], [cdk-focus-"+e+"]"),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-"+e+"', use 'cdkFocusRegion"+e+"' instead. The deprecated attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+e+"', use 'cdkFocusRegion"+e+"' instead. The deprecated attribute will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)},e.prototype.focusInitialElement=function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.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",e),e.focus(),!0):this.focusFirstTabbableElement()},e.prototype.focusFirstTabbableElement=function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e},e.prototype.focusLastTabbableElement=function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e},e.prototype.hasAttached=function(){return this._hasAttached},e.prototype._getFirstTabbableElement=function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._getLastTabbableElement=function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._createAnchor=function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e},e.prototype._toggleAnchorTabIndex=function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")},e.prototype._executeOnStable=function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Td(1)).subscribe(e)},e}(),Cf=function(){function e(e,t,n){this._checker=e,this._ngZone=t,this._document=n}return e.prototype.create=function(e,t){return void 0===t&&(t=!1),new wf(e,this._checker,this._ngZone,this._document,t)},e.ngInjectableDef=Ie({factory:function(){return new e(bt(yf),bt(Ki),bt(uc))},token:e,providedIn:"root"}),e}(),Sf=function(){function e(e,t){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return e.prototype.monitor=function(e,t){var n=this;if(void 0===t&&(t=!1),!this._platform.isBrowser)return xu(null);var r=this._getNativeElement(e);if(this._elementInfo.has(r)){var i=this._elementInfo.get(r);return i.checkChildren=t,i.subject.asObservable()}var o={unlisten:function(){},checkChildren:t,subject:new F};this._elementInfo.set(r,o),this._incrementMonitoredElementCount();var s=function(e){return n._onFocus(e,r)},a=function(e){return n._onBlur(e,r)};return this._ngZone.runOutsideAngular(function(){r.addEventListener("focus",s,!0),r.addEventListener("blur",a,!0)}),o.unlisten=function(){r.removeEventListener("focus",s,!0),r.removeEventListener("blur",a,!0)},o.subject.asObservable()},e.prototype.stopMonitoring=function(e){var t=this._getNativeElement(e),n=this._elementInfo.get(t);n&&(n.unlisten(),n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},e.prototype.focusVia=function(e,t,n){var r=this._getNativeElement(e);this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n)},e.prototype.ngOnDestroy=function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})},e.prototype._registerGlobalListeners=function(){var e=this;if(this._platform.isBrowser){var t=function(){e._lastTouchTarget=null,e._setOriginForCurrentEventQueue("keyboard")},n=function(){e._lastTouchTarget||e._setOriginForCurrentEventQueue("mouse")},r=function(t){null!=e._touchTimeoutId&&clearTimeout(e._touchTimeoutId),e._lastTouchTarget=t.target,e._touchTimeoutId=setTimeout(function(){return e._lastTouchTarget=null},650)},i=function(){e._windowFocused=!0,e._windowFocusTimeoutId=setTimeout(function(){return e._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",t,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!sh()||{passive:!0,capture:!0}),window.addEventListener("focus",i)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",t,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!sh()||{passive:!0,capture:!0}),window.removeEventListener("focus",i),clearTimeout(e._windowFocusTimeoutId),clearTimeout(e._touchTimeoutId),clearTimeout(e._originTimeoutId)}}},e.prototype._toggleClass=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.prototype._setClasses=function(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))},e.prototype._setOriginForCurrentEventQueue=function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,t._originTimeoutId=setTimeout(function(){return t._origin=null},1)})},e.prototype._wasCausedByTouch=function(e){var t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))},e.prototype._onFocus=function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===e.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},e.prototype._onBlur=function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))},e.prototype._emitOrigin=function(e,t){this._ngZone.run(function(){return e.next(t)})},e.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},e.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},e.prototype._getNativeElement=function(e){return e instanceof br?e.nativeElement:e},e.ngInjectableDef=Ie({factory:function(){return new e(bt(Ki),bt(nh))},token:e,providedIn:"root"}),e}(),Ef=function(){return function(){}}(),Of=new Me("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Tf=function(){function e(e,t){this._sanityChecksEnabled=e,this._hammerLoader=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return e.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&Qr()&&!this._isTestEnv()},e.prototype._isTestEnv=function(){var e=this._window;return e&&(e.__karma__||e.jasmine)},e.prototype._checkDoctypeIsDefined=function(){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.")},e.prototype._checkThemeIsPresent=function(){if(this._document&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.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(e)}},e.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(!this._areChecksEnabled()||this._window.Hammer||this._hammerLoader||console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},e}();function xf(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t)||this;return r._disabled=!1,r}return i(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=Nd(e)},enumerable:!0,configurable:!0}),t}(e)}function If(e,t){return function(e){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return i.color=t,i}return i(n,e),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(e){var n=e||t;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}(e)}function Pf(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t)||this;return r._disableRipple=!1,r}return i(t,e),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(e){this._disableRipple=Nd(e)},enumerable:!0,configurable:!0}),t}(e)}function kf(e){return function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,t)||this;return r.errorState=!1,r.stateChanges=new F,r}return i(t,e),t.prototype.updateErrorState=function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())},t}(e)}var Mf=function(){function e(){}return e.prototype.isErrorState=function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))},e.ngInjectableDef=Ie({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Af=new Me("MAT_HAMMER_OPTIONS"),Rf=["longpress","slide","slidestart","slideend","slideright","slideleft"],Nf={on:function(){},off:function(){}},Df=function(e){function t(t,n){var r=e.call(this)||this;return r._hammerOptions=t,r.events=Rf,n&&n._checkHammerIsAvailable(),r}return i(t,e),t.prototype.buildHammer=function(e){var t="undefined"!=typeof window?window.Hammer:null;if(!t)return Nf;var n=new t(e,this._hammerOptions||void 0),r=new t.Pan,i=new t.Swipe,o=new t.Press,s=this._createRecognizer(r,{event:"slide",threshold:0},i),a=this._createRecognizer(o,{event:"longpress",time:500});return r.recognizeWith(i),a.recognizeWith(s),n.add([i,o,r,s,a]),n},t.prototype._createRecognizer=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=new e.constructor(t);return n.push(e),n.forEach(function(e){return i.recognizeWith(e)}),i},t}(Hp),Lf=function(){var e={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return e[e.FADING_IN]="FADING_IN",e[e.VISIBLE]="VISIBLE",e[e.FADING_OUT]="FADING_OUT",e[e.HIDDEN]="HIDDEN",e}(),jf=function(){function e(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=Lf.HIDDEN}return e.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},e}(),Vf={enterDuration:450,exitDuration:400},Ff=800,Uf=function(){function e(e,t,n,r){var i=this;this._target=e,this._ngZone=t,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._eventOptions=!!sh()&&{passive:!0},this.onMousedown=function(e){var t=function(e){return 0===e.buttons}(e),n=i._lastTouchStartEvent&&Date.now()<i._lastTouchStartEvent+Ff;i._target.rippleDisabled||t||n||(i._isPointerDown=!0,i.fadeInRipple(e.clientX,e.clientY,i._target.rippleConfig))},this.onTouchStart=function(e){if(!i._target.rippleDisabled){i._lastTouchStartEvent=Date.now(),i._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)i.fadeInRipple(t[n].clientX,t[n].clientY,i._target.rippleConfig)}},this.onPointerUp=function(){i._isPointerDown&&(i._isPointerDown=!1,i._activeRipples.forEach(function(e){!e.config.persistent&&(e.state===Lf.VISIBLE||e.config.terminateOnPointerUp&&e.state===Lf.FADING_IN)&&e.fadeOut()}))},r.isBrowser&&(this._containerElement=n.nativeElement,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 e.prototype.fadeInRipple=function(e,t,n){var r=this;void 0===n&&(n={});var i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=o({},Vf,n.animation);n.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);var a=n.radius||function(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),i=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+i*i)}(e,t,i),l=e-i.left,u=t-i.top,c=s.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=l-a+"px",d.style.top=u-a+"px",d.style.height=2*a+"px",d.style.width=2*a+"px",d.style.backgroundColor=n.color||null,d.style.transitionDuration=c+"ms",this._containerElement.appendChild(d),window.getComputedStyle(d).getPropertyValue("opacity"),d.style.transform="scale(1)";var h=new jf(this,d,n);return h.state=Lf.FADING_IN,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this.runTimeoutOutsideZone(function(){var e=h===r._mostRecentTransientRipple;h.state=Lf.VISIBLE,n.persistent||e&&r._isPointerDown||h.fadeOut()},c),h},e.prototype.fadeOutRipple=function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,r=o({},Vf,e.config.animation);n.style.transitionDuration=r.exitDuration+"ms",n.style.opacity="0",e.state=Lf.FADING_OUT,this.runTimeoutOutsideZone(function(){e.state=Lf.HIDDEN,n.parentNode.removeChild(n)},r.exitDuration)}},e.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(e){return e.fadeOut()})},e.prototype.setupTriggerEvents=function(e){var t=this;e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){t._triggerEvents.forEach(function(n,r){return e.addEventListener(r,n,t._eventOptions)})}),this._triggerElement=e)},e.prototype.runTimeoutOutsideZone=function(e,t){void 0===t&&(t=0),this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})},e.prototype._removeTriggerEvents=function(){var e=this;this._triggerElement&&this._triggerEvents.forEach(function(t,n){e._triggerElement.removeEventListener(n,t,e._eventOptions)})},e}(),zf=new Me("mat-ripple-global-options"),Bf=function(){function e(e,t,n,r,i){this._elementRef=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Uf(this,t,e,n),"NoopAnimations"===i&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},e.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},e.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(e.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:o({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),e.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},e.prototype.launch=function(e,t,n){return void 0===t&&(t=0),"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,o({},this.rippleConfig,n)):this._rippleRenderer.fadeInRipple(0,0,o({},this.rippleConfig,e))},e}(),Hf=function(){return function(){}}(),Wf=new Me("mat-label-global-options"),Gf=fs({encapsulation:2,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}@media screen and (-ms-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+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"dialogContainer",definitions:[{type:0,name:"void, exit",styles:{type:6,styles:{opacity:0,transform:"scale(0.7)"},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{transform:"none"},offset:null},options:void 0},{type:1,expr:"* => enter",animation:{type:4,styles:{type:6,styles:{transform:"none",opacity:1},offset:null},timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => exit",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 0.2, 1)"},options:null}],options:{}}]}});function qf(e){return nl(0,[(e()(),zs(0,null,null,0))],null,null)}function Zf(e){return nl(0,[qa(402653184,1,{_portalOutlet:0}),(e()(),zs(16777216,null,null,1,null,qf)),ka(2,212992,[[1,4]],0,_d,[ar,So],{portal:[0,"portal"]},null)],function(e,t){e(t,2,0,"")},null)}function Qf(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@dialogContainer",0]],[["component","@dialogContainer.start"],["component","@dialogContainer.done"]],function(e,t,n){var r=!0;return"component:@dialogContainer.start"===t&&(r=!1!==va(e,1)._onAnimationStart(n)&&r),"component:@dialogContainer.done"===t&&(r=!1!==va(e,1)._onAnimationDone(n)&&r),r},Zf,Gf)),ka(1,49152,null,0,Vh,[br,Cf,Eo,[2,uc],Lh],null,null)],null,function(e,t){e(t,0,0,va(t,1)._id,va(t,1)._config.role,va(t,1)._config.ariaLabel?null:va(t,1)._ariaLabelledBy,va(t,1)._config.ariaLabel,va(t,1)._config.ariaDescribedBy||null,va(t,1)._state)})}var Yf,Kf=sa("mat-dialog-container",Vh,Qf,{},{},[]),Jf={},Xf=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new $f(e,this.resultSelector))},e}(),$f=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return i(t,e),t.prototype._next=function(e){this.values.push(Jf),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(X(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.values,s=this.toRespond?o[n]===Jf?--this.toRespond:this.toRespond:0;o[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},t}(ee),em=1,tm={},nm=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=(i=t.flush.bind(t,null),o=em++,tm[o]=i,Promise.resolve().then(function(){return function(e){var t=tm[e];t&&t()}(o)}),o)));var i,o},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(delete tm[n],t.scheduled=void 0)},t}(Vd),rm=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(Ud))(nm),im=new Set,om=function(){function e(e){this.platform=e,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):sm}return e.prototype.matchMedia=function(e){return this.platform.WEBKIT&&function(e){if(!im.has(e))try{Yf||((Yf=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Yf)),Yf.sheet&&(Yf.sheet.insertRule("@media "+e+" {.fx-query-test{ }}",0),im.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)},e.ngInjectableDef=Ie({factory:function(){return new e(bt(nh))},token:e,providedIn:"root"}),e}();function sm(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var am=function(){function e(e,t){this.mediaMatcher=e,this.zone=t,this._queries=new Map,this._destroySubject=new F}return e.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},e.prototype.isMatched=function(e){var t=this;return lm(Dd(e)).some(function(e){return t._registerQuery(e).mql.matches})},e.prototype.observe=function(e){var t=this;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null,r=null;return z(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&d(e[0])&&(e=e[0]),ie(e,r).lift(new Xf(n))}(lm(Dd(e)).map(function(e){return t._registerQuery(e).observable})).pipe(uf(0,rm),te(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){t.matches=t.matches||e.matches,t.breakpoints[e.query]=e.matches}),t}))},e.prototype._registerQuery=function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n,r=this.mediaMatcher.matchMedia(e),i={observable:function e(t,n,r){return r?e(t,n).pipe(te(function(e){return d(e)?r.apply(void 0,e):r(e)})):new R(function(e){var r,i=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1===t.length?t[0]:t)};try{r=t(i)}catch(o){return void e.error(o)}if(p(n))return function(){return n(i,r)}})}(function(e){r.addListener(n=function(n){return t.zone.run(function(){return e(n)})})},function(){return r.removeListener(n)}).pipe(Zd(this._destroySubject),kd(r),te(function(t){return{query:e,matches:t.matches}})),mql:r};return this._queries.set(e,i),i},e.ngInjectableDef=Ie({factory:function(){return new e(bt(om),bt(Ki))},token:e,providedIn:"root"}),e}();function lm(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var um={XSmall:"(max-width: 599px)",Small:"(min-width: 600px) and (max-width: 959px)",Medium:"(min-width: 960px) and (max-width: 1279px)",Large:"(min-width: 1280px) and (max-width: 1919px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599px) and (orientation: portrait), (max-width: 959px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"},cm=20;function dm(e){return Error('Tooltip position "'+e+'" is invalid.')}var hm=new Me("mat-tooltip-scroll-strategy");function pm(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:cm})}}var fm=new Me("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),mm=function(){function e(e,t,n,r,i,o,s,a,l,u,c){var d=this;this._overlay=e,this._elementRef=t,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=i,this._platform=o,this._ariaDescriber=s,this._focusMonitor=a,this._dir=u,this._defaultOptions=c,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this._message="",this._manualListeners=new Map,this._destroyed=new F,this._scrollStrategy=l;var h=t.nativeElement,p=h.style;o.IOS||o.ANDROID||this._manualListeners.set("mouseenter",function(){return d.show()}).set("mouseleave",function(){return d.hide()}).forEach(function(e,t){return h.addEventListener(t,e)}),"INPUT"!==h.nodeName&&"TEXTAREA"!==h.nodeName||(p.webkitUserSelect=p.userSelect=p.msUserSelect=""),h.draggable&&"none"===p.webkitUserDrag&&(p.webkitUserDrag=""),a.monitor(t).pipe(Zd(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&i.run(function(){return d.show()}):i.run(function(){return d.hide(0)})})}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=Nd(e),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._message},set:function(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=e?(""+e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ariaDescriber.describe(this._elementRef.nativeElement,this.message))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){var e=this;this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._platform.IOS||(this._manualListeners.forEach(function(t,n){return e._elementRef.nativeElement.removeEventListener(n,t)}),this._manualListeners.clear()),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.message),this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.show=function(e){var t=this;if(void 0===e&&(e=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 gd(gm,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Zd(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}},e.prototype.hide=function(e){void 0===e&&(e=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(e)},e.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},e.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},e.prototype._handleKeydown=function(e){this._isTooltipVisible()&&e.keyCode===Sd&&(e.stopPropagation(),this.hide(0))},e.prototype._handleTouchend=function(){this.hide(this._defaultOptions.touchendHideDelay)},e.prototype._createOverlay=function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8),n=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef);return t.withScrollableContainers(n),t.positionChanges.pipe(Zd(this._destroyed)).subscribe(function(t){e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Zd(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef},e.prototype._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null},e.prototype._updatePosition=function(){var e=this._overlayRef.getConfig().positionStrategy,t=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([o({},t.main,n.main),o({},t.fallback,n.fallback)])},e.prototype._getOrigin=function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)e={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&t||"right"==n&&!t)e={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&t||"left"==n&&!t))throw dm(n);e={originX:"end",originY:"center"}}var r=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:r.x,originY:r.y}}},e.prototype._getOverlayPosition=function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)e={overlayX:"center",overlayY:"bottom"};else if("below"==n)e={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&t||"right"==n&&!t)e={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&t||"left"==n&&!t))throw dm(n);e={overlayX:"start",overlayY:"center"}}var r=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:r.x,overlayY:r.y}}},e.prototype._updateTooltipMessage=function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Td(1),Zd(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))},e.prototype._setTooltipClass=function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())},e.prototype._invertPosition=function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}},e}(),gm=function(){function e(e,t){this._changeDetectorRef=e,this._breakpointObserver=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new F,this._isHandset=this._breakpointObserver.observe(um.Handset)}return e.prototype.show=function(e){var t=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=null,t._markForCheck()},e)},e.prototype.hide=function(e){var t=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=null,t._markForCheck()},e)},e.prototype.afterHidden=function(){return this._onHide.asObservable()},e.prototype.isVisible=function(){return"visible"===this._visibility},e.prototype._animationStart=function(){this._closeOnInteraction=!1},e.prototype._animationDone=function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)},e.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},e.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},e}(),vm=function(){return function(){}}(),ym=function(){function e(){}return e.prototype.create=function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)},e.ngInjectableDef=Ie({factory:function(){return new e},token:e,providedIn:"root"}),e}(),bm=function(){function e(e){this._mutationObserverFactory=e,this._observedElements=new Map}return e.prototype.ngOnDestroy=function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})},e.prototype.observe=function(e){var t=this,n=e instanceof br?e.nativeElement:e;return R.create(function(e){var r=t._observeElement(n).subscribe(e);return function(){r.unsubscribe(),t._unobserveElement(n)}})},e.prototype._observeElement=function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new F,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream},e.prototype._unobserveElement=function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))},e.prototype._cleanupObserver=function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,r=t.stream;n&&n.disconnect(),r.complete(),this._observedElements.delete(e)}},e.ngInjectableDef=Ie({factory:function(){return new e(bt(ym))},token:e,providedIn:"root"}),e}(),_m=function(){function e(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new Wr,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=Nd(e),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"debounce",{get:function(){return this._debounce},set:function(e){this._debounce=function(e,t){return void 0===t&&(t=0),function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}(e),this._subscribe()},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},e.prototype.ngOnDestroy=function(){this._unsubscribe()},e.prototype._subscribe=function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(uf(e.debounce)):t).subscribe(e.event)})},e.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},e}(),wm=function(){return function(){}}(),Cm=fs({encapsulation:2,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}@media screen and (-ms-high-contrast:active){.mat-tooltip{outline:solid 1px}}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"initial, void, hidden",styles:{type:6,styles:{opacity:0,transform:"scale(0)"},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)"},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:0,transform:"scale(0)",offset:0},offset:null},{type:6,styles:{opacity:.5,transform:"scale(0.99)",offset:.5},offset:null},{type:6,styles:{opacity:1,transform:"scale(1)",offset:1},offset:null}]},timings:"200ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms cubic-bezier(0, 0, 0.2, 1)"},options:null}],options:{}}]}});function Sm(e){return nl(2,[(e()(),Bs(0,0,null,null,3,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],function(e,t,n){var r=!0,i=e.component;return"@state.start"===t&&(r=!1!==i._animationStart()&&r),"@state.done"===t&&(r=!1!==i._animationDone(n)&&r),r},null,null)),ka(1,278528,null,0,Qu,[zo,Bo,br,Sr],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t=131072,n=ac,r=[Eo],Aa(-1,t|=16,null,0,n,n,r)),(e()(),$a(3,null,["",""]))],function(e,t){e(t,1,0,"mat-tooltip",t.component.tooltipClass)},function(e,t){var n,r=t.component;e(t,0,0,null==(n=function(e,t,n,r){if(Ut.isWrapped(r)){r=Ut.unwrap(r);var i=e.def.nodes[0].bindingIndex+0,o=Ut.unwrap(e.oldValues[i]);e.oldValues[i]=new Ut(o)}return r}(t,0,0,va(t,2).transform(r._isHandset)))?null:n.matches,r._visibility),e(t,3,0,r.message)});var t,n,r}function Em(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(e,t,n){var r=!0;return"body:click"===t&&(r=!1!==va(e,1)._handleBodyInteraction()&&r),r},Sm,Cm)),ka(1,49152,null,0,gm,[Eo,am],null,null)],null,function(e,t){e(t,0,0,"visible"===va(t,1)._visibility?1:null)})}var Om=sa("mat-tooltip-component",gm,Em,{},{},[]),Tm=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new L;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(F);function xm(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}xm.prototype=Object.create(Error.prototype);var Im=xm;function Pm(e){return function(t){return 0===e?Ou():t.lift(new km(e))}}var km=function(){function e(e){if(this.total=e,this.total<0)throw new Od}return e.prototype.call=function(e,t){return t.subscribe(new Mm(e,this.total))},e}(),Mm=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return i(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()},t}(x),Am=function(e){return void 0===e&&(e=Rm),sf({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function Rm(){return new Im}function Nm(e){return void 0===e&&(e=null),function(t){return t.lift(new Dm(e))}}var Dm=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new Lm(e,this.defaultValue))},e}(),Lm=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return i(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(x);function jm(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Pu(function(t,n){return e(t,n,r)}):ce,Pm(1),n?Nm(t):Am(function(){return new Im}))}}function Vm(e,t){return function(n){return n.lift(new Fm(e,t,n))}}var Fm=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Um(e,this.predicate,this.thisArg,this.source))},e}(),Um=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return i(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(x);function zm(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Pu(function(t,n){return e(t,n,r)}):ce,Td(1),n?Nm(t):Am(function(){return new Im}))}}function Bm(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Hm(e,t,n))}}var Hm=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Wm(e,this.accumulator,this.seed,this.hasSeed))},e}(),Wm=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return i(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)},t}(x);function Gm(e){return function(t){return t.lift(new qm(e))}}var qm=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new Zm(e,this.callback))},e}(),Zm=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new _(n)),r}return i(t,e),t}(x),Qm=function(){return function(e,t){this.id=e,this.url=t}}(),Ym=function(e){function t(t,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=e.call(this,t,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return i(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(Qm),Km=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=r,i}return i(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(Qm),Jm=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.reason=r,i}return i(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(Qm),Xm=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.error=r,i}return i(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(Qm),$m=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Qm),eg=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Qm),tg=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n)||this;return s.urlAfterRedirects=r,s.state=i,s.shouldActivate=o,s}return i(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(Qm),ng=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Qm),rg=function(e){function t(t,n,r,i){var o=e.call(this,t,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(Qm),ig=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),og=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),sg=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),ag=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),lg=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),ug=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),cg=function(){function e(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}return e.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},e}(),dg=function(){return function(){}}(),hg="primary",pg=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function fg(e){return new pg(e)}function mg(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=e[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}var gg=function(){return function(e,t){this.routes=e,this.module=t}}();function vg(e,t){void 0===t&&(t="");for(var n=0;n<e.length;n++){var r=e[n];yg(r,bg(t,r))}}function yg(e,t){if(!e)throw new Error("\n Invalid configuration of route '"+t+"': 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(e))throw new Error("Invalid configuration of route '"+t+"': Array cannot be specified");if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==hg)throw new Error("Invalid configuration of route '"+t+"': a componentless route without children or loadChildren cannot have a named outlet set");if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '"+t+"': redirectTo and children cannot be used together");if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': redirectTo and loadChildren cannot be used together");if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': children and loadChildren cannot be used together");if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '"+t+"': redirectTo and component cannot be used together");if(e.path&&e.matcher)throw new Error("Invalid configuration of route '"+t+"': path and matcher cannot be used together");if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '"+t+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '"+t+"': routes must have either a path or a matcher specified");if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '"+t+"': path cannot start with a slash");if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \""+t+'", redirectTo: "'+e.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '"+t+"': pathMatch can only be set to 'prefix' or 'full'");e.children&&vg(e.children,t)}function bg(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:e+"/"+t.path:"":e}function _g(e){var t=e.children&&e.children.map(_g),n=t?o({},e,{children:t}):o({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==hg&&(n.component=dg),n}function wg(e,t){var n,r=Object.keys(e),i=Object.keys(t);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(e[n=r[o]]!==t[n])return!1;return!0}function Cg(e){return Array.prototype.concat.apply([],e)}function Sg(e){return e.length>0?e[e.length-1]:null}function Eg(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Og(e){return e.pipe(de(),Vm(function(e){return!0===e}))}function Tg(e){return ki(e)?e:Pi(e)?oe(Promise.resolve(e)):xu(e)}function xg(e,t,n){return n?function(e,t){return wg(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Mg(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!Mg(s=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Mg(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var s=i.slice(0,n.segments.length),a=i.slice(n.segments.length);return!!Mg(n.segments,s)&&!!n.children[hg]&&t(n.children[hg],r,a)}(t,n,n.segments)}(e.root,t.root)}var Ig=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=fg(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Dg.serialize(this)},e}(),Pg=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,Eg(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Lg(this)},e}(),kg=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=fg(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Bg(this)},e}();function Mg(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Ag(e,t){var n=[];return Eg(e.children,function(e,r){r===hg&&(n=n.concat(t(e,r)))}),Eg(e.children,function(e,r){r!==hg&&(n=n.concat(t(e,r)))}),n}var Rg=function(){return function(){}}(),Ng=function(){function e(){}return e.prototype.parse=function(e){var t=new Zg(e);return new Ig(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return Lg(t);if(n){var r=t.children[hg]?e(t.children[hg],!1):"",i=[];return Eg(t.children,function(t,n){n!==hg&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=Ag(t,function(n,r){return r===hg?[e(t.children[hg],!1)]:[r+":"+e(n,!1)]});return Lg(t)+"/("+o.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Vg(e)+"="+Vg(t)}).join("&"):Vg(e)+"="+Vg(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),Dg=new Ng;function Lg(e){return e.segments.map(function(e){return Bg(e)}).join("/")}function jg(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vg(e){return jg(e).replace(/%3B/gi,";")}function Fg(e){return jg(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ug(e){return decodeURIComponent(e)}function zg(e){return Ug(e.replace(/\+/g,"%20"))}function Bg(e){return""+Fg(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+Fg(e)+"="+Fg(t[e])}).join(""));var t}var Hg=/^[^\/()?;=#]+/;function Wg(e){var t=e.match(Hg);return t?t[0]:""}var Gg=/^[^=?&#]+/,qg=/^[^?&#]+/,Zg=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pg([],{}):new Pg([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[hg]=new Pg(e,t)),n},e.prototype.parseSegment=function(){var e=Wg(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new kg(Ug(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=Wg(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Wg(this.remaining);r&&this.capture(n=r)}e[Ug(t)]=Ug(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(Gg))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(qg);return t?t[0]:""}(this.remaining);i&&this.capture(r=i)}var o=zg(n),s=zg(r);if(e.hasOwnProperty(o)){var a=e[o];Array.isArray(a)||(e[o]=a=[a]),a.push(s)}else e[o]=s}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Wg(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=hg);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[hg]:new Pg([],o),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Qg=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Yg(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Yg(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Kg(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Kg(e,this._root).map(function(e){return e.value})},e}();function Yg(e,t){var n,r;if(e===t.value)return t;try{for(var i=l(t.children),o=i.next();!o.done;o=i.next()){var s=Yg(e,o.value);if(s)return s}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function Kg(e,t){var n,r;if(e===t.value)return[t];try{for(var i=l(t.children),o=i.next();!o.done;o=i.next()){var s=Kg(e,o.value);if(s.length)return s.unshift(t),s}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var Jg=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function Xg(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var $g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,ov(r,t),r}return i(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Qg);function ev(e,t){var n=function(e,t){var n=new rv([],{},{},"",{},hg,t,null,e.root,-1,{});return new iv("",new Jg(n,[]))}(e,t),r=new Tm([new kg("",{})]),i=new Tm({}),o=new Tm({}),s=new Tm({}),a=new Tm(""),l=new tv(r,i,s,a,o,hg,t,n.root);return l.snapshot=n.root,new $g(new Jg(l,[]),n)}var tv=function(){function e(e,t,n,r,i,o,s,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(te(function(e){return fg(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(te(function(e){return fg(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function nv(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],s=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:o({},e.params,t.params),data:o({},e.data,t.data),resolve:o({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var rv=function(){function e(e,t,n,r,i,o,s,a,l,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=fg(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=fg(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),iv=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,ov(r,n),r}return i(t,e),t.prototype.toString=function(){return sv(this._root)},t}(Qg);function ov(e,t){t.value._routerState=e,t.children.forEach(function(t){return ov(e,t)})}function sv(e){var t=e.children.length>0?" { "+e.children.map(sv).join(", ")+" } ":"";return""+e.value+t}function av(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,wg(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),wg(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!wg(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),wg(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function lv(e,t){var n,r;return wg(e.params,t.params)&&Mg(n=e.url,r=t.url)&&n.every(function(e,t){return wg(e.parameters,r[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||lv(e.parent,t.parent))}function uv(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function cv(e,t,n,r,i){var o={};return r&&Eg(r,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),new Ig(n.root===e?t:function e(t,n,r){var i={};return Eg(t.children,function(t,o){i[o]=t===n?r:e(t,n,r)}),new Pg(t.segments,i)}(n.root,e,t),o,i)}var dv=function(){function e(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&uv(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==Sg(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),hv=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function pv(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[hg]:""+e}function fv(e,t,n){if(e||(e=new Pg([],{})),0===e.segments.length&&e.hasChildren())return mv(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return o;var s=e.segments[i],a=pv(n[r]),l=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!bv(a,l,s))return o;r+=2}else{if(!bv(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new Pg(e.segments.slice(0,r.pathIndex),{});return o.children[hg]=new Pg(e.segments.slice(r.pathIndex),e.children),mv(o,0,i)}return r.match&&0===i.length?new Pg(e.segments,{}):r.match&&!e.hasChildren()?gv(e,t,n):r.match?mv(e,0,i):gv(e,t,n)}function mv(e,t,n){if(0===n.length)return new Pg(e.segments,{});var r=function(e){var t,n;return"object"!=typeof e[0]?((t={})[hg]=e,t):void 0===e[0].outlets?((n={})[hg]=e,n):e[0].outlets}(n),i={};return Eg(r,function(n,r){null!==n&&(i[r]=fv(e.children[r],t,n))}),Eg(e.children,function(e,t){void 0===r[t]&&(i[t]=e)}),new Pg(e.segments,i)}function gv(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=vv(n[i].outlets);return new Pg(r,o)}if(0===i&&uv(n[0]))r.push(new kg(e.segments[t].path,n[0])),i++;else{var s=pv(n[i]),a=i<n.length-1?n[i+1]:null;s&&a&&uv(a)?(r.push(new kg(s,yv(a))),i+=2):(r.push(new kg(s,{})),i++)}}return new Pg(r,{})}function vv(e){var t={};return Eg(e,function(e,n){null!==e&&(t[n]=gv(new Pg([],{}),0,e))}),t}function yv(e){var t={};return Eg(e,function(e,n){return t[n]=""+e}),t}function bv(e,t,n){return e==n.path&&wg(t,n.parameters)}var _v=function(){function e(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}return e.prototype.activate=function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),av(this.futureState.root),this.activateChildRoutes(t,n,e)},e.prototype.deactivateChildRoutes=function(e,t,n){var r=this,i=Xg(t);e.children.forEach(function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]}),Eg(i,function(e,t){r.deactivateRouteAndItsChildren(e,n)})},e.prototype.deactivateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)},e.prototype.deactivateRouteAndItsChildren=function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)},e.prototype.detachAndStoreRouteSubtree=function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}},e.prototype.deactivateRouteAndOutlet=function(e,t){var n=this,r=t.getContext(e.value.outlet);if(r){var i=Xg(e),o=e.value.component?r.children:t;Eg(i,function(e,t){return n.deactivateRouteAndItsChildren(e,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},e.prototype.activateChildRoutes=function(e,t,n){var r=this,i=Xg(t);e.children.forEach(function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new ug(e.value.snapshot))}),e.children.length&&this.forwardEvent(new ag(e.value.snapshot))},e.prototype.activateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(av(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component)if(o=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),wv(s.route)}else{var a=function(e){for(var t=r.snapshot.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(e,null,o.children)}else this.activateChildRoutes(e,null,n)},e}();function wv(e){av(e.value),e.children.forEach(wv)}var Cv=function(){return function(e){this.segmentGroup=e||null}}(),Sv=function(){return function(e){this.urlTree=e}}();function Ev(e){return new R(function(t){return t.error(new Cv(e))})}function Ov(e){return new R(function(t){return t.error(new Sv(e))})}function Tv(e){return new R(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var xv=function(){function e(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(cr)}return e.prototype.apply=function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,hg).pipe(te(function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Qc(function(t){if(t instanceof Sv)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Cv)throw e.noMatchError(t);throw t}))},e.prototype.match=function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,hg).pipe(te(function(n){return t.createUrlTree(n,e.queryParams,e.fragment)})).pipe(Qc(function(e){if(e instanceof Cv)throw t.noMatchError(e);throw e}))},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r,i=e.segments.length>0?new Pg([],((r={})[hg]=e,r)):e;return new Ig(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(te(function(e){return new Pg([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return xu({});var o=[],s=[],a={};return Eg(n,function(n,i){var l,u,c=(l=i,u=n,r.expandSegmentGroup(e,t,u,l)).pipe(te(function(e){return a[i]=e}));i===hg?o.push(c):s.push(c)}),xu.apply(null,o.concat(s)).pipe(Pd(),jm(),te(function(){return a}))}(n.children)},e.prototype.expandSegment=function(e,t,n,r,i,o){var s=this;return xu.apply(void 0,c(n)).pipe(te(function(a){return s.expandSegmentAgainstRoute(e,t,n,a,r,i,o).pipe(Qc(function(e){if(e instanceof Cv)return xu(null);throw e}))}),Pd(),zm(function(e){return!!e}),Qc(function(e,n){if(e instanceof Im||"EmptyError"===e.name){if(s.noLeftoversInUrl(t,r,i))return xu(new Pg([],{}));throw new Cv(t)}throw e}))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,s){return Mv(r)!==o?Ev(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):Ev(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ov(o):this.lineralizeSegments(n,o).pipe(se(function(n){var o=new Pg(n,{});return i.expandSegment(e,o,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var s=this,a=Iv(t,r,i),l=a.consumedSegments,u=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Ev(t);var d=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?Ov(d):this.lineralizeSegments(r,d).pipe(se(function(r){return s.expandSegment(e,t,n,r.concat(i.slice(u)),o,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(te(function(e){return n._loadedConfig=e,new Pg(r,{})})):xu(new Pg(r,{}));var s=Iv(t,n,r),a=s.consumedSegments,u=s.lastChild;if(!s.matched)return Ev(t);var c=r.slice(u);return this.getChildConfig(e,n,r).pipe(se(function(e){var n=e.module,r=e.routes,s=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(function(n){return kv(e,t,n)&&Mv(n)!==hg})}(e,n)?{segmentGroup:Pv(new Pg(t,function(e,t){var n,r,i={};i[hg]=t;try{for(var o=l(e),s=o.next();!s.done;s=o.next()){var a=s.value;""===a.path&&Mv(a)!==hg&&(i[Mv(a)]=new Pg([],{}))}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new Pg(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(function(n){return kv(e,t,n)})}(e,n)?{segmentGroup:Pv(new Pg(e.segments,function(e,t,n,r){var i,s,a={};try{for(var u=l(n),c=u.next();!c.done;c=u.next()){var d=c.value;kv(e,t,d)&&!r[Mv(d)]&&(a[Mv(d)]=new Pg([],{}))}}catch(h){i={error:h}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return o({},r,a)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,a,c,r),u=s.segmentGroup,d=s.slicedSegments;return 0===d.length&&u.hasChildren()?i.expandChildren(n,r,u).pipe(te(function(e){return new Pg(a,e)})):0===r.length&&0===d.length?xu(new Pg(a,{})):i.expandSegment(n,u,r,d,hg,!0).pipe(te(function(e){return new Pg(a.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t,n){var r=this;return t.children?xu(new gg(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?xu(t._loadedConfig):function(e,t,n){var r=t.canLoad;return r&&0!==r.length?Og(oe(r).pipe(te(function(r){var i=e.get(r);return Tg(i.canLoad?i.canLoad(t,n):i(t,n))}))):xu(!0)}(e.injector,t,n).pipe(se(function(n){return n?r.configLoader.load(e.injector,t).pipe(te(function(e){return t._loadedConfig=e,e})):function(e){return new R(function(t){return t.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(t)})):xu(new gg([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return xu(n);if(r.numberOfChildren>1||!r.children[hg])return Tv(e.redirectTo);r=r.children[hg]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Ig(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return Eg(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),s={};return Eg(t.children,function(t,o){s[o]=i.createSegmentGroup(e,t,n,r)}),new Pg(o,s)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){var n,r,i=0;try{for(var o=l(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},e}();function Iv(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||mg)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Pv(e){if(1===e.numberOfChildren&&e.children[hg]){var t=e.children[hg];return new Pg(e.segments.concat(t.segments),t.children)}return e}function kv(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Mv(e){return e.outlet||hg}var Av=function(){return function(e){this.path=e,this.route=this.path[this.path.length-1]}}(),Rv=function(){return function(e,t){this.component=e,this.route=t}}();function Nv(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Dv(e,t,n){var r=Xg(e),i=e.value;Eg(r,function(e,r){Dv(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Rv(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var Lv=function(){return function(){}}(),jv=function(){function e(e,t,n,r,i,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return e.prototype.recognize=function(){try{var e=Uv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,hg),n=new rv([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},hg,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Jg(n,t),i=new iv(this.url,r);return this.inheritParamsAndData(i._root),xu(i)}catch(s){return new R(function(e){return e.error(s)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=nv(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,i=Ag(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[e.value.outlet]=e.value}),i.sort(function(e,t){return e.value.outlet===hg?-1:t.value.outlet===hg?1:e.value.outlet.localeCompare(t.value.outlet)}),i},e.prototype.processSegment=function(e,t,n,r){var i,o;try{for(var s=l(e),a=s.next();!a.done;a=s.next()){var u=a.value;try{return this.processSegmentAgainstRoute(u,t,n,r)}catch(c){if(!(c instanceof Lv))throw c}}}catch(d){i={error:d}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(t,n,r))return[];throw new Lv},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,r){if(e.redirectTo)throw new Lv;if((e.outlet||hg)!==r)throw new Lv;var i,s=[],a=[];if("**"===e.path){var l=n.length>0?Sg(n).parameters:{};i=new rv(n,l,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Hv(e),r,e.component,e,Vv(t),Fv(t)+n.length,Wv(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Lv;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||mg)(n,e,t);if(!r)throw new Lv;var i={};Eg(r.posParams,function(e,t){i[t]=e.path});var s=r.consumed.length>0?o({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=u.consumedSegments,a=n.slice(u.lastChild),i=new rv(s,u.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Hv(e),r,e.component,e,Vv(t),Fv(t)+s.length,Wv(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),d=Uv(t,s,a,c,this.relativeLinkResolution),h=d.segmentGroup,p=d.slicedSegments;if(0===p.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new Jg(i,f)]}if(0===c.length&&0===p.length)return[new Jg(i,[])];var m=this.processSegment(c,h,p,hg);return[new Jg(i,m)]},e}();function Vv(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Fv(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Uv(e,t,n,r,i){if(n.length>0&&function(e,t,n){return r.some(function(n){return zv(e,t,n)&&Bv(n)!==hg})}(e,n)){var s=new Pg(t,function(e,t,n,r){var i,o,s={};s[hg]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;try{for(var a=l(n),u=a.next();!u.done;u=a.next()){var c=u.value;if(""===c.path&&Bv(c)!==hg){var d=new Pg([],{});d._sourceSegment=e,d._segmentIndexShift=t.length,s[Bv(c)]=d}}}catch(h){i={error:h}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}(e,t,r,new Pg(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(function(n){return zv(e,t,n)})}(e,n)){var a=new Pg(e.segments,function(e,t,n,r,i,s){var a,u,c={};try{for(var d=l(r),h=d.next();!h.done;h=d.next()){var p=h.value;if(zv(e,n,p)&&!i[Bv(p)]){var f=new Pg([],{});f._sourceSegment=e,f._segmentIndexShift="legacy"===s?e.segments.length:t.length,c[Bv(p)]=f}}}catch(m){a={error:m}}finally{try{h&&!h.done&&(u=d.return)&&u.call(d)}finally{if(a)throw a.error}}return o({},i,c)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var u=new Pg(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function zv(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Bv(e){return e.outlet||hg}function Hv(e){return e.data||{}}function Wv(e){return e.resolve||{}}function Gv(e,t,n,r){var i=Nv(e,t,r);return Tg(i.resolve?i.resolve(t,n):i(t,n))}function qv(e){return function(t){return t.pipe(Kd(function(t){var n=e(t);return n?oe(n).pipe(te(function(){return t})):oe([t])}))}}var Zv=function(){return function(){}}(),Qv=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),Yv=new Me("ROUTES"),Kv=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(te(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new gg(Cg(i.injector.get(Yv)).map(_g),i)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?oe(this.loader.load(e)):Tg(e()).pipe(se(function(e){return e instanceof dr?xu(e):oe(t.compiler.compileModuleAsync(e))}))},e}(),Jv=function(){return function(){}}(),Xv=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function $v(e){throw e}function ey(e,t,n){return t.parse("/")}function ty(e,t){return xu(null)}var ny=function(){function e(e,t,n,r,i,o,s,a){var l=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new F,this.errorHandler=$v,this.malformedUriErrorHandler=ey,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ty,afterPreactivation:ty},this.urlHandlingStrategy=new Xv,this.routeReuseStrategy=new Qv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(cr),this.console=i.get(Fi);var u=i.get(Ki);this.isNgZoneEnabled=u instanceof Ki,this.resetConfig(a),this.currentUrlTree=new Ig(new Pg([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Kv(o,s,function(e){return l.triggerEvent(new ig(e))},function(e){return l.triggerEvent(new og(e))}),this.routerState=ev(this.currentUrlTree,this.rootComponentType),this.transitions=new Tm({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",state: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 e.prototype.setupNavigations=function(e){var t=this,n=this.events;return e.pipe(Pu(function(e){return 0!==e.id}),te(function(e){return o({},e,{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Kd(function(e){var r,i,s,a=!1,u=!1;return xu(e).pipe(Kd(function(e){var r,i,s,a,l=!t.navigated||e.extractedUrl.toString()!==t.currentUrlTree.toString();if(("reload"===t.onSameUrlNavigation||l)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return xu(e).pipe(sf(function(e){return"eager"===t.urlUpdateStrategy&&!e.extras.skipLocationChange&&t.setBrowserUrl(e.rawUrl,!!e.extras.replaceUrl,e.id)}),Kd(function(e){var r=t.transitions.getValue();return n.next(new Ym(e.id,t.serializeUrl(e.extractedUrl),e.source,e.state)),r!==t.transitions.getValue()?Eu:[e]}),Kd(function(e){return Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,s=t.urlSerializer,a=t.config,function(e){return e.pipe(Kd(function(e){return function(t,n,r,i,o){return new xv(t,n,r,e.extractedUrl,o).apply()}(r,i,s,0,a).pipe(te(function(t){return o({},e,{urlAfterRedirects:t})}))}))}),function(e,n,r,i){return function(r){return r.pipe(se(function(r){return function(e,t,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new jv(e,t,n,r,i,o).recognize()}(e,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,t.serializeUrl(s)),i).pipe(te(function(e){return o({},r,{targetSnapshot:e})}));var s}))}}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy),sf(function(e){var r=new $m(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(l&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.extractedUrl,c=e.source,d=e.state,h=e.extras,p=new Ym(e.id,t.serializeUrl(u),c,d);n.next(p);var f=ev(u,t.rootComponentType).snapshot;return xu(o({},e,{targetSnapshot:f,urlAfterRedirects:u,extras:o({},h,{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,e.resolve(null),Eu}),qv(function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),sf(function(e){var n=new eg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),te(function(e){return o({},e,{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,s=n._root,function e(t,n,r,i,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var s=Xg(n);return t.children.forEach(function(t){!function(t,n,r,i,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var s=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){var u=function(e,t,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!lv(e,t)||!wg(e.queryParams,t.queryParams);case"paramsChange":default:return!lv(e,t)}}(a,s,s.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Av(i)):(s.data=a.data,s._resolvedData=a._resolvedData),e(t,n,s.component?l?l.children:null:r,i,o),u&&o.canDeactivateChecks.push(new Rv(l.outlet.component,a))}else a&&Dv(n,l,o),o.canActivateChecks.push(new Av(i)),e(t,null,s.component?l?l.children:null:r,i,o)}(t,s[t.value.outlet],r,i.concat([t.value]),o),delete s[t.value.outlet]}),Eg(s,function(e,t){return Dv(e,r.getContext(t),o)}),o}(s,r?r._root:null,i,[s.value]))});var n,r,i,s}),function(e,t){return function(n){return n.pipe(se(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,s=n.guards,a=s.canActivateChecks,l=s.canDeactivateChecks;return 0===l.length&&0===a.length?xu(o({},n,{guardsResult:!0})):function(e,t,n,r){return oe(l).pipe(se(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?oe(o).pipe(se(function(o){var s=Nv(o,t,i);return Tg(s.canDeactivate?s.canDeactivate(e,t,n,r):s(e,t,n,r)).pipe(zm())})).pipe(Vm(function(e){return!0===e})):xu(!0)}(e.component,e.route,n,t,r)}),Vm(function(e){return!0===e}))}(0,r,i,e).pipe(se(function(n){return n?function(e,t,n,r){return oe(a).pipe(Iu(function(t){return Og(oe([function(e,t){return null!==e&&t&&t(new sg(e)),xu(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new lg(e)),xu(!0)}(t.route,r),function(e,t,n){var r=t[t.length-1];return Og(oe(t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e})).pipe(te(function(t){return Og(oe(t.guards).pipe(te(function(i){var o=Nv(i,t.node,n);return Tg(o.canActivateChild?o.canActivateChild(r,e):o(r,e)).pipe(zm())})))})))}(e,t.path,n),function(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Og(oe(r).pipe(te(function(r){var i=Nv(r,t,n);return Tg(i.canActivate?i.canActivate(t,e):i(t,e)).pipe(zm())}))):xu(!0)}(e,t.route,n)]))}),Vm(function(e){return!0===e}))}(r,0,e,t):xu(!1)}),te(function(e){return o({},n,{guardsResult:e})}))}))}}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),sf(function(e){var n=new tg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(n)}),Pu(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Jm(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),qv(function(e){if(e.guards.canActivateChecks.length)return xu(e).pipe(sf(function(e){var n=new ng(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(n=t.paramsInheritanceStrategy,r=t.ngModule.injector,function(e){return e.pipe(se(function(e){var t=e.targetSnapshot,i=e.guards.canActivateChecks;return i.length?oe(i).pipe(Iu(function(e){return function(e,n,r,i){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return xu({});if(1===i.length){var o=i[0];return Gv(e[o],t,n,r).pipe(te(function(e){var t;return(t={})[o]=e,t}))}var s={};return oe(i).pipe(se(function(i){return Gv(e[i],t,n,r).pipe(te(function(e){return s[i]=e,e}))})).pipe(jm(),te(function(){return s}))}(e._resolve,e,t,i).pipe(te(function(t){return e._resolvedData=t,e.data=o({},e.data,nv(e,r).resolve),null}))}(e.route,0,n,r)}),function(e,t){return arguments.length>=2?function(t){return M(Bm(e,void 0),Pm(1),Nm(void 0))(t)}:function(t){return M(Bm(function(t,n,r){return e(t)}),Pm(1))(t)}}(function(e,t){return e}),te(function(t){return e})):xu(e)}))}),sf(function(e){var n=new rg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}));var n,r}),qv(function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),te(function(e){var n,r,i,s=(i=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){(u=r.value)._futureSnapshot=n.value;var i=function(t,n,r){return n.children.map(function(n){var i,o;try{for(var s=l(r.children),a=s.next();!a.done;a=s.next()){var u=a.value;if(t.shouldReuseRoute(u.value.snapshot,n.value))return e(t,n,u)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return e(t,n)})}(t,n,r);return new Jg(u,i)}var o=t.retrieve(n.value);if(o){var s=o.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,s),s}var a,u=new tv(new Tm((a=n.value).url),new Tm(a.params),new Tm(a.queryParams),new Tm(a.fragment),new Tm(a.data),a.outlet,a.component,a);return i=n.children.map(function(n){return e(t,n)}),new Jg(u,i)}(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(r=e.currentRouterState)?r._root:void 0),new $g(i,n));return o({},e,{targetRouterState:s})}),sf(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"!==t.urlUpdateStrategy||e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id)}),(r=t.rootContexts,i=t.routeReuseStrategy,s=function(e){return t.triggerEvent(e)},te(function(e){return new _v(i,e.targetRouterState,e.currentRouterState,s).activate(r),e})),sf({next:function(){a=!0},complete:function(){a=!0}}),Gm(function(){if(!a&&!u){t.resetUrlToCurrentUrlTree();var r=new Jm(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID "+e.id+" is not equal to the current navigation id "+t.navigationId);n.next(r),e.resolve(!1)}}),Qc(function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var i=new Jm(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(i),e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new Xm(e.id,t.serializeUrl(e.extractedUrl),r);n.next(o);try{e.resolve(t.errorHandler(r))}catch(a){e.reject(a)}}var s;return Eu}))}))},e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.getTransition=function(){return this.transitions.value},e.prototype.setTransition=function(e){this.transitions.next(o({},this.getTransition(),e))},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.parseUrl(t.url),r="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?{navigationId:t.state.navigationId}:null;setTimeout(function(){e.scheduleNavigation(n,r,i,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){vg(e),this.config=e.map(_g),this.navigated=!1,this.lastSuccessfulId=-1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,r=t.queryParams,i=t.fragment,s=t.preserveQueryParams,a=t.queryParamsHandling,l=t.preserveFragment;Qr()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,d=l?this.currentUrlTree.fragment:i,h=null;if(a)switch(a){case"merge":h=o({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=s?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(e,t,n,r,i){if(0===n.length)return cv(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new dv(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return Eg(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),c(e,[{outlets:o}])}if(r.segmentPath)return c(e,[r.segmentPath])}return"string"!=typeof r?c(e,[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):c(e,[r])},[]);return new dv(n,t,r)}(n);if(o.toRoot())return cv(t.root,new Pg([],{}),t,r,i);var s=function(e,n,r){if(e.isAbsolute)return new hv(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new hv(r.snapshot._urlSegment,!0,0);var i=uv(e.commands[0])?0:1;return function(t,n,o){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+i,l=e.numberOfDoubleDots;l>a;){if(l-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new hv(s,!1,a-l)}()}(o,0,e),a=s.processChildren?mv(s.segmentGroup,s.index,o.commands):fv(s.segmentGroup,s.index,o.commands);return cv(s.segmentGroup,a,t,r,i)}(u,this.currentUrlTree,e,h,d)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1}),Qr()&&this.isNgZoneEnabled&&!Ki.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=e instanceof Ig?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+t)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)},e.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},e.prototype.parseUrl=function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t},e.prototype.isActive=function(e,t){if(e instanceof Ig)return xg(this.currentUrlTree,e,t);var n=this.parseUrl(e);return xg(this.currentUrlTree,n,t)},e.prototype.removeEmptyProps=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})},e.prototype.processNavigations=function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new Km(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})},e.prototype.scheduleNavigation=function(e,t,n,r){var i=this.getTransition();if(i&&"imperative"!==t&&"imperative"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"hashchange"==t&&"popstate"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"popstate"==t&&"hashchange"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);var o=null,s=null,a=new Promise(function(e,t){o=e,s=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,state:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:o,reject:s,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(function(e){return Promise.reject(e)})},e.prototype.setBrowserUrl=function(e,t,n){var r=this.urlSerializer.serialize(e);this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",{navigationId:n}):this.location.go(r,"",{navigationId:n})},e.prototype.resetStateAndUrl=function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},e.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},e}(),ry=function(){function e(e,t,n){var r=this;this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof Km&&r.updateTargetUrlAndHref()})}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){Qr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onClick=function(e,t,n,r){if(0!==e||t||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:iy(this.skipLocationChange),replaceUrl:iy(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},e.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:iy(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:iy(this.preserveFragment)})},enumerable:!0,configurable:!0}),s([_i("attr.target"),bi(),a("design:type",String)],e.prototype,"target",void 0),e}();function iy(e){return""===e||!!e}var oy=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new sy,this.attachRef=null}}(),sy=function(){function e(){this.contexts=new Map}return e.prototype.onChildOutletCreated=function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)},e.prototype.onChildOutletDestroyed=function(e){var t=this.getContext(e);t&&(t.outlet=null)},e.prototype.onOutletDeactivated=function(){var e=this.contexts;return this.contexts=new Map,e},e.prototype.onOutletReAttached=function(e){this.contexts=e},e.prototype.getOrCreateContext=function(e){var t=this.getContext(e);return t||(t=new oy,this.contexts.set(e,t)),t},e.prototype.getContext=function(e){return this.contexts.get(e)||null},e}(),ay=function(){function e(e,t,n,r,i){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Wr,this.deactivateEvents=new Wr,this.name=r||hg,e.onChildOutletCreated(this.name,this)}return e.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},e.prototype.ngOnInit=function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}},Object.defineProperty(e.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),e.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e},e.prototype.attach=function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)},e.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}},e.prototype.activateWith=function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new ly(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},e}(),ly=function(){function e(e,t,n){this.route=e,this.childContexts=t,this.parent=n}return e.prototype.get=function(e,t){return e===tv?this.route:e===sy?this.childContexts:this.parent.get(e,t)},e}(),uy=function(){return function(){}}(),cy=function(){function e(){}return e.prototype.preload=function(e,t){return t().pipe(Qc(function(){return xu(null)}))},e}(),dy=function(){function e(){}return e.prototype.preload=function(e,t){return xu(null)},e}(),hy=function(){function e(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new Kv(t,n,function(t){return e.triggerEvent(new ig(t))},function(t){return e.triggerEvent(new og(t))})}return e.prototype.setUpPreloading=function(){var e=this;this.subscription=this.router.events.pipe(Pu(function(e){return e instanceof Km}),Iu(function(){return e.preload()})).subscribe(function(){})},e.prototype.preload=function(){var e=this.injector.get(cr);return this.processRoutes(e,this.router.config)},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.processRoutes=function(e,t){var n,r,i=[];try{for(var o=l(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var u=a._loadedConfig;i.push(this.processRoutes(u.module,u.routes))}else a.loadChildren&&!a.canLoad?i.push(this.preloadConfig(e,a)):a.children&&i.push(this.processRoutes(e,a.children))}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return oe(i).pipe(de(),te(function(e){}))},e.prototype.preloadConfig=function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return n.loader.load(e.injector,t).pipe(se(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})},e}(),py=function(){function e(e,t,n){void 0===n&&(n={}),this.router=e,this.viewportScroller=t,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 e.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},e.prototype.createScrollEvents=function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Ym?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Km&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})},e.prototype.consumeScrollEvents=function(){var e=this;return this.router.events.subscribe(function(t){t instanceof cg&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})},e.prototype.scheduleScrollEvent=function(e,t){this.router.triggerEvent(new cg(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))},e.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},e}(),fy=new Me("ROUTER_CONFIGURATION"),my=new Me("ROUTER_FORROOT_GUARD"),gy=[Lu,{provide:Rg,useClass:Ng},{provide:ny,useFactory:Sy,deps:[fo,Rg,sy,Lu,it,go,Hi,Yv,fy,[Jv,new Ke],[Zv,new Ke]]},sy,{provide:tv,useFactory:Ey,deps:[ny]},{provide:go,useClass:_o},hy,dy,cy,{provide:fy,useValue:{enableTracing:!1}}];function vy(){return new lo("Router",ny)}var yy=function(){function e(e,t){}var t;return t=e,e.forRoot=function(e,n){return{ngModule:t,providers:[gy,Cy(e),{provide:my,useFactory:wy,deps:[[ny,new Ke,new Xe]]},{provide:fy,useValue:n||{}},{provide:Nu,useFactory:_y,deps:[Au,[new Ye(Du),new Ke],fy]},{provide:py,useFactory:by,deps:[ny,hc,fy]},{provide:uy,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:dy},{provide:lo,multi:!0,useFactory:vy},[Oy,{provide:Mi,multi:!0,useFactory:Ty,deps:[Oy]},{provide:Iy,useFactory:xy,deps:[Oy]},{provide:Vi,multi:!0,useExisting:Iy}]]}},e.forChild=function(e){return{ngModule:t,providers:[Cy(e)]}},e}();function by(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new py(e,t,n)}function _y(e,t,n){return void 0===n&&(n={}),n.useHash?new Vu(e,t):new Fu(e,t)}function wy(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Cy(e){return[{provide:je,multi:!0,useValue:e},{provide:Yv,multi:!0,useValue:e}]}function Sy(e,t,n,r,i,o,s,a,l,u,c){void 0===l&&(l={});var d=new ny(null,t,n,r,i,o,s,Cg(a));if(u&&(d.urlHandlingStrategy=u),c&&(d.routeReuseStrategy=c),l.errorHandler&&(d.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(d.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){var h=Jh();d.events.subscribe(function(e){h.logGroup("Router Event: "+e.constructor.name),h.log(e.toString()),h.log(e),h.logGroupEnd()})}return l.onSameUrlNavigation&&(d.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(d.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(d.relativeLinkResolution=l.relativeLinkResolution),d}function Ey(e){return e.routerState.root}var Oy=function(){function e(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new F}return e.prototype.appInitializer=function(){var e=this;return this.injector.get(Ru,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(ny),i=e.injector.get(fy);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return e.initNavigation?xu(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n})},e.prototype.bootstrapListener=function(e){var t=this.injector.get(fy),n=this.injector.get(hy),r=this.injector.get(py),i=this.injector.get(ny),o=this.injector.get(fo);e===o.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},e.prototype.isLegacyEnabled=function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation},e.prototype.isLegacyDisabled=function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation},e}();function Ty(e){return e.appInitializer.bind(e)}function xy(e){return e.bootstrapListener.bind(e)}var Iy=new Me("Router Initializer"),Py=fs({encapsulation:2,styles:[],data:{}});function ky(e){return nl(0,[(e()(),Bs(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ka(1,212992,null,0,ay,[sy,So,ar,[8,null],Eo],null,null)],function(e,t){e(t,1,0)},null)}function My(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"ng-component",[],null,null,null,ky,Py)),ka(1,49152,null,0,dg,[],null,null)],null,null)}var Ay=sa("ng-component",dg,My,{},{},[]),Ry=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i._platform=n,i._document=r,i}return i(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Qr()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))},t.prototype._checkToolbarMixedModes=function(){var e=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(function(e){return!(e.classList&&e.classList.contains("mat-toolbar-row"))}).filter(function(t){return t.nodeType!==(e._document?e._document.COMMENT_NODE:8)}).some(function(e){return!(!e.textContent||!e.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.")}()},t}(If(function(){return function(e){this._elementRef=e}}())),Ny=function(){return function(){}}(),Dy=fs({encapsulation:2,styles:["@media screen and (-ms-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}}"],data:{}});function Ly(e){return nl(2,[Ja(null,0),Ja(null,1)],null,null)}var jy=function(){return function(){}}(),Vy=function(){return function(){this.align="start"}}(),Fy=function(){return function(){}}(),Uy=function(){return function(){}}(),zy=fs({encapsulation:2,styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:16px;border-radius:4px}.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}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-actions,.mat-card-content,.mat-card-subtitle{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{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 0}@media (max-width:599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>: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{margin-left:0;margin-right:0}.mat-card-title{margin-bottom:8px}.mat-card-subtitle:not(:first-child),.mat-card-title: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}"],data:{}});function By(e){return nl(2,[Ja(null,0),Ja(null,1)],null,null)}function Hy(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&d(t[0])&&(t=t[0]),0===t.length?Eu:e?Hy(t).pipe(te(function(t){return e.apply(void 0,t)})):new R(function(e){return new Wy(e,t)})}var Wy=function(e){function t(t,n){var r=e.call(this,t)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var s=X(r,n[o],null,o);s&&r.add(s)}return r}return i(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this.haveValues,r=this.values,i=r.length;e._hasValue?(this.completed++,this.completed===i&&(n===i&&t.next(r),t.complete())):t.complete()},t}(ee),Gy=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),qy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(Gy);function Zy(e){return null==e||0===e.length}var Qy=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Yy=function(){function e(){}return e.min=function(e){return function(t){if(Zy(t.value)||Zy(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(Zy(t.value)||Zy(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return Zy(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Zy(e.value)?null:Qy.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(Zy(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(Zy(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Ky);return 0==t.length?null:function(e){return Xy(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Ky);return 0==t.length?null:function(e){return Hy(function(e,n){return t.map(function(t){return t(e)})}(e).map(Jy)).pipe(te(Xy))}},e}();function Ky(e){return null!=e}function Jy(e){var t=Pi(e)?oe(e):e;if(!ki(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Xy(e){var t=e.reduce(function(e,t){return null!=t?o({},e,t):e},{});return 0===Object.keys(t).length?null:t}var $y=new Me("NgValueAccessor"),eb=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),tb=new Me("CompositionEventMode"),nb=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Jh()?Jh().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function rb(e){return e.validate?function(t){return e.validate(t)}:e}function ib(e){return e.validate?function(t){return e.validate(t)}:e}var ob=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function sb(){throw new Error("unimplemented")}var ab=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return i(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return sb()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return sb()},enumerable:!0,configurable:!0}),t}(Gy),lb=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),ub=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(ab),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.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 ')},e}(),cb=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),db='\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 });',hb='\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 });',pb='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',fb=function(){function e(){}return e.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 "+db)},e.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 '+hb+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+pb)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+db)},e.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 "+hb)},e.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 });')},e.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 ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \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"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}();function mb(e,t){return c(t.path,[e])}function gb(e,t){e||_b(t,"Cannot find control with"),t.valueAccessor||_b(t,"No value accessor for form control with"),e.validator=Yy.compose([e.validator,t.validator]),e.asyncValidator=Yy.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&vb(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&vb(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function vb(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function yb(e,t){null==e&&_b(t,"Cannot find control with"),e.validator=Yy.compose([e.validator,t.validator]),e.asyncValidator=Yy.composeAsync([e.asyncValidator,t.asyncValidator])}function bb(e){return _b(e,"There is no FormControl instance attached to form control element with")}function _b(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function wb(e){return null!=e?Yy.compose(e.map(rb)):null}function Cb(e){return null!=e?Yy.composeAsync(e.map(ib)):null}function Sb(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Ge(t,n.currentValue)}var Eb=[eb,cb,ob,function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ge}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var r=l(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),e))return o}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ge}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var s=i.item(o),a=t._getOptionValue(s.value);r.push(a)}else for(i=n.options,o=0;o<i.length;o++)(s=i.item(o)).selected&&(a=t._getOptionValue(s.value),r.push(a));t.value=r,e(r)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){var t,n;try{for(var r=l(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o)._value,e))return o}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},e}(),ub];function Ob(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Tb(e,t){if(!t)return null;Array.isArray(t)||_b(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){var o;t.constructor===nb?n=t:(o=t,Eb.some(function(e){return o.constructor===e})?(r&&_b(e,"More than one built-in value accessor matches form control with"),r=t):(i&&_b(e,"More than one custom value accessor matches form control with"),i=t))}),i||r||n||(_b(e,"No valid value accessor for form control with"),null)}function xb(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ib(e,t,n,r){Qr()&&"never"!==r&&((null!==r&&"once"!==r||t._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(fb.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}var Pb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return mb(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wb(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Cb(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(qy),kb=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),Mb=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(kb),Ab=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(kb);function Rb(e){var t=Db(e)?e.validators:e;return Array.isArray(t)?wb(t):t||null}function Nb(e,t){var n=Db(t)?t.asyncValidators:e;return Array.isArray(n)?Cb(n):n||null}function Db(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Lb=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=Rb(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=Nb(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(o({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(o({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Jy(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof Vb?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Fb&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new Wr,this.statusChanges=new Wr},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){Db(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),jb=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,Rb(n),Nb(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return i(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.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))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(Lb),Vb=function(e){function t(t,n,r){var i=e.call(this,Rb(n),Nb(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof jb?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=l(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(Lb),Fb=function(e){function t(t,n,r){var i=e.call(this,Rb(n),Nb(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof jb?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=l(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(i){e={error:i}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Lb),Ub=Promise.resolve(null),zb=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Wr,r.form=new Vb({},wb(t),Cb(n)),r}return i(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;Ub.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),gb(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;Ub.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),xb(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;Ub.then(function(){var n=t._findContainer(e.path),r=new Vb({});yb(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;Ub.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;Ub.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,Ob(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(qy),Bb=function(){function e(){}return e.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 '+db+'\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 ')},e.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 "+hb+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+pb)},e.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}">')},e.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 "+hb+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+pb)},e.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")},e}(),Hb=new Me("NgFormSelectorWarning"),Wb=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}var n;return i(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof zb||Bb.modelGroupParentException()},t}(Pb),Gb=Promise.resolve(null),qb=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.control=new jb,o._registered=!1,o.update=new Wr,o._parent=t,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=Tb(o,i),o}return i(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Sb(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?mb(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wb(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Cb(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){gb(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Wb)&&this._parent instanceof Pb?Bb.formGroupNameException():this._parent instanceof Wb||this._parent instanceof zb||Bb.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Bb.missingNameException()},t.prototype._updateValue=function(e){var t=this;Gb.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Gb.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(ab),Zb=new Me("NgModelWithFormControlWarning"),Qb=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._ngModelWarningConfig=i,o.update=new Wr,o._ngModelWarningSent=!1,o._rawValidators=t||[],o._rawAsyncValidators=n||[],o.valueAccessor=Tb(o,r),o}var n;return i(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){fb.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(gb(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Sb(e,this.viewModel)&&(Ib("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wb(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Cb(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t._ngModelWarningSentOnce=!1,t}(ab),Yb=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Wr,r}return i(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return gb(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){xb(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);yb(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);yb(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,Ob(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return bb(t)}),t.valueAccessor.registerOnTouched(function(){return bb(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&gb(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=wb(this._validators);this.form.validator=Yy.compose([this.form.validator,e]);var t=Cb(this._asyncValidators);this.form.asyncValidator=Yy.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||fb.missingFormException()},t}(qy),Kb=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return i(t,e),t.prototype._checkParentType=function(){Xb(this._parent)&&fb.groupParentException()},t}(Pb),Jb=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return i(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return mb(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wb(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Cb(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){Xb(this._parent)&&fb.arrayParentException()},t}(qy);function Xb(e){return!(e instanceof Kb||e instanceof Yb||e instanceof Jb)}var $b=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s._ngModelWarningConfig=o,s._added=!1,s.update=new Wr,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=Tb(s,i),s}var n;return i(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){fb.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),Sb(e,this.viewModel)&&(Ib("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return mb(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wb(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Cb(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Kb)&&this._parent instanceof Pb?fb.ngModelGroupException():this._parent instanceof Kb||this._parent instanceof Yb||this._parent instanceof Jb||fb.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t._ngModelWarningSentOnce=!1,t}(ab),e_=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new Vb(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new jb(e,t,n)},e.prototype.array=function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Fb(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){return e instanceof jb||e instanceof Vb||e instanceof Fb?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),t_=function(){return function(){}}(),n_=function(){return function(){}}(),r_=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Hb,useValue:e.warnOnDeprecatedNgFormSelector}]}},e}(),i_=function(){function e(){}var t;return t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Zb,useValue:e.warnOnNgModelWithFormControl}]}},e}(),o_=0,s_=function(){return function(){this.id="mat-error-"+o_++}}(),a_=function(){return function(){}}();function l_(e){return Error("A hint was already declared for 'align=\""+e+"\"'.")}var u_=function(){return function(){}}(),c_=0,d_=If(function(){return function(e){this._elementRef=e}}(),"primary"),h_=new Me("MAT_FORM_FIELD_DEFAULT_OPTIONS"),p_=function(e){function t(t,n,r,i,o,s,a,l){var u=e.call(this,t)||this;return u._elementRef=t,u._changeDetectorRef=n,u._dir=i,u._defaults=o,u._platform=s,u._ngZone=a,u._outlineGapCalculationNeeded=!1,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+c_++,u._labelId="mat-form-field-label-"+c_++,u._labelOptions=r||{},u.floatLabel=u._labelOptions.float||"auto",u._animationsEnabled="NoopAnimations"!==l,u.appearance=o&&o.appearance?o.appearance:"legacy",u}return i(t,e),Object.defineProperty(t.prototype,"appearance",{get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&this._updateOutlineGapOnStable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Nd(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},t.prototype.ngAfterContentInit=function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(kd(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.subscribe(function(){return e._changeDetectorRef.markForCheck()}),he(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._updateOutlineGapOnStable(),e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(kd(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(kd(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})},t.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeeded&&this.updateOutlineGap()},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]},t.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},t.prototype._hasLabel=function(){return!!this._labelChild},t.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},t.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},t.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},t.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},t.prototype._animateAndLockLabel=function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,jd(this._label.nativeElement,"transitionend").pipe(Td(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},t.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},t.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},t.prototype._validateHints=function(){var e=this;if(this._hintChildren){var t=void 0,n=void 0;this._hintChildren.forEach(function(r){if("start"===r.align){if(t||e.hintLabel)throw l_("start");t=r}else if("end"===r.align){if(n)throw l_("end");n=r}})}},t.prototype._syncDescribedByIds=function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(function(e){return e.id}));this._control.setDescribedByIds(e)}},t.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},t.prototype.updateOutlineGap=function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&(!this._platform||this._platform.isBrowser))if(document.documentElement.contains(this._elementRef.nativeElement)){var t=0,n=0,r=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-start"),i=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){for(var o=this._getStartEnd(this._connectionContainerRef.nativeElement.getBoundingClientRect()),s=this._getStartEnd(e.children[0].getBoundingClientRect()),a=0,l=0,u=e.children;l<u.length;l++)a+=u[l].offsetWidth;t=s-o-5,n=a>0?.75*a+10:0}for(var c=0;c<r.length;c++)r.item(c).style.width=t+"px";for(c=0;c<i.length;c++)i.item(c).style.width=n+"px";this._outlineGapCalculationNeeded=!1}else this._outlineGapCalculationNeeded=!0},t.prototype._getStartEnd=function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left},t.prototype._updateOutlineGapOnStable=function(){var e=this;this._ngZone?this._ngZone.onStable.pipe(Td(1)).subscribe(function(){return e.updateOutlineGap()}):Promise.resolve().then(function(){return e.updateOutlineGap()})},t}(d_),f_=function(){return function(){}}();function m_(){return"undefined"!=typeof process}function g_(e){switch(e.length){case 0:return new dd;case 1:return e[0];default:return new hd(e)}}function v_(e,t,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var s=[],a=[],l=-1,u=null;if(r.forEach(function(e){var n=e.offset,r=n==l,c=r&&u||{};Object.keys(e).forEach(function(n){var r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,s),a){case pd:a=i[n];break;case ad:a=o[n];break;default:a=t.normalizeStyleValue(n,r,a,s)}c[r]=a}),r||a.push(c),u=c,l=n}),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return a}function y_(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&b_(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&b_(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&b_(n,"destroy",e))})}}function b_(e,t,n){var r=n.totalTime,i=__(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function __(e,t,n,r,i,o,s){return void 0===i&&(i=""),void 0===o&&(o=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function w_(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function C_(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var S_=function(e,t){return!1},E_=function(e,t){return!1},O_=function(e,t,n){return[]},T_=m_();if(T_||"undefined"!=typeof Element){if(S_=function(e,t){return e.contains(t)},T_||Element.prototype.matches)E_=function(e,t){return e.matches(t)};else{var x_=Element.prototype,I_=x_.matchesSelector||x_.mozMatchesSelector||x_.msMatchesSelector||x_.oMatchesSelector||x_.webkitMatchesSelector;I_&&(E_=function(e,t){return I_.apply(e,[t])})}O_=function(e,t,n){var r=[];if(n)r.push.apply(r,c(e.querySelectorAll(t)));else{var i=e.querySelector(t);i&&r.push(i)}return r}}var P_=null,k_=!1;function M_(e){P_||(P_=("undefined"!=typeof document?document.body:null)||{},k_=!!P_.style&&"WebkitAppearance"in P_.style);var t=!0;return P_.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in P_.style)&&k_&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in P_.style),t}var A_=E_,R_=S_,N_=O_;function D_(e){var t={};return Object.keys(e).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}var L_=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return M_(e)},e.prototype.matchesElement=function(e,t){return A_(e,t)},e.prototype.containsElement=function(e,t){return R_(e,t)},e.prototype.query=function(e,t,n){return N_(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,i,o,s){return void 0===o&&(o=[]),new dd(n,r)},e}(),j_=function(){function e(){}return e.NOOP=new L_,e}(),V_=1e3;function F_(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:U_(parseFloat(t[1]),t[2])}function U_(e,t){switch(t){case"s":return e*V_;default:return e}}function z_(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};r=U_(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(i=U_(Math.floor(parseFloat(a)),s[4]));var l=s[5];l&&(o=l)}else r=e;if(!n){var u=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:r,delay:i,easing:o}}(e,t,n)}function B_(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function H_(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else B_(e,n);return n}function W_(e,t,n){return n?t+":"+n+";":""}function G_(e){for(var t="",n=0;n<e.style.length;n++)t+=W_(0,r=e.style.item(n),e.style.getPropertyValue(r));for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=W_(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function q_(e,t){e.style&&(Object.keys(t).forEach(function(n){var r=ew(n);e.style[r]=t[n]}),m_()&&G_(e))}function Z_(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=ew(t);e.style[n]=""}),m_()&&G_(e))}function Q_(e){return Array.isArray(e)?1==e.length?e[0]:ld(e):e}var Y_=new RegExp("{{\\s*(.+?)\\s*}}","g");function K_(e){var t=[];if("string"==typeof e){for(var n=e.toString(),r=void 0;r=Y_.exec(n);)t.push(r[1]);Y_.lastIndex=0}return t}function J_(e,t,n){var r=e.toString(),i=r.replace(Y_,function(e,r){var i=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?e:i}function X_(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var $_=/-+([a-z0-9])/g;function ew(e){return e.replace($_,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}function tw(e,t){return 0===e||0===t}function nw(e,t,n){var r=Object.keys(n);if(r.length&&t.length){var i=t[0],o=[];if(r.forEach(function(e){i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var s=function(){var n=t[a];o.forEach(function(t){n[t]=iw(e,t)})},a=1;a<t.length;a++)s()}return t}function rw(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function iw(e,t){return window.getComputedStyle(e)[t]}var ow="*",sw=new Set(["true","1"]),aw=new Set(["false","0"]);function lw(e,t){var n=sw.has(e)||aw.has(e),r=sw.has(t)||aw.has(t);return function(i,o){var s=e==ow||e==i,a=t==ow||t==o;return!s&&n&&"boolean"==typeof i&&(s=i?sw.has(e):aw.has(e)),!a&&r&&"boolean"==typeof o&&(a=o?sw.has(t):aw.has(t)),s&&a}}var uw=new RegExp("s*:selfs*,?","g");function cw(e,t,n){return new dw(e).build(t,n)}var dw=function(){function e(e){this._driver=e}return e.prototype.build=function(e,t){var n=new hw(t);return this._resetContextStyleTimingState(n),rw(this,Q_(e),n)},e.prototype._resetContextStyleTimingState=function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0},e.prototype.visitTrigger=function(e,t){var n=this,r=t.queryCount=0,i=t.depCount=0,o=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var a=e,l=a.name;l.toString().split(/\s*,\s*/).forEach(function(e){a.name=e,o.push(n.visitState(a,t))}),a.name=l}else if(1==e.type){var u=n.visitTransition(e,t);r+=u.queryCount,i+=u.depCount,s.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}},e.prototype.visitState=function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(e){if(pw(e)){var t=e;Object.keys(t).forEach(function(e){K_(t[e]).forEach(function(e){o.hasOwnProperty(e)||i.add(e)})})}}),i.size){var s=X_(i.values());t.errors.push('state("'+e.name+'", ...) must define default values for all the following style substitutions: '+s.join(", "))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}},e.prototype.visitTransition=function(e,t){t.queryCount=0,t.depCount=0;var n,r,i,o=rw(this,Q_(e.animation),t);return{type:1,matchers:(n=e.expr,r=t.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'+e+'" is not supported'),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=i[1],s=i[2],a=i[3];t.push(lw(o,a)),"<"!=s[0]||o==ow&&a==ow||t.push(lw(a,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:fw(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return rw(n,e,t)}),options:fw(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=rw(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:fw(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return mw(z_(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=mw(0,0,"");return i.dynamic=!0,i.strValue=r,i}return mw((n=n||z_(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:ud({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=ud(a)}t.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,t);l.isEmptyStep=s,n=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==ad?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(pw(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,l,u=t.collectedStyles[t.currentQuerySelector],c=u[r],d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),d=!1),o=c.startTime),d&&(u[r]={startTime:o,endTime:i}),t.options&&(s=t.errors,a=t.options.params||{},(l=K_(e[r])).length&&l.forEach(function(e){a.hasOwnProperty(e)||s.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,l=0,u=e.steps.map(function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(pw(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(pw(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),a=a||c<0||c>1,s=s||c<l,l=c,o.push(c),r});a&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,d=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(d=1/(c-1));var h=c-1,p=t.currentTime,f=t.currentAnimateTimings,m=f.duration;return u.forEach(function(e,i){var s=d>0?i==h?1:d*i:o[i],a=s*m;t.currentTime=p+f.delay+a,f.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:rw(this,Q_(e.animation),t),options:fw(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:fw(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:fw(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=u(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(uw,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],s=i[1];t.currentQuerySelector=n.length?n+" "+o:o,w_(t.collectedStyles,t.currentQuerySelector,{});var a=rw(this,Q_(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:fw(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:z_(e.timings,t.errors,!0);return{type:12,animation:rw(this,Q_(e.animation),t),timings:n,options:null}},e}(),hw=function(){return function(e){this.errors=e,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 pw(e){return!Array.isArray(e)&&"object"==typeof e}function fw(e){var t;return e?(e=B_(e)).params&&(e.params=(t=e.params)?B_(t):null):e={},e}function mw(e,t,n){return{duration:e,delay:t,easing:n}}function gw(e,t,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var vw=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,c(t))},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),yw=new RegExp(":enter","g"),bw=new RegExp(":leave","g");function _w(e,t,n,r,i,o,s,a,l,u){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===u&&(u=[]),(new ww).buildKeyframes(e,t,n,r,i,o,s,a,l,u)}var ww=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,i,o,s,a,l,u){void 0===u&&(u=[]),l=l||new vw;var c=new Sw(e,t,l,r,i,u,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),rw(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(s).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([s],null,c.errors,a)}return d.length?d.map(function(e){return e.buildKeyframes()}):[gw(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?F_(n.duration):null,o=null!=n.delay?F_(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),rw(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Cw);var s=F_(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return rw(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?F_(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);o&&a.delayNextStep(o),rw(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return z_(t.params?J_(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?F_(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Cw);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;var l=null;a.forEach(function(r,i){t.currentQueryIndex=i;var a=t.createSubContext(e.options,r);o&&a.delayNextStep(o),r===t.element&&(l=a.currentTimeline),rw(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),s=o*(t.currentQueryTotal-1),a=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var l=t.currentTimeline;a&&l.delayNextStep(a);var u=l.currentTime;rw(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},e}(),Cw={},Sw=function(){function e(e,t,n,r,i,o,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Cw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Ew(this._driver,t,0),s.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=F_(r.duration)),null!=r.delay&&(i.delay=F_(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=J_(o[e],s,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=Cw,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Ow(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,i,o){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(yw,"."+this._enterClassName)).replace(bw,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,c(a))}return i||0!=s.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},e}(),Ew=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.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))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||ad,t._currentKeyframe[e]=ad}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=ad}):H_(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=J_(s[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:ad),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=H_(o,!0);Object.keys(a).forEach(function(e){var r=a[e];r==pd?t.add(e):r==ad&&n.add(e)}),r||(a.offset=s/e.duration),i.push(a)});var o=t.size?X_(t.values()):[],s=n.size?X_(n.values()):[];if(r){var a=i[0],l=B_(a);a.offset=0,l.offset=1,i=[a,l]}return gw(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},e}(),Ow=function(e){function t(t,n,r,i,o,s,a){void 0===a&&(a=!1);var l=e.call(this,t,n,s.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=i,l.postStyleProps=o,l._stretchStartingKeyframe=a,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return i(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,l=H_(e[0],!1);l.offset=0,o.push(l);var u=H_(e[0],!1);u.offset=Tw(a),o.push(u);for(var c=e.length-1,d=1;d<=c;d++){var h=H_(e[d],!1);h.offset=Tw((n+h.offset*r)/s),o.push(h)}r=s,n=0,i="",e=o}return gw(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(Ew);function Tw(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var xw=function(){return function(){}}(),Iw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.normalizePropertyName=function(e,t){return ew(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(Pw[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(xw),Pw=kw("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(","));function kw(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}function Mw(e,t,n,r,i,o,s,a,l,u,c,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var Aw={},Rw=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},e.prototype.build=function(e,t,n,r,i,s,a,l,u,c){var d=[],h=this.ast.options&&this.ast.options.params||Aw,p=this.buildStyles(n,a&&a.params||Aw,d),f=l&&l.params||Aw,m=this.buildStyles(r,f,d),g=new Set,v=new Map,y=new Map,b="void"===r,_={params:o({},h,f)},w=c?[]:_w(e,t,this.ast.animation,i,s,p,m,_,u,d),C=0;if(w.forEach(function(e){C=Math.max(e.duration+e.delay,C)}),d.length)return Mw(t,this._triggerName,n,r,b,p,m,[],[],v,y,C,d);w.forEach(function(e){var n=e.element,r=w_(v,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=w_(y,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&g.add(n)});var S=X_(g.values());return Mw(t,this._triggerName,n,r,b,p,m,w,S,v,y,C)},e}(),Nw=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=B_(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=J_(o,r,t)),n[e]=o})}}),n},e}(),Dw=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new Nw(e.style,e.options&&e.options.params||{})}),Lw(this.states,"true","1"),Lw(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new Rw(e,t,n.states))}),this.fallbackTransition=new Rw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Lw(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var jw=new vw,Vw=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=cw(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,i=v_(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[e],a=new Map;if(s?(i=_w(this._driver,t,s,"ng-enter","ng-leave",{},{},n,jw,o)).forEach(function(e){var t=w_(a,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,ad)})});var l=g_(i.map(function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return r.destroy(e)}),this.players.push(l),l},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var i=__(t,"","","");return y_(this._getPlayer(e),n,i,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),Fw=[],Uw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},zw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bw="__ng_removed",Hw=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=B_(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Ww=new Hw("void"),Gw=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,$w(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var s=w_(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var l=w_(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||($w(e,"ng-trigger"),$w(e,"ng-trigger-"+t),l[t]=Ww),function(){o._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),o._triggers[t]||delete l[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),s=new Zw(this.id,t,e),a=this._engine.statesByElement.get(e);a||($w(e,"ng-trigger"),$w(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var l=a[t],u=new Hw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[t]=u,l||(l=Ww),"void"===u.value||l.value!==u.value){var c=w_(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=o.matchTransition(l.value,u.value,e,u.params),h=!1;if(!d){if(!r)return;d=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:u,player:s,isFallbackTransition:h}),h||($w(e,"ng-animate-queued"),s.onStart(function(){eC(e,"ng-animate-queued")})),s.onDone(function(){var t=i.players.indexOf(s);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(l.params,u.params)){var p=[],f=o.matchStyles(l.value,l.params,p),m=o.matchStyles(u.value,u.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush(function(){Z_(e,f),q_(e,m)})}},e.prototype.deregister=function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,r){t._elementListeners.set(r,n.filter(function(t){return t.name!=e}))})},e.prototype.clearElementCache=function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))},e.prototype._signalRemovalForInnerTriggers=function(e,t,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(e,".ng-trigger",!0).forEach(function(e){if(!e[Bw]){var n=r._engine.fetchNamespacesByElement(e);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):r.clearElementCache(e)}})},e.prototype.triggerLeaveAnimation=function(e,t,n,r){var i=this,o=this._engine.statesByElement.get(e);if(o){var s=[];if(Object.keys(o).forEach(function(t){if(i._triggers[t]){var n=i.trigger(e,t,"void",r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&g_(s).onDone(function(){return i._engine.processLeaveNode(e)}),!0}return!1},e.prototype.prepareLeaveAnimationListeners=function(e){var t=this,n=this._elementListeners.get(e);if(n){var r=new Set;n.forEach(function(n){var i=n.name;if(!r.has(i)){r.add(i);var o=t._triggers[i].fallbackTransition,s=t._engine.statesByElement.get(e)[i]||Ww,a=new Hw("void"),l=new Zw(t.id,i,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:i,transition:o,fromState:s,toState:a,player:l,isFallbackTransition:!0})}})}},e.prototype.removeNode=function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),!this.triggerLeaveAnimation(e,t,!0)){var i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else for(var s=e;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}this.prepareLeaveAnimationListeners(e),i?r.markElementAsRemoved(this.id,e,!1,t):(r.afterFlush(function(){return n.clearElementCache(e)}),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}},e.prototype.insertNode=function(e,t){$w(e,this._hostClassName)},e.prototype.drainQueuedTransitions=function(e){var t=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,s=t._elementListeners.get(o);s&&s.forEach(function(t){if(t.name==r.triggerName){var n=__(o,r.triggerName,r.fromState.value,r.toState.value);n._data=e,y_(r.player,t.phase,n,t.callback)}}),i.markedForDestroy?t._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:t._engine.driver.containsElement(e.element,n.element)?1:-1})},e.prototype.destroy=function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)},e.prototype.elementContainsData=function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t},e}(),qw=function(){function e(e,t,n){this.bodyNode=e,this.driver=t,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(e,t){}}return e.prototype._onRemovalComplete=function(e,t){this.onRemovalComplete(e,t)},Object.defineProperty(e.prototype,"queuedPlayers",{get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e},enumerable:!0,configurable:!0}),e.prototype.createNamespace=function(e,t){var n=new Gw(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n},e.prototype._balanceNamespaceList=function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var s=this._fetchNamespace(o);s&&t.add(s)}}return t},e.prototype.trigger=function(e,t,n,r){if(Qw(t)){var i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1},e.prototype.insertNode=function(e,t,n,r){if(Qw(t)){var i=t[Bw];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$w(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),eC(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n){if(Qw(t)){var r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n)}else this._onRemovalComplete(t,n)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[Bw]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,i){return Qw(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}},e.prototype._buildInstruction=function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return g_(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[Bw];if(n&&n.setForRemoval){if(e[Bw]=Uw,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)$w(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,e)}finally{for(r=0;r<i.length;r++)i[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var o=this._whenQuietFns;this._whenQuietFns=[],n.length?g_(n).onDone(function(){o.forEach(function(e){return e()})}):o.forEach(function(e){return e()})}},e.prototype.reportError=function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))},e.prototype._flushAnimations=function(e,t){var n=this,r=new vw,i=[],s=new Map,a=[],l=new Map,u=new Map,d=new Map,h=new Set;this.disabledNodes.forEach(function(e){h.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)h.add(t[r])});var p=this.bodyNode,f=Array.from(this.statesByElement.keys()),m=Jw(f,this.collectedEnterElements),g=new Map,v=0;m.forEach(function(e,t){var n="ng-enter"+v++;g.set(t,n),e.forEach(function(e){return $w(e,n)})});for(var y=[],b=new Set,_=new Set,w=0;w<this.collectedLeaveElements.length;w++)(V=(j=this.collectedLeaveElements[w])[Bw])&&V.setForRemoval&&(y.push(j),b.add(j),V.hasAnimation?this.driver.query(j,".ng-star-inserted",!0).forEach(function(e){return b.add(e)}):_.add(j));var C=new Map,S=Jw(f,Array.from(b));S.forEach(function(e,t){var n="ng-leave"+v++;C.set(t,n),e.forEach(function(e){return $w(e,n)})}),e.push(function(){m.forEach(function(e,t){var n=g.get(t);e.forEach(function(e){return eC(e,n)})}),S.forEach(function(e,t){var n=C.get(t);e.forEach(function(e){return eC(e,n)})}),y.forEach(function(e){n.processLeaveNode(e)})});for(var E=[],O=[],T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(E.push(t),n.collectedEnterElements.length){var s=o[Bw];if(s&&s.setForMove)return void t.destroy()}var c=!p||!n.driver.containsElement(p,o),h=C.get(o),f=g.get(o),m=n._buildInstruction(e,r,f,h,c);if(m.errors&&m.errors.length)O.push(m);else{if(c)return t.onStart(function(){return Z_(o,m.fromStyles)}),t.onDestroy(function(){return q_(o,m.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Z_(o,m.fromStyles)}),t.onDestroy(function(){return q_(o,m.toStyles)}),void i.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach(function(e){return w_(l,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=d.get(t);r||d.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(O.length){var x=[];O.forEach(function(e){x.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return x.push("- "+e+"\n")})}),E.forEach(function(e){return e.destroy()}),this.reportError(x)}var I=new Map,P=new Map;a.forEach(function(e){var t=e.element;r.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,I))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){w_(I,t,[]).push(e),e.destroy()})});var k=y.filter(function(e){return nC(e,u,d)}),M=new Map;Kw(M,this.driver,_,d,ad).forEach(function(e){nC(e,u,d)&&k.push(e)});var A=new Map;m.forEach(function(e,t){Kw(A,n.driver,new Set(e),u,pd)}),k.forEach(function(e){var t=M.get(e),n=A.get(e);M.set(e,o({},t,n))});var R=[],N=[],D={};a.forEach(function(e){var t=e.element,o=e.player,a=e.instruction;if(r.has(t)){if(h.has(t))return o.onDestroy(function(){return q_(t,a.toStyles)}),o.disabled=!0,o.overrideTotalTime(a.totalTime),void i.push(o);var l=D;if(P.size>1){for(var u=t,c=[];u=u.parentNode;){var d=P.get(u);if(d){l=d;break}c.push(u)}c.forEach(function(e){return P.set(e,l)})}var p=n._buildAnimation(o.namespaceId,a,I,s,A,M);if(o.setRealPlayer(p),l===D)R.push(o);else{var f=n.playersByElement.get(l);f&&f.length&&(o.parentPlayer=g_(f)),i.push(o)}}else Z_(t,a.fromStyles),o.onDestroy(function(){return q_(t,a.toStyles)}),N.push(o),h.has(t)&&i.push(o)}),N.forEach(function(e){var t=s.get(e.element);if(t&&t.length){var n=g_(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var L=0;L<y.length;L++){var j,V=(j=y[L])[Bw];if(eC(j,"ng-leave"),!V||!V.hasAnimation){var F=[];if(l.size){var U=l.get(j);U&&U.length&&F.push.apply(F,c(U));for(var z=this.driver.query(j,".ng-animating",!0),B=0;B<z.length;B++){var H=l.get(z[B]);H&&H.length&&F.push.apply(F,c(H))}}var W=F.filter(function(e){return!e.destroyed});W.length?tC(this,j,W):this.processLeaveNode(j)}}return y.length=0,R.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),R},e.prototype.elementContainsData=function(e,t){var n=!1,r=t[Bw];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n},e.prototype.afterFlush=function(e){this._flushFns.push(e)},e.prototype.afterFlushAnimationsDone=function(e){this._whenQuietFns.push(e)},e.prototype._getPreviousPlayers=function(e,t,n,r,i){var o=[];if(t){var s=this.playersByQueriedElement.get(e);s&&(o=s)}else{var a=this.playersByElement.get(e);if(a){var l=!i||"void"==i;a.forEach(function(e){e.queued||(l||e.triggerName==r)&&o.push(e)})}}return(n||r)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)})),o},e.prototype._beforeAnimationBuild=function(e,t,n){var r,i,o=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName,u=function(e){var r=e.element,i=r!==o,l=w_(n,r,[]);c._getPreviousPlayers(r,i,s,a,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})},c=this;try{for(var d=l(t.timelines),h=d.next();!h.done;h=d.next())u(h.value)}catch(p){r={error:p}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}Z_(o,t.fromStyles)},e.prototype._buildAnimation=function(e,t,n,r,i,o){var s=this,a=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,h=t.timelines.map(function(t){var h=t.element;c.add(h);var p=h[Bw];if(p&&p.removedBeforeQueried)return new dd(t.duration,t.delay);var f,m,g=h!==l,v=(f=(n.get(h)||Fw).map(function(e){return e.getRealPlayer()}),m=[],function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];i instanceof hd?e(i.players,n):n.push(i)}}(f,m),m).filter(function(e){return!!e.element&&e.element===h}),y=i.get(h),b=o.get(h),_=v_(0,s._normalizer,0,t.keyframes,y,b),w=s._buildPlayer(t,_,v);if(t.subTimeline&&r&&d.add(h),g){var C=new Zw(e,a,h);C.setRealPlayer(w),u.push(C)}return w});u.forEach(function(e){w_(s.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&e.delete(t)}}else(r=e[t])&&(r.length&&(i=r.indexOf(n),r.splice(i,1)),0==r.length&&delete e[t]);return r}(s.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return $w(e,"ng-animating")});var p=g_(h);return p.onDestroy(function(){c.forEach(function(e){return eC(e,"ng-animating")}),q_(l,t.toStyles)}),d.forEach(function(e){w_(r,e,[]).push(p)}),p},e.prototype._buildPlayer=function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new dd(e.duration,e.delay)},e}(),Zw=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new dd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return y_(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.overrideTotalTime=function(e){this.totalTime=e},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){w_(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Qw(e){return e&&1===e.nodeType}function Yw(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Kw(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(Yw(e))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[Bw]=zw,s.push(r))}),e.set(r,o)});var a=0;return n.forEach(function(e){return Yw(e,o[a++])}),s}function Jw(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var s=t.parentNode;return o=n.has(s)?s:r.has(s)?1:e(s),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var Xw="$$classes";function $w(e,t){if(e.classList)e.classList.add(t);else{var n=e[Xw];n||(n=e[Xw]={}),n[t]=!0}}function eC(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Xw];n&&delete n[t]}}function tC(e,t,n){g_(n).onDone(function(){return e.processLeaveNode(t)})}function nC(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var rC=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new qw(e,t,n),this._timelineEngine=new Vw(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,s=this._triggerCache[o];if(!s){var a=[],l=cw(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(e,t){return new Dw(e,t)}(r,l),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,r,s)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=u(C_(n),2);this._timelineEngine.command(i[0],t,i[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=u(C_(n),2);return this._timelineEngine.listen(o[0],t,o[1],i)}return this._transitionEngine.listen(e,t,n,r,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),iC="animation",oC="animationend",sC=function(){function e(e,t,n,r,i,o,s){var a=this;this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return a._handleCallback(e)}}return e.prototype.apply=function(){var e,t,n;t=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=hC(e=this._element,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t=n+", "+t),dC(e,"",t),cC(this._element,this._eventFn,!1),this._startTime=Date.now()},e.prototype.pause=function(){aC(this._element,this._name,"paused")},e.prototype.resume=function(){aC(this._element,this._name,"running")},e.prototype.setPosition=function(e){var t=lC(this._element,this._name);this._position=e*this._duration,dC(this._element,"Delay","-"+this._position+"ms",t)},e.prototype.getPosition=function(){return this._position},e.prototype._handleCallback=function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()},e.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),cC(this._element,this._eventFn,!0))},e.prototype.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=uC(n=hC(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),dC(e,"",n.join(","))))},e}();function aC(e,t,n){dC(e,"PlayState",n,lC(e,t))}function lC(e,t){var n=hC(e,"");return n.indexOf(",")>0?uC(n.split(","),t):uC([n],t)}function uC(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function cC(e,t,n){n?e.removeEventListener(oC,t):e.addEventListener(oC,t)}function dC(e,t,n,r){var i=iC+t;if(null!=r){var o=e.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}e.style[i]=n}function hC(e,t){return e.style[iC+t]}var pC="linear",fC=function(){function e(e,t,n,r,i,o,s){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||pC,this.totalTime=r+i,this._buildStyler()}return e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},e.prototype._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},e.prototype.setPosition=function(e){this._styler.setPosition(e)},e.prototype.getPosition=function(){return this._styler.getPosition()},e.prototype.hasStarted=function(){return this._state>=2},e.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},e.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},e.prototype.pause=function(){this.init(),this._styler.pause()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},e.prototype._buildStyler=function(){var e=this;this._styler=new sC(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e.prototype.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:iw(e.element,r))})}this.currentSnapshot=t},e}(),mC=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r._startingStyles={},r.__initialized=!1,r._styles=D_(n),r}return i(t,e),t.prototype.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},t.prototype.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},t.prototype.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(dd),gC=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return e.prototype.validateStyleProperty=function(e){return M_(e)},e.prototype.matchesElement=function(e,t){return A_(e,t)},e.prototype.containsElement=function(e,t){return R_(e,t)},e.prototype.query=function(e,t,n){return N_(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.buildKeyframeElement=function(e,t,n){n=n.map(function(e){return D_(e)});var r="@keyframes "+t+" {\n",i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+=""+i+100*t+"% {\n",i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+t+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},e.prototype.animate=function(e,t,n,r,i,o,s){void 0===o&&(o=[]),s&&this._notifyFaultyScrubber();var a=o.filter(function(e){return e instanceof fC}),l={};tw(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=nw(e,t,l));if(0==n)return new mC(e,u);var c="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(d);var h=new fC(e,t,c,n,r,i,u);return h.onDestroy(function(){var e;(e=d).parentNode.removeChild(e)}),h},e.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)},e}(),vC=function(){function e(e,t,n){this.element=e,this.keyframes=t,this.options=n,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 e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:iw(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),yC=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(bC().toString()),this._cssKeyframesDriver=new gC}return e.prototype.validateStyleProperty=function(e){return M_(e)},e.prototype.matchesElement=function(e,t){return A_(e,t)},e.prototype.containsElement=function(e,t){return R_(e,t)},e.prototype.query=function(e,t,n){return N_(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},e.prototype.animate=function(e,t,n,r,i,o,s){if(void 0===o&&(o=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var l={},u=o.filter(function(e){return e instanceof vC});return tw(n,r)&&u.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})}),t=nw(e,t=t.map(function(e){return H_(e,!1)}),l),new vC(e,t,a)},e}();function bC(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var _C=function(e){function t(t,n){var r=e.call(this)||this;return r._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:wt.None,styles:[],data:{animation:[]}}),r}return i(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?ld(e):e;return SC(this._renderer,null,t,"register",[n]),new wC(t,this._renderer)},t}(od),wC=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return i(t,e),t.prototype.create=function(e,t){return new CC(this._id,e,t||{},this._renderer)},t}(sd),CC=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return SC(this._renderer,this.element,this.id,e,t)},e.prototype.onDone=function(e){this._listen("done",e)},e.prototype.onStart=function(e){this._listen("start",e)},e.prototype.onDestroy=function(e){this._listen("destroy",e)},e.prototype.init=function(){this._command("init")},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this._command("play"),this._started=!0},e.prototype.pause=function(){this._command("pause")},e.prototype.restart=function(){this._command("restart")},e.prototype.finish=function(){this._command("finish")},e.prototype.destroy=function(){this._command("destroy")},e.prototype.reset=function(){this._command("reset")},e.prototype.setPosition=function(e){this._command("setPosition",e)},e.prototype.getPosition=function(){return 0},e}();function SC(e,t,n,r,i){return e.setProperty(t,"@@"+n+":"+r,i)}var EC=function(){function e(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return e.prototype.createRenderer=function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var i=this._rendererCache.get(r);return i||(i=new OC("",r,this.engine),this._rendererCache.set(r,i)),i}var o=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(function(t){return n.engine.registerTrigger(o,s,e,t.name,t)}),new TC(this,s,r,this.engine)},e.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},e.prototype._scheduleCountTask=function(){var e=this;this.promise.then(function(){e._microtaskId++})},e.prototype.scheduleListenerCallback=function(e,t,n){var r=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){var t=u(e,2);(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))},e.prototype.end=function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},e}(),OC=function(){function e(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return t.destroyNode(e)}:null}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},e.prototype.createElement=function(e,t){return this.delegate.createElement(e,t)},e.prototype.createComment=function(e){return this.delegate.createComment(e)},e.prototype.createText=function(e){return this.delegate.createText(e)},e.prototype.appendChild=function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)},e.prototype.insertBefore=function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)},e.prototype.removeChild=function(e,t){this.engine.onRemove(this.namespaceId,t,this.delegate)},e.prototype.selectRootElement=function(e,t){return this.delegate.selectRootElement(e,t)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setAttribute=function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)},e.prototype.setValue=function(e,t){this.delegate.setValue(e,t)},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.disableAnimations=function(e,t){this.engine.disableAnimations(e,t)},e}(),TC=function(e){function t(t,n,r,i){var o=e.call(this,n,r,i)||this;return o.factory=t,o.namespaceId=n,o}return i(t,e),t.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)},t.prototype.listen=function(e,t,n){var r,i,o,s=this;if("@"==t.charAt(0)){var a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),c="";return"@"!=l.charAt(0)&&(l=(r=u((i=l,o=i.indexOf("."),[i.substring(0,o),i.substr(o+1)]),2))[0],c=r[1]),this.engine.listen(this.namespaceId,a,l,c,function(e){s.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)},t}(OC),xC=function(e){function t(t,n,r){return e.call(this,t.body,n,r)||this}return i(t,e),t}(rC);function IC(){return"function"==typeof bC()?new yC:new gC}function PC(){return new Iw}function kC(e,t,n){return new EC(e,t,n)}var MC=new Me("AnimationModuleType"),AC=function(){return function(){}}(),RC=fs({encapsulation:2,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}@media screen and (-ms-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}.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 .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-empty.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:scaleY(1.0001)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(.5);opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.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 .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-label-wrapper .mat-icon,.mat-form-field-subscript-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}",".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}@media screen and (-ms-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}@media screen and (-ms-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 .6s cubic-bezier(.25,.8,.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}",".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}@media screen and (-ms-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}@media screen and (-ms-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}@media screen and (-ms-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}",".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:-.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-end,.mat-form-field-appearance-outline .mat-form-field-outline-start{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-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start{border-width:2px;transition:border-color .3s cubic-bezier(.25,.8,.25,1)}.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 .1s cubic-bezier(.25,.8,.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 .6s cubic-bezier(.25,.8,.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 .mat-form-field-outline,.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,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}@media screen and (-ms-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}@media screen and (-ms-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}@media screen and (-ms-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 .6s cubic-bezier(.25,.8,.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}",".mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;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-caps-lock-indicator,.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=month]::after,.mat-input-element[type=time]::after,.mat-input-element[type=week]::after{content:' ';white-space:pre;width:1px}.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button,.mat-input-element::-webkit-inner-spin-button{font-size:.75em}.mat-input-element::placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-moz-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-webkit-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element:-ms-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.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:0 0}.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}[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-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}"],data:{animation:[{type:7,name:"transitionMessages",definitions:[{type:0,name:"enter",styles:{type:6,styles:{opacity:1,transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function NC(e){return nl(0,[(e()(),Bs(0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),Bs(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(e()(),Bs(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(e()(),Bs(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(e()(),Bs(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(e()(),Bs(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(e()(),Bs(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(e()(),Bs(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(e()(),Bs(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function DC(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),Ja(null,0)],null,null)}function LC(e){return nl(0,[(e()(),Bs(0,0,null,null,2,null,null,null,null,null,null,null)),Ja(null,2),(e()(),$a(2,null,["",""]))],null,function(e,t){e(t,2,0,t.component._control.placeholder)})}function jC(e){return nl(0,[Ja(null,3),(e()(),zs(0,null,null,0))],null,null)}function VC(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(e()(),$a(-1,null,["\xa0*"]))],null,null)}function FC(e){return nl(0,[(e()(),Bs(0,0,[[4,0],["label",1]],null,8,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"cdkObserveContent"]],function(e,t,n){var r=!0;return"cdkObserveContent"===t&&(r=!1!==e.component.updateOutlineGap()&&r),r},null,null)),ka(1,16384,null,0,nc,[],{ngSwitch:[0,"ngSwitch"]},null),ka(2,1196032,null,0,_m,[bm,br,Ki],{disabled:[0,"disabled"]},{event:"cdkObserveContent"}),(e()(),zs(16777216,null,null,1,null,LC)),ka(4,278528,null,0,rc,[So,Gr,nc],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),zs(16777216,null,null,1,null,jC)),ka(6,278528,null,0,rc,[So,Gr,nc],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),zs(16777216,null,null,1,null,VC)),ka(8,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n._hasLabel()),e(t,2,0,"outline"!=n.appearance),e(t,4,0,!1),e(t,6,0,!0),e(t,8,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(e,t){var n=t.component;e(t,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function UC(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),Ja(null,4)],null,null)}function zC(e){return nl(0,[(e()(),Bs(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(e()(),Bs(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,1,0,"accent"==n.color,"warn"==n.color)})}function BC(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),Ja(null,5)],null,function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function HC(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(e()(),$a(1,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n._hintLabelId),e(t,1,0,n.hintLabel)})}function WC(e){return nl(0,[(e()(),Bs(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(e()(),zs(16777216,null,null,1,null,HC)),ka(2,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),Ja(null,6),(e()(),Bs(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),Ja(null,7)],function(e,t){e(t,2,0,t.component.hintLabel)},function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function GC(e){return nl(2,[qa(671088640,1,{underlineRef:0}),qa(402653184,2,{_connectionContainerRef:0}),qa(402653184,3,{_inputContainerRef:0}),qa(671088640,4,{_label:0}),(e()(),Bs(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(e()(),Bs(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==(i._control.onContainerClick&&i._control.onContainerClick(n))&&r),r},null,null)),(e()(),zs(16777216,null,null,1,null,NC)),ka(7,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,DC)),ka(9,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),Ja(null,1),(e()(),Bs(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(e()(),zs(16777216,null,null,1,null,FC)),ka(14,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,UC)),ka(16,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,zC)),ka(18,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),ka(20,16384,null,0,nc,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),zs(16777216,null,null,1,null,BC)),ka(22,278528,null,0,rc,[So,Gr,nc],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),zs(16777216,null,null,1,null,WC)),ka(24,278528,null,0,rc,[So,Gr,nc],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(e,t){var n=t.component;e(t,7,0,"outline"==n.appearance),e(t,9,0,n._prefixChildren.length),e(t,14,0,n._hasFloatingLabel()),e(t,16,0,n._suffixChildren.length),e(t,18,0,"outline"!=n.appearance),e(t,20,0,n._getDisplayedMessages()),e(t,22,0,"error"),e(t,24,0,"hint")},null)}var qC=!!sh()&&{passive:!0},ZC=function(){function e(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}return e.prototype.monitor=function(e){var t=this;if(!this._platform.isBrowser)return Eu;var n=e instanceof br?e.nativeElement:e,r=this._monitoredElements.get(n);if(r)return r.subject.asObservable();var i=new F,o="cdk-text-field-autofilled",s=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run(function(){return i.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return i.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",s,qC),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:i,unlisten:function(){n.removeEventListener("animationstart",s,qC)}}),i.asObservable()},e.prototype.stopMonitoring=function(e){var t=e instanceof br?e.nativeElement:e,n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))},e.prototype.ngOnDestroy=function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})},e.ngInjectableDef=Ie({factory:function(){return new e(bt(nh),bt(Ki))},token:e,providedIn:"root"}),e}(),QC=function(){return function(){}}(),YC=["button","checkbox","file","hidden","image","radio","range","reset","submit"],KC=0,JC=function(e){function t(t,n,r,i,o,s,a,l,u){var c=e.call(this,s,i,o,r)||this;c._elementRef=t,c._platform=n,c.ngControl=r,c._autofillMonitor=l,c._uid="mat-input-"+KC++,c._isServer=!1,c._isNativeSelect=!1,c.focused=!1,c.stateChanges=new F,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return oh().has(e)});var d=c._elementRef.nativeElement;return c._inputValueAccessor=a||d,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&u.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),c._isServer=!c._platform.isBrowser,c._isNativeSelect="select"===d.nodeName.toLowerCase(),c._isNativeSelect&&(c.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),c}return i(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Nd(e),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Nd(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&oh().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=Nd(e)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})},t.prototype.ngOnChanges=function(){this.stateChanges.next()},t.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._focusChanged=function(e){e===this.focused||this.readonly||(this.focused=e,this.stateChanges.next())},t.prototype._onInput=function(){},t.prototype._dirtyCheckNativeValue=function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())},t.prototype._validateType=function(){if(YC.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},t.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},t.prototype._isBadInput=function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput},t.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(t.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement;return e.multiple||!this.empty||!!e.options[0].label||this.focused}return this.focused||!this.empty},enumerable:!0,configurable:!0}),t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focused||this.focus()},t}(kf(function(){return function(e,t,n,r){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=n,this.ngControl=r}}())),XC=function(){return function(){}}(),$C="accent",eS=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],tS=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;o._platform=n,o._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");for(var s=0,a=eS;s<a.length;s++){var l=a[s];o._hasHostAttributes(l)&&t.nativeElement.classList.add(l)}return o._focusMonitor.monitor(o._elementRef,!0),o.isRoundButton&&(o.color=$C),o}return i(t,e),t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},t.prototype.focus=function(){this._getHostElement().focus()},t.prototype._getHostElement=function(){return this._elementRef.nativeElement},t.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},t.prototype._hasHostAttributes=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.some(function(t){return e._getHostElement().hasAttribute(t)})},t}(If(xf(Pf(function(){return function(e){this._elementRef=e}}())))),nS=function(){return function(){}}(),rS=fs({encapsulation:2,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-flat-button,.mat-icon-button,.mat-stroked-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:0;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-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-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,.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{opacity:.12}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-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:0;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 .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,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-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:0;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 .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,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:0;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 .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,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 .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple.mat-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-focus-overlay{border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .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}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function iS(e){return nl(2,[qa(402653184,1,{ripple:0}),(e()(),Bs(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),Ja(null,0),(e()(),Bs(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),ka(4,212992,[[1,4]],0,Bf,[br,Ki,nh,[2,zf],[2,MC]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(e()(),Bs(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(e,t){var n=t.component;e(t,3,0,n.isRoundButton||n.isIconButton,va(t,4).unbounded)})}var oS=function(){function e(e,t){this.router=e,this.formBuilder=t,this.version=n("kiQV").version}return e.prototype.ngOnInit=function(){this.roomForm=this.formBuilder.group({roomName:["",Yy.compose([Yy.required])]})},e.prototype.goToVideoCall=function(){if(this.roomForm.valid){var e=this.roomForm.value.roomName.replace(/ /g,"-");this.router.navigate(["/",e])}},e}(),sS=fs({encapsulation:0,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:rgba(221,221,221,.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%}}"]],data:{}});function aS(e){return nl(0,[(e()(),Bs(0,0,null,null,48,"div",[["id","section1"]],null,null,null,null,null)),(e()(),Bs(1,0,null,null,9,"mat-toolbar",[["class","mat-toolbar"],["id","header"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,Ly,Dy)),ka(2,4243456,null,1,Ry,[br,nh,uc],null,null),qa(603979776,1,{_toolbarRows:1}),(e()(),Bs(4,0,null,0,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==va(e,5).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ka(5,671744,null,0,ry,[ny,tv,Nu],{routerLink:[0,"routerLink"]},null),function(e,t,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:6,flags:32,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Us(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,0,new Array(1)),(e()(),Bs(7,0,null,null,0,"img",[["alt","OpenVidu Logo"],["id","header_img"],["src","assets/images/openvidu_logo.png"]],null,null,null,null,null)),(e()(),Bs(8,0,null,0,2,"div",[["id","version"]],null,null,null,null,null)),(e()(),Bs(9,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),$a(10,null,["",""])),(e()(),Bs(11,0,null,null,3,"div",[["id","ov_info"]],null,null,null,null,null)),(e()(),Bs(12,0,null,null,0,"img",[["alt","OpenVidu Logo"],["id","ov_img"],["src","assets/images/openvidu_vert_white_bg_trans_cropped.png"]],null,null,null,null,null)),(e()(),Bs(13,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),$a(-1,null,["Videoconference rooms in one click"])),(e()(),Bs(15,0,null,null,33,"div",[["id","card_content"]],null,null,null,null,null)),(e()(),Bs(16,0,null,null,32,"mat-card",[["class","mat-card"],["id","room_card"]],null,null,null,By,zy)),ka(17,49152,null,0,Fy,[],null,null),(e()(),Bs(18,0,null,0,1,"h3",[],null,null,null,null,null)),(e()(),$a(-1,null,["Create an OpenVidu videoconference"])),(e()(),Bs(20,0,null,0,28,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(e,t,n){var r=!0,i=e.component;return"submit"===t&&(r=!1!==va(e,22).onSubmit(n)&&r),"reset"===t&&(r=!1!==va(e,22).onReset()&&r),"ngSubmit"===t&&(r=!1!==i.goToVideoCall()&&r),r},null,null)),ka(21,16384,null,0,t_,[],null,null),ka(22,540672,null,0,Yb,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),Ma(2048,null,qy,null,[Yb]),ka(24,16384,null,0,Ab,[[4,qy]],null,null),(e()(),Bs(25,0,null,null,19,"mat-form-field",[["appearance","outline"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,GC,RC)),ka(26,7389184,null,7,p_,[br,Eo,[2,Wf],[2,Ad],[2,h_],nh,Ki,[2,MC]],{appearance:[0,"appearance"]},null),qa(335544320,2,{_control:0}),qa(335544320,3,{_placeholderChild:0}),qa(335544320,4,{_labelChild:0}),qa(603979776,5,{_errorChildren:1}),qa(603979776,6,{_hintChildren:1}),qa(603979776,7,{_prefixChildren:1}),qa(603979776,8,{_suffixChildren:1}),(e()(),Bs(34,0,null,3,2,"mat-label",[],null,null,null,null,null)),ka(35,16384,[[4,4]],0,u_,[],null,null),(e()(),$a(-1,null,["Insert your room name"])),(e()(),Bs(37,0,null,1,7,"input",[["autocomplete","off"],["class","mat-input-element mat-form-field-autofill-control"],["formControlName","roomName"],["matInput",""],["placeholder","Openvidu_call_room"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var r=!0;return"input"===t&&(r=!1!==va(e,38)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==va(e,38).onTouched()&&r),"compositionstart"===t&&(r=!1!==va(e,38)._compositionStart()&&r),"compositionend"===t&&(r=!1!==va(e,38)._compositionEnd(n.target.value)&&r),"blur"===t&&(r=!1!==va(e,43)._focusChanged(!1)&&r),"focus"===t&&(r=!1!==va(e,43)._focusChanged(!0)&&r),"input"===t&&(r=!1!==va(e,43)._onInput()&&r),r},null,null)),ka(38,16384,null,0,nb,[Sr,br,[2,tb]],null,null),Ma(1024,null,$y,function(e){return[e]},[nb]),ka(40,671744,null,0,$b,[[3,qy],[8,null],[8,null],[6,$y],[2,Zb]],{name:[0,"name"]},null),Ma(2048,null,ab,null,[$b]),ka(42,16384,null,0,Mb,[[4,ab]],null,null),ka(43,999424,null,0,JC,[br,nh,[6,ab],[2,zb],[2,Yb],Mf,[8,null],ZC,Ki],{placeholder:[0,"placeholder"]},null),Ma(2048,[[2,4]],a_,null,[JC]),(e()(),Bs(45,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),Bs(46,0,null,null,2,"button",[["color","secondary"],["mat-stroked-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,iS,rS)),ka(47,180224,null,0,tS,[br,nh,Sf,[2,MC]],{color:[0,"color"]},null),(e()(),$a(-1,0,["Create Room"]))],function(e,t){var n=t.component,r=e(t,6,0,"");e(t,5,0,r),e(t,22,0,n.roomForm),e(t,26,0,"outline"),e(t,40,0,"roomName"),e(t,43,0,"Openvidu_call_room"),e(t,47,0,"secondary")},function(e,t){var n=t.component;e(t,1,0,va(t,2)._toolbarRows.length>0,0===va(t,2)._toolbarRows.length),e(t,4,0,va(t,5).target,va(t,5).href),e(t,10,0,n.version),e(t,20,0,va(t,24).ngClassUntouched,va(t,24).ngClassTouched,va(t,24).ngClassPristine,va(t,24).ngClassDirty,va(t,24).ngClassValid,va(t,24).ngClassInvalid,va(t,24).ngClassPending),e(t,25,1,["standard"==va(t,26).appearance,"fill"==va(t,26).appearance,"outline"==va(t,26).appearance,"legacy"==va(t,26).appearance,va(t,26)._control.errorState,va(t,26)._canLabelFloat,va(t,26)._shouldLabelFloat(),va(t,26)._hideControlPlaceholder(),va(t,26)._control.disabled,va(t,26)._control.autofilled,va(t,26)._control.focused,"accent"==va(t,26).color,"warn"==va(t,26).color,va(t,26)._shouldForward("untouched"),va(t,26)._shouldForward("touched"),va(t,26)._shouldForward("pristine"),va(t,26)._shouldForward("dirty"),va(t,26)._shouldForward("valid"),va(t,26)._shouldForward("invalid"),va(t,26)._shouldForward("pending"),!va(t,26)._animationsEnabled]),e(t,37,1,[va(t,42).ngClassUntouched,va(t,42).ngClassTouched,va(t,42).ngClassPristine,va(t,42).ngClassDirty,va(t,42).ngClassValid,va(t,42).ngClassInvalid,va(t,42).ngClassPending,va(t,43)._isServer,va(t,43).id,va(t,43).placeholder,va(t,43).disabled,va(t,43).required,va(t,43).readonly&&!va(t,43)._isNativeSelect||null,va(t,43)._ariaDescribedby||null,va(t,43).errorState,va(t,43).required.toString()]),e(t,46,0,va(t,47).disabled||null,"NoopAnimations"===va(t,47)._animationMode)})}function lS(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"app-dashboard",[],null,null,null,aS,sS)),ka(1,114688,null,0,oS,[ny,e_],null,null)],function(e,t){e(t,1,0)},null)}var uS=sa("app-dashboard",oS,lS,{},{},[]),cS=function(){function e(){this.nickname="",this.cancel=new Wr,this.openviduExtensionUrl="https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold"}return e.prototype.ngOnInit=function(){},e.prototype.onNoClick=function(){this.cancel.emit()},e.prototype.goToChromePage=function(){window.open(this.openviduExtensionUrl),this.isInstalled=!0},e.prototype.refreshBrowser=function(){window.location.reload()},e}(),dS=fs({encapsulation:0,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}"]],data:{}});function hS(e){return nl(0,[(e()(),Bs(0,0,null,null,2,"button",[["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.refreshBrowser()&&r),r},iS,rS)),ka(1,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),$a(-1,0,["Refresh"]))],null,function(e,t){e(t,0,0,va(t,1).disabled||null,"NoopAnimations"===va(t,1)._animationMode)})}function pS(e){return nl(0,[(e()(),Bs(0,0,null,null,21,"div",[["id","dialogExtension"]],null,null,null,null,null)),(e()(),Bs(1,0,null,null,20,"mat-card",[["class","mat-card"]],null,null,null,By,zy)),ka(2,49152,null,0,Fy,[],null,null),(e()(),Bs(3,0,null,0,8,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),ka(4,16384,null,0,jy,[],null,null),(e()(),Bs(5,0,null,null,2,"h1",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),ka(6,81920,null,0,Zh,[[2,Uh],br,Gh],null,null),(e()(),$a(7,null,["Hello ",""])),(e()(),Bs(8,0,null,null,3,"div",[["class","mat-dialog-content"],["mat-dialog-content",""]],null,null,null,null,null)),ka(9,16384,null,0,Qh,[],null,null),(e()(),Bs(10,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),$a(-1,null,["You need install this chrome extension and refresh the browser for can share your screen."])),(e()(),Bs(12,0,null,0,9,"mat-card-actions",[["align","center"],["class","mat-card-actions"]],[[2,"mat-card-actions-align-end",null]],null,null,null,null)),ka(13,16384,null,0,Vy,[],{align:[0,"align"]},null),(e()(),Bs(14,0,null,null,2,"button",[["id","cancelButton"],["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onNoClick()&&r),r},iS,rS)),ka(15,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),$a(-1,0,["Cancel"])),(e()(),Bs(17,0,null,null,2,"button",[["cdkFocusInitial",""],["id","installButton"],["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goToChromePage()&&r),r},iS,rS)),ka(18,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),$a(-1,0,["Install"])),(e()(),zs(16777216,null,null,1,null,hS)),ka(21,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,6,0),e(t,13,0,"center"),e(t,21,0,n.isInstalled)},function(e,t){var n=t.component;e(t,5,0,va(t,6).id),e(t,7,0,n.nickname),e(t,12,0,"end"===va(t,13).align),e(t,14,0,va(t,15).disabled||null,"NoopAnimations"===va(t,15)._animationMode),e(t,17,0,va(t,18).disabled||null,"NoopAnimations"===va(t,18)._animationMode)})}var fS=[".nickname[_ngcontent-%COMP%]{background:rgba(58,64,74,.651);padding:5px!important;position:absolute;z-index:999}.pointer[_ngcontent-%COMP%]{cursor:pointer}#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:#fff}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%;font-family:Arial,Helvetica,sans-serif}#statusIcons[_ngcontent-%COMP%]{bottom:0;background:#c71100;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}#fullscreenButton[_ngcontent-%COMP%]{position:absolute;bottom:1px;right:1px;z-index:1000;background-color:#000000c4}#volumeButton[_ngcontent-%COMP%]{background-color:#000000c4;position:absolute;bottom:45px;right:1px;z-index:1000}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden} .mat-form-field-appearance-legacy .mat-form-field-label{color:#fff!important} .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:#d6d6d6d7!important} .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#f5f5f5c2!important}"];function mS(e){return Error('Unable to find icon with the name "'+e+'"')}function gS(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+e+'".')}function vS(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+e+'".')}var yS=function(){return function(e){e.nodeName?this.svgElement=e:this.url=e}}(),bS=function(){function e(e,t,n){this._httpClient=e,this._sanitizer=t,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 e.prototype.addSvgIcon=function(e,t){return this.addSvgIconInNamespace("",e,t)},e.prototype.addSvgIconLiteral=function(e,t){return this.addSvgIconLiteralInNamespace("",e,t)},e.prototype.addSvgIconInNamespace=function(e,t,n){return this._addSvgIconConfig(e,t,new yS(n))},e.prototype.addSvgIconLiteralInNamespace=function(e,t,n){var r=this._sanitizer.sanitize(mi.HTML,n);if(!r)throw vS(n);var i=this._createSvgElementForSingleIcon(r);return this._addSvgIconConfig(e,t,new yS(i))},e.prototype.addSvgIconSet=function(e){return this.addSvgIconSetInNamespace("",e)},e.prototype.addSvgIconSetLiteral=function(e){return this.addSvgIconSetLiteralInNamespace("",e)},e.prototype.addSvgIconSetInNamespace=function(e,t){return this._addSvgIconSetConfig(e,new yS(t))},e.prototype.addSvgIconSetLiteralInNamespace=function(e,t){var n=this._sanitizer.sanitize(mi.HTML,t);if(!n)throw vS(t);var r=this._svgElementFromString(n);return this._addSvgIconSetConfig(e,new yS(r))},e.prototype.registerFontClassAlias=function(e,t){return void 0===t&&(t=e),this._fontCssClassesByAlias.set(e,t),this},e.prototype.classNameForFontAlias=function(e){return this._fontCssClassesByAlias.get(e)||e},e.prototype.setDefaultFontSetClass=function(e){return this._defaultFontSetClass=e,this},e.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},e.prototype.getSvgIconFromUrl=function(e){var t=this,n=this._sanitizer.sanitize(mi.RESOURCE_URL,e);if(!n)throw gS(e);var r=this._cachedIconsByUrl.get(n);return r?xu(_S(r)):this._loadSvgIconFromConfig(new yS(e)).pipe(sf(function(e){return t._cachedIconsByUrl.set(n,e)}),te(function(e){return _S(e)}))},e.prototype.getNamedSvgIcon=function(e,t){void 0===t&&(t="");var n=wS(t,e),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(t);return i?this._getSvgFromIconSetConfigs(e,i):qc(mS(n))},e.prototype._getSvgFromConfig=function(e){return e.svgElement?xu(_S(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(sf(function(t){return e.svgElement=t}),te(function(e){return _S(e)}))},e.prototype._getSvgFromIconSetConfigs=function(e,t){var n=this,r=this._extractIconWithNameFromAnySet(e,t);return r?xu(r):Hy(t.filter(function(e){return!e.svgElement}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Qc(function(t){var r=n._sanitizer.sanitize(mi.RESOURCE_URL,e.url);return console.error("Loading icon set URL: "+r+" failed: "+t.message),xu(null)}))})).pipe(te(function(){var r=n._extractIconWithNameFromAnySet(e,t);if(!r)throw mS(e);return r}))},e.prototype._extractIconWithNameFromAnySet=function(e,t){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,e);if(i)return i}}return null},e.prototype._loadSvgIconFromConfig=function(e){var t=this;return this._fetchUrl(e.url).pipe(te(function(e){return t._createSvgElementForSingleIcon(e)}))},e.prototype._loadSvgIconSetFromConfig=function(e){var t=this;return e.svgElement?xu(e.svgElement):this._fetchUrl(e.url).pipe(te(function(n){return e.svgElement||(e.svgElement=t._svgElementFromString(n)),e.svgElement}))},e.prototype._createSvgElementForSingleIcon=function(e){var t=this._svgElementFromString(e);return this._setSvgAttributes(t),t},e.prototype._extractSvgIconFromSet=function(e,t){var n=e.querySelector("#"+t);if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var i=this._svgElementFromString("<svg></svg>");return i.appendChild(r),this._setSvgAttributes(i)},e.prototype._svgElementFromString=function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n},e.prototype._toSvgElement=function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=0;n<e.childNodes.length;n++)e.childNodes[n].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[n].cloneNode(!0));return t},e.prototype._setSvgAttributes=function(e){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),e},e.prototype._fetchUrl=function(e){var t=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==e)throw Error('Cannot fetch icon from URL "'+e+'".');var n=this._sanitizer.sanitize(mi.RESOURCE_URL,e);if(!n)throw gS(e);var r=this._inProgressUrlFetches.get(n);if(r)return r;var i=this._httpClient.get(n,{responseType:"text"}).pipe(Gm(function(){return t._inProgressUrlFetches.delete(n)}),_e());return this._inProgressUrlFetches.set(n,i),i},e.prototype._addSvgIconConfig=function(e,t,n){return this._svgIconConfigs.set(wS(e,t),n),this},e.prototype._addSvgIconSetConfig=function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this},e.ngInjectableDef=Ie({factory:function(){return new e(bt(kc,8),bt(Qp),bt(uc,8))},token:e,providedIn:"root"}),e}();function _S(e){return e.cloneNode(!0)}function wS(e,t){return e+":"+t}var CS=If(function(){return function(e){this._elementRef=e}}()),SS=new Me("mat-icon-location",{providedIn:"root",factory:function(){var e=bt(uc);return{getPathname:function(){return e&&e.location&&e.location.pathname||""}}}}),ES=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],OS=ES.map(function(e){return"["+e+"]"}).join(", "),TS=/^url\(['"]?#(.*?)['"]?\)$/,xS=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._iconRegistry=n,o._location=i,o._inline=!1,r||t.nativeElement.setAttribute("aria-hidden","true"),o}return i(t,e),Object.defineProperty(t.prototype,"inline",{get:function(){return this._inline},set:function(e){this._inline=Nd(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSet",{get:function(){return this._fontSet},set:function(e){this._fontSet=this._cleanupFontValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontIcon",{get:function(){return this._fontIcon},set:function(e){this._fontIcon=this._cleanupFontValue(e)},enumerable:!0,configurable:!0}),t.prototype._splitIconName=function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'+e+'"')}},t.prototype.ngOnChanges=function(e){var t=this;if(e.svgIcon)if(this.svgIcon){var n=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(n[1],n[0]).pipe(Td(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){return console.log("Error retrieving icon: "+e.message)})}else this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()},t.prototype.ngOnInit=function(){this._usingFontIcon()&&this._updateFontIconClasses()},t.prototype.ngAfterViewChecked=function(){var e=this._elementsWithExternalReferences;if(e&&this._location&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}},t.prototype.ngOnDestroy=function(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()},t.prototype._usingFontIcon=function(){return!this.svgIcon},t.prototype._setSvgElement=function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";if(this._location){var r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r)}this._elementRef.nativeElement.appendChild(e)},t.prototype._clearSvgElement=function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}},t.prototype._updateFontIconClasses=function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}},t.prototype._cleanupFontValue=function(e){return"string"==typeof e?e.trim().split(" ")[0]:e},t.prototype._prependPathToReferences=function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('"+e+"#"+t.value+"')")})})},t.prototype._cacheChildrenWithExternalReferences=function(e){for(var t=e.querySelectorAll(OS),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,r=function(e){ES.forEach(function(r){var i=t[e],o=i.getAttribute(r),s=o?o.match(TS):null;if(s){var a=n.get(i);a||n.set(i,a=[]),a.push({name:r,value:s[1]})}})},i=0;i<t.length;i++)r(i)},t}(CS),IS=function(){return function(){}}(),PS=fs({encapsulation:2,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}"],data:{}});function kS(e){return nl(2,[Ja(null,0)],null,null)}var MS=function(){function e(){}return e.prototype.toggleFullscreen=function(e){var t=window.document,n=t.getElementById(e);return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement?(t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen(),"fullscreen_exit"):(n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen(),"fullscreen")},e.ngInjectableDef=Ie({factory:function(){return new e},token:e,providedIn:"root"}),e}(),AS=function(){function e(e){this.apiSrv=e,this.fullscreenIcon="fullscreen",this.micButtonClicked=new Wr,this.camButtonClicked=new Wr,this.screenShareClicked=new Wr,this.exitButtonClicked=new Wr,this.chatButtonClicked=new Wr,this.screenShareDisabledClicked=new Wr}return e.prototype.sizeChange=function(e){var t=window.screen.height,n=window.screen.width,r=window.innerHeight;n!==window.innerWidth&&t!==r&&(this.fullscreenIcon="fullscreen")},e.prototype.ngOnInit=function(){},e.prototype.micStatusChanged=function(){this.micButtonClicked.emit()},e.prototype.camStatusChanged=function(){this.camButtonClicked.emit()},e.prototype.screenShare=function(){this.screenShareClicked.emit()},e.prototype.screenShareDisabled=function(){this.screenShareDisabledClicked.emit()},e.prototype.exitSession=function(){this.exitButtonClicked.emit()},e.prototype.toggleChat=function(){this.chatButtonClicked.emit()},e.prototype.toggleFullscreen=function(){var e=this.apiSrv.toggleFullscreen("videoRoomNavBar");this.fullscreenIcon="fullscreen"===e?"fullscreen_exit":"fullscreen"},e}(),RS=fs({encapsulation:0,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}#navButtons[_ngcontent-%COMP%]{position:absolute;left:0;right:0;min-width:400px}#navChatButton[_ngcontent-%COMP%]{position:absolute;right:10px;top:none}#titleContent[_ngcontent-%COMP%]{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}"]],data:{}});function NS(e){return nl(0,[(e()(),Bs(0,0,null,null,0,"img",[["alt","OpenVidu Logo"],["id","header_img"],["src","https://raw.githubusercontent.com/OpenVidu/openvidu-call/master/front/openvidu-call/src/assets/images/openvidu_logo.png"]],null,null,null,null,null))],null,null)}function DS(e){return nl(0,[(e()(),Bs(0,0,null,null,0,"img",[["alt","OpenVidu Logo"],["id","header_img"],["src","https://raw.githubusercontent.com/OpenVidu/openvidu-call/master/front/openvidu-call/src/assets/images/openvidu_logo_grey.png"]],null,null,null,null,null))],null,null)}function LS(e){return nl(0,[(e()(),Bs(0,0,null,null,2,"div",[["id","titleContent"]],[[2,"titleContentLight",null]],null,null,null,null)),(e()(),Bs(1,0,null,null,1,"span",[["id","session-title"]],null,null,null,null,null)),(e()(),$a(2,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n.lightTheme),e(t,2,0,n.mySessionId)})}function jS(e){return nl(0,[(e()(),Bs(0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["matTooltip","Unpublish your audio"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,2).show()&&r),"keydown"===t&&(r=!1!==va(e,2)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,2)._handleTouchend()&&r),r},kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(2,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["mic"])),(e()(),zs(0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"Unpublish your audio")},function(e,t){e(t,0,0,va(t,1).inline)})}function VS(e){return nl(0,[(e()(),Bs(0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["color","warn"],["matTooltip","Publish your audio"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,2).show()&&r),"keydown"===t&&(r=!1!==va(e,2)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,2)._handleTouchend()&&r),r},kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],{color:[0,"color"]},null),ka(2,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["mic_off"])),(e()(),zs(0,null,null,0))],function(e,t){e(t,1,0,"warn"),e(t,2,0,"Publish your audio")},function(e,t){e(t,0,0,va(t,1).inline)})}function FS(e){return nl(0,[(e()(),Bs(0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["matTooltip","Unpublish your cam"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,2).show()&&r),"keydown"===t&&(r=!1!==va(e,2)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,2)._handleTouchend()&&r),r},kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(2,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["videocam"])),(e()(),zs(0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"Unpublish your cam")},function(e,t){e(t,0,0,va(t,1).inline)})}function US(e){return nl(0,[(e()(),Bs(0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["color","warn"],["matTooltip","Publish your cam"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,2).show()&&r),"keydown"===t&&(r=!1!==va(e,2)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,2)._handleTouchend()&&r),r},kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],{color:[0,"color"]},null),ka(2,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["videocam_off"])),(e()(),zs(0,null,null,0))],function(e,t){e(t,1,0,"warn"),e(t,2,0,"Publish your cam")},function(e,t){e(t,0,0,va(t,1).inline)})}function zS(e){return nl(0,[(e()(),Bs(0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["matTooltip","Choose screen"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,2).show()&&r),"keydown"===t&&(r=!1!==va(e,2)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,2)._handleTouchend()&&r),r},kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(2,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["picture_in_picture"])),(e()(),zs(0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"Choose screen")},function(e,t){e(t,0,0,va(t,1).inline)})}function BS(e){return nl(0,[(e()(),Bs(0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["matTooltip","Screen share"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,2).show()&&r),"keydown"===t&&(r=!1!==va(e,2)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,2)._handleTouchend()&&r),r},kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(2,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["screen_share"])),(e()(),zs(0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"Screen share")},function(e,t){e(t,0,0,va(t,1).inline)})}function HS(e){return nl(0,[(e()(),Bs(0,0,null,null,5,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.screenShareDisabled()&&r),r},iS,rS)),ka(1,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),Bs(2,16777216,null,0,3,"mat-icon",[["class","mat-icon"],["color","warn"],["matTooltip","Stop screen share"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,4).show()&&r),"keydown"===t&&(r=!1!==va(e,4)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,4)._handleTouchend()&&r),r},kS,PS)),ka(3,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],{color:[0,"color"]},null),ka(4,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["stop_screen_share"]))],function(e,t){e(t,3,0,"warn"),e(t,4,0,"Stop screen share")},function(e,t){e(t,0,0,va(t,1).disabled||null,"NoopAnimations"===va(t,1)._animationMode),e(t,2,0,va(t,3).inline)})}function WS(e){return nl(0,[(e()(),Bs(0,0,null,null,5,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleFullscreen()&&r),r},iS,rS)),ka(1,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),Bs(2,16777216,null,0,3,"mat-icon",[["class","mat-icon"],["matTooltip","Fullscreen"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,4).show()&&r),"keydown"===t&&(r=!1!==va(e,4)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,4)._handleTouchend()&&r),r},kS,PS)),ka(3,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(4,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(5,0,["",""]))],function(e,t){e(t,3,0),e(t,4,0,"Fullscreen")},function(e,t){var n=t.component;e(t,0,0,va(t,1).disabled||null,"NoopAnimations"===va(t,1)._animationMode),e(t,2,0,va(t,3).inline),e(t,5,0,n.fullscreenIcon)})}function GS(e){return nl(0,[(e()(),Bs(0,0,null,null,0,"div",[["id","point"]],[[2,"pointLight",null]],null,null,null,null))],null,function(e,t){e(t,0,0,t.component.lightTheme)})}function qS(e){return nl(0,[(e()(),Bs(0,0,null,null,7,"button",[["id","navChatButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleChat()&&r),r},iS,rS)),ka(1,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),zs(16777216,null,0,1,null,GS)),ka(3,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(4,16777216,null,0,3,"mat-icon",[["class","mat-icon"],["matTooltip","Chat"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,6).show()&&r),"keydown"===t&&(r=!1!==va(e,6)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,6)._handleTouchend()&&r),r},kS,PS)),ka(5,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(6,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["question_answer"]))],function(e,t){e(t,3,0,t.component.showNotification),e(t,5,0),e(t,6,0,"Chat")},function(e,t){e(t,0,0,va(t,1).disabled||null,"NoopAnimations"===va(t,1)._animationMode),e(t,4,0,va(t,5).inline)})}function ZS(e){return nl(0,[(e()(),Bs(0,0,null,null,41,"mat-toolbar",[["class","mat-toolbar"],["id","header"],["role","heading"]],[[2,"headerLight",null],[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,Ly,Dy)),ka(1,4243456,null,1,Ry,[br,nh,uc],null,null),qa(603979776,1,{_toolbarRows:1}),(e()(),Bs(3,0,null,0,7,"div",[["id","navSessionInfo"]],null,null,null,null,null)),(e()(),Bs(4,0,null,null,4,"a",[],null,null,null,null,null)),(e()(),zs(16777216,null,null,1,null,NS)),ka(6,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,DS)),ka(8,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,LS)),ka(10,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(11,0,null,0,30,"div",[["align","center"],["id","navButtons"]],null,null,null,null,null)),(e()(),Bs(12,0,null,null,5,"button",[["id","navMicButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.micStatusChanged()&&r),r},iS,rS)),ka(13,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),zs(16777216,null,0,1,null,jS)),ka(15,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,0,1,null,VS)),ka(17,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(18,0,null,null,5,"button",[["id","navCamButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.camStatusChanged()&&r),r},iS,rS)),ka(19,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),zs(16777216,null,0,1,null,FS)),ka(21,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,0,1,null,US)),ka(23,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(24,0,null,null,5,"button",[["id","navScreenButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.screenShare()&&r),r},iS,rS)),ka(25,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),zs(16777216,null,0,1,null,zS)),ka(27,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,0,1,null,BS)),ka(29,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,HS)),ka(31,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,WS)),ka(33,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(34,0,null,null,5,"button",[["id","navLeaveButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.exitSession()&&r),r},iS,rS)),ka(35,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),Bs(36,16777216,null,0,3,"mat-icon",[["class","mat-icon"],["color","warn"],["matTooltip","Leave the session"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,38).show()&&r),"keydown"===t&&(r=!1!==va(e,38)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,38)._handleTouchend()&&r),r},kS,PS)),ka(37,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],{color:[0,"color"]},null),ka(38,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["power_settings_new"])),(e()(),zs(16777216,null,null,1,null,qS)),ka(41,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,6,0,!n.lightTheme),e(t,8,0,n.lightTheme),e(t,10,0,!n.compact&&n.mySessionId),e(t,15,0,n.localUser&&n.localUser.isAudioActive()),e(t,17,0,n.localUser&&!n.localUser.isAudioActive()),e(t,21,0,n.localUser&&n.localUser.isVideoActive()),e(t,23,0,n.localUser&&!n.localUser.isVideoActive()),e(t,27,0,n.localUser&&n.localUser.isScreenShareActive()),e(t,29,0,n.localUser&&!n.localUser.isScreenShareActive()),e(t,31,0,n.localUser&&n.localUser.isScreenShareActive()),e(t,33,0,n.localUser),e(t,37,0,"warn"),e(t,38,0,"Leave the session"),e(t,41,0,!n.compact)},function(e,t){e(t,0,0,t.component.lightTheme,va(t,1)._toolbarRows.length>0,0===va(t,1)._toolbarRows.length),e(t,12,0,va(t,13).disabled||null,"NoopAnimations"===va(t,13)._animationMode),e(t,18,0,va(t,19).disabled||null,"NoopAnimations"===va(t,19)._animationMode),e(t,24,0,va(t,25).disabled||null,"NoopAnimations"===va(t,25)._animationMode),e(t,34,0,va(t,35).disabled||null,"NoopAnimations"===va(t,35)._animationMode),e(t,36,0,va(t,37).inline)})}var QS=function(){function e(){}return e.prototype.ngAfterViewInit=function(){this._streamManager.addVideoElement(this.elementRef.nativeElement)},Object.defineProperty(e.prototype,"streamManager",{set:function(e){this._streamManager=e,this.elementRef&&this._streamManager.addVideoElement(this.elementRef.nativeElement)},enumerable:!0,configurable:!0}),e}(),YS=fs({encapsulation:0,styles:[fS],data:{}});function KS(e){return nl(0,[qa(402653184,1,{elementRef:0}),(e()(),Bs(1,0,[[1,0],["videoElement",1]],null,0,"video",[],[[8,"id",0],[8,"muted",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,1,0,"video-"+n._streamManager.stream.streamId,n.mutedSound)})}var JS=function(){function e(){}return e.prototype.isErrorState=function(e,t){return!!(e&&e.invalid&&(e.dirty||e.touched||t&&t.submitted))},e}(),XS=function(){function e(e){this.apiSrv=e,this.fullscreenIcon="fullscreen",this.nicknameFormControl=new jb("",[Yy.maxLength(25),Yy.required]),this.matcher=new JS,this.nicknameClicked=new Wr,this.micButtonClicked=new Wr,this.camButtonClicked=new Wr,this.screenShareClicked=new Wr,this.screenShareDisabledClicked=new Wr,this.exitButtonClicked=new Wr,this.chatButtonClicked=new Wr}return e.prototype.sizeChange=function(e){var t=window.screen.height,n=window.screen.width,r=window.innerHeight;n!==window.innerWidth&&t!==r&&(this.isFullscreen=!1,this.fullscreenIcon="fullscreen")},e.prototype.ngOnInit=function(){},e.prototype.toggleFullscreen=function(){"fullscreen"===this.apiSrv.toggleFullscreen("container-"+this.user.getStreamManager().stream.streamId)?(this.isFullscreen=!0,this.fullscreenIcon="fullscreen_exit",this.chatButtonClicked.emit("none")):(this.isFullscreen=!1,this.fullscreenIcon="fullscreen")},e.prototype.toggleSound=function(){this.mutedSound=!this.mutedSound},e.prototype.toggleNicknameForm=function(){this.user.isLocal()&&(this.editNickname=!this.editNickname)},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.nicknameFormControl.valid&&(this.nicknameClicked.emit(this.nicknameFormControl.value),this.toggleNicknameForm(),this.nicknameFormControl.reset())},e.prototype.micStatusChanged=function(){this.micButtonClicked.emit()},e.prototype.camStatusChanged=function(){this.camButtonClicked.emit()},e.prototype.screenShare=function(){this.screenShareClicked.emit()},e.prototype.screenShareDisabled=function(){this.screenShareDisabledClicked.emit()},e.prototype.exitSession=function(){this.exitButtonClicked.emit()},e.prototype.toggleChat=function(){this.toggleFullscreen(),this.chatButtonClicked.emit("block")},e}(),$S=fs({encapsulation:0,styles:[fS],data:{}});function eE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"app-toolbar",[],null,[[null,"camButtonClicked"],[null,"micButtonClicked"],[null,"exitButtonClicked"],[null,"chatButtonClicked"],[null,"screenShareClicked"],[null,"screenShareDisabledClicked"],["window","resize"]],function(e,t,n){var r=!0,i=e.component;return"window:resize"===t&&(r=!1!==va(e,1).sizeChange(n)&&r),"camButtonClicked"===t&&(r=!1!==i.camStatusChanged()&&r),"micButtonClicked"===t&&(r=!1!==i.micStatusChanged()&&r),"exitButtonClicked"===t&&(r=!1!==i.exitSession()&&r),"chatButtonClicked"===t&&(r=!1!==i.toggleChat()&&r),"screenShareClicked"===t&&(r=!1!==i.screenShare()&&r),"screenShareDisabledClicked"===t&&(r=!1!==i.screenShareDisabled()&&r),r},ZS,RS)),ka(1,114688,null,0,AS,[MS],{lightTheme:[0,"lightTheme"],mySessionId:[1,"mySessionId"],localUser:[2,"localUser"],compact:[3,"compact"],showNotification:[4,"showNotification"]},{micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",exitButtonClicked:"exitButtonClicked",chatButtonClicked:"chatButtonClicked",screenShareDisabledClicked:"screenShareDisabledClicked"})],function(e,t){var n=t.component;e(t,1,0,n.lightTheme,n.localUser.getStreamManager().stream.session.sessionId,n.localUser,n.compact,n.showNotification)},null)}function tE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"span",[["id","nickname"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleNicknameForm()&&r),r},null,null)),(e()(),$a(1,null,["",""]))],null,function(e,t){e(t,1,0,t.component.user.getNickname())})}function nE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleNicknameForm()&&r),r},null,null)),(e()(),$a(-1,null,[" (edit)"]))],null,null)}function rE(e){return nl(0,[(e()(),Bs(0,0,null,null,4,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),ka(1,16384,[[5,4]],0,s_,[],null,null),(e()(),$a(-1,null,[" Nickname is "])),(e()(),Bs(3,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),$a(-1,null,["required"]))],null,function(e,t){e(t,0,0,va(t,1).id)})}function iE(e){return nl(0,[(e()(),Bs(0,0,null,null,4,"mat-error",[["class","mat-error"],["role","alert"]],[[1,"id",0]],null,null,null,null)),ka(1,16384,[[5,4]],0,s_,[],null,null),(e()(),$a(-1,null,[" Nickname is "])),(e()(),Bs(3,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),$a(-1,null,["too long!"]))],null,function(e,t){e(t,0,0,va(t,1).id)})}function oE(e){return nl(0,[(e()(),Bs(0,0,null,null,32,"div",[["id","dialogNickname"]],null,null,null,null,null)),(e()(),Bs(1,0,null,null,5,"button",[["id","closeButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleNicknameForm()&&r),r},iS,rS)),ka(2,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),Bs(3,16777216,null,0,3,"mat-icon",[["class","mat-icon"],["matTooltip","Close"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,5).show()&&r),"keydown"===t&&(r=!1!==va(e,5)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,5)._handleTouchend()&&r),r},kS,PS)),ka(4,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(5,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["highlight_off"])),(e()(),Bs(7,0,null,null,25,"form",[["id","nicknameForm"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(e,t,n){var r=!0;return"submit"===t&&(r=!1!==va(e,9).onSubmit(n)&&r),"reset"===t&&(r=!1!==va(e,9).onReset()&&r),r},null,null)),ka(8,16384,null,0,t_,[],null,null),ka(9,4210688,null,0,zb,[[8,null],[8,null]],null,null),Ma(2048,null,qy,null,[zb]),ka(11,16384,null,0,Ab,[[4,qy]],null,null),(e()(),Bs(12,0,null,null,20,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,GC,RC)),ka(13,7389184,null,7,p_,[br,Eo,[2,Wf],[2,Ad],[2,h_],nh,Ki,[2,MC]],null,null),qa(335544320,2,{_control:0}),qa(335544320,3,{_placeholderChild:0}),qa(335544320,4,{_labelChild:0}),qa(603979776,5,{_errorChildren:1}),qa(603979776,6,{_hintChildren:1}),qa(603979776,7,{_prefixChildren:1}),qa(603979776,8,{_suffixChildren:1}),(e()(),Bs(21,0,null,1,7,"input",[["autocomplete","off"],["class","mat-input-element mat-form-field-autofill-control"],["matInput",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"keypress"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(e,t,n){var r=!0,i=e.component;return"input"===t&&(r=!1!==va(e,22)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==va(e,22).onTouched()&&r),"compositionstart"===t&&(r=!1!==va(e,22)._compositionStart()&&r),"compositionend"===t&&(r=!1!==va(e,22)._compositionEnd(n.target.value)&&r),"blur"===t&&(r=!1!==va(e,27)._focusChanged(!1)&&r),"focus"===t&&(r=!1!==va(e,27)._focusChanged(!0)&&r),"input"===t&&(r=!1!==va(e,27)._onInput()&&r),"keypress"===t&&(r=!1!==i.eventKeyPress(n)&&r),r},null,null)),ka(22,16384,null,0,nb,[Sr,br,[2,tb]],null,null),Ma(1024,null,$y,function(e){return[e]},[nb]),ka(24,540672,null,0,Qb,[[8,null],[8,null],[6,$y],[2,Zb]],{form:[0,"form"]},null),Ma(2048,null,ab,null,[Qb]),ka(26,16384,null,0,Mb,[[4,ab]],null,null),ka(27,999424,null,0,JC,[br,nh,[6,ab],[2,zb],[2,Yb],Mf,[8,null],ZC,Ki],{placeholder:[0,"placeholder"],errorStateMatcher:[1,"errorStateMatcher"]},null),Ma(2048,[[2,4]],a_,null,[JC]),(e()(),zs(16777216,null,5,1,null,rE)),ka(30,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,5,1,null,iE)),ka(32,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null)],function(e,t){var n,r,i=t.component;e(t,4,0),e(t,5,0,"Close"),e(t,24,0,i.nicknameFormControl),e(t,27,0,("Nick: ",n=i.user.getNickname(),"Nick: "+(null!=(r=n)?r.toString():"")),i.matcher),e(t,30,0,i.nicknameFormControl.hasError("required")),e(t,32,0,i.nicknameFormControl.hasError("maxlength"))},function(e,t){e(t,1,0,va(t,2).disabled||null,"NoopAnimations"===va(t,2)._animationMode),e(t,3,0,va(t,4).inline),e(t,7,0,va(t,11).ngClassUntouched,va(t,11).ngClassTouched,va(t,11).ngClassPristine,va(t,11).ngClassDirty,va(t,11).ngClassValid,va(t,11).ngClassInvalid,va(t,11).ngClassPending),e(t,12,1,["standard"==va(t,13).appearance,"fill"==va(t,13).appearance,"outline"==va(t,13).appearance,"legacy"==va(t,13).appearance,va(t,13)._control.errorState,va(t,13)._canLabelFloat,va(t,13)._shouldLabelFloat(),va(t,13)._hideControlPlaceholder(),va(t,13)._control.disabled,va(t,13)._control.autofilled,va(t,13)._control.focused,"accent"==va(t,13).color,"warn"==va(t,13).color,va(t,13)._shouldForward("untouched"),va(t,13)._shouldForward("touched"),va(t,13)._shouldForward("pristine"),va(t,13)._shouldForward("dirty"),va(t,13)._shouldForward("valid"),va(t,13)._shouldForward("invalid"),va(t,13)._shouldForward("pending"),!va(t,13)._animationsEnabled]),e(t,21,1,[va(t,26).ngClassUntouched,va(t,26).ngClassTouched,va(t,26).ngClassPristine,va(t,26).ngClassDirty,va(t,26).ngClassValid,va(t,26).ngClassInvalid,va(t,26).ngClassPending,va(t,27)._isServer,va(t,27).id,va(t,27).placeholder,va(t,27).disabled,va(t,27).required,va(t,27).readonly&&!va(t,27)._isNativeSelect||null,va(t,27)._ariaDescribedby||null,va(t,27).errorState,va(t,27).required.toString()])})}function sE(e){return nl(0,[(e()(),Bs(0,0,null,null,2,"mat-icon",[["class","mat-icon"],["id","statusMic"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),(e()(),$a(-1,0,["mic_off"]))],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,va(t,1).inline)})}function aE(e){return nl(0,[(e()(),Bs(0,0,null,null,2,"mat-icon",[["class","mat-icon"],["id","statusCam"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),(e()(),$a(-1,0,["videocam_off"]))],function(e,t){e(t,1,0)},function(e,t){e(t,0,0,va(t,1).inline)})}function lE(e){return nl(0,[(e()(),Bs(0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["matTooltip","Mute sound"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,2).show()&&r),"keydown"===t&&(r=!1!==va(e,2)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,2)._handleTouchend()&&r),r},kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(2,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["volume_up"])),(e()(),zs(0,null,null,0))],function(e,t){e(t,1,0),e(t,2,0,"Mute sound")},function(e,t){e(t,0,0,va(t,1).inline)})}function uE(e){return nl(0,[(e()(),Bs(0,16777216,null,null,3,"mat-icon",[["class","mat-icon"],["color","warn"],["matTooltip","Unmute sound"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,2).show()&&r),"keydown"===t&&(r=!1!==va(e,2)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,2)._handleTouchend()&&r),r},kS,PS)),ka(1,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],{color:[0,"color"]},null),ka(2,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["volume_off"])),(e()(),zs(0,null,null,0))],function(e,t){e(t,1,0,"warn"),e(t,2,0,"Unmute sound")},function(e,t){e(t,0,0,va(t,1).inline)})}function cE(e){return nl(0,[(e()(),Bs(0,0,null,null,5,"button",[["id","volumeButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleSound()&&r),r},iS,rS)),ka(1,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),zs(16777216,null,0,1,null,lE)),ka(3,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,0,1,null,uE)),ka(5,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,3,0,!n.mutedSound),e(t,5,0,n.mutedSound)},function(e,t){e(t,0,0,va(t,1).disabled||null,"NoopAnimations"===va(t,1)._animationMode)})}function dE(e){return nl(0,[qa(402653184,1,{htmlVideoElement:0}),(e()(),Bs(1,0,null,null,23,"div",[["class","OT_widget-container"]],[[8,"id",0]],null,null,null,null)),(e()(),zs(16777216,null,null,1,null,eE)),ka(3,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(4,0,null,null,6,"div",[["class","nickname pointer"]],[[2,"fullscreen",null]],null,null,null,null)),(e()(),zs(16777216,null,null,1,null,tE)),ka(6,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,nE)),ka(8,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,oE)),ka(10,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(11,0,null,null,1,"ov-video",[],null,null,null,KS,YS)),ka(12,4243456,null,0,QS,[],{mutedSound:[0,"mutedSound"],streamManager:[1,"streamManager"]},null),(e()(),Bs(13,0,null,null,4,"div",[["id","statusIcons"]],null,null,null,null,null)),(e()(),zs(16777216,null,null,1,null,sE)),ka(15,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,aE)),ka(17,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(18,0,null,null,4,"button",[["id","fullscreenButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleFullscreen()&&r),r},iS,rS)),ka(19,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),Bs(20,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,kS,PS)),ka(21,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),(e()(),$a(22,0,["",""])),(e()(),zs(16777216,null,null,1,null,cE)),ka(24,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,3,0,n.isFullscreen),e(t,6,0,!n.editNickname),e(t,8,0,!n.editNickname&&n.user.isLocal()),e(t,10,0,n.editNickname&&n.user.isLocal()),e(t,12,0,n.mutedSound,n.user.getStreamManager()),e(t,15,0,!n.user.isAudioActive()),e(t,17,0,!n.user.isVideoActive()),e(t,21,0),e(t,24,0,n.user.isRemote())},function(e,t){var n=t.component;e(t,1,0,"container-"+n.user.getStreamManager().stream.streamId),e(t,4,0,n.isFullscreen),e(t,18,0,va(t,19).disabled||null,"NoopAnimations"===va(t,19)._animationMode),e(t,20,0,va(t,21).inline),e(t,22,0,n.fullscreenIcon)})}var hE=fs({encapsulation:0,styles:[["#chatContainer[_ngcontent-%COMP%]{position:absolute;z-index:0;width:100%;height:100%}#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:80%}span.triangle[_ngcontent-%COMP%]{border-radius:2px;height:8px;width:8px;top:12px;display:block;-webkit-transform:rotate(45deg);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 #f0f0f094}.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 #c8ffe8ab}.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:0;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}"]],data:{}});function pE(e){return nl(0,[(e()(),Bs(0,0,null,null,9,"div",[["class","message"]],[[2,"right",null],[2,"left",null]],null,null,null,null)),(e()(),Bs(1,0,null,null,0,"img",[["class","user-img"]],[[8,"src",4]],null,null,null,null)),(e()(),Bs(2,0,null,null,7,"div",[["class","msg-detail"]],null,null,null,null,null)),(e()(),Bs(3,0,null,null,2,"div",[["class","msg-info"]],null,null,null,null,null)),(e()(),Bs(4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),$a(5,null,[" ",""])),(e()(),Bs(6,0,null,null,3,"div",[["class","msg-content"]],null,null,null,null,null)),(e()(),Bs(7,0,null,null,0,"span",[["class","triangle"]],null,null,null,null,null)),(e()(),Bs(8,0,null,null,1,"p",[["class","text"]],null,null,null,null,null)),(e()(),$a(9,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,t.context.$implicit.connectionId===n.user.getConnectionId(),t.context.$implicit.connectionId!==n.user.getConnectionId()),e(t,1,0,t.context.$implicit.userAvatar),e(t,5,0,t.context.$implicit.nickname),e(t,9,0,t.context.$implicit.message)})}function fE(e){return nl(0,[qa(402653184,1,{chatScroll:0}),(e()(),Bs(1,0,null,null,26,"div",[["id","chatContainer"]],null,null,null,null,null)),(e()(),Bs(2,0,null,null,25,"div",[["id","chatComponent"]],[[4,"display",null],[2,"chatComponentLight",null]],null,null,null,null)),(e()(),Bs(3,0,null,null,8,"div",[["id","chatToolbar"]],null,null,null,null,null)),(e()(),Bs(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),$a(5,null,[""," - CHAT"])),(e()(),Bs(6,0,null,null,5,"button",[["id","closeButton"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r},iS,rS)),ka(7,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),Bs(8,16777216,null,0,3,"mat-icon",[["class","mat-icon"],["color","warn"],["matTooltip","Close"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,10).show()&&r),"keydown"===t&&(r=!1!==va(e,10)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,10)._handleTouchend()&&r),r},kS,PS)),ka(9,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],{color:[0,"color"]},null),ka(10,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["highlight_off"])),(e()(),Bs(12,0,[[1,0],["chatScroll",1]],null,2,"div",[["class","message-wrap"]],null,null,null,null,null)),(e()(),zs(16777216,null,null,1,null,pE)),ka(14,278528,null,0,Ku,[So,Gr,zo],{ngForOf:[0,"ngForOf"]},null),(e()(),Bs(15,0,null,null,12,"div",[["id","messageInput"]],null,null,null,null,null)),(e()(),Bs(16,0,null,null,5,"input",[["id","chatInput"],["placeholder","Send a message"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"keypress"],[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,i=e.component;return"input"===t&&(r=!1!==va(e,17)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==va(e,17).onTouched()&&r),"compositionstart"===t&&(r=!1!==va(e,17)._compositionStart()&&r),"compositionend"===t&&(r=!1!==va(e,17)._compositionEnd(n.target.value)&&r),"keypress"===t&&(r=!1!==i.eventKeyPress(n)&&r),"ngModelChange"===t&&(r=!1!==(i.message=n)&&r),r},null,null)),ka(17,16384,null,0,nb,[Sr,br,[2,tb]],null,null),Ma(1024,null,$y,function(e){return[e]},[nb]),ka(19,671744,null,0,qb,[[8,null],[8,null],[8,null],[6,$y]],{model:[0,"model"]},{update:"ngModelChange"}),Ma(2048,null,ab,null,[qb]),ka(21,16384,null,0,Mb,[[4,ab]],null,null),(e()(),Bs(22,0,null,null,5,"button",[["id","sendButton"],["mat-mini-fab",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.sendMessage()&&r),r},iS,rS)),ka(23,180224,null,0,tS,[br,nh,Sf,[2,MC]],null,null),(e()(),Bs(24,16777216,null,0,3,"mat-icon",[["class","mat-icon"],["matTooltip","Send"],["role","img"]],[[2,"mat-icon-inline",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==va(e,26).show()&&r),"keydown"===t&&(r=!1!==va(e,26)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==va(e,26)._handleTouchend()&&r),r},kS,PS)),ka(25,9158656,null,0,xS,[br,bS,[8,null],[2,SS]],null,null),ka(26,147456,null,0,mm,[Ah,br,ah,So,Ki,nh,vf,Sf,hm,[2,Ad],[2,fm]],{message:[0,"message"]},null),(e()(),$a(-1,0,["send"]))],function(e,t){var n=t.component;e(t,9,0,"warn"),e(t,10,0,"Close"),e(t,14,0,n.messageList),e(t,19,0,n.message),e(t,25,0),e(t,26,0,"Send")},function(e,t){var n=t.component;e(t,2,0,n._chatDisplay,n.lightTheme),e(t,5,0,n.user.getStreamManager().stream.session.sessionId),e(t,6,0,va(t,7).disabled||null,"NoopAnimations"===va(t,7)._animationMode),e(t,8,0,va(t,9).inline),e(t,16,0,va(t,21).ngClassUntouched,va(t,21).ngClassTouched,va(t,21).ngClassPristine,va(t,21).ngClassDirty,va(t,21).ngClassValid,va(t,21).ngClassInvalid,va(t,21).ngClassPending),e(t,22,0,va(t,23).disabled||null,"NoopAnimations"===va(t,23)._animationMode),e(t,24,0,va(t,25).inline)})}var mE=fs({encapsulation:0,styles:[["#videoRoomNavBar[_ngcontent-%COMP%]{min-width:400px;display:contents}.stream-container[_ngcontent-%COMP%]{padding:0}#footer[_ngcontent-%COMP%]{padding:0;width:40%;position:absolute;margin:auto;bottom:0;left:0;right:0;text-align:center}.bounds[_ngcontent-%COMP%]{background-color:#494949;overflow:hidden;position:absolute;left:0;right:0;top:40px;bottom:0;height:inherit;min-width:400px!important;width:inherit}.boundsLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important}.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:Arial,Helvetica,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:'Didact Gothic',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%;-webkit-transform-origin:0 0;transform-origin:0 0}.OT_publisher.OT_mirrored[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-webkit-transform:scale(-1,1);transform:scale(-1,1);-webkit-transform-origin:50% 50%;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;transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.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:rgba(255,255,255,.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:1.3s ease-in infinite OT_pulse;-webkit-animation:1.3s ease-in OT_pulse;-moz-animation:1.3s ease-in infinite OT_pulse;-webkit-animation-iteration-count:infinite}@-webkit-keyframes OT_pulse{0%,100%,80%{box-shadow:0 0 0 0 #c70019}30%,50%{box-shadow:0 0 5px 1px #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 rgba(255,255,255,.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.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+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwIDEgMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2IpIiBkPSJNODYuNiA1MEExMDAgMTAwIDAgMCAxIDAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNjKSIgZD0iTTAgMTAwYTEwMCAxMDAgMCAwIDEtODYuNi01MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48cGF0aCBzdHJva2U9InVybCgjZCkiIGQ9Ik0tODYuNiA1MGExMDAgMTAwIDAgMCAxIDAtMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNlKSIgZD0iTS04Ni42LTUwQTEwMCAxMDAgMCAwIDEgMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAgMSA4Ni42IDUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjwvZz48L21hc2s+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9Ii0yMCIgeT0iLTIwIiBtYXNrPSJ1cmwoI2cpIiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;-webkit-animation:2s linear infinite OT_spin;animation:2s linear infinite OT_spin}@-webkit-keyframes OT_spin{100%{-webkit-transform:rotate(360deg)}}@keyframes OT_spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.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:center bottom}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:center}.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+) center no-repeat}.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,rgba(151,206,0,1) 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:bottom right;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:center;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+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwIDEgNDMgNDRhOC45ODggOC45ODggMCAwIDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAgMSAxMC4zNzQtLjQyQzUxLjcwMiAxOS4xMTQgNTQgMjkuMjA4IDU0IDQ1LjIwOGMwIDE0LjUyNy0yLjM0MyAyMy44OC03LjAzIDI4LjA1OGE3LjI4IDcuMjggMCAwIDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwIDEtNS01di0xM2E1IDUgMCAwIDEgNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked[_ngcontent-%COMP%]{cursor:pointer}.OT_container-audio-blocked[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_container-audio-blocked.OT_mini[_ngcontent-%COMP%] .OT_edge-bar-item[_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:center;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+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+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:center;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}"]],data:{}});function gE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"app-dialog-extension",[],null,[[null,"cancel"]],function(e,t,n){var r=!0;return"cancel"===t&&(r=!1!==e.component.toggleDialogExtension()&&r),r},pS,dS)),ka(1,114688,null,0,cS,[],{nickname:[0,"nickname"]},{cancel:"cancel"})],function(e,t){e(t,1,0,t.component.localUser.getNickname())},null)}function vE(e){return nl(0,[(e()(),Bs(0,0,null,null,2,"div",[["class","OT_root OT_publisher custom-class"],["id","localUser"]],null,[[null,"dblclick"]],function(e,t,n){var r=!0;return"dblclick"===t&&(r=!1!==e.component.enlargeElement(n)&&r),r},null,null)),(e()(),Bs(1,0,null,null,1,"stream-component",[],null,[[null,"nicknameClicked"],[null,"camButtonClicked"],[null,"micButtonClicked"],[null,"exitButtonClicked"],[null,"chatButtonClicked"],[null,"screenShareClicked"],[null,"screenShareDisabledClicked"],["window","resize"]],function(e,t,n){var r=!0,i=e.component;return"window:resize"===t&&(r=!1!==va(e,2).sizeChange(n)&&r),"nicknameClicked"===t&&(r=!1!==i.nicknameChanged(n)&&r),"camButtonClicked"===t&&(r=!1!==i.camStatusChanged()&&r),"micButtonClicked"===t&&(r=!1!==i.micStatusChanged()&&r),"exitButtonClicked"===t&&(r=!1!==i.exitSession()&&r),"chatButtonClicked"===t&&(r=!1!==i.toggleChat(n)&&r),"screenShareClicked"===t&&(r=!1!==i.screenShare()&&r),"screenShareDisabledClicked"===t&&(r=!1!==i.screenShareDisabled()&&r),r},dE,$S)),ka(2,114688,[["videoStream",4]],0,XS,[MS],{user:[0,"user"],localUser:[1,"localUser"],lightTheme:[2,"lightTheme"],compact:[3,"compact"],showNotification:[4,"showNotification"]},{nicknameClicked:"nicknameClicked",micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",screenShareDisabledClicked:"screenShareDisabledClicked",exitButtonClicked:"exitButtonClicked",chatButtonClicked:"chatButtonClicked"})],function(e,t){var n=t.component;e(t,2,0,n.localUser,n.localUser,n.lightTheme,n.compact,n.messageReceived&&"none"===n.chatDisplay)},null)}function yE(e){return nl(0,[(e()(),Bs(0,0,null,null,2,"div",[["class","OT_root OT_publisher custom-class"],["id","remoteUsers"]],null,[[null,"dblclick"]],function(e,t,n){var r=!0;return"dblclick"===t&&(r=!1!==e.component.enlargeElement(n)&&r),r},null,null)),(e()(),Bs(1,0,null,null,1,"stream-component",[],null,[[null,"camButtonClicked"],[null,"micButtonClicked"],[null,"exitButtonClicked"],[null,"chatButtonClicked"],[null,"screenShareClicked"],[null,"screenShareDisabledClicked"],["window","resize"]],function(e,t,n){var r=!0,i=e.component;return"window:resize"===t&&(r=!1!==va(e,2).sizeChange(n)&&r),"camButtonClicked"===t&&(r=!1!==i.camStatusChanged()&&r),"micButtonClicked"===t&&(r=!1!==i.micStatusChanged()&&r),"exitButtonClicked"===t&&(r=!1!==i.exitSession()&&r),"chatButtonClicked"===t&&(r=!1!==i.toggleChat(n)&&r),"screenShareClicked"===t&&(r=!1!==i.screenShare()&&r),"screenShareDisabledClicked"===t&&(r=!1!==i.screenShareDisabled()&&r),r},dE,$S)),ka(2,114688,[["videoStream",4]],0,XS,[MS],{user:[0,"user"],localUser:[1,"localUser"],lightTheme:[2,"lightTheme"],compact:[3,"compact"],showNotification:[4,"showNotification"]},{micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",screenShareDisabledClicked:"screenShareDisabledClicked",exitButtonClicked:"exitButtonClicked",chatButtonClicked:"chatButtonClicked"})],function(e,t){var n=t.component;e(t,2,0,t.context.$implicit,n.localUser,n.lightTheme,n.compact,n.messageReceived&&"none"===n.chatDisplay)},null)}function bE(e){return nl(0,[(e()(),Bs(0,0,null,null,2,"div",[["class","OT_root OT_dialog custom-class"]],[[4,"display",null]],null,null,null,null)),(e()(),Bs(1,0,null,null,1,"chat-component",[],null,[[null,"closeChat"]],function(e,t,n){var r=!0;return"closeChat"===t&&(r=!1!==e.component.toggleChat(void 0)&&r),r},fE,hE)),ka(2,114688,[[1,4],["chatComponent",4]],0,Xc,[],{user:[0,"user"],lightTheme:[1,"lightTheme"],messageList:[2,"messageList"],isDisplayed:[3,"isDisplayed"]},{closeChat:"closeChat"})],function(e,t){var n=t.component;e(t,2,0,n.localUser,n.lightTheme,n.messageList,n.chatDisplay)},function(e,t){e(t,0,0,t.component.chatDisplay)})}function _E(e){return nl(0,[qa(671088640,1,{chatComponent:0}),(e()(),Bs(1,0,null,null,11,"div",[["id","videoRoomNavBar"]],null,null,null,null,null)),(e()(),Bs(2,0,null,null,1,"app-toolbar",[],null,[[null,"camButtonClicked"],[null,"micButtonClicked"],[null,"screenShareClicked"],[null,"screenShareDisabledClicked"],[null,"exitButtonClicked"],[null,"chatButtonClicked"],["window","resize"]],function(e,t,n){var r=!0,i=e.component;return"window:resize"===t&&(r=!1!==va(e,3).sizeChange(n)&&r),"camButtonClicked"===t&&(r=!1!==i.camStatusChanged()&&r),"micButtonClicked"===t&&(r=!1!==i.micStatusChanged()&&r),"screenShareClicked"===t&&(r=!1!==i.screenShare()&&r),"screenShareDisabledClicked"===t&&(r=!1!==i.screenShareDisabled()&&r),"exitButtonClicked"===t&&(r=!1!==i.exitSession()&&r),"chatButtonClicked"===t&&(r=!1!==i.toggleChat(n)&&r),r},ZS,RS)),ka(3,114688,null,0,AS,[MS],{lightTheme:[0,"lightTheme"],mySessionId:[1,"mySessionId"],localUser:[2,"localUser"],compact:[3,"compact"],showNotification:[4,"showNotification"]},{micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",exitButtonClicked:"exitButtonClicked",chatButtonClicked:"chatButtonClicked",screenShareDisabledClicked:"screenShareDisabledClicked"}),(e()(),zs(16777216,null,null,1,null,gE)),ka(5,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),Bs(6,0,null,null,6,"div",[["class","bounds"],["id","layout"]],[[2,"boundsLight",null]],null,null,null,null)),(e()(),zs(16777216,null,null,1,null,vE)),ka(8,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null),(e()(),zs(16777216,null,null,1,null,yE)),ka(10,278528,null,0,Ku,[So,Gr,zo],{ngForOf:[0,"ngForOf"]},null),(e()(),zs(16777216,null,null,1,null,bE)),ka(12,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,3,0,n.lightTheme,n.mySessionId,n.localUser,n.compact,n.messageReceived&&"none"===n.chatDisplay),e(t,5,0,n.showDialogExtension),e(t,8,0,n.localUser&&n.localUser.getStreamManager()),e(t,10,0,n.remoteUsers),e(t,12,0,n.localUser&&n.localUser.getStreamManager())},function(e,t){e(t,6,0,t.component.lightTheme)})}function wE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"app-video-room",[],null,[["window","beforeunload"],["window","resize"]],function(e,t,n){var r=!0;return"window:beforeunload"===t&&(r=!1!==va(e,1).beforeunloadHandler()&&r),"window:resize"===t&&(r=!1!==va(e,1).sizeChange(n)&&r),r},_E,mE)),ka(1,245760,null,0,$c,[Jc,ny,tv,Gh],null,null)],function(e,t){e(t,1,0)},null)}var CE=sa("app-video-room",$c,wE,{sessionName:"sessionName",user:"user",openviduServerUrl:"openviduServerUrl",openviduSecret:"openviduSecret",token:"token",theme:"theme"},{joinSession:"joinSession",leaveSession:"leaveSession",error:"error"},[]),SE=fs({encapsulation:0,styles:[["h1[_ngcontent-%COMP%]{color:#a30101}"]],data:{}});function EE(e){return nl(0,[(e()(),Bs(0,0,null,null,2,"h1",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),ka(1,81920,null,0,Zh,[[2,Uh],br,Gh],null,null),(e()(),$a(2,null,["",""])),(e()(),Bs(3,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),$a(4,null,[" ","\n"]))],function(e,t){e(t,1,0)},function(e,t){var n=t.component;e(t,0,0,va(t,1).id),e(t,2,0,n.data.message),e(t,4,0,n.data.messageError)})}function OE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"app-dialog-error",[],null,null,null,EE,SE)),ka(1,114688,null,0,wu,[Uh,zh],null,null)],function(e,t){e(t,1,0)},null)}var TE=sa("app-dialog-error",wu,OE,{},{},[]),xE=fs({encapsulation:0,styles:[["app-web-component[_ngcontent-%COMP%]{z-index:2147483647}"]],data:{}});function IE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"app-video-room",[],null,[[null,"leaveSession"],[null,"joinSession"],[null,"error"],["window","beforeunload"],["window","resize"]],function(e,t,n){var r=!0,i=e.component;return"window:beforeunload"===t&&(r=!1!==va(e,1).beforeunloadHandler()&&r),"window:resize"===t&&(r=!1!==va(e,1).sizeChange(n)&&r),"leaveSession"===t&&(r=!1!==i.emitLeaveSessionEvent(n)&&r),"joinSession"===t&&(r=!1!==i.emitJoinSessionEvent(n)&&r),"error"===t&&(r=!1!==i.emitErrorEvent(n)&&r),r},_E,mE)),ka(1,245760,[[1,4],["videoRoom",4]],0,$c,[Jc,ny,tv,Gh],{sessionName:[0,"sessionName"],user:[1,"user"],openviduServerUrl:[2,"openviduServerUrl"],openviduSecret:[3,"openviduSecret"],token:[4,"token"],theme:[5,"theme"]},{joinSession:"joinSession",leaveSession:"leaveSession",error:"error"})],function(e,t){var n=t.component;e(t,1,0,n._sessionName,n._user,n.openviduServerUrl,n.openviduSecret,n._token,n.theme)},null)}function PE(e){return nl(0,[qa(671088640,1,{videoRoom:0}),(e()(),zs(16777216,null,null,1,null,IE)),ka(2,16384,null,0,Xu,[So,Gr],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.component.display)},null)}function kE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"app-web-component",[],null,null,null,PE,xE)),ka(1,114688,null,0,ed,[],null,null)],function(e,t){e(t,1,0)},null)}var ME=sa("app-web-component",ed,kE,{openviduServerUrl:"openviduServerUrl",openviduSecret:"openviduSecret",theme:"theme",sessionConfig:"sessionConfig"},{joinSession:"joinSession",leaveSession:"leaveSession",error:"error"},[]),AE=fs({encapsulation:0,styles:[[""]],data:{}});function RE(e){return nl(0,[(e()(),Bs(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ka(1,212992,null,0,ay,[sy,So,ar,[8,null],Eo],null,null)],function(e,t){e(t,1,0)},null)}function NE(e){return nl(0,[(e()(),Bs(0,0,null,null,1,"app-root",[],null,null,null,RE,AE)),ka(1,49152,null,0,id,[],null,null)],null,null)}var DE=sa("app-root",id,NE,{},{},[]),LE=function(){return function(){}}(),jE=uu(rd,[id],function(e){return function(e){for(var t={},n=[],r=!1,i=0;i<e.length;i++){var o=e[i];o.token===Mr&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,t[ds(o.token)]=o}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([Js(512,ar,lr,[[8,[Kf,Om,Ay,uS,CE,TE,ME,DE]],[3,ar],cr]),Js(4608,lb,lb,[]),Js(4608,e_,e_,[]),Js(5120,Zo,Ko,[[3,Zo]]),Js(4608,Gu,qu,[Zo,[2,Wu]]),Js(5120,Ri,Ni,[]),Js(5120,zo,Qo,[]),Js(5120,Bo,Yo,[]),Js(4608,Qp,Yp,[uc]),Js(6144,gi,null,[Qp]),Js(4608,zp,Df,[[2,Af],[2,Tf]]),Js(5120,fp,function(e,t,n,r,i,o,s,a){return[new Fp(e,t,n),new Zp(r),new Wp(i,o,s,a)]},[uc,Ki,ji,uc,uc,zp,Fi,[2,Bp]]),Js(4608,mp,mp,[fp,Ki]),Js(135680,yp,yp,[uc]),Js(4608,Op,Op,[mp,yp]),Js(5120,j_,IC,[]),Js(5120,xw,PC,[]),Js(4608,rC,xC,[uc,j_,xw]),Js(5120,wr,kC,[Op,rC,Ki]),Js(6144,vp,null,[yp]),Js(4608,io,io,[Ki]),Js(4608,od,_C,[wr,op]),Js(4608,ym,ym,[]),Js(4608,Mf,Mf,[]),Js(4608,Ah,Ah,[vh,Eh,ar,kh,Sh,it,Ki,uc,Ad,[2,Lu]]),Js(5120,Rh,Nh,[Ah]),Js(5120,Hh,Wh,[Ah]),Js(135680,Gh,Gh,[Ah,it,[2,Lu],[2,Bh],Hh,[3,Gh],Eh]),Js(5120,hm,pm,[Ah]),Js(5120,tv,Ey,[ny]),Js(4608,dy,dy,[]),Js(6144,uy,null,[dy]),Js(135680,hy,hy,[ny,go,Hi,it,uy]),Js(4608,cy,cy,[]),Js(5120,py,by,[ny,hc,fy]),Js(5120,Iy,xy,[Oy]),Js(5120,Vi,function(e){return[e]},[Iy]),Js(4608,Uc,zc,[uc,ji,Vc]),Js(4608,Bc,Bc,[Uc,Fc]),Js(5120,Ac,function(e){return[e]},[Bc]),Js(4608,Lc,Lc,[]),Js(6144,Dc,null,[Lc]),Js(4608,jc,jc,[Dc]),Js(6144,mc,null,[jc]),Js(4608,fc,Hc,[mc,it]),Js(4608,kc,kc,[fc]),Js(4608,Jc,Jc,[kc]),Js(4608,MS,MS,[]),Js(1073742336,n_,n_,[]),Js(1073742336,r_,r_,[]),Js(1073742336,i_,i_,[]),Js(1073742336,lc,lc,[]),Js(1024,Ii,rf,[]),Js(1024,lo,function(){return[vy()]},[]),Js(512,Oy,Oy,[it]),Js(1024,Mi,function(e,t){return[(n=e,dp("probe",pp),dp("coreTokens",o({},hp,(n||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return pp}),Ty(t)];var n},[[2,lo],Oy]),Js(512,Ai,Ai,[[2,Mi]]),Js(131584,fo,fo,[Ki,Fi,it,Ii,ar,Ai]),Js(1073742336,Jo,Jo,[fo]),Js(1073742336,of,of,[[3,of]]),Js(1073742336,AC,AC,[]),Js(1073742336,Rd,Rd,[]),Js(1073742336,Tf,Tf,[[2,Of],[2,Bp]]),Js(1073742336,rh,rh,[]),Js(1073742336,Hf,Hf,[]),Js(1073742336,nS,nS,[]),Js(1073742336,Uy,Uy,[]),Js(1073742336,Ny,Ny,[]),Js(1073742336,IS,IS,[]),Js(1073742336,QC,QC,[]),Js(1073742336,wm,wm,[]),Js(1073742336,f_,f_,[]),Js(1073742336,XC,XC,[]),Js(1073742336,wd,wd,[]),Js(1073742336,lh,lh,[]),Js(1073742336,Dh,Dh,[]),Js(1073742336,Yh,Yh,[]),Js(1073742336,Ef,Ef,[]),Js(1073742336,vm,vm,[]),Js(1024,my,wy,[[3,ny]]),Js(512,Rg,Ng,[]),Js(512,sy,sy,[]),Js(256,fy,{useHash:!0},[]),Js(1024,Nu,_y,[Au,[2,Du],fy]),Js(512,Lu,Lu,[Nu]),Js(512,Hi,Hi,[]),Js(512,go,_o,[Hi,[2,yo]]),Js(1024,Yv,function(){return[[{path:"",component:oS},{path:":roomName",component:$c}]]},[]),Js(1024,ny,Sy,[fo,Rg,sy,Lu,it,go,Hi,Yv,fy,[2,Jv],[2,Zv]]),Js(1073742336,yy,yy,[[2,my],[2,ny]]),Js(1073742336,LE,LE,[]),Js(1073742336,Wc,Wc,[]),Js(1073742336,Gc,Gc,[]),Js(1073742336,rd,rd,[it]),Js(256,Mr,!0,[]),Js(256,MC,"BrowserAnimations",[]),Js(256,Vc,"XSRF-TOKEN",[]),Js(256,Fc,"X-XSRF-TOKEN",[])])});du.production&&function(){if(Zr)throw new Error("Cannot enable prod mode after platform setup.");qr=!1}(),nf().bootstrapModuleFactory(jE).catch(function(e){return console.log(e)})}},[[0,0]]]); |