(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},mrSG:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return f})),n.d(e,"__spread",(function(){return m})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return v})),n.d(e,"__asyncValues",(function(){return b})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return x}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(e){o(e)}}function s(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function v(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}},rVh6:function(t,e,n){var r={"./questionnaire/en.json":["B2jg",5],"./questionnaire/it.json":["XuOK",6]};function i(t){if(!n.o(r,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],i=e[0];return n.e(e[1]).then((function(){return n.t(i,3)}))}i.keys=function(){return Object.keys(r)},i.id="rVh6",t.exports=i},yLV6:function(t,e,n){var r;!function(i,o,a,s){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),h="function",d=Math.round,p=Math.abs,f=Date.now;function m(t,e,n){return setTimeout(C(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(y(t,n[e],n),!0)}function y(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function T(t){return t.trim().split(/\s+/g)}function D(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}function R(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=nt(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,l=a?a.center:o.center,u=e.center=rt(r);e.timeStamp=f(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=st(l,u),e.distance=at(l,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==B&&o.eventType!==q||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=ot(e.deltaX,e.deltaY);var c,h,d=it(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=p(d.x)>p(d.y)?d.x:d.y,e.scale=a?(c=a.pointers,at((h=r)[0],h[1],J)/at(c[0],c[1],J)):1,e.rotation=a?function(t,e){return st(e[1],e[0],J)+st(t[1],t[0],J)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=U&&(l>V||a.velocity===s)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,h=it(l,u,c);r=h.x,i=h.y,n=p(h.x)>p(h.y)?h.x:h.y,o=ot(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var m=t.element;O(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function nt(t){for(var e=[],n=0;n=p(e)?t<0?W:Q:e<0?Y:G}function at(t,e,n){n||(n=$);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function st(t,e,n){return n||(n=$),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}tt.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(M(this.element),this.evWin,this.domHandler)}};var lt={mousedown:B,mousemove:z,mouseup:q},ut="mousedown",ct="mousemove mouseup";function ht(){this.evEl=ut,this.evWin=ct,this.pressed=!1,tt.apply(this,arguments)}w(ht,tt,{handler:function(t){var e=lt[t.type];e&B&&0===t.button&&(this.pressed=!0),e&z&&1!==t.which&&(e=q),this.pressed&&(e&q&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var dt={pointerdown:B,pointermove:z,pointerup:q,pointercancel:U,pointerout:U},pt={2:"touch",3:"pen",4:"mouse",5:"kinect"},ft="pointerdown",mt="pointermove pointerup pointercancel";function gt(){this.evEl=ft,this.evWin=mt,tt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(ft="MSPointerDown",mt="MSPointerMove MSPointerUp MSPointerCancel"),w(gt,tt,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=dt[r],o=pt[t.pointerType]||t.pointerType,a="touch"==o,s=D(e,t.pointerId,"pointerId");i&B&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(q|U)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var yt={touchstart:B,touchmove:z,touchend:q,touchcancel:U},_t="touchstart",vt="touchstart touchmove touchend touchcancel";function bt(){this.evTarget=_t,this.evWin=vt,this.started=!1,tt.apply(this,arguments)}function wt(t,e){var n=I(t.touches),r=I(t.changedTouches);return e&(q|U)&&(n=P(n.concat(r),"identifier",!0)),[n,r]}w(bt,tt,{handler:function(t){var e=yt[t.type];if(e===B&&(this.started=!0),this.started){var n=wt.call(this,t,e);e&(q|U)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Ct={touchstart:B,touchmove:z,touchend:q,touchcancel:U},xt="touchstart touchmove touchend touchcancel";function St(){this.evTarget=xt,this.targetIds={},tt.apply(this,arguments)}function kt(t,e){var n=I(t.touches),r=this.targetIds;if(e&(B|z)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=I(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return O(t.target,l)})),e===B)for(i=0;i-1&&r.splice(t,1)}),Et)}}function It(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n=Vt&&r(e.options.event+Ut(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return Qt.prototype.attrTest.call(this,t)&&(this.state&Ft||!(this.state&Ft)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ht(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(Gt,Qt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Ft)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),w(Kt,qt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distancee.time;if(this._input=t,!r||!n||t.eventType&(q|U)&&!i)this.reset();else if(t.eventType&B)this.reset(),this._timer=m((function(){this.state=Bt,this.tryEmit()}),e.time,this);else if(t.eventType&q)return Bt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===Bt&&(t&&t.eventType&q?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w(Zt,Qt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Ft)}}),w(Xt,Qt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:K|Z,pointers:1},getTouchAction:function(){return Yt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(K|Z)?e=t.overallVelocity:n&K?e=t.overallVelocityX:n&Z&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&t.eventType&q},emit:function(t){var e=Ht(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w($t,qt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(W);function tt(t){return t}function et(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),X(tt,t)}function nt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof k?t[0]:et(n)(K(t,r))}function rt(){return function(t){return t.lift(new it(t))}}var it=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new ot(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),ot=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return a.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(v),at=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return a.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new d).add(this.source.subscribe(new lt(this.getSubject(),this))),t.closed?(this._connection=null,t=d.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return rt()(this)},e}(k).prototype,st={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:at._subscribe},_isComplete:{value:at._isComplete,writable:!0},getSubject:{value:at.getSubject},connect:{value:at.connect},refCount:{value:at.refCount}},lt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return a.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(D);function ut(){return new I}function ct(){return function(t){return rt()((e=ut,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,st);return r.source=t,r.subjectFactory=n,r})(t));var e}}var ht="__parameters__";function dt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ct(s)))}i="{"+o.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+i+"]: "+t.replace(Mt,"\n ")}var Qt=function(){return function(){}}(),Yt=function(){return function(){}}();function Gt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Kt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}var Zt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Xt=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(It)}(),$t="ngDebugContext",Jt="ngOriginalError",te="ngErrorLogger";function ee(t){return t[$t]}function ne(t){return t[Jt]}function re(t){for(var e=[],n=1;n',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();ve.hasOwnProperty(e)&&!me.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Oe(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),ke=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ee=/([^\#-~ |!])/g;function Oe(t){return t.replace(/&/g,"&").replace(ke,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Ee,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function Ae(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Te=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),De=function(){return function(){}}(),Ie=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Pe=/^url\(([^)]+)\)$/,Re=/([A-Z])/g;function Ne(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}var Me=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return je()},t}(),je=function(){for(var t=[],e=0;e-1}(r,i.providedIn)||"root"===i.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providers[c]=t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:c,token:e.token},t._providers[c]=Pr,t._providers[c]=Lr(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Bt(o)}}function Lr(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Fr(t,n[0]));case 2:return new e(Fr(t,n[0]),Fr(t,n[1]));case 3:return new e(Fr(t,n[0]),Fr(t,n[1]),Fr(t,n[2]));default:for(var i=new Array(r),o=0;o=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Kt(n,e),$n.dirtyParentQueries(r),zr(r),r}function Br(t,e,n){var r=e?mr(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);Sr(n,2,i,o,void 0)}function zr(t){Sr(t,3,null,null,void 0)}var qr=new Object;function Ur(t,e,n,r,i,o){return new Hr(t,e,n,r,i,o)}var Hr=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=xr(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=$n.createRootView(t,e||[],n,i,r,qr),s=Kn(a,o).instance;return n&&a.renderer.setAttribute(Gn(a,0).renderElement,"ng-version",Cn.full),new Wr(a,new Kr(a),s)},e}(an),Wr=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new fn(Gn(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Jr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(on);function Qr(t,e,n){return new Yr(t,e,n)}var Yr=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new fn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Jr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=fr(t),t=t.parent;return t?new Jr(t,e):new Jr(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Vr(this._data,t);$n.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Kr(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof dn||(i=o.get(Qt));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a=t;return o=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=o.length),(i=a._view).viewContainerParent=this._view,Gt(o,r,i),function(t,e){var n=pr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}(e.parent.def,e.parentNodeDef)}}(n,i),$n.dirtyParentQueries(i),Br(n,r>0?o[r-1]:null,i),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(t._view);return i=e,a=(o=(n=this._data).viewContainer._embeddedViews)[r=s],Kt(o,r),null==i&&(i=o.length),Gt(o,i,a),$n.dirtyParentQueries(a),zr(a),Br(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Vr(this._data,t);e&&$n.destroyView(e)},t.prototype.detach=function(t){var e=Vr(this._data,t);return e?new Kr(e):null},t}();function Gr(t){return new Kr(t)}var Kr=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Sr(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){cr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{$n.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){$n.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),$n.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,zr(this._view),$n.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Zr(t,e){return new Xr(t,e)}var Xr=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(a.__extends)(e,t),e.prototype.createEmbeddedView=function(t){return new Kr($n.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new fn(Gn(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Ln);function $r(t,e){return new Jr(t,e)}var Jr=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Ve.THROW_IF_NOT_FOUND),$n.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:er(t)},e)},t}();function ti(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Gn(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Yn(t,n.nodeIndex).renderText;if(20240&n.flags)return Kn(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function ei(t){return new ni(t.renderer)}var ni=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(a.__read)(Dr(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Ci(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Si(t,e,n,i[0]));case 2:return r(Si(t,e,n,i[0]),Si(t,e,n,i[1]));case 3:return r(Si(t,e,n,i[0]),Si(t,e,n,i[1]),Si(t,e,n,i[2]));default:for(var s=Array(o),l=0;l0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(t){return t.timeoutId!==i})),t(r._didWork,r.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),xo=function(){function t(){this._applications=new Map,So.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),So.findTestabilityInTree(this,t,e)},t}(),So=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),ko=new Pt("AllowMultipleToken"),Eo=function(){return function(t,e){this.name=t,this.token=e}}();function Oo(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new Pt(r);return function(e){void 0===e&&(e=[]);var o=Ao();if(!o||o.injector.get(ko,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(bo&&!bo.destroyed&&!bo.injector.get(ko,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");bo=t.get(To);var e=t.get(Wi,null);e&&e.forEach((function(t){return t()}))}(Ve.create({providers:a,name:r}))}return function(t){var e=Ao();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Ao(){return bo&&!bo.destroyed?bo:null}var To=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new wo:("zone.js"===n?void 0:n)||new fo({enableLongStackTrace:se()}),o=[{provide:fo,useValue:i}];return i.run((function(){var e=Ve.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(ie,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Zi&&ji(n.injector.get(Ki,Mi)||Mi),n.onDestroy((function(){return Po(r._modules,n)})),i.runOutsideAngular((function(){return i.onError.subscribe({next:function(t){a.handleError(t)}})})),function(t,e,i){try{var o=((a=n.injector.get(zi)).runInitializers(),a.donePromise.then((function(){return r._moduleDoBootstrap(n),n})));return en(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(a,i)}))},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Do({},e);return function(t,e,n){return t.get(oo).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then((function(t){return n.bootstrapModuleFactory(t,r)}))},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Io);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Ct(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Do(t,e){return Array.isArray(e)?e.reduce(Do,t):Object(a.__assign)({},t,e)}var Io=function(){function t(t,e,n,r,i,o){var a=this;this._zone=t,this._console=e,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=se(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var s=new k((function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){t.next(a._stable),t.complete()}))})),l=new k((function(t){var e;a._zone.runOutsideAngular((function(){e=a._zone.onStable.subscribe((function(){fo.assertNotInAngularZone(),po((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){fo.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=nt(s,l.pipe(ct()))}var e;return e=t,t.prototype.bootstrap=function(t,e){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=t instanceof an?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof dn?null:this._injector.get(Qt),o=n.create(Ve.NULL,[],e||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Co,null);return a&&o.injector.get(xo).registerApplication(o.location.nativeElement,a),this._loadComponent(o),se()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t,n,r,i,o=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var s=e._tickScope();try{this._runningTick=!0;try{for(var l=Object(a.__values)(this._views),u=l.next();!u.done;u=l.next())u.value.detectChanges()}catch(d){t={error:d}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var c=Object(a.__values)(this._views),h=c.next();!h.done;h=c.next())h.value.checkNoChanges()}catch(p){r={error:p}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}catch(f){this._zone.runOutsideAngular((function(){return o._exceptionHandler.handleError(f)}))}finally{this._runningTick=!1,co(s)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Po(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Yi,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Po(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach((function(t){return t.destroy()}))},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=uo("ApplicationRef#tick()"),t}();function Po(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Ro=function(){return function(){}}(),No=function(){return function(){}}(),Mo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},jo=function(){function t(t,e){this._compiler=t,this._config=e||Mo}return t.prototype.load=function(t){return!Zi&&this._compiler instanceof io?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=Object(a.__read)(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("zn8P")(i).then((function(t){return t[o]})).then((function(t){return Fo(t,i,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))},t.prototype.loadFactory=function(t){var e=Object(a.__read)(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(t){return t[i+o]})).then((function(t){return Fo(t,r,i)}))},t}();function Fo(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Lo=function(){return function(t,e){this.name=t,this.callback=e}}(),Vo=function(){function t(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof Bo&&e.addChild(this)}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Bo=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(a.__extends)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,Object(a.__spread)([i+1,0],e)),e.forEach((function(e){e.parent&&e.parent.removeChild(e),t.parent=r})))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach((function(e){e instanceof Bo&&(n(e)&&r.push(e),t(e,n,r))}))}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Bo&&e.childNodes.forEach((function(e){n(e)&&r.push(e),e instanceof Bo&&t(e,n,r)}))}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter((function(t){return t instanceof e}))},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach((function(n){n.name==t&&n.callback(e)}))},e}(Vo),zo=new Map,qo=function(t){return zo.get(t)||null};function Uo(t){zo.set(t.nativeNode,t)}var Ho=Oo(null,"core",[{provide:Qi,useValue:"unknown"},{provide:To,deps:[Ve]},{provide:xo,deps:[]},{provide:Gi,deps:[]}]);function Wo(){return jn}function Qo(){return Fn}function Yo(t){return t?(Zi&&ji(t),t):Mi}function Go(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}var Ko=function(){return function(t){}}();function Zo(t,e,n,r,i,o){t|=1;var a=vr(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a.matchedQueries,matchedQueryIds:a.matchedQueryIds,references:a.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?xr(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Jn},provider:null,text:null,query:null,ngContent:null}}function Xo(t,e,n,r,i,o,s,l,u,c,h,d){var p;void 0===s&&(s=[]),c||(c=Jn);var f=vr(n),m=f.matchedQueries,g=f.references,y=f.matchedQueryIds,_=null,v=null;o&&(_=(p=Object(a.__read)(Dr(o),2))[0],v=p[1]),l=l||[];for(var b=new Array(l.length),w=0;w0)u=m,ga(m)||(c=m);else for(;u&&f===u.nodeIndex+u.childCount;){var _=u.parent;_&&(_.childFlags|=u.childFlags,_.childMatchedQueries|=u.childMatchedQueries),c=(u=_)&&ga(u)?u.renderParent:u}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Jn,updateRenderer:r||Jn,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:p}}function ga(t){return 0!=(1&t.flags)&&null===t.element.name}function ya(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function _a(t,e,n,r){var i=wa(t.root,t.renderer,t,e,n);return Ca(i,t.component,r),xa(i),i}function va(t,e,n){var r=wa(t,t.renderer,null,null,e);return Ca(r,n,n),xa(r),r}function ba(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,wa(t.root,i,t,e.element.componentProvider,n)}function wa(t,e,n,r,i){var o=new Array(i.nodes.length),a=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:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Ca(t,e,n){t.component=e,t.context=n}function xa(t){var e;gr(t)&&(e=Gn(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i0&&ea(t,e,0,n)&&(p=!0),d>1&&ea(t,e,1,r)&&(p=!0),d>2&&ea(t,e,2,i)&&(p=!0),d>3&&ea(t,e,3,o)&&(p=!0),d>4&&ea(t,e,4,a)&&(p=!0),d>5&&ea(t,e,5,s)&&(p=!0),d>6&&ea(t,e,6,l)&&(p=!0),d>7&&ea(t,e,7,u)&&(p=!0),d>8&&ea(t,e,8,c)&&(p=!0),d>9&&ea(t,e,9,h)&&(p=!0),p}(t,e,n,r,i,o,a,s,l,u,c,h);case 2:return function(t,e,n,r,i,o,a,s,l,u,c,h){var d=!1,p=e.bindings,f=p.length;if(f>0&&lr(t,e,0,n)&&(d=!0),f>1&&lr(t,e,1,r)&&(d=!0),f>2&&lr(t,e,2,i)&&(d=!0),f>3&&lr(t,e,3,o)&&(d=!0),f>4&&lr(t,e,4,a)&&(d=!0),f>5&&lr(t,e,5,s)&&(d=!0),f>6&&lr(t,e,6,l)&&(d=!0),f>7&&lr(t,e,7,u)&&(d=!0),f>8&&lr(t,e,8,c)&&(d=!0),f>9&&lr(t,e,9,h)&&(d=!0),d){var m=e.text.prefix;f>0&&(m+=fa(n,p[0])),f>1&&(m+=fa(r,p[1])),f>2&&(m+=fa(i,p[2])),f>3&&(m+=fa(o,p[3])),f>4&&(m+=fa(a,p[4])),f>5&&(m+=fa(s,p[5])),f>6&&(m+=fa(l,p[6])),f>7&&(m+=fa(u,p[7])),f>8&&(m+=fa(c,p[8])),f>9&&(m+=fa(h,p[9]));var g=Yn(t,e.nodeIndex).renderText;t.renderer.setValue(g,m)}return d}(t,e,n,r,i,o,a,s,l,u,c,h);case 16384:return function(t,e,n,r,i,o,a,s,l,u,c,h){var d=Kn(t,e.nodeIndex),p=d.instance,f=!1,m=void 0,g=e.bindings.length;return g>0&&sr(t,e,0,n)&&(f=!0,m=Ei(t,d,e,0,n,m)),g>1&&sr(t,e,1,r)&&(f=!0,m=Ei(t,d,e,1,r,m)),g>2&&sr(t,e,2,i)&&(f=!0,m=Ei(t,d,e,2,i,m)),g>3&&sr(t,e,3,o)&&(f=!0,m=Ei(t,d,e,3,o,m)),g>4&&sr(t,e,4,a)&&(f=!0,m=Ei(t,d,e,4,a,m)),g>5&&sr(t,e,5,s)&&(f=!0,m=Ei(t,d,e,5,s,m)),g>6&&sr(t,e,6,l)&&(f=!0,m=Ei(t,d,e,6,l,m)),g>7&&sr(t,e,7,u)&&(f=!0,m=Ei(t,d,e,7,u,m)),g>8&&sr(t,e,8,c)&&(f=!0,m=Ei(t,d,e,8,c,m)),g>9&&sr(t,e,9,h)&&(f=!0,m=Ei(t,d,e,9,h,m)),m&&p.ngOnChanges(m),65536&e.flags&&Qn(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),f}(t,e,n,r,i,o,a,s,l,u,c,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,l,u,c,h){var d=e.bindings,p=!1,f=d.length;if(f>0&&lr(t,e,0,n)&&(p=!0),f>1&&lr(t,e,1,r)&&(p=!0),f>2&&lr(t,e,2,i)&&(p=!0),f>3&&lr(t,e,3,o)&&(p=!0),f>4&&lr(t,e,4,a)&&(p=!0),f>5&&lr(t,e,5,s)&&(p=!0),f>6&&lr(t,e,6,l)&&(p=!0),f>7&&lr(t,e,7,u)&&(p=!0),f>8&&lr(t,e,8,c)&&(p=!0),f>9&&lr(t,e,9,h)&&(p=!0),p){var m=Zn(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(d.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]=a),f>5&&(g[5]=s),f>6&&(g[6]=l),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=i),f>3&&(g[d[3].name]=o),f>4&&(g[d[4].name]=a),f>5&&(g[d[5].name]=s),f>6&&(g[d[6].name]=l),f>7&&(g[d[7].name]=u),f>8&&(g[d[8].name]=c),f>9&&(g[d[9].name]=h);break;case 128:var y=n;switch(f){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,i);break;case 4:g=y.transform(r,i,o);break;case 5:g=y.transform(r,i,o,a);break;case 6:g=y.transform(r,i,o,a,s);break;case 7:g=y.transform(r,i,o,a,s,l);break;case 8:g=y.transform(r,i,o,a,s,l,u);break;case 9:g=y.transform(r,i,o,a,s,l,u,c);break;case 10:g=y.transform(r,i,o,a,s,l,u,c,h)}}m.value=g}return p}(t,e,n,r,i,o,a,s,l,u,c,h);default:throw"unreachable"}}(t,e,r,i,o,s,l,u,c,h,d,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i0&&ur(t,e,0,n),d>1&&ur(t,e,1,r),d>2&&ur(t,e,2,i),d>3&&ur(t,e,3,o),d>4&&ur(t,e,4,a),d>5&&ur(t,e,5,s),d>6&&ur(t,e,6,l),d>7&&ur(t,e,7,u),d>8&&ur(t,e,8,c),d>9&&ur(t,e,9,h)}(t,e,r,i,o,a,s,l,u,c,h,d):function(t,e,n){for(var r=0;r0){var o=new Set(t.modules);Wa.forEach((function(e,r){if(o.has(bt(r).providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:br(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[er(r)]=i}}))}}(t=t.factory((function(){return Jn}))),t):t}(r))}var Ha=new Map,Wa=new Map,Qa=new Map;function Ya(t){var e;Ha.set(t.token,t),"function"==typeof t.token&&(e=bt(t.token))&&"function"==typeof e.providedIn&&Wa.set(t.token,t)}function Ga(t,e){var n=xr(e.viewDefFactory),r=xr(n.nodes[0].element.componentView);Qa.set(t,r)}function Ka(){Ha.clear(),Wa.clear(),Qa.clear()}function Za(t){if(0===Ha.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Os.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Os.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Os.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(ks),Ds=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(a.__extends)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Os.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Os.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Os.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+Os.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(ks),Is=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Ps=new Pt("UseV4Plurals"),Rs=function(){return function(){}}(),Ns=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(a.__extends)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Ii[e];if(n)return n;var r=e.split("-")[0];if(n=Ii[r])return n;if("en"===r)return Ni;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[Pi.PluralCase]}(e||this.locale)(t)){case Is.Zero:return"zero";case Is.One:return"one";case Is.Two:return"two";case Is.Few:return"few";case Is.Many:return"many";default:return"other"}},e}(Rs);function Ms(t,e){var n,r;e=encodeURIComponent(e);try{for(var i=Object(a.__values)(t.split(";")),o=i.next();!o.done;o=i.next()){var s=o.value,l=s.indexOf("="),u=Object(a.__read)(-1==l?[s,""]:[s.slice(0,l),s.slice(l+1)],2),c=u[1];if(u[0].trim()===e)return decodeURIComponent(c)}}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 js=function(){return function(){}}(),Fs=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return t.prototype.getValue=function(){return null},t.prototype.setClass=function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},t.prototype.setNgClass=function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Je(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},t.prototype.applyChanges=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ct(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))},t}(),Ls=function(t){function e(e){return t.call(this,e)||this}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"klass",{set:function(t){this._delegate.setClass(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(t){this._delegate.setNgClass(t)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){this._delegate.applyChanges()},e}(function(){function t(t){this._delegate=t}return t.prototype.getValue=function(){return this._delegate.getValue()},t.ngDirectiveDef=void 0,t}()),Vs=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Bs=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){se()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation((function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Vs(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new zs(t,o);n.push(a)}else null==i?e._viewContainer.remove(null===r?void 0:r):null!==r&&(o=e._viewContainer.get(r),e._viewContainer.move(o,i),a=new zs(t,o),n.push(a))}));for(var r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[o]=[]);var l=$l(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:l,handler:i});else{for(var u=!1,c=0;c-1},e}(Il),au=["alt","control","meta","shift"],su={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},lu=function(t){function e(e){return t.call(this,e)||this}var n;return Object(a.__extends)(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return dl().onAndCancel(t,i.domEventName,o)}))},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(au.forEach((function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")})),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=dl().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),au.forEach((function(r){r!=n&&(0,su[r])(t)&&(e+=r+".")})),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded((function(){return e(i)}))}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Il),uu=function(){return function(){}}(),cu=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(a.__extends)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Te.NONE:return e;case Te.HTML:return e instanceof du?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{fe=fe||new le(t);var r=e?String(e):"";n=fe.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=fe.getInertBodyElement(r)}while(r!==o);var a=new Se,s=a.sanitizeChildren(Ae(n)||n);return se()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var l=Ae(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case Te.STYLE:return e instanceof pu?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Pe);return e&&he(e[1])===e[1]||t.match(Ie)&&function(t){for(var e=!0,n=!0,r=0;rt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Mu(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Mu(t.value)?null:Fu.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Mu(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Mu(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(Vu);return 0==e.length?null:function(t){return zu(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Vu);return 0==e.length?null:function(t){return Cu(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(Bu)).pipe(Q(zu))}},t}();function Vu(t){return null!=t}function Bu(t){var e=en(t)?Z(t):t;if(!nn(e))throw new Error("Expected validator to return Promise or Observable.");return e}function zu(t){var e=t.reduce((function(t,e){return null!=e?Object(a.__assign)({},t,e):t}),{});return 0===Object.keys(e).length?null:e}function qu(t){return t.validate?function(e){return t.validate(e)}:t}function Uu(t){return t.validate?function(e){return t.validate(e)}:t}var Hu=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Wu=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),Qu=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Iu),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),Yu=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Gu='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Ku='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Zu=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Gu)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Ku+'\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n \n
\n
\n \n
\n
')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Gu)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Ku)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function Xu(t,e){return Object(a.__spread)(e.path,[t])}function $u(t,e){t||nc(e,"Cannot find control with"),e.valueAccessor||nc(e,"No value accessor for form control with"),t.validator=Lu.compose([t.validator,e.validator]),t.asyncValidator=Lu.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Ju(t,e)}))}(t,e),function(t,e){t.registerOnChange((function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Ju(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange((function(t){e.valueAccessor.setDisabledState(t)})),e._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))})),e._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))}))}function Ju(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tc(t,e){null==t&&nc(e,"Cannot find control with"),t.validator=Lu.compose([t.validator,e.validator]),t.asyncValidator=Lu.composeAsync([t.asyncValidator,e.asyncValidator])}function ec(t){return nc(t,"There is no FormControl instance attached to form control element with")}function nc(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function rc(t){return null!=t?Lu.compose(t.map(qu)):null}function ic(t){return null!=t?Lu.composeAsync(t.map(Uu)):null}function oc(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Ze(e,n.currentValue)}var ac=[ku,Yu,Hu,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ze}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=Object(a.__values)(Array.from(this._optionMap.keys())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ze}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o-1&&t.splice(n,1)}function cc(t,e,n,r){se()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(Zu.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function hc(t){var e=pc(t)?t.validators:t;return Array.isArray(e)?rc(e):e||null}function dc(t,e){var n=pc(e)?e.asyncValidators:t;return Array.isArray(n)?ic(n):n||null}function pc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var fc=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=hc(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=dc(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(Object(a.__assign)({},t,{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(a.__assign)({},t,{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))},t.prototype.enable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(Object(a.__assign)({},t,{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object(a.__assign)({},t,{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=Bu(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce((function(t,e){return t instanceof gc?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof yc&&t.at(e)||null}),t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new Fi,this.statusChanges=new Fi},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls((function(e){return e.status===t}))},t.prototype._anyControlsDirty=function(){return this._anyControls((function(t){return t.dirty}))},t.prototype._anyControlsTouched=function(){return this._anyControls((function(t){return t.touched}))},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){pc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t.prototype._parentMarkedDirty=function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},t}(),mc=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,hc(n),dc(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(a.__extends)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach((function(t){return t(n.value,!1!==e.emitViewToModelChange)})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(fc),gc=function(t){function e(e,n,r){var i=t.call(this,hc(n),dc(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(a.__extends)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach((function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach((function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof mc?e.value:e.getRawValue(),t}))},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild((function(r,i){n=n||e.contains(i)&&t(r)})),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},(function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e}))},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild((function(t,r){n=e(n,t,r)})),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(a.__values)(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},e}(fc),yc=function(t){function e(e,n,r){var i=t.call(this,hc(n),dc(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(a.__extends)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach((function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach((function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})})),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map((function(t){return t instanceof mc?t.value:t.getRawValue()}))},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},e.prototype._syncPendingControls=function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach((function(e,n){t(e,n)}))},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))},e.prototype._anyControls=function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))},e.prototype._setUpControls=function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(a.__values)(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(fc),_c=function(){return Promise.resolve(null)}(),vc=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Fi,r.form=new gc({},rc(e),ic(n)),r}return Object(a.__extends)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;_c.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),$u(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;_c.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),uc(e._directives,t)}))},e.prototype.addFormGroup=function(t){var e=this;_c.then((function(){var n=e._findContainer(t.path),r=new gc({});tc(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))},e.prototype.removeFormGroup=function(t){var e=this;_c.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;_c.then((function(){n.form.get(t.path).setValue(e)}))},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,sc(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(Tu),bc=new Pt("NgFormSelectorWarning"),wc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a.__extends)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return Xu(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rc(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ic(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(Tu),Cc=function(){return function(){}}(),xc=new Pt("NgModelWithFormControlWarning"),Sc=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._ngModelWarningConfig=i,o.update=new Fi,o._ngModelWarningSent=!1,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=lc(o,r),o}var n;return Object(a.__extends)(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Zu.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&($u(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),oc(t,this.viewModel)&&(cc("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rc(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ic(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e}(Iu),kc=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Fi,r}return Object(a.__extends)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return $u(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){uc(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);tc(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);tc(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,sc(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return ec(e)})),e.valueAccessor.registerOnTouched((function(){return ec(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&$u(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=rc(this._validators);this.form.validator=Lu.compose([this.form.validator,t]);var e=ic(this._asyncValidators);this.form.asyncValidator=Lu.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Zu.missingFormException()},e}(Tu),Ec=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(a.__extends)(e,t),e.prototype._checkParentType=function(){Ac(this._parent)&&Zu.groupParentException()},e}(wc),Oc=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(a.__extends)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return Xu(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rc(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ic(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Ac(this._parent)&&Zu.arrayParentException()},e}(Tu);function Ac(t){return!(t instanceof Ec||t instanceof kc||t instanceof Oc)}var Tc=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._ngModelWarningConfig=o,a._added=!1,a.update=new Fi,a._ngModelWarningSent=!1,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=lc(a,i),a}var n;return Object(a.__extends)(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Zu.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),oc(t,this.viewModel)&&(cc("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return Xu(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rc(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ic(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Ec)&&this._parent instanceof wc?Zu.ngModelGroupException():this._parent instanceof Ec||this._parent instanceof kc||this._parent instanceof Oc||Zu.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e}(Iu),Dc=function(){return function(){}}(),Ic=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new gc(n,{asyncValidators:i,updateOn:o,validators:r})},t.prototype.control=function(t,e,n){return new mc(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map((function(t){return r._createControl(t)}));return new yc(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach((function(r){n[r]=e._createControl(t[r])})),n},t.prototype._createControl=function(t){return t instanceof mc||t instanceof gc||t instanceof yc?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),Pc=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:bc,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}(),Rc=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:xc,useValue:t.warnOnNgModelWithFormControl}]}},t}();function Nc(t){return t?t.reduce((function(t,e){var n=e.validator;return n?a.__spread(t,[n]):t}),[]):[]}function Mc(t,e,n){return new mc({value:t,disabled:n},Nc(e))}function jc(t,e){return new yc(t,Nc(e))}function Fc(t,e){return t.toLowerCase().indexOf(e.toLowerCase())>-1}var Lc=[{path:"",name:""}],Vc=function(){function t(t){void 0===t&&(t=Lc),this._resources=t}return t.prototype.getTranslation=function(t){var e=this;return Cu(this._resources.map((function(r){var i=r.path,o=r.name;return Z(n("rVh6")("./"+e._getFilePath(i,o,t)))}))).pipe(Q((function(t){return t.reduce((function(t,e){return a.__assign({},t,e)}))})))},t.prototype._getFilePath=function(t,e,n){return t+(e?e+"."+n+".json":n+".json")},t}(),Bc=function(){return new Vc([{path:"questionnaire/",name:""}])},zc=function(){return function(){}}(),qc=function(){return function(){}}(),Uc=function(){return function(){}}(),Hc=function(){return function(){}}(),Wc=function(){return function(){}}(),Qc=function(){return function(){}}(),Yc=function(){return function(){}}(),Gc=function(){return function(){}}(),Kc=function(){return function(){}}(),Zc=function(t){return t.valid="VALID",t.invalid="INVALID",t.pending="PENDING",t.disabled="DISABLED",t}({}),Xc=function(t){return t.male="male",t.female="female",t.unanswered="unanswered",t}({});function $c(t){return function(e){var n=new Jc(t),r=e.lift(n);return n.caught=r}}var Jc=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new th(t,this.selector,this.caught))},t}(),th=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return a.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(i){return void t.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new N(this,void 0,void 0);this.add(r),H(this,n,void 0,void 0,r)}},e}(W);function eh(t,e){return new k(e?function(n){return e.schedule(nh,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function nh(t){t.subscriber.error(t.error)}function rh(t){var e=new k((function(e){e.next(t),e.complete()}));return e._isScalar=!0,e.value=t,e}function ih(){for(var t=[],e=0;e0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}}))}:function(){e.headers=new Map,Object.keys(t).forEach((function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))}))}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,Object(a.__spread)(n)),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===i.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))},t}(),mh=function(){function t(){}return t.prototype.encodeKey=function(t){return gh(t)},t.prototype.encodeValue=function(t){return gh(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function gh(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var yh=function(){function t(t){var e,n,r,i=this;if(void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new mh,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),i=Object(a.__read)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=i[0],s=i[1],l=r.get(o)||[];l.push(s),r.set(o,l)})),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((function(e){var n=t.fromObject[e];i.map.set(e,Array.isArray(n)?n:[n])}))):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)},t}();function _h(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function vh(t){return"undefined"!=typeof Blob&&t instanceof Blob}function bh(t){return"undefined"!=typeof FormData&&t instanceof FormData}var wh=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||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 fh),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),Sh=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Ch.ResponseHeader,n}return Object(a.__extends)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(xh),kh=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Ch.Response,n.body=void 0!==e.body?e.body:null,n}return Object(a.__extends)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(xh),Eh=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(a.__extends)(e,t),e}(xh);function Oh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Ah=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof wh)r=t;else{var o;o=n.headers instanceof fh?n.headers:new fh(n.headers);var a=void 0;n.params&&(a=n.params instanceof yh?n.params:new yh({fromObject:n.params})),r=new wh(t,e,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=ih(r).pipe(lh((function(t){return i.handler.handle(t)})));if(t instanceof wh||"events"===n.observe)return s;var l=s.pipe(uh((function(t){return t instanceof kh})));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(Q((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return l.pipe(Q((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return l.pipe(Q((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return l.pipe(Q((function(t){return t.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new yh).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Oh(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Oh(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Oh(n,e))},t}(),Th=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Dh=new Pt("HTTP_INTERCEPTORS"),Ih=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Ph=/^\)\]\}',?\n/,Rh=function(){return function(){}}(),Nh=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Mh=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new k((function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((function(t,e){return r.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new fh(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new Sh({headers:i,status:e,statusText:n,url:o})},u=function(){var e=l(),i=e.headers,o=e.status,a=e.statusText,s=e.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"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(Ph,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,c&&(c=!1,u={error:d,text:u})}}c?(n.next(new kh({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new Eh({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=l().url,i=new Eh({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,d=function(e){h||(n.next(l()),h=!0);var i={type:Ch.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},p=function(t){var e={type:Ch.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",p)),r.send(a),n.next({type:Ch.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",p)),r.abort()}}))},t}(),jh=new Pt("XSRF_COOKIE_NAME"),Fh=new Pt("XSRF_HEADER_NAME"),Lh=function(){return function(){}}(),Vh=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ms(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),Bh=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),zh=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Dh,[]);this.chain=e.reduceRight((function(t,e){return new Th(t,e)}),this.backend)}return this.chain.handle(t)},t}(),qh=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:Bh,useClass:Ih}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:jh,useValue:t.cookieName}:[],t.headerName?{provide:Fh,useValue:t.headerName}:[]]}},t}(),Uh=function(){return function(){}}();function Hh(t,e,n){return function(r){return r.lift(new Wh(t,e,n))}}var Wh=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Qh(t,this.nextOrObserver,this.error,this.complete))},t}(),Qh=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=C,o._tapError=C,o._tapComplete=C,o._tapError=r||C,o._tapComplete=i||C,u(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||C,o._tapError=n.error||C,o._tapComplete=n.complete||C),o}return a.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(v),Yh=function(){function t(t,e){this._configUrl=e,this._http=new Ah(t)}return Object.defineProperty(t.prototype,"config$",{get:function(){return this._config$},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"apiEndpoint$",{get:function(){return this._config$.pipe(Q((function(t){return t.apiEndpoint})))},enumerable:!0,configurable:!0}),t.prototype.load=function(){var t=this;return this._http.get(this._configUrl).pipe(Hh((function(e){return t._config$=ih({apiEndpoint:e.apiEndpoint})})),Q((function(t){return!!t}))).toPromise()},t}(),Gh=function(){function t(t){this._document=t}return t.prototype.set=function(t,e,n,r){var i=t+"="+e+";";n&&(i+="expires="+n.toUTCString()+";"),r&&(i+="path="+r+";"),this._document.cookie=i},t.prototype.get=function(t){var e;try{return e=decodeURIComponent(this._document.cookie).split(";").find((function(e){return i.contains(e,t)})).split("=")[1],JSON.parse(e.trim())}catch(n){return null==e?void 0:e}},t.prototype.remove=function(t,e){this.set(t,"",new Date("Thu, 01 Jan 1970 00:00:01 GMT"),e)},t}(),Kh=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return a.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return a.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(d)),Zh=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return a.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Kh),Xh=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),$h=function(t){function e(n,r){void 0===r&&(r=Xh.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return a.__extends(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Xh),Jh=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e}($h))(Zh),td=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return ih(this.value);case"E":return eh(this.error);case"C":return wu()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),ed=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return a.__extends(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new nd(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(td.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(td.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(td.createComplete()),this.unsubscribe()},e}(v),nd=function(){return function(t,e){this.notification=t,this.destination=e}}(),rd=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return a.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new id(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new A;if(this.isStopped||this.hasError?e=d.EMPTY:(this.observers.push(t),e=new T(this,t)),i&&t.add(t=new ed(t,i)),n)for(var a=0;ae&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(I),id=function(){return function(t,e){this.time=t,this.value=e}}();function od(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,l=t.scheduler,u=0,c=!1,h=!1;return function(t){u++,e&&!c||(c=!1,e=new rd(i,a,l),n=t.subscribe({next:function(t){e.next(t)},error:function(t){c=!0,e.error(t)},complete:function(){h=!0,e.complete()}}));var r=e.subscribe(this);this.add((function(){u--,r.unsubscribe(),n&&!h&&s&&0===u&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}var ad=function(){function t(t){this._translate=t}return t.prototype.translateObject=function(t,e,n){return this._translate.get(e.map((function(e){return t[e]})),n).pipe(Q((function(n){return a.__assign({},t,e.reduce((function(e,r){var i;return a.__assign({},e,((i={})[r]=n[t[r]],i))}),{}))})),od(1))},t.prototype.translateObjects=function(t,e,n){var r=this;return Cu(t.map((function(t){return r.translateObject(t,e,n)})))},t}(),sd=function(){function t(){}return t.prototype.currentDateTime=function(){return new Date},t}(),ld=function(){function t(){}return t.prototype.sexToText=function(t){switch(t){case Xc.female:return"female";case Xc.male:return"male";default:return}},t}(),ud=function(){function t(t){this._router=t}return t.prototype.toSignIn=function(){return this._router.navigate(["sign-in"])},t.prototype.toMain=function(){return this._router.navigate(["main"])},t.prototype.toQuestionnaire=function(t){return this._router.navigate(["main","questionnaires",t])},t.prototype.toRepresentativeDoQuestionnaire=function(t,e){return this._router.navigate(["main","questionnaires",t,"do-by-representative"],{queryParams:{code:e}})},t.prototype.toNotFound=function(){return this._router.navigate(["not-found"])},t.prototype.toCongratulations=function(){return this._router.navigate(["main","congratulations"])},t}(),cd=function(){function t(t,e){this._translate=t,this._snackBar=e}return t.prototype.info=function(t,e,n,r){void 0===e&&(e={}),void 0===n&&(n="close_bar_message"),void 0===r&&(r=3e3),this._showSnackBar(t,e,n,r)},t.prototype.warn=function(t,e,n,r){void 0===e&&(e={}),void 0===n&&(n="close_bar_message"),void 0===r&&(r=3e3),this._showSnackBar(t,e,n,r,"warning-notification")},t.prototype._showSnackBar=function(t,e,n,r,i){var o=this;void 0===e&&(e={}),void 0===n&&(n="close_bar_message"),this._translate.get([t,n],e).pipe(Hh((function(e){return o._snackBar.open(e[t],e[n],{duration:r,panelClass:i,horizontalPosition:"right",verticalPosition:"top"})}))).subscribe()},t}(),hd=function(){return function(){}}(),dd=function(t){return t.singleChoice="singleChoice",t.multipleChoice="multipleChoice",t.tableMatrix="tableMatrix",t}({}),pd=function(t){return t.preTherapy="pre_therapy",t.afterTherapy="after_therapy",t.threeMonthsAfterTherapy="three_month_after_therapy",t.sixMonthsAfterTherapy="six_month_after_therapy",t.oneYearAfterTherapy="one_year_after_therapy",t}({}),fd=function(){return function(){}}(),md=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e}(fd),gd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e}(fd),yd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e}(fd);function _d(t,e){return"function"==typeof e?function(n){return n.pipe(_d((function(n,r){return Z(t(n,r)).pipe(Q((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new vd(t))}}var vd=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new bd(t,this.project))},t}(),bd=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return a.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new N(this,void 0,void 0);this.destination.add(i),this.innerSubscription=H(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(W),wd=function(t){return t[t.multiAnswerMultiChoice=0]="multiAnswerMultiChoice",t[t.singleAnswerMultiChoice=1]="singleAnswerMultiChoice",t[t.tableMatrix=2]="tableMatrix",t}({});function Cd(t){switch(t.type){case dd.multipleChoice:return{questionId:t.id,type:wd.multiAnswerMultiChoice,answers:{optionIds:t.answers.map((function(t){return t}))}};case dd.singleChoice:return{questionId:t.id,type:wd.singleAnswerMultiChoice,answers:{optionId:t.answer}};case dd.tableMatrix:return{questionId:t.id,type:wd.tableMatrix,answers:{rowColumnPairs:t.answers.map((function(t){return{rowId:t.rowId,columnId:t.columnId}}))}};default:throw new Error("Still not support this question")}}function xd(t){return{questionnaireAssignmentId:t.id,questionAnswers:t.sections.reduce((function(t,e){return a.__spread(t,e.questions.map(Cd))}),[])}}var Sd=function(t){return t[t.preTherapy=0]="preTherapy",t[t.afterTherapy=1]="afterTherapy",t[t.threeMonthsAfterTherapy=2]="threeMonthsAfterTherapy",t[t.sixMonthsAfterTherapy=3]="sixMonthsAfterTherapy",t[t.oneYearAfterTherapy=4]="oneYearAfterTherapy",t}({});function kd(t){switch(t){case Sd.preTherapy:return pd.preTherapy;case Sd.afterTherapy:return pd.afterTherapy;case Sd.threeMonthsAfterTherapy:return pd.threeMonthsAfterTherapy;case Sd.sixMonthsAfterTherapy:return pd.sixMonthsAfterTherapy;case Sd.oneYearAfterTherapy:return pd.oneYearAfterTherapy;default:throw new Error("Questionnaire Type is not defined.")}}var Ed=function(t){return t[t.female=0]="female",t[t.male=1]="male",t[t.unanswered=2]="unanswered",t}({});function Od(t){switch(t.type){case wd.multiAnswerMultiChoice:return function(t){var e=new md;return a.__assign({},e,{id:t.id,question:t.question,description:t.description,options:t.data.options.map((function(t){return{id:t.id,value:t.label}})),type:dd.multipleChoice})}(t);case wd.singleAnswerMultiChoice:return function(t){var e=new gd;return a.__assign({},e,{id:t.id,question:t.question,description:t.description,options:t.data.options.map((function(t){return{id:t.id,value:t.label}})),type:dd.singleChoice})}(t);case wd.tableMatrix:return function(t){var e=new yd;return a.__assign({},e,{id:t.id,question:t.question,description:t.description,rows:t.data.rows.map((function(t){return{id:t.id,content:t.label}})),columns:t.data.columns.map((function(t){return{id:t.id,content:t.label}})),type:dd.tableMatrix})}(t);default:throw new Error("Still not support this question")}}function Ad(t){return{id:t.id,title:t.title,description:t.topic,questions:t.questions.map(Od)}}function Td(t){switch(t){case Ed.female:return Xc.female;case Ed.male:return Xc.male;case Ed.unanswered:default:return Xc.unanswered}}function Dd(t){return{id:t.id,firstName:t.firstName,lastName:t.lastName,dateOfBirth:t.dateOfBirth?new Date(t.dateOfBirth):null,sex:Td(t.sex),height:t.height,weight:t.weight}}function Id(t){var e=t.patient,n=t.questionnaire,r=t.questionnaireAssignmentType,i=t.duration,o=t.isDone;return{id:t.id,name:n.name,description:n.description,sections:n.sections.map(Ad),patient:Dd(e),duration:i,questionnaireType:kd(r),isDone:o}}var Pd=function(){function t(t,e){this._configurationService=t,this._http=e}return t.prototype.fetch=function(t){var e=this;return this._configurationService.apiEndpoint$.pipe(Q((function(e){return e+"/questionnaireAssignments/"+t})),_d((function(t){return e._http.get(t)})),Q(Id))},t.prototype.submit=function(t){var e=this,n=xd(t);return this._configurationService.apiEndpoint$.pipe(Q((function(t){return t+"/questionnaireAnswers"})),_d((function(t){return e._http.post(t,n)})))},t.prototype.representativeSubmitAnswer=function(t,e){var n=this,r=xd(t);return this._configurationService.apiEndpoint$.pipe(Q((function(e){return e+"/questionnaireAssignments/"+t.id+"/submitAnswers"})),_d((function(t){return n._http.post(t,r,{params:{code:e}})})))},t.prototype.fetchQuestionnaireHeader=function(t){return ih({id:t,questionnaireTypes:[{id:pd.preTherapy,content:"pre_therapy"},{id:pd.afterTherapy,content:"after_therapy"},{id:pd.threeMonthsAfterTherapy,content:"three_month_after_therapy"},{id:pd.sixMonthsAfterTherapy,content:"six_month_after_therapy"},{id:pd.oneYearAfterTherapy,content:"one_year_after_therapy"}],durations:[{id:"3",duration:3},{id:"5",duration:5},{id:"7",duration:7},{id:"9",duration:9}]})},t}(),Rd=function(){return function(){}}(),Nd=o.createTranslateLoader,Md=function(){return function(){}}(),jd=function(){return function(t){t.setDefaultLang("en")}}(),Fd=function(){return function(){}}(),Ld=function(){return function(){}}(),Vd="*";function Bd(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function zd(t){return{type:6,styles:t,offset:null}}function qd(t){Promise.resolve(null).then(t)}var Ud=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;qd((function(){return t._onFinish()}))},t.prototype._onStart=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),Hd=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,i=0,o=this.players.length;0==o?qd((function(){return e._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++n==o&&e._onFinish()})),t.onDestroy((function(){++r==o&&e._onDestroy()})),t.onStart((function(){++i==o&&e._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach((function(t){return t.init()}))},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))},t.prototype.pause=function(){this.players.forEach((function(t){return t.pause()}))},t.prototype.restart=function(){this.players.forEach((function(t){return t.restart()}))},t.prototype.finish=function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))},t.prototype.getPosition=function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t},t.prototype.beforeDestroy=function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),Wd="!";function Qd(){throw Error("Host already has a portal attached")}var Yd=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&Qd(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),Gd=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=n,o.injector=r,o.componentFactoryResolver=i,o}return Object(a.__extends)(e,t),e}(Yd),Kd=function(t){function e(e,n,r){var i=t.call(this)||this;return i.templateRef=e,i.viewContainerRef=n,i.context=r,i}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(Yd),Zd=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Qd(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof Gd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Kd?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),Xd=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.outletElement=e,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return Object(a.__extends)(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.detectChanges(),r.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=n.indexOf(r);-1!==t&&n.remove(t)})),r},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(Zd),$d=function(t){function e(e,n){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new Fi,r}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=n.createComponent(r,n.length,e.injector||n.injector);return t.prototype.setDisposeFn.call(this,(function(){return i.destroy()})),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,(function(){return n._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e}(Zd),Jd=function(){return function(){}}(),tp=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}(),ep=27;function np(t){for(var e=[],n=1;n0?K(t,n):wu(n):rh(t[0]),e)}}var dp=new Pt("cdk-dir-doc",{providedIn:"root",factory:function(){return Ut(il)}}),pp=function(){function t(t){if(this.value="ltr",this.change=new Fi,t){var e=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===e||"rtl"===e?e:"ltr"}}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.ngInjectableDef=vt({factory:function(){return new t(qt(dp,8))},token:t,providedIn:"root"}),t}(),fp=function(){return function(){}}();function mp(t){return null!=t&&""+t!="false"}function gp(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function yp(t){return Array.isArray(t)?t:[t]}function _p(t){return null==t?"":"string"==typeof t?t:t+"px"}function vp(t){return t instanceof fn?t.nativeElement:t}function bp(t,e,n,r){return u(n)&&(r=n,n=void 0),r?bp(t,e,n).pipe(Q((function(t){return s(t)?r.apply(void 0,t):r(t)}))):new k((function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,r),a=function(){return l.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1?Array.prototype.slice.call(arguments):t)}),r,n)}))}var wp=new $h(Kh),Cp=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new xp(t,this.durationSelector))},t}(),xp=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return a.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=H(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(W);function Sp(t){return!s(t)&&t-parseFloat(t)+1>=0}function kp(t,e,n){void 0===t&&(t=0);var r=-1;return Sp(e)?r=Number(e)<1?1:Number(e):R(e)&&(n=e),R(n)||(n=wp),new k((function(e){var i=Sp(t)?t:+t-n.now();return n.schedule(Ep,i,{index:0,period:r,subscriber:e})}))}function Ep(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function Op(t,e){return void 0===e&&(e=wp),n=function(){return kp(t,e)},function(t){return t.lift(new Cp(n))};var n}function Ap(t){return function(e){return e.lift(new Dp(t))}}var Tp,Dp=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Ip(t),r=H(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),Ip=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return a.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(W);try{Tp="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ZD){Tp=!1}var Pp,Rp,Np=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?sl(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Tp)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=vt({factory:function(){return new t(qt(Qi,8))},token:t,providedIn:"root"}),t}(),Mp=function(){return function(){}}(),jp=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Fp(){if(Pp)return Pp;if("object"!=typeof document||!document)return Pp=new Set(jp);var t=document.createElement("input");return Pp=new Set(jp.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function Lp(t){return function(){if(null==Rp&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Rp=!0}}))}finally{Rp=Rp||!1}return Rp}()?t:!!t.capture}function Vp(t){return t&&"function"==typeof t.connect}var Bp=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,r=this._listeners;n0?e._scrolled.pipe(Op(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):ih()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(uh((function(t){return!t||n.indexOf(t)>-1})))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach((function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)})),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return bp(window.document,"scroll").subscribe((function(){return t._scrolled.next()}))}))},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=vt({factory:function(){return new t(qt(fo),qt(Np))},token:t,providedIn:"root"}),t}(),qp=function(){return function(){}}(),Up=function(){function t(t,e){var n=this;this._platform=t,e.runOutsideAngular((function(){n._change=t.isBrowser?nt(bp(window,"resize"),bp(window,"orientationchange")):ih(),n._invalidateCache=n.change().subscribe((function(){return n._updateViewportSize()}))}))}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(Op(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=vt({factory:function(){return new t(qt(Np),qt(fo))},token:t,providedIn:"root"}),t}(),Hp=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=_p(-this._previousScrollPosition.left),t.style.top=_p(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,r=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=r,n.scrollBehavior=i}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Wp(){return Error("Scroll strategy has already been attached.")}var Qp=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._ngZone=e,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 t.prototype.attach=function(t){if(this._overlayRef)throw Wp();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Yp=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function Gp(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function Kp(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var Zp=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw Wp();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;Gp(e,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Xp=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Yp},this.close=function(t){return new Qp(i._scrollDispatcher,i._ngZone,i._viewportRuler,t)},this.block=function(){return new Hp(i._viewportRuler,i._document)},this.reposition=function(t){return new Zp(i._scrollDispatcher,i._viewportRuler,i._ngZone,t)},this._document=r}return t.ngInjectableDef=vt({factory:function(){return new t(qt(zp),qt(Up),qt(fo),qt(il))},token:t,providedIn:"root"}),t}(),$p=function(){return function(t){if(this.scrollStrategy=new Yp,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var e=0,n=Object.keys(t);e-1;r--)if(n[r]._keydownEventSubscriptions>0){n[r]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)},t.ngInjectableDef=vt({factory:function(){return new t(qt(il))},token:t,providedIn:"root"}),t}(),of=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){for(var t=this._document.getElementsByClassName("cdk-overlay-container"),e=0;ed&&(d=g,h=m)}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&lf(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){return this._scrollables=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var r;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+r,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,r){var i=t.x,o=t.y,a=this._getOffset(r,"x"),s=this._getOffset(r,"y");a&&(i+=a),s&&(o+=s);var l=0-o,u=o+e.height-n.height,c=this._subtractOverflows(e.width,0-i,i+e.width-n.width),h=this._subtractOverflows(e.height,l,u),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,o=this._overlayRef.getConfig().minHeight,a=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=o&&o<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=i)}return!1},t.prototype._pushOverlayOnScreen=function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var r,i,o=this._viewportRect,a=Math.max(t.x+e.width-o.right,0),s=Math.max(t.y+e.height-o.bottom,0),l=Math.max(o.top-n.top-t.y,0),u=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:r=e.width<=o.width?u||-a:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=l.right-t.x;else{c=Math.min(l.right-t.x+l.left,t.x);var d=this._lastBoundingBoxSize.width;a=t.x-c,(o=2*c)>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-d/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var 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=_p(n.height),r.top=_p(n.top),r.bottom=_p(n.bottom),r.width=_p(n.width),r.left=_p(n.left),r.right=_p(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=_p(i)),o&&(r.maxWidth=_p(o))}this._lastBoundingBoxSize=n,lf(this._boundingBox.style,r)},t.prototype._resetBoundingBoxStyles=function(){lf(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){lf(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};if(this._hasExactPosition()){var r=this._viewportRuler.getViewportScrollPosition();lf(n,this._getExactOverlayY(e,t,r)),lf(n,this._getExactOverlayX(e,t,r))}else n.position="static";var i="",o=this._getOffset(e,"x"),a=this._getOffset(e,"y");o&&(i+="translateX("+o+"px) "),a&&(i+="translateY("+a+"px)"),n.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),lf(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e,n){var r={top:null,bottom:null},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=_p(i.y),r},t.prototype._getExactOverlayX=function(t,e,n){var r={left:null,right:null},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?r.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":r.left=_p(i.x),r},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:Kp(t,n),isOriginOutsideView:Gp(t,n),isOverlayClipped:Kp(e,n),isOverlayOutsideView:Gp(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t.prototype._closeDialogs=function(t){for(var e=t.length;e--;)t[e].close()},t}(),Of=0,Af=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+Of++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=function(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))},t}(),Tf=function(){return function(){}}(),Df=function(){return function(){}}(),If=function(){return function(){}}(),Pf=new wn("8.2.3");function Rf(t,e){return void 0===e&&(e=wp),function(n){return n.lift(new Nf(t,e))}}var Nf=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Mf(t,this.dueTime,this.scheduler))},t}(),Mf=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return a.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(jf,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(v);function jf(t){t.debouncedNext()}function Ff(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Lf=0,Vf=new Map,Bf=null,zf=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Vf.set(e,{messageElement:e,referenceCount:0})):Vf.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=Vf.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}Bf&&0===Bf.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Uf(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=vt({factory:function(){return new t(qt(Np))},token:t,providedIn:"root"}),t}();function Uf(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Hf(t){if(!Uf(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Wf=function(){function t(t,e,n,r,i){var o=this;void 0===i&&(i=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t},t.prototype._toggleAnchorTabIndex=function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(ap(1)).subscribe(t)},t}(),Qf=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new Wf(t,this._checker,this._ngZone,this._document,e)},t.ngInjectableDef=vt({factory:function(){return new t(qt(qf),qt(fo),qt(il))},token:t,providedIn:"root"}),t}(),Yf=function(){function t(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=mp(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoCapture",{get:function(){return this._autoCapture},set:function(t){this._autoCapture=mp(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())},t.prototype.ngDoCheck=function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()},t}(),Gf=new Pt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Kf=new Pt("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Zf=function(){function t(t,e,n,r){this._ngZone=e,this._defaultOptions=r,this._document=n,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t){for(var e=this,n=[],r=1;r0?n:t},t}(),fm=new Pt("mat-date-formats");try{hm="undefined"!=typeof Intl}catch(ZD){hm=!1}var mm={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},gm=vm(31,(function(t){return String(t+1)})),ym={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},_m=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function vm(t,e){for(var n=Array(t),r=0;r11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var r=this._createDateWithOverflow(t,e,n);if(r.getMonth()!=e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return r},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(hm){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object(a.__assign)({},e,{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(_m.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype.invalid=function(){return new Date(NaN)},e.prototype._createDateWithOverflow=function(t,e,n){var r=new Date(t,e,n);return t>=0&&t<100&&r.setFullYear(this.getYear(r)-1900),r},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e.prototype._format=function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)},e}(pm),wm={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},Cm=function(){return function(){}}(),xm=function(){return function(){}}(),Sm=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.ngInjectableDef=vt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),km=new Pt("MAT_HAMMER_OPTIONS"),Em=["longpress","slide","slidestart","slideend","slideright","slideleft"],Om={on:function(){},off:function(){}},Am=function(t){function e(e,n){var r=t.call(this)||this;return r._hammerOptions=e,r.events=Em,n&&n._checkHammerIsAvailable(),r}return Object(a.__extends)(e,t),e.prototype.buildHammer=function(t){var e="undefined"!=typeof window?window.Hammer:null;if(!e)return Om;var n=new e(t,this._hammerOptions||void 0),r=new e.Pan,i=new e.Swipe,o=new e.Press,a=this._createRecognizer(r,{event:"slide",threshold:0},i),s=this._createRecognizer(o,{event:"longpress",time:500});return r.recognizeWith(i),s.recognizeWith(a),n.add([i,o,r,a,s]),n},e.prototype._createRecognizer=function(t,e){for(var n=[],r=2;r 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 Um(t){return ma(0,[(t()(),Zo(0,null,null,0))],null,null)}function Hm(t){return ma(0,[na(402653184,1,{_portalOutlet:0}),(t()(),Zo(16777216,null,null,1,null,Um)),pi(2,212992,[[1,4]],0,$d,[cn,Bn],{portal:[0,"portal"]},null)],(function(t,e){t(e,2,0,"")}),null)}function Wm(t){return ma(0,[(t()(),Xo(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(t,e,n){var r=!0;return"component:@dialogContainer.start"===e&&(r=!1!==ti(t,1)._onAnimationStart(n)&&r),"component:@dialogContainer.done"===e&&(r=!1!==ti(t,1)._onAnimationDone(n)&&r),r}),Hm,qm)),pi(1,49152,null,0,vf,[fn,Qf,Me,[2,il],yf],null,null)],null,(function(t,e){t(e,0,0,ti(e,1)._id,ti(e,1)._config.role,ti(e,1)._config.ariaLabel?null:ti(e,1)._ariaLabelledBy,ti(e,1)._config.ariaLabel,ti(e,1)._config.ariaDescribedBy||null,ti(e,1)._state)}))}var Qm=Ur("mat-dialog-container",vf,Wm,{},{},[]);function Ym(t){return Error("MatDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var Gm=function(){function t(){this.changes=new I,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return t.prototype.formatYearRange=function(t,e){return t+" – "+e},t.ngInjectableDef=vt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Km=function(){return function(t,e,n,r,i){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=r,this.cssClasses=i}}(),Zm=function(){function t(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Fi}return t.prototype._cellClicked=function(t){t.enabled&&this.selectedValueChange.emit(t.value)},t.prototype.ngOnChanges=function(t){var e=t.numCols,n=this.rows,r=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?r-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/r+"%"),!e&&this._cellWidth||(this._cellWidth=100/r+"%")},t.prototype._isActiveCell=function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell},t.prototype._focusActiveCell=function(){var t=this;this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(ap(1)).subscribe((function(){var e=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&e.focus()}))}))},t}(),Xm=function(){function t(t,e,n,r){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=r,this.selectedChange=new Fi,this._userSelection=new Fi,this.activeDateChange=new Fi,!this._dateAdapter)throw Ym("DateAdapter");if(!this._dateFormats)throw Ym("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._dateSelected=function(t){if(this._selectedDate!=t){var e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(r)}this._userSelection.emit()},t.prototype._handleCalendarBodyKeydown=function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()},t.prototype._init=function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()},t.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},t.prototype._initWeekdays=function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(t,n){return{long:t,narrow:e[n]}}));this._weekdays=n.slice(t).concat(n.slice(0,t))},t.prototype._createWeekCells=function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,r=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)},t.prototype._getDateInCurrentMonth=function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null},t.prototype._hasSameMonthAndYear=function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},t}(),$m=24,Jm=function(){function t(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this.selectedChange=new Fi,this.yearSelected=new Fi,this.activeDateChange=new Fi,!this._dateAdapter)throw Ym("DateAdapter");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),tg(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._init=function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-eg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,r=[];n<$m;n++)r.push(e+n),4==r.length&&(this._years.push(r.map((function(e){return t._createCellForYear(e)}))),r=[]);this._changeDetectorRef.markForCheck()},t.prototype._yearSelected=function(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))},t.prototype._handleCalendarBodyKeydown=function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-eg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$m-eg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*-$m:-$m);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*$m:$m);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()},t.prototype._getActiveCell=function(){return eg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)},t.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},t.prototype._createCellForYear=function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new Km(t,e,e,this._shouldEnableYear(t))},t.prototype._shouldEnableYear=function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>r}return!1},t.prototype._isYearAndMonthBeforeMinDate=function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return t=0?null:{matDatepickerMax:{max:i.max,actual:e}}},this._filterValidator=function(t){var e=i._getValidDateOrNull(i._dateAdapter.deserialize(t.value));return i._dateFilter&&e&&!i._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=Lu.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Ym("DateAdapter");if(!this._dateFormats)throw Ym("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe((function(){i.value=i.value}))}return Object.defineProperty(t.prototype,"matDatepicker",{set:function(t){var e=this;t&&(this._datepicker=t,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe((function(t){e.value=t,e._cvaOnChange(t),e._onTouched(),e.dateInput.emit(new hg(e,e._elementRef.nativeElement)),e.dateChange.emit(new hg(e,e._elementRef.nativeElement))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matDatepickerFilter",{set:function(t){this._dateFilter=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);var e=this.value;this._value=t,this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!!this._disabled},set:function(t){var e=mp(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&n.blur&&n.blur()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()},t.prototype.registerOnValidatorChange=function(t){this._validatorOnChange=t},t.prototype.validate=function(t){return this._validator?this._validator(t):null},t.prototype.getPopupConnectionElementRef=function(){return this.getConnectedOverlayOrigin()},t.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this._cvaOnChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._onKeydown=function(t){this._datepicker&&t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),t.preventDefault())},t.prototype._onInput=function(t){var e=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e),this._dateAdapter.sameDate(e,this._value)?this._validatorOnChange():(this._value=e,this._cvaOnChange(e),this._valueChange.emit(e),this.dateInput.emit(new hg(this,this._elementRef.nativeElement)))},t.prototype._onChange=function(){this.dateChange.emit(new hg(this,this._elementRef.nativeElement))},t.prototype._getThemePalette=function(){return this._formField?this._formField.color:void 0},t.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},t.prototype._formatValue=function(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t}(),pg=function(){function t(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=d.EMPTY;var r=Number(n);this.tabIndex=r||0===r?r:null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=mp(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.datepicker&&this._watchStateChanges()},t.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},t.prototype.ngAfterContentInit=function(){this._watchStateChanges()},t.prototype._open=function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())},t.prototype._watchStateChanges=function(){var t=this,e=this.datepicker?this.datepicker._disabledChange:ih(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:ih(),r=this.datepicker?nt(this.datepicker.openedStream,this.datepicker.closedStream):ih();this._stateChanges.unsubscribe(),this._stateChanges=nt(this._intl.changes,e,n,r).subscribe((function(){return t._changeDetectorRef.markForCheck()}))},t}(),fg=function(){return function(){}}(),mg=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.ngInjectableDef=vt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),gg=function(){function t(t){this._mutationObserverFactory=t,this._observedElements=new Map}return t.prototype.ngOnDestroy=function(){var t=this;this._observedElements.forEach((function(e,n){return t._cleanupObserver(n)}))},t.prototype.observe=function(t){var e=this,n=vp(t);return new k((function(t){var r=e._observeElement(n).subscribe(t);return function(){r.unsubscribe(),e._unobserveElement(n)}}))},t.prototype._observeElement=function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new I,n=this._mutationObserverFactory.create((function(t){return e.next(t)}));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream},t.prototype._unobserveElement=function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))},t.prototype._cleanupObserver=function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,r=e.stream;n&&n.disconnect(),r.complete(),this._observedElements.delete(t)}},t.ngInjectableDef=vt({factory:function(){return new t(qt(mg))},token:t,providedIn:"root"}),t}(),yg=function(){function t(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Fi,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=mp(t),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debounce",{get:function(){return this._debounce},set:function(t){this._debounce=gp(t),this._subscribe()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},t.prototype.ngOnDestroy=function(){this._unsubscribe()},t.prototype._subscribe=function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe(Rf(t.debounce)):e).subscribe(t.event)}))},t.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},t}(),_g=function(){return function(){}}(),vg="accent",bg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],wg=function(t){function e(e,n,r){var i=t.call(this,e)||this;i._focusMonitor=n,i._animationMode=r,i.isRoundButton=i._hasHostAttributes("mat-fab","mat-mini-fab"),i.isIconButton=i._hasHostAttributes("mat-icon-button");for(var o=0,a=bg;o *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(fy(o,s)),"<"!=a[0]||o==hy&&s==hy||e.push(fy(s,o))}(t,i,r)})):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:by(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return uy(n,t,e)})),options:by(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map((function(t){e.currentTime=r;var o=uy(n,t,e);return i=Math.max(i,e.currentTime),o}));return e.currentTime=i,{type:3,steps:o,options:by(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return wy(Yg(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var i=wy(0,0,"");return i.dynamic=!0,i.strValue=r,i}return wy((n=n||Yg(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:zd({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=zd(s)}e.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?t==Vd?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)})):n.push(t.styles);var r=!1,i=null;return n.forEach((function(t){if(vy(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(r){if(n._driver.validateStyleProperty(r)){var a,s,l,u=e.collectedStyles[e.currentQuerySelector],c=u[r],h=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.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"'),h=!1),o=c.startTime),h&&(u[r]={startTime:o,endTime:i}),e.options&&(a=e.errors,s=e.options.params||{},(l=ny(t[r])).length&&l.forEach((function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")})))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')}))}))},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,l=0,u=t.steps.map((function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(vy(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(vy(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),s=s||c<0||c>1,a=a||c0&&i0?i==d?1:h*i:o[i],s=a*m;e.currentTime=p+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)})),r},t.prototype.visitReference=function(t,e){return{type:8,animation:uy(this,ty(t.animation),e),options:by(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:by(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:by(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=Object(a.__read)(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(my,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,Tg(e.collectedStyles,e.currentQuerySelector,{});var l=uy(this,ty(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:l,originalSelector:t.selector,options:by(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Yg(t.timings,e.errors,!0);return{type:12,animation:uy(this,ty(t.animation),e),timings:n,options:null}},t}(),_y=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function vy(t){return!Array.isArray(t)&&"object"==typeof t}function by(t){var e;return t?(t=Gg(t)).params&&(t.params=(e=t.params)?Gg(e):null):t={},t}function wy(t,e,n){return{duration:t,delay:e,easing:n}}function Cy(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var xy=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,Object(a.__spread)(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Sy=new RegExp(":enter","g"),ky=new RegExp(":leave","g");function Ey(t,e,n,r,i,o,a,s,l,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new Oy).buildKeyframes(t,e,n,r,i,o,a,s,l,u)}var Oy=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,l,u){void 0===u&&(u=[]),l=l||new xy;var c=new Ty(t,e,l,r,i,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),uy(this,n,c);var h=c.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,c.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[Cy(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?Wg(n.duration):null,o=null!=n.delay?Wg(n.delay):null;return 0!==i&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)})),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),uy(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ay);var a=Wg(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach((function(t){return uy(n,t,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Wg(t.options.delay):0;t.steps.forEach((function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),uy(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)})),r.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return Yg(e.params?ry(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?Wg(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ay);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach((function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(l=s.currentTimeline),uy(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;uy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),Ay={},Ty=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ay,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new Dy(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=Wg(r.duration)),null!=r.delay&&(i.delay=Wg(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(t){e&&a.hasOwnProperty(t)||(a[t]=ry(o[t],a,n.errors))}))}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(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(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Ay,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new Iy(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(Sy,"."+this._enterClassName)).replace(ky,"."+this._leaveClassName);var l=this._driver.query(this.element,t,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push.apply(s,Object(a.__spread)(l))}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Dy=function(){function t(t,e,n,r){this._driver=t,this.element=e,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||Vd,e._currentKeyframe[t]=Vd})),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){r[t]=Vd})):Kg(t,!1,r)})),r}(t,this._globalTimelineStyles);Object.keys(a).forEach((function(t){var e=ry(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:Vd),i._updateStyle(t,e)}))},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)}))},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,a){var s=Kg(o,!0);Object.keys(s).forEach((function(t){var r=s[t];r==Wd?e.add(t):r==Vd&&n.add(t)})),r||(s.offset=a/t.duration),i.push(s)}));var o=e.size?iy(e.values()):[],a=n.size?iy(n.values()):[];if(r){var s=i[0],l=Gg(s);s.offset=0,l.offset=1,i=[s,l]}return Cy(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},t}(),Iy=function(t){function e(e,n,r,i,o,a,s){void 0===s&&(s=!1);var l=t.call(this,e,n,a.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=i,l.postStyleProps=o,l._stretchStartingKeyframe=s,l.timings={duration:a.duration,delay:a.delay,easing:a.easing},l}return Object(a.__extends)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,l=Kg(t[0],!1);l.offset=0,o.push(l);var u=Kg(t[0],!1);u.offset=Py(s),o.push(u);for(var c=t.length-1,h=1;h<=c;h++){var d=Kg(t[h],!1);d.offset=Py((n+d.offset*r)/a),o.push(d)}r=a,n=0,i="",t=o}return Cy(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(Dy);function Py(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var Ry=function(){return function(){}}(),Ny=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a.__extends)(e,t),e.prototype.normalizePropertyName=function(t,e){return ay(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(My[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(Ry),My=function(){return t="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function jy(t,e,n,r,i,o,a,s,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}var Fy={},Ly=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,i){return t.some((function(t){return t(e,n,r,i)}))}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,o,s,l,u,c){var h=[],d=this.ast.options&&this.ast.options.params||Fy,p=this.buildStyles(n,s&&s.params||Fy,h),f=l&&l.params||Fy,m=this.buildStyles(r,f,h),g=new Set,y=new Map,_=new Map,v="void"===r,b={params:Object(a.__assign)({},d,f)},w=c?[]:Ey(t,e,this.ast.animation,i,o,p,m,b,u,h),C=0;if(w.forEach((function(t){C=Math.max(t.duration+t.delay,C)})),h.length)return jy(e,this._triggerName,n,r,v,p,m,[],[],y,_,C,h);w.forEach((function(t){var n=t.element,r=Tg(y,n,{});t.preStyleProps.forEach((function(t){return r[t]=!0}));var i=Tg(_,n,{});t.postStyleProps.forEach((function(t){return i[t]=!0})),n!==e&&g.add(n)}));var x=iy(g.values());return jy(e,this._triggerName,n,r,v,p,m,w,x,y,_,C)},t}(),Vy=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Gg(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(r[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach((function(t){var o=i[t];o.length>1&&(o=ry(o,r,e)),n[t]=o}))}})),n},t}(),By=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach((function(t){n.states[t.name]=new Vy(t.style,t.options&&t.options.params||{})})),zy(this.states,"true","1"),zy(this.states,"false","0"),e.transitions.forEach((function(e){n.transitionFactories.push(new Ly(t,e,n.states))})),this.fallbackTransition=new Ly(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find((function(i){return i.match(t,e,n,r)}))||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function zy(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var qy=new xy,Uy=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=gy(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=kg(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[t],s=new Map;if(a?(i=Ey(this._driver,e,a,"ng-enter","ng-leave",{},{},n,qy,o)).forEach((function(t){var e=Tg(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=r._driver.computeStyle(e,n,Vd)}))}));var l=Sg(i.map((function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)})));return this._playersById[t]=l,l.onDestroy((function(){return r.destroy(t)})),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=Ag(e,"","","");return Eg(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);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(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Hy=[],Wy={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Qy={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Yy="__ng_removed",Gy=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,r=t&&t.hasOwnProperty("value");if(this.value=null!=(n=r?t.value:t)?n:null,r){var i=Gg(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}},t}(),Ky=new Gy("void"),Zy=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,i_(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=Tg(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var l=Tg(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(i_(t,"ng-trigger"),i_(t,"ng-trigger-"+e),l[e]=Ky),function(){o._engine.afterFlush((function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete l[e]}))}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new $y(this.id,e,t),s=this._engine.statesByElement.get(t);s||(i_(t,"ng-trigger"),i_(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new Gy(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=Ky),"void"===u.value||l.value!==u.value){var c=Tg(this._engine.playersByElement,t,[]);c.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var h=o.matchTransition(l.value,u.value,t,u.params),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:u,player:a,isFallbackTransition:d}),d||(i_(t,"ng-animate-queued"),a.onStart((function(){o_(t,"ng-animate-queued")}))),a.onDone((function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}})),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(e)}))}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),i_(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),o_(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,r){if(Jy(e)){var i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Yy]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Jy(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))},t.prototype.whenRenderingDone=function(){var t=this;return new Promise((function(e){if(t.players.length)return Sg(t.players).onDone((function(){return e()}));e()}))},t.prototype.processLeaveNode=function(t){var e=this,n=t[Yy];if(n&&n.setForRemoval){if(t[Yy]=Wy,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;k--)this._namespaceList[k].drainQueuedTransitions(e).forEach((function(t){var e=t.player,o=t.element;if(x.push(e),n.collectedEnterElements.length){var a=o[Yy];if(a&&a.setForMove)return void e.destroy()}var h=!d||!n.driver.containsElement(d,o),p=w.get(o),f=m.get(o),g=n._buildInstruction(t,r,f,p,h);if(g.errors&&g.errors.length)S.push(g);else{if(h)return e.onStart((function(){return Jg(o,g.fromStyles)})),e.onDestroy((function(){return $g(o,g.toStyles)})),void i.push(e);if(t.isFallbackTransition)return e.onStart((function(){return Jg(o,g.fromStyles)})),e.onDestroy((function(){return $g(o,g.toStyles)})),void i.push(e);g.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),r.append(o,g.timelines),s.push({instruction:g,player:e,element:o}),g.queriedElements.forEach((function(t){return Tg(l,t,[]).push(e)})),g.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))}})),g.postStyleProps.forEach((function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))}))}}));if(S.length){var E=[];S.forEach((function(t){E.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach((function(t){return E.push("- "+t+"\n")}))})),x.forEach((function(t){return t.destroy()})),this.reportError(E)}var O=new Map,A=new Map;s.forEach((function(t){var e=t.element;r.has(e)&&(A.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))})),i.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){Tg(O,e,[]).push(t),t.destroy()}))}));var T=y.filter((function(t){return s_(t,u,c)})),D=new Map;e_(D,this.driver,v,c,Vd).forEach((function(t){s_(t,u,c)&&T.push(t)}));var I=new Map;f.forEach((function(t,e){e_(I,n.driver,new Set(t),u,Wd)})),T.forEach((function(t){var e=D.get(t),n=I.get(t);D.set(t,Object(a.__assign)({},e,n))}));var P=[],R=[],N={};s.forEach((function(t){var e=t.element,a=t.player,s=t.instruction;if(r.has(e)){if(h.has(e))return a.onDestroy((function(){return $g(e,s.toStyles)})),a.disabled=!0,a.overrideTotalTime(s.totalTime),void i.push(a);var l=N;if(A.size>1){for(var u=e,c=[];u=u.parentNode;){var d=A.get(u);if(d){l=d;break}c.push(u)}c.forEach((function(t){return A.set(t,l)}))}var p=n._buildAnimation(a.namespaceId,s,O,o,I,D);if(a.setRealPlayer(p),l===N)P.push(a);else{var f=n.playersByElement.get(l);f&&f.length&&(a.parentPlayer=Sg(f)),i.push(a)}}else Jg(e,s.fromStyles),a.onDestroy((function(){return $g(e,s.toStyles)})),R.push(a),h.has(e)&&i.push(a)})),R.forEach((function(t){var e=o.get(t.element);if(e&&e.length){var n=Sg(e);t.setRealPlayer(n)}})),i.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var M=0;M0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Ud(t.duration,t.delay)},t}(),$y=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Ud,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return Eg(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))},t.prototype._queueEvent=function(t,e){Tg(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Jy(t){return t&&1===t.nodeType}function t_(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function e_(t,e,n,r,i){var o=[];n.forEach((function(t){return o.push(t_(t))}));var a=[];r.forEach((function(n,r){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Yy]=Qy,a.push(r))})),t.set(r,o)}));var s=0;return n.forEach((function(t){return t_(t,o[s++])})),a}function n_(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:r.has(a)?1:t(a),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}var r_="$$classes";function i_(t,e){if(t.classList)t.classList.add(e);else{var n=t[r_];n||(n=t[r_]={}),n[e]=!0}}function o_(t,e){if(t.classList)t.classList.remove(e);else{var n=t[r_];n&&delete n[e]}}function a_(t,e,n){Sg(n).onDone((function(){return t.processLeaveNode(e)}))}function s_(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach((function(t){return i.add(t)})):e.set(t,r),n.delete(t),!0}var l_=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Xy(t,e,n),this._timelineEngine=new Uy(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],l=gy(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new By(t,e)}(r,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=Object(a.__read)(Dg(n),2);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=Object(a.__read)(Dg(n),2);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function u_(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=h_(e[0]),e.length>1&&(r=h_(e[e.length-1]))):e&&(n=h_(e)),n||r?new c_(t,n,r):null}var c_=function(){function t(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;var i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}return t.prototype.start=function(){this._state<1&&(this._startStyles&&$g(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&($g(this._element,this._initialStyles),this._endStyles&&($g(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Jg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jg(this._element,this._endStyles),this._endStyles=null),$g(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function h_(t){for(var e=null,n=Object.keys(t),r=0;r=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),v_(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=__(n=w_(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),b_(t,"",n.join(","))))},t}();function g_(t,e,n){b_(t,"PlayState",n,y_(t,e))}function y_(t,e){var n=w_(t,"");return n.indexOf(",")>0?__(n.split(","),e):__([n],e)}function __(t,e){for(var n=0;n=0)return n;return-1}function v_(t,e,n){n?t.removeEventListener(f_,e):t.addEventListener(f_,e)}function b_(t,e,n,r){var i=p_+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function w_(t,e){return t.style[p_+e]}var C_="linear",x_=function(){function t(t,e,n,r,i,o,a,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||C_,this.totalTime=r+i,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new m_(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:cy(t.element,r))}))}this.currentSnapshot=e},t}(),S_=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=zg(n),r}return Object(a.__extends)(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,t.prototype.destroy.call(this))},e}(Ud),k_=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Fg(t)},t.prototype.matchesElement=function(t,e){return Lg(t,e)},t.prototype.containsElement=function(t,e){return Vg(t,e)},t.prototype.query=function(t,e,n){return Bg(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map((function(t){return zg(t)}));var r="@keyframes "+e+" {\n",i="";n.forEach((function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}})),r+=i+"}\n"})),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter((function(t){return t instanceof x_})),l={};sy(n,r)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return l[t]=e[t]}))}));var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=ly(t,e,l));if(0==n)return new S_(t,u);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var d=u_(t,e),p=new x_(t,e,c,n,r,i,u,d);return p.onDestroy((function(){var t;(t=h).parentNode.removeChild(t)})),p},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),E_=function(){function t(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:cy(t.element,n))})),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),O_=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(A_().toString()),this._cssKeyframesDriver=new k_}return t.prototype.validateStyleProperty=function(t){return Fg(t)},t.prototype.matchesElement=function(t,e){return Lg(t,e)},t.prototype.containsElement=function(t,e){return Vg(t,e)},t.prototype.query=function(t,e,n){return Bg(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,i,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var l={},u=o.filter((function(t){return t instanceof E_}));sy(n,r)&&u.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return l[t]=e[t]}))}));var c=u_(t,e=ly(t,e=e.map((function(t){return Kg(t,!1)})),l));return new E_(t,e,s,c)},t}();function A_(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var T_=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Zt.None,styles:[],data:{animation:[]}}),r}return Object(a.__extends)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Bd(t):t;return P_(this._renderer,null,e,"register",[n]),new D_(e,this._renderer)},e}(Fd),D_=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return Object(a.__extends)(e,t),e.prototype.create=function(t,e){return new I_(this._id,t,e||{},this._renderer)},e}(Ld),I_=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t*,.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 (-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 H_(t){return ma(2,[na(671088640,1,{ripple:0}),(t()(),Xo(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),sa(null,0),(t()(),Xo(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)),pi(4,212992,[[1,4]],0,Fm,[fn,fo,Np,[2,jm],[2,B_]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Xo(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],(function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())}),(function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,ti(e,4).unbounded)}))}var W_=or({encapsulation:2,styles:[],data:{}});function Q_(t){return ma(2,[(t()(),Xo(0,0,null,null,12,"div",[["class","mat-calendar-header"]],null,null,null,null,null)),(t()(),Xo(1,0,null,null,11,"div",[["class","mat-calendar-controls"]],null,null,null,null,null)),(t()(),Xo(2,0,null,null,4,"button",[["cdkAriaLive","polite"],["class","mat-calendar-period-button"],["mat-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.currentPeriodClicked()&&r),r}),H_,U_)),pi(3,180224,null,0,wg,[fn,tm,[2,B_]],null,null),pi(4,147456,null,0,Xf,[fn,Zf,gg,fo],{politeness:[0,"politeness"]},null),(t()(),da(5,0,["",""])),(t()(),Xo(6,0,null,0,0,"div",[["class","mat-calendar-arrow"]],[[2,"mat-calendar-invert",null]],null,null,null,null)),(t()(),Xo(7,0,null,null,0,"div",[["class","mat-calendar-spacer"]],null,null,null,null,null)),sa(null,0),(t()(),Xo(9,0,null,null,1,"button",[["class","mat-calendar-previous-button"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.previousClicked()&&r),r}),H_,U_)),pi(10,180224,null,0,wg,[fn,tm,[2,B_]],{disabled:[0,"disabled"]},null),(t()(),Xo(11,0,null,null,1,"button",[["class","mat-calendar-next-button"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.nextClicked()&&r),r}),H_,U_)),pi(12,180224,null,0,wg,[fn,tm,[2,B_]],{disabled:[0,"disabled"]},null)],(function(t,e){var n=e.component;t(e,4,0,"polite"),t(e,10,0,!n.previousEnabled()),t(e,12,0,!n.nextEnabled())}),(function(t,e){var n=e.component;t(e,2,0,n.periodButtonLabel,ti(e,3).disabled||null,"NoopAnimations"===ti(e,3)._animationMode),t(e,5,0,n.periodButtonText),t(e,6,0,"month"!=n.calendar.currentView),t(e,9,0,n.prevButtonLabel,ti(e,10).disabled||null,"NoopAnimations"===ti(e,10)._animationMode),t(e,11,0,n.nextButtonLabel,ti(e,12).disabled||null,"NoopAnimations"===ti(e,12)._animationMode)}))}function Y_(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"mat-calendar-header",[],null,null,null,Q_,W_)),pi(1,49152,null,0,ig,[Gm,og,[2,pm],[2,fm],Me],null,null)],null,null)}var G_=Ur("mat-calendar-header",ig,Y_,{},{},["*"]),K_=or({encapsulation:2,styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}"],data:{}});function Z_(t){return ma(0,[(t()(),Zo(0,null,null,0))],null,null)}function X_(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"mat-month-view",[],null,[[null,"activeDateChange"],[null,"selectedChange"],[null,"_userSelection"]],(function(t,e,n){var r=!0,i=t.component;return"activeDateChange"===e&&(r=!1!==(i.activeDate=n)&&r),"selectedChange"===e&&(r=!1!==i._dateSelected(n)&&r),"_userSelection"===e&&(r=!1!==i._userSelected()&&r),r}),_v,gv)),pi(1,1097728,[[1,4]],0,Xm,[Me,[2,fm],[2,pm],[2,pp]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"],dateClass:[5,"dateClass"]},{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter,n.dateClass)}),null)}function $_(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"mat-year-view",[],null,[[null,"activeDateChange"],[null,"monthSelected"],[null,"selectedChange"]],(function(t,e,n){var r=!0,i=t.component;return"activeDateChange"===e&&(r=!1!==(i.activeDate=n)&&r),"monthSelected"===e&&(r=!1!==i._monthSelectedInYearView(n)&&r),"selectedChange"===e&&(r=!1!==i._goToDateInView(n,"month")&&r),r}),bv,vv)),pi(1,1097728,[[2,4]],0,rg,[Me,[2,fm],[2,pm],[2,pp]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function J_(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"mat-multi-year-view",[],null,[[null,"activeDateChange"],[null,"yearSelected"],[null,"selectedChange"]],(function(t,e,n){var r=!0,i=t.component;return"activeDateChange"===e&&(r=!1!==(i.activeDate=n)&&r),"yearSelected"===e&&(r=!1!==i._yearSelectedInMultiYearView(n)&&r),"selectedChange"===e&&(r=!1!==i._goToDateInView(n,"year")&&r),r}),Cv,wv)),pi(1,1097728,[[3,4]],0,Jm,[Me,[2,pm],[2,pp]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function tv(t){return ma(2,[na(671088640,1,{monthView:0}),na(671088640,2,{yearView:0}),na(671088640,3,{multiYearView:0}),(t()(),Zo(16777216,null,null,1,null,Z_)),pi(4,212992,null,0,$d,[cn,Bn],{portal:[0,"portal"]},null),(t()(),Xo(5,0,null,null,8,"div",[["cdkMonitorSubtreeFocus",""],["class","mat-calendar-content"],["tabindex","-1"]],null,null,null,null,null)),pi(6,16384,null,0,Qs,[],{ngSwitch:[0,"ngSwitch"]},null),pi(7,147456,null,0,em,[fn,tm],null,null),(t()(),Zo(16777216,null,null,1,null,X_)),pi(9,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zo(16777216,null,null,1,null,$_)),pi(11,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zo(16777216,null,null,1,null,J_)),pi(13,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(t,e){var n=e.component;t(e,4,0,n._calendarHeaderPortal),t(e,6,0,n.currentView),t(e,9,0,"month"),t(e,11,0,"year"),t(e,13,0,"multi-year")}),null)}var ev=or({encapsulation:2,styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}@media (-ms-high-contrast:active){.mat-calendar-body-cell-content{border:none}}@media (-ms-high-contrast:active){.mat-calendar-body-selected,.mat-datepicker-popup:not(:empty){outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}}[dir=rtl] .mat-calendar-body-label{text-align:right}"],data:{}});function nv(t){return ma(0,[(t()(),Xo(0,0,null,null,2,"tr",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),Xo(1,0,null,null,1,"td",[["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(t()(),da(2,null,["",""]))],null,(function(t,e){var n=e.component;t(e,1,0,n.numCols,n._cellPadding,n._cellPadding),t(e,2,0,n.label)}))}function rv(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"td",[["aria-hidden","true"],["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(t()(),da(1,null,["",""]))],null,(function(t,e){var n=e.component;t(e,0,0,n._firstRowOffset,n._cellPadding,n._cellPadding),t(e,1,0,n._firstRowOffset>=n.labelMinRequiredCells?n.label:"")}))}function iv(t){return ma(0,[(t()(),Xo(0,0,null,null,4,"td",[["class","mat-calendar-body-cell"],["role","button"]],[[8,"tabIndex",0],[2,"mat-calendar-body-disabled",null],[2,"mat-calendar-body-active",null],[1,"aria-label",0],[1,"aria-disabled",0],[1,"aria-selected",0],[4,"width",null],[4,"paddingTop",null],[4,"paddingBottom",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component._cellClicked(t.context.$implicit)&&r),r}),null,null)),mi(512,null,js,Fs,[Rn,Nn,fn,vn]),pi(2,278528,null,0,Ls,[js],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Xo(3,0,null,null,1,"div",[["class","mat-calendar-body-cell-content"]],[[2,"mat-calendar-body-selected",null],[2,"mat-calendar-body-today",null]],null,null,null,null)),(t()(),da(4,null,["",""]))],(function(t,e){t(e,2,0,"mat-calendar-body-cell",e.context.$implicit.cssClasses)}),(function(t,e){var n=e.component;t(e,0,0,n._isActiveCell(e.parent.context.index,e.context.index)?0:-1,!e.context.$implicit.enabled,n._isActiveCell(e.parent.context.index,e.context.index),e.context.$implicit.ariaLabel,!e.context.$implicit.enabled||null,n.selectedValue===e.context.$implicit.value,n._cellWidth,n._cellPadding,n._cellPadding),t(e,3,0,n.selectedValue===e.context.$implicit.value,n.todayValue===e.context.$implicit.value),t(e,4,0,e.context.$implicit.displayValue)}))}function ov(t){return ma(0,[(t()(),Xo(0,0,null,null,4,"tr",[["role","row"]],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,rv)),pi(2,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(16777216,null,null,1,null,iv)),pi(4,278528,null,0,Bs,[Bn,Ln,Rn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,2,0,0===e.context.index&&e.component._firstRowOffset),t(e,4,0,e.context.$implicit)}),null)}function av(t){return ma(2,[(t()(),Zo(16777216,null,null,1,null,nv)),pi(1,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(16777216,null,null,1,null,ov)),pi(3,278528,null,0,Bs,[Bn,Ln,Rn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){var n=e.component;t(e,1,0,n._firstRowOffset enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1, 1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms linear"},options:null}],options:{}},{type:7,name:"fadeInCalendar",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:{type:4,styles:null,timings:"120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"},options:null}],options:{}}]}});function lv(t){return ma(2,[na(671088640,1,{_calendar:0}),(t()(),Xo(1,0,null,null,4,"mat-calendar",[["cdkTrapFocus",""],["class","mat-calendar"]],[[8,"id",0],[24,"@fadeInCalendar",0]],[[null,"selectedChange"],[null,"yearSelected"],[null,"monthSelected"],[null,"_userSelection"]],(function(t,e,n){var r=!0,i=t.component;return"selectedChange"===e&&(r=!1!==i.datepicker.select(n)&&r),"yearSelected"===e&&(r=!1!==i.datepicker._selectYear(n)&&r),"monthSelected"===e&&(r=!1!==i.datepicker._selectMonth(n)&&r),"_userSelection"===e&&(r=!1!==i.datepicker.close()&&r),r}),tv,K_)),mi(512,null,js,Fs,[Rn,Nn,fn,vn]),pi(3,278528,null,0,Ls,[js],{ngClass:[0,"ngClass"]},null),pi(4,1458176,null,0,Yf,[fn,Qf,il],{enabled:[0,"enabled"]},null),pi(5,10141696,[[1,4]],0,og,[Gm,[2,pm],[2,fm],Me],{headerComponent:[0,"headerComponent"],startAt:[1,"startAt"],startView:[2,"startView"],selected:[3,"selected"],minDate:[4,"minDate"],maxDate:[5,"maxDate"],dateFilter:[6,"dateFilter"],dateClass:[7,"dateClass"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"})],(function(t,e){var n=e.component;t(e,3,0,n.datepicker.panelClass),t(e,4,0,""),t(e,5,0,n.datepicker.calendarHeaderComponent,n.datepicker.startAt,n.datepicker.startView,n.datepicker._selected,n.datepicker._minDate,n.datepicker._maxDate,n.datepicker._dateFilter,n.datepicker.dateClass)}),(function(t,e){t(e,1,0,e.component.datepicker.id,"enter")}))}function uv(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"mat-datepicker-content",[["class","mat-datepicker-content"]],[[40,"@transformPanel",0],[2,"mat-datepicker-content-touch",null]],null,null,lv,sv)),pi(1,4243456,null,0,ug,[fn],null,null)],null,(function(t,e){t(e,0,0,"enter",ti(e,1).datepicker.touchUi)}))}var cv=Ur("mat-datepicker-content",ug,uv,{color:"color"},{},[]),hv=or({encapsulation:2,styles:[],data:{}});function dv(t){return ma(2,[],null,null)}var pv=or({encapsulation:2,styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}"],data:{}});function fv(t){return ma(0,[(t()(),Xo(0,0,null,null,1,":svg:svg",[["class","mat-datepicker-toggle-default-icon"],["fill","currentColor"],["focusable","false"],["height","24px"],["viewBox","0 0 24 24"],["width","24px"]],null,null,null,null,null)),(t()(),Xo(1,0,null,null,0,":svg:path",[["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],null,null,null,null,null))],null,null)}function mv(t){return ma(2,[na(671088640,1,{_button:0}),(t()(),Xo(1,0,null,null,4,"button",[["mat-icon-button",""],["type","button"]],[[1,"aria-haspopup",0],[1,"aria-label",0],[1,"tabindex",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component._open(n)&&r),r}),H_,U_)),pi(2,180224,[[1,4],["button",4]],0,wg,[fn,tm,[2,B_]],{disabled:[0,"disabled"],disableRipple:[1,"disableRipple"]},null),(t()(),Zo(16777216,null,0,1,null,fv)),pi(4,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),sa(0,0)],(function(t,e){var n=e.component;t(e,2,0,n.disabled,n.disableRipple),t(e,4,0,!n._customIcon)}),(function(t,e){var n=e.component;t(e,1,0,n.datepicker?"dialog":null,n._intl.openCalendarLabel,n.disabled?-1:n.tabIndex,ti(e,2).disabled||null,"NoopAnimations"===ti(e,2)._animationMode)}))}var gv=or({encapsulation:2,styles:[],data:{}});function yv(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"th",[["scope","col"]],[[1,"aria-label",0]],null,null,null,null)),(t()(),da(1,null,["",""]))],null,(function(t,e){t(e,0,0,e.context.$implicit.long),t(e,1,0,e.context.$implicit.narrow)}))}function _v(t){return ma(2,[na(671088640,1,{_matCalendarBody:0}),(t()(),Xo(1,0,null,null,8,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Xo(2,0,null,null,5,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Xo(3,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,yv)),pi(5,278528,null,0,Bs,[Bn,Ln,Rn],{ngForOf:[0,"ngForOf"]},null),(t()(),Xo(6,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Xo(7,0,null,null,0,"th",[["aria-hidden","true"],["class","mat-calendar-table-header-divider"],["colspan","7"]],null,null,null,null,null)),(t()(),Xo(8,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var r=!0,i=t.component;return"selectedValueChange"===e&&(r=!1!==i._dateSelected(n)&&r),"keydown"===e&&(r=!1!==i._handleCalendarBodyKeydown(n)&&r),r}),av,ev)),pi(9,573440,[[1,4]],0,Zm,[fn,fo],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],activeCell:[5,"activeCell"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,5,0,n._weekdays),t(e,9,0,n._monthLabel,n._weeks,n._todayDate,n._selectedDate,3,n._dateAdapter.getDate(n.activeDate)-1)}),null)}var vv=or({encapsulation:2,styles:[],data:{}});function bv(t){return ma(2,[na(671088640,1,{_matCalendarBody:0}),(t()(),Xo(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Xo(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Xo(3,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Xo(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(t()(),Xo(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var r=!0,i=t.component;return"selectedValueChange"===e&&(r=!1!==i._monthSelected(n)&&r),"keydown"===e&&(r=!1!==i._handleCalendarBodyKeydown(n)&&r),r}),av,ev)),pi(6,573440,[[1,4]],0,Zm,[fn,fo],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],numCols:[5,"numCols"],activeCell:[6,"activeCell"],cellAspectRatio:[7,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,6,0,n._yearLabel,n._months,n._todayMonth,n._selectedMonth,2,4,n._dateAdapter.getMonth(n.activeDate),4/7)}),null)}var wv=or({encapsulation:2,styles:[],data:{}});function Cv(t){return ma(2,[na(671088640,1,{_matCalendarBody:0}),(t()(),Xo(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Xo(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Xo(3,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Xo(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(t()(),Xo(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var r=!0,i=t.component;return"selectedValueChange"===e&&(r=!1!==i._yearSelected(n)&&r),"keydown"===e&&(r=!1!==i._handleCalendarBodyKeydown(n)&&r),r}),av,ev)),pi(6,573440,[[1,4]],0,Zm,[fn,fo],{rows:[0,"rows"],todayValue:[1,"todayValue"],selectedValue:[2,"selectedValue"],numCols:[3,"numCols"],activeCell:[4,"activeCell"],cellAspectRatio:[5,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,6,0,n._years,n._todayYear,n._selectedYear,4,n._getActiveCell(),4/7)}),null)}var xv={};function Sv(){for(var t=[],e=0;ethis.total&&this.destination.next(t)},e}(v),Dv=new Set,Iv=function(){function t(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Pv}return t.prototype.matchMedia=function(t){return this._platform.WEBKIT&&function(t){if(!Dv.has(t))try{kv||((kv=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(kv)),kv.sheet&&(kv.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),Dv.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)},t.ngInjectableDef=vt({factory:function(){return new t(qt(Np))},token:t,providedIn:"root"}),t}();function Pv(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var Rv=function(){function t(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new I}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return Nv(yp(t)).some((function(t){return e._registerQuery(t).mql.matches}))},t.prototype.observe=function(t){var e=this,n=Sv(Nv(yp(t)).map((function(t){return e._registerQuery(t).observable})));return(n=cp(n.pipe(ap(1)),n.pipe((function(t){return t.lift(new Av(1))}),Rf(0)))).pipe(Q((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),r={observable:new k((function(t){var r=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(r),function(){n.removeListener(r)}})).pipe(hp(n),Q((function(e){return{query:t,matches:e.matches}})),Ap(this._destroySubject)),mql:n};return this._queries.set(t,r),r},t.ngInjectableDef=vt({factory:function(){return new t(qt(Iv),qt(fo))},token:t,providedIn:"root"}),t}();function Nv(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var Mv={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"},jv=20;function Fv(t){return Error('Tooltip position "'+t+'" is invalid.')}var Lv=new Pt("mat-tooltip-scroll-strategy");function Vv(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:jv})}}var Bv=new Pt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),zv=function(){function t(t,e,n,r,i,o,a,s,l,u,c,h){var d=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=i,this._ariaDescriber=a,this._focusMonitor=s,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 I,this._scrollStrategy=l;var p=e.nativeElement,f="undefined"==typeof window||window.Hammer||h;o.IOS||o.ANDROID?f||this._manualListeners.set("touchstart",(function(){return d.show()})):this._manualListeners.set("mouseenter",(function(){return d.show()})).set("mouseleave",(function(){return d.hide()})),this._manualListeners.forEach((function(t,e){return p.addEventListener(e,t)})),s.monitor(e).pipe(Ap(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&i.run((function(){return d.show()})):i.run((function(){return d.hide(0)}))})),c&&c.position&&(this.position=c.position)}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=mp(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this._elementRef.nativeElement,e=t.style;"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||(e.webkitUserSelect=e.userSelect=e.msUserSelect=""),t.draggable&&"none"===e.webkitUserDrag&&(e.webkitUserDrag="")},t.prototype.ngOnDestroy=function(){var t=this;this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._manualListeners.forEach((function(e,n){t._elementRef.nativeElement.removeEventListener(n,e)})),this._manualListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.message),this._focusMonitor.stopMonitoring(this._elementRef)},t.prototype.show=function(t){var e=this;if(void 0===t&&(t=this.showDelay),!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Gd(qv,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ap(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._handleKeydown=function(t){this._isTooltipVisible()&&t.keyCode===ep&&!np(t)&&(t.preventDefault(),t.stopPropagation(),this.hide(0))},t.prototype._handleTouchend=function(){this.hide(this._defaultOptions.touchendHideDelay)},t.prototype._createOverlay=function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(Ap(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Ap(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef},t.prototype._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null},t.prototype._updatePosition=function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object(a.__assign)({},e.main,n.main),Object(a.__assign)({},e.fallback,n.fallback)])},t.prototype._getOrigin=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw Fv(n);t={originX:"end",originY:"center"}}var r=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:r.x,originY:r.y}}},t.prototype._getOverlayPosition=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw Fv(n);t={overlayX:"start",overlayY:"center"}}var r=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:r.x,overlayY:r.y}}},t.prototype._updateTooltipMessage=function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(ap(1),Ap(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t.prototype._invertPosition=function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}},t}(),qv=function(){function t(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new I,this._isHandset=this._breakpointObserver.observe(Mv.Handset)}return t.prototype.show=function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype.ngOnDestroy=function(){this._onHide.complete()},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t}(),Uv=function(){return function(){}}(),Hv=or({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 (-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 Wv(t){return ma(2,[(t()(),Xo(0,0,null,null,4,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],(function(t,e,n){var r=!0,i=t.component;return"@state.start"===e&&(r=!1!==i._animationStart()&&r),"@state.done"===e&&(r=!1!==i._animationDone(n)&&r),r}),null,null)),mi(512,null,js,Fs,[Rn,Nn,fn,vn]),pi(2,278528,null,0,Ls,[js],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),fi(131072,el,[Me]),(t()(),da(4,null,["",""]))],(function(t,e){t(e,2,0,"mat-tooltip",e.component.tooltipClass)}),(function(t,e){var n,r=e.component;t(e,0,0,null==(n=nr(e,0,0,ti(e,3).transform(r._isHandset)))?null:n.matches,r._visibility),t(e,4,0,r.message)}))}function Qv(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],(function(t,e,n){var r=!0;return"body:click"===e&&(r=!1!==ti(t,1)._handleBodyInteraction()&&r),r}),Wv,Hv)),pi(1,180224,null,0,qv,[Me,Rv],null,null)],null,(function(t,e){t(e,0,0,"visible"===ti(e,1)._visibility?1:null)}))}var Yv=Ur("mat-tooltip-component",qv,Qv,{},{},[]),Gv=function(){function t(t,e){var n=this;this._overlayRef=e,this._afterDismissed=new I,this._afterOpened=new I,this._onAction=new I,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return n.dismiss()})),t._onExit.subscribe((function(){return n._finishDismiss()}))}return t.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())},t.prototype.closeWithAction=function(){this.dismissWithAction()},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),t)},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1},t.prototype.afterDismissed=function(){return this._afterDismissed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),Kv=new Pt("MatSnackBarData"),Zv=function(){return function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}(),Xv=function(){function t(t,e){this.snackBarRef=t,this.data=e}return t.prototype.action=function(){this.snackBarRef.dismissWithAction()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),t}(),$v=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._ngZone=e,o._elementRef=n,o._changeDetectorRef=r,o.snackBarConfig=i,o._destroyed=!1,o._onExit=new I,o._onEnter=new I,o._animationState="void",o._role="assertive"!==i.politeness||i.announcementMessage?"off"===i.politeness?null:"status":"alert",o}return Object(a.__extends)(e,t),e.prototype.attachComponentPortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)},e.prototype.onAnimationEnd=function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}},e.prototype.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())},e.prototype.exit=function(){return this._animationState="hidden",this._onExit},e.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},e.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(ap(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))},e.prototype._applySnackBarClasses=function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")},e.prototype._assertNotAttached=function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")},e}(Zd),Jv=function(){return function(){}}(),tb=new Pt("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Zv}}),eb=function(){function t(t,e,n,r,i,o){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=r,this._parentSnackBar=i,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){return this._attach(t,e)},t.prototype.openFromTemplate=function(t,e){return this._attach(t,e)},t.prototype.open=function(t,e,n){void 0===e&&(e="");var r=Object(a.__assign)({},this._defaultConfig,n);return r.data={message:t,action:e},r.announcementMessage||(r.announcementMessage=t),this.openFromComponent(Xv,r)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var n=new tp(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Zv,e]])),r=new Gd($v,e.viewContainerRef,n),i=t.attach(r);return i.instance.snackBarConfig=e,i.instance},t.prototype._attach=function(t,e){var n=Object(a.__assign)({},new Zv,this._defaultConfig,e),r=this._createOverlay(n),i=this._attachSnackBarContainer(r,n),o=new Gv(i,r);if(t instanceof Ln){var s=new Kd(t,null,{$implicit:n.data,snackBarRef:o});o.instance=i.attachTemplatePortal(s)}else{var l=this._createInjector(n,o),u=(s=new Gd(t,void 0,l),i.attachComponentPortal(s));o.instance=u.instance}return this._breakpointObserver.observe(Mv.HandsetPortrait).pipe(Ap(r.detachments())).subscribe((function(t){var e=r.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef},t.prototype._animateSnackBar=function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new $p;e.direction=t.direction;var n=this._overlay.position().global(),r="rtl"===t.direction,i="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!i&&"center"!==t.horizontalPosition;return i?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new tp(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Gv,e],[Kv,t.data]]))},t.ngInjectableDef=vt({factory:function(){return new t(qt(pf),qt(Zf),qt(Rt),qt(Rv),qt(t,12),qt(tb))},token:t,providedIn:Jv}),t}(),nb=or({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}@media (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"void, hidden",styles:{type:6,styles:{transform:"scale(0.8)",opacity:0},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function rb(t){return ma(0,[(t()(),Zo(0,null,null,0))],null,null)}function ib(t){return ma(0,[na(402653184,1,{_portalOutlet:0}),(t()(),Zo(16777216,null,null,1,null,rb)),pi(2,212992,[[1,4]],0,$d,[cn,Bn],{portal:[0,"portal"]},null)],(function(t,e){t(e,2,0,"")}),null)}function ob(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"]],[[1,"role",0],[40,"@state",0]],[["component","@state.done"]],(function(t,e,n){var r=!0;return"component:@state.done"===e&&(r=!1!==ti(t,1).onAnimationEnd(n)&&r),r}),ib,nb)),pi(1,180224,null,0,$v,[fo,fn,Me,Zv],null,null)],null,(function(t,e){t(e,0,0,ti(e,1)._role,ti(e,1)._animationState)}))}var ab=Ur("snack-bar-container",$v,ob,{},{},[]),sb=or({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}"],data:{}});function lb(t){return ma(0,[(t()(),Xo(0,0,null,null,3,"div",[["class","mat-simple-snackbar-action"]],null,null,null,null,null)),(t()(),Xo(1,0,null,null,2,"button",[["mat-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.action()&&r),r}),H_,U_)),pi(2,180224,null,0,wg,[fn,tm,[2,B_]],null,null),(t()(),da(3,0,["",""]))],null,(function(t,e){var n=e.component;t(e,1,0,ti(e,2).disabled||null,"NoopAnimations"===ti(e,2)._animationMode),t(e,3,0,n.data.action)}))}function ub(t){return ma(2,[(t()(),Xo(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),da(1,null,["",""])),(t()(),Zo(16777216,null,null,1,null,lb)),pi(3,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null)],(function(t,e){t(e,3,0,e.component.hasAction)}),(function(t,e){t(e,1,0,e.component.data.message)}))}function cb(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],null,null,null,ub,sb)),pi(1,49152,null,0,Xv,[Gv,Kv],null,null)],null,null)}var hb=Ur("simple-snack-bar",Xv,cb,{},{},[]);function db(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}db.prototype=Object.create(Error.prototype);var pb=db;function fb(t){return function(e){return 0===t?wu():e.lift(new mb(t))}}var mb=function(){function t(t){if(this.total=t,this.total<0)throw new op}return t.prototype.call=function(t,e){return e.subscribe(new gb(t,this.total))},t}(),gb=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return a.__extends(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?uh((function(e,n){return t(e,n,r)})):tt,fb(1),n?vb(e):yb((function(){return new pb})))}}function xb(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?uh((function(e,n){return t(e,n,r)})):tt,ap(1),n?vb(e):yb((function(){return new pb})))}}var Sb=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new kb(t,this.predicate,this.thisArg,this.source))},t}(),kb=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return a.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(v);function Eb(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ob(t,e,n))}}var Ob=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Ab(t,this.accumulator,this.seed,this.hasSeed))},t}(),Ab=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return a.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(v);function Tb(t,e){return arguments.length>=2?function(n){return x(Eb(t,e),fb(1),vb(e))(n)}:function(e){return x(Eb((function(e,n,r){return t(e,n,r+1)})),fb(1))(e)}}function Db(t){return function(e){return e.lift(new Ib(t))}}var Ib=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Pb(t,this.callback))},t}(),Pb=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new d(n)),r}return a.__extends(e,t),e}(v),Rb=function(){return function(t,e){this.id=t,this.url=e}}(),Nb=function(t){function e(e,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(Rb),Mb=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(Rb),jb=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(Rb),Fb=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(Rb),Lb=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Rb),Vb=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Rb),Bb=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(Rb),zb=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Rb),qb=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return Object(a.__extends)(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Rb),Ub=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Hb=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Wb=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Qb=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Yb=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Gb=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Kb=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),Zb=function(){return function(){}}(),Xb="primary",$b=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function Jb(t){return new $b(t)}var tw="ngNavigationCancelingError";function ew(t){var e=Error("NavigationCancelingError: "+t);return e[tw]=!0,e}function nw(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function hw(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function dw(t){return nn(t)?t:en(t)?Z(Promise.resolve(t)):ih(t)}function pw(t,e,n){return n?function(t,e){return lw(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!yw(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every((function(n){return e[n]===t[n]}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!yw(a=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!yw(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!yw(n.segments,a)&&!!n.children[Xb]&&e(n.children[Xb],r,s)}(e,n,n.segments)}(t.root,e.root)}var fw=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Jb(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return ww.serialize(this)},t}(),mw=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,hw(e,(function(t,e){return t.parent=n}))}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Cw(this)},t}(),gw=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Jb(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Aw(this)},t}();function yw(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function _w(t,e){var n=[];return hw(t.children,(function(t,r){r===Xb&&(n=n.concat(e(t,r)))})),hw(t.children,(function(t,r){r!==Xb&&(n=n.concat(e(t,r)))})),n}var vw=function(){return function(){}}(),bw=function(){function t(){}return t.prototype.parse=function(t){var e=new Rw(t);return new fw(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Cw(e);if(n){var r=e.children[Xb]?t(e.children[Xb],!1):"",i=[];return hw(e.children,(function(e,n){n!==Xb&&i.push(n+":"+t(e,!1))})),i.length>0?r+"("+i.join("//")+")":r}var o=_w(e,(function(n,r){return r===Xb?[t(e.children[Xb],!1)]:[r+":"+t(n,!1)]}));return Cw(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return Sw(t)+"="+Sw(e)})).join("&"):Sw(t)+"="+Sw(n)}))).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),ww=new bw;function Cw(t){return t.segments.map((function(t){return Aw(t)})).join("/")}function xw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sw(t){return xw(t).replace(/%3B/gi,";")}function kw(t){return xw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ew(t){return decodeURIComponent(t)}function Ow(t){return Ew(t.replace(/\+/g,"%20"))}function Aw(t){return""+kw(t.path)+(e=t.parameters,Object.keys(e).map((function(t){return";"+kw(t)+"="+kw(e[t])})).join(""));var e}var Tw=/^[^\/()?;=#]+/;function Dw(t){var e=t.match(Tw);return e?e[0]:""}var Iw=/^[^=?&#]+/,Pw=/^[^?&#]+/,Rw=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mw([],{}):new mw([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Xb]=new mw(t,e)),n},t.prototype.parseSegment=function(){var t=Dw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new gw(Ew(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Dw(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Dw(this.remaining);r&&this.capture(n=r)}t[Ew(e)]=Ew(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Iw))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Pw);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Ow(n),a=Ow(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Dw(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(":")):t&&(i=Xb);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Xb]:new mw([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Nw=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Mw(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=Mw(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=jw(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))},t.prototype.pathFromRoot=function(t){return jw(t,this._root).map((function(t){return t.value}))},t}();function Mw(t,e){var n,r;if(t===e.value)return e;try{for(var i=Object(a.__values)(e.children),o=i.next();!o.done;o=i.next()){var s=Mw(t,o.value);if(s)return s}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function jw(t,e){var n,r;if(t===e.value)return[e];try{for(var i=Object(a.__values)(e.children),o=i.next();!o.done;o=i.next()){var s=jw(t,o.value);if(s.length)return s.unshift(e),s}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var Fw=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Lw(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Vw=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Ww(r,e),r}return Object(a.__extends)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Nw);function Bw(t,e){var n=function(t,e){var n=new Uw([],{},{},"",{},Xb,e,null,t.root,-1,{});return new Hw("",new Fw(n,[]))}(t,e),r=new ah([new gw("",{})]),i=new ah({}),o=new ah({}),a=new ah({}),s=new ah(""),l=new zw(r,i,a,s,o,Xb,e,n.root);return l.snapshot=n.root,new Vw(new Fw(l,[]),n)}var zw=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Q((function(t){return Jb(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q((function(t){return Jb(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function qw(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce((function(t,e){return{params:Object(a.__assign)({},t.params,e.params),data:Object(a.__assign)({},t.data,e.data),resolve:Object(a.__assign)({},t.resolve,e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(r))}var Uw=function(){function t(t,e,n,r,i,o,a,s,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Jb(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Jb(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map((function(t){return t.toString()})).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Hw=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Ww(r,n),r}return Object(a.__extends)(e,t),e.prototype.toString=function(){return Qw(this._root)},e}(Nw);function Ww(t,e){e.value._routerState=t,e.children.forEach((function(e){return Ww(t,e)}))}function Qw(t){var e=t.children.length>0?" { "+t.children.map(Qw).join(", ")+" } ":"";return""+t.value+e}function Yw(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,lw(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),lw(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Kw(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(r&&r!==cw(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),$w=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Jw(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Xb]:""+t}function tC(t,e,n){if(t||(t=new mw([],{})),0===t.segments.length&&t.hasChildren())return eC(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=Jw(n[r]),l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!oC(s,l,a))return o;r+=2}else{if(!oC(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new mw([],((r={})[Xb]=t,r)):t;return new fw(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Q((function(t){return new mw([],t)}))):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return ih({});var o=[],a=[],s={};return hw(n,(function(n,i){var l,u,c=(l=i,u=n,r.expandSegmentGroup(t,e,u,l)).pipe(Q((function(t){return s[i]=t})));i===Xb?o.push(c):a.push(c)})),ih.apply(null,o.concat(a)).pipe(up(),Cb(),Q((function(){return s})))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var s=this;return ih.apply(void 0,Object(a.__spread)(n)).pipe(Q((function(a){return s.expandSegmentAgainstRoute(t,e,n,a,r,i,o).pipe($c((function(t){if(t instanceof cC)return ih(null);throw t})))})),up(),xb((function(t){return!!t})),$c((function(t,n){if(t instanceof pb||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,i))return ih(new mw([],{}));throw new cC(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,a){return vC(r)!==o?dC(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):dC(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?pC(o):this.lineralizeSegments(n,o).pipe(X((function(n){var o=new mw(n,{});return i.expandSegment(t,o,e,n,r,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=gC(e,r,i),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return dC(e);var h=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?pC(h):this.lineralizeSegments(r,h).pipe(X((function(r){return a.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Q((function(t){return n._loadedConfig=t,new mw(r,{})}))):ih(new mw(r,{}));var o=gC(e,n,r),s=o.consumedSegments,l=o.lastChild;if(!o.matched)return dC(e);var u=r.slice(l);return this.getChildConfig(t,n,r).pipe(X((function(t){var n=t.module,r=t.routes,o=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some((function(n){return _C(t,e,n)&&vC(n)!==Xb}))}(t,n,r)?{segmentGroup:yC(new mw(e,function(t,e){var n,r,i={};i[Xb]=e;try{for(var o=Object(a.__values)(t),s=o.next();!s.done;s=o.next()){var l=s.value;""===l.path&&vC(l)!==Xb&&(i[vC(l)]=new mw([],{}))}}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 mw(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return _C(t,e,n)}))}(t,n,r)?{segmentGroup:yC(new mw(t.segments,function(t,e,n,r){var i,o,s={};try{for(var l=Object(a.__values)(n),u=l.next();!u.done;u=l.next()){var c=u.value;_C(t,e,c)&&!r[vC(c)]&&(s[vC(c)]=new mw([],{}))}}catch(h){i={error:h}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return Object(a.__assign)({},r,s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,u,r),l=o.segmentGroup,c=o.slicedSegments;return 0===c.length&&l.hasChildren()?i.expandChildren(n,r,l).pipe(Q((function(t){return new mw(s,t)}))):0===r.length&&0===c.length?ih(new mw(s,{})):i.expandSegment(n,l,r,c,Xb,!0).pipe(Q((function(t){return new mw(s.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?ih(new rw(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ih(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?Z(i).pipe(Q((function(r){var i,o=t.get(r);if(function(t){return t&&lC(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!lC(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return dw(i)}))).pipe(up(),(r=function(t){return!0===t},function(t){return t.lift(new Sb(r,void 0,t))})):ih(!0)}(t.injector,e,n).pipe(X((function(n){return n?r.configLoader.load(t.injector,e).pipe(Q((function(t){return e._loadedConfig=t,t}))):function(t){return new k((function(e){return e.error(ew("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):ih(new rw([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return ih(n);if(r.numberOfChildren>1||!r.children[Xb])return fC(t.redirectTo);r=r.children[Xb]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new fw(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return hw(t,(function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t})),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return hw(e.children,(function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)})),new mw(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map((function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)}))},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,i=0;try{for(var o=Object(a.__values)(e),s=o.next();!s.done;s=o.next()){var l=s.value;if(l.path===t.path)return e.splice(i),l;i++}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},t}();function gC(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||nw)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function yC(t){if(1===t.numberOfChildren&&t.children[Xb]){var e=t.children[Xb];return new mw(t.segments.concat(e.segments),e.children)}return t}function _C(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function vC(t){return t.outlet||Xb}var bC=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),wC=function(){return function(t,e){this.component=t,this.route=e}}();function CC(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function xC(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=Lw(e);return t.children.forEach((function(t){!function(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!yw(t.url,e.url);case"pathParamsOrQueryParamsChange":return!yw(t.url,e.url)||!lw(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gw(t,e)||!lw(t.queryParams,e.queryParams);case"paramsChange":default:return!Gw(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new bC(r)):(o.data=a.data,o._resolvedData=a._resolvedData),xC(t,e,o.component?s?s.children:null:n,r,i),l&&i.canDeactivateChecks.push(new wC(s&&s.outlet&&s.outlet.component||null,a))}else a&&SC(e,s,i),i.canActivateChecks.push(new bC(r)),xC(t,null,o.component?s?s.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]})),hw(o,(function(t,e){return SC(t,n.getContext(e),i)})),i}function SC(t,e,n){var r=Lw(t),i=t.value;hw(r,(function(t,r){SC(t,i.component?e?e.children.getContext(r):null:e,n)})),n.canDeactivateChecks.push(new wC(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var kC=Symbol("INITIAL_VALUE");function EC(){return _d((function(t){return Sv.apply(void 0,Object(a.__spread)(t.map((function(t){return t.pipe(ap(1),hp(kC))})))).pipe(Eb((function(t,e){var n=!1;return e.reduce((function(t,r,i){if(t!==kC)return t;if(r===kC&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||uC(r))return r}return t}),t)}),kC),uh((function(t){return t!==kC})),Q((function(t){return uC(t)?t:!0===t})),ap(1))}))}function OC(t,e){return null!==t&&e&&e(new Yb(t)),ih(!0)}function AC(t,e){return null!==t&&e&&e(new Wb(t)),ih(!0)}function TC(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?ih(r.map((function(r){return rp((function(){var i,o=CC(r,e,n);if(function(t){return t&&lC(t.canActivate)}(o))i=dw(o.canActivate(e,t));else{if(!lC(o))throw new Error("Invalid CanActivate guard");i=dw(o(e,t))}return i.pipe(xb())}))}))).pipe(EC()):ih(!0)}function DC(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return rp((function(){return ih(e.guards.map((function(i){var o,a=CC(i,e.node,n);if(function(t){return t&&lC(t.canActivateChild)}(a))o=dw(a.canActivateChild(r,t));else{if(!lC(a))throw new Error("Invalid CanActivateChild guard");o=dw(a(r,t))}return o.pipe(xb())}))).pipe(EC())}))}));return ih(i).pipe(EC())}var IC=function(){return function(){}}(),PC=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=MC(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Xb),n=new Uw([],Object.freeze({}),Object.freeze(Object(a.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,{},Xb,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Fw(n,e),i=new Hw(this.url,r);return this.inheritParamsAndData(i._root),ih(i)}catch(o){return new k((function(t){return t.error(o)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=qw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=_w(e,(function(e,n){return r.processSegmentGroup(t,e,n)}));return n={},i.forEach((function(t){var e=n[t.value.outlet];if(e){var r=e.url.map((function(t){return t.toString()})).join("/"),i=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value})),i.sort((function(t,e){return t.value.outlet===Xb?-1:e.value.outlet===Xb?1:t.value.outlet.localeCompare(e.value.outlet)})),i},t.prototype.processSegment=function(t,e,n,r){var i,o;try{for(var s=Object(a.__values)(t),l=s.next();!l.done;l=s.next()){var u=l.value;try{return this.processSegmentAgainstRoute(u,e,n,r)}catch(c){if(!(c instanceof IC))throw c}}}catch(h){i={error:h}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new IC},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new IC;if((t.outlet||Xb)!==r)throw new IC;var i,o=[],s=[];if("**"===t.path){var l=n.length>0?cw(n).parameters:{};i=new Uw(n,l,Object.freeze(Object(a.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,LC(t),r,t.component,t,RC(e),NC(e)+n.length,VC(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new IC;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||nw)(n,t,e);if(!r)throw new IC;var i={};hw(r.posParams,(function(t,e){i[e]=t.path}));var o=r.consumed.length>0?Object(a.__assign)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=u.consumedSegments,s=n.slice(u.lastChild),i=new Uw(o,u.parameters,Object.freeze(Object(a.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,LC(t),r,t.component,t,RC(e),NC(e)+o.length,VC(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=MC(e,o,s,c,this.relativeLinkResolution),d=h.segmentGroup,p=h.slicedSegments;if(0===p.length&&d.hasChildren()){var f=this.processChildren(c,d);return[new Fw(i,f)]}if(0===c.length&&0===p.length)return[new Fw(i,[])];var m=this.processSegment(c,d,p,Xb);return[new Fw(i,m)]},t}();function RC(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function NC(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function MC(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some((function(n){return jC(t,e,n)&&FC(n)!==Xb}))}(t,n,r)){var o=new mw(e,function(t,e,n,r){var i,o,s={};s[Xb]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var l=Object(a.__values)(n),u=l.next();!u.done;u=l.next()){var c=u.value;if(""===c.path&&FC(c)!==Xb){var h=new mw([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,s[FC(c)]=h}}}catch(d){i={error:d}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return s}(t,e,r,new mw(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return jC(t,e,n)}))}(t,n,r)){var s=new mw(t.segments,function(t,e,n,r,i,o){var s,l,u={};try{for(var c=Object(a.__values)(r),h=c.next();!h.done;h=c.next()){var d=h.value;if(jC(t,n,d)&&!i[FC(d)]){var p=new mw([],{});p._sourceSegment=t,p._segmentIndexShift="legacy"===o?t.segments.length:e.length,u[FC(d)]=p}}}catch(f){s={error:f}}finally{try{h&&!h.done&&(l=c.return)&&l.call(c)}finally{if(s)throw s.error}}return Object(a.__assign)({},i,u)}(t,e,n,r,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var l=new mw(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function jC(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function FC(t){return t.outlet||Xb}function LC(t){return t.data||{}}function VC(t){return t.resolve||{}}function BC(t,e,n,r){var i=CC(t,e,r);return dw(i.resolve?i.resolve(e,n):i(e,n))}function zC(t){return function(e){return e.pipe(_d((function(e){var n=t(e);return n?Z(n).pipe(Q((function(){return e}))):Z([e])})))}}var qC=function(){return function(){}}(),UC=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),HC=new Pt("ROUTES"),WC=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Q((function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new rw(uw(i.injector.get(HC)).map(sw),i)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Z(this.loader.load(t)):dw(t()).pipe(X((function(t){return t instanceof Yt?ih(t):Z(e.compiler.compileModuleAsync(t))})))},t}(),QC=function(){return function(){}}(),YC=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function GC(t){throw t}function KC(t,e,n){return e.parse("/")}function ZC(t,e){return ih(null)}var XC=function(){function t(t,e,n,r,i,o,a,s){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new I,this.errorHandler=GC,this.malformedUriErrorHandler=KC,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ZC,afterPreactivation:ZC},this.urlHandlingStrategy=new YC,this.routeReuseStrategy=new UC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(Qt),this.console=i.get(Gi);var u=i.get(fo);this.isNgZoneEnabled=u instanceof fo,this.resetConfig(s),this.currentUrlTree=new fw(new mw([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new WC(o,a,(function(t){return l.triggerEvent(new Ub(t))}),(function(t){return l.triggerEvent(new Hb(t))})),this.routerState=Bw(this.currentUrlTree,this.rootComponentType),this.transitions=new ah({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(uh((function(t){return 0!==t.id})),Q((function(t){return Object(a.__assign)({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),_d((function(t){var r,i,o,s=!1,l=!1;return ih(t).pipe(Hh((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object(a.__assign)({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}})),_d((function(t){var r,i,o,s,l=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||l)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return ih(t).pipe(_d((function(t){var r=e.transitions.getValue();return n.next(new Nb(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?bu:[t]})),_d((function(t){return Promise.resolve(t)})),(r=e.ngModule.injector,i=e.configLoader,o=e.urlSerializer,s=e.config,function(t){return t.pipe(_d((function(t){return function(t,e,n,r,i){return new mC(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,s).pipe(Q((function(e){return Object(a.__assign)({},t,{urlAfterRedirects:e})})))})))}),Hh((function(t){e.currentNavigation=Object(a.__assign)({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})})),function(t,n,r,i,o){return function(r){return r.pipe(X((function(r){return function(t,e,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new PC(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,e.serializeUrl(s)),i,o).pipe(Q((function(t){return Object(a.__assign)({},r,{targetSnapshot:t})})));var s})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Hh((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Hh((function(t){var r=new Lb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)})));if(l&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.extractedUrl,c=t.source,h=t.restoredState,d=t.extras,p=new Nb(t.id,e.serializeUrl(u),c,h);n.next(p);var f=Bw(u,e.rootComponentType).snapshot;return ih(Object(a.__assign)({},t,{targetSnapshot:f,urlAfterRedirects:u,extras:Object(a.__assign)({},d,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),bu})),zC((function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Hh((function(t){var n=new Vb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),Q((function(t){return Object(a.__assign)({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,o=n._root,xC(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),function(t,e){return function(n){return n.pipe(X((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,s=o.canActivateChecks,l=o.canDeactivateChecks;return 0===l.length&&0===s.length?ih(Object(a.__assign)({},n,{guardsResult:!0})):function(t,e,n,r){return Z(t).pipe(X((function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?ih(o.map((function(o){var a,s=CC(o,e,i);if(function(t){return t&&lC(t.canDeactivate)}(s))a=dw(s.canDeactivate(t,e,n,r));else{if(!lC(s))throw new Error("Invalid CanDeactivate guard");a=dw(s(t,e,n,r))}return a.pipe(xb())}))).pipe(EC()):ih(!0)}(t.component,t.route,n,e,r)})),xb((function(t){return!0!==t}),!0))}(l,r,i,t).pipe(X((function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Z(e).pipe(lh((function(e){return Z([AC(e.route.parent,r),OC(e.route,r),DC(t,e.path,n),TC(t,e.route,n)]).pipe(up(),xb((function(t){return!0!==t}),!0))})),xb((function(t){return!0!==t}),!0))}(r,s,t,e):ih(n)})),Q((function(t){return Object(a.__assign)({},n,{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Hh((function(t){if(uC(t.guardsResult)){var n=ew('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}})),Hh((function(t){var n=new Bb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),uh((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new jb(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0})),zC((function(t){if(t.guards.canActivateChecks.length)return ih(t).pipe(Hh((function(t){var n=new zb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(X((function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?Z(i).pipe(lh((function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return ih({});if(1===i.length){var o=i[0];return BC(t[o],e,n,r).pipe(Q((function(t){var e;return(e={})[o]=t,e})))}var a={};return Z(i).pipe(X((function(i){return BC(t[i],e,n,r).pipe(Q((function(t){return a[i]=t,t})))}))).pipe(Cb(),Q((function(){return a})))}(t._resolve,t,e,r).pipe(Q((function(e){return t._resolvedData=e,t.data=Object(a.__assign)({},t.data,qw(t,n).resolve),null})))}(t.route,e,n,r)})),Tb((function(t,e){return t})),Q((function(e){return t}))):ih(t)})))}),Hh((function(t){var n=new qb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,r})),zC((function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})})),Q((function(t){var n,r,i,o=(i=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(u=r.value)._futureSnapshot=n.value;var i=function(e,n,r){return n.children.map((function(n){var i,o;try{for(var s=Object(a.__values)(r.children),l=s.next();!l.done;l=s.next()){var u=l.value;if(e.shouldReuseRoute(u.value.snapshot,n.value))return t(e,n,u)}}catch(c){i={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return t(e,n)}))}(e,n,r);return new Fw(u,i)}var o=e.retrieve(n.value);if(o){var s=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ri;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new $w(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),l=s.processChildren?eC(s.segmentGroup,s.index,o.commands):tC(s.segmentGroup,s.index,o.commands);return Zw(s.segmentGroup,l,e,r,i)}(u,this.currentUrlTree,t,h,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),se()&&this.isNgZoneEnabled&&!fo.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=uC(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var cS=new Pt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=Ut(Zx),e=Ut(Gx),n=[].concat.apply([],(t||[]).map((function(t){return Array.isArray(t)?t:[t]})));return function(t,e){void 0===e&&(e=[]);var n,r={};return t.forEach((function(t){r[t.alias]=t})),e.forEach((function(t){r[t.alias]?function(t){for(var e=[],n=1;n-1})));return nt(new k((function(e){var r=n.registerQuery(t);if(r.length){var i=r.pop();r.forEach((function(t){e.next(t)})),n.source.next(i)}e.complete()})),r)}return this._observable$},t.prototype.registerQuery=function(t){var e=this,n=Array.isArray(t)?t:[t],r=[];return function(t,e){var n=t.filter((function(t){return!mS[t]}));if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),e.head.appendChild(i),n.forEach((function(t){return mS[t]=i}))}catch(o){console.error(o)}}}(n,this._document),n.forEach((function(t){var n=e.registry.get(t);n||((n=e.buildMQL(t)).addListener((function(n){e._zone.run((function(){return e.source.next(new Wx(n.matches,t))}))})),e.registry.set(t,n)),n.matches&&r.push(new Wx(!0,t))})),r},t.prototype.buildMQL=function(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}(t,sl(this._platformId))},t.ngInjectableDef=vt({factory:function(){return new t(qt(fo),qt(Qi),qt(il))},token:t,providedIn:"root"}),t}(),mS={},gS={alias:"print",mediaQuery:"print",priority:1e3},yS=function(){function t(t,e){this.breakpoints=t,this.layoutConfig=e,this.isPrinting=!1,this.queue=new _S,this.deactivations=[]}return t.prototype.withPrintQuery=function(t){return t.concat(["print"])},t.prototype.isPrintEvent=function(t){return t.mediaQuery.startsWith("print")},Object.defineProperty(t.prototype,"printAlias",{get:function(){return this.layoutConfig.printWithBreakpoints||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"printBreakPoints",{get:function(){var t=this;return this.printAlias.map((function(e){return t.breakpoints.findByAlias(e)})).filter((function(t){return null!==t}))},enumerable:!0,configurable:!0}),t.prototype.getEventBreakpoints=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return(e?this.printBreakPoints.concat([e]):this.printBreakPoints).sort(hS)},t.prototype.updateEvent=function(t){var e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Xx(t,e)},t.prototype.interceptEvents=function(t){var e=this;return function(n){e.isPrintEvent(n)?n.matches&&!e.isPrinting?(e.startPrinting(t,e.getEventBreakpoints(n)),t.updateStyles()):!n.matches&&e.isPrinting&&(e.stopPrinting(t),t.updateStyles()):e.collectActivations(n)}},t.prototype.blockPropagation=function(){var t=this;return function(e){return!(t.isPrinting||t.isPrintEvent(e))}},t.prototype.startPrinting=function(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)},t.prototype.stopPrinting=function(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1},t.prototype.collectActivations=function(t){if(!this.isPrinting)if(t.matches)this.deactivations=[];else{var e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(hS))}},t.ngInjectableDef=vt({factory:function(){return new t(qt(pS),qt(Gx))},token:t,providedIn:"root"}),t}(),_S=function(){function t(){this.printBreakpoints=[]}return t.prototype.addPrintBreakpoints=function(t){var e=this;return t.push(gS),t.sort(hS),t.forEach((function(t){return e.addBreakpoint(t)})),this.printBreakpoints},t.prototype.addBreakpoint=function(t){t&&void 0===this.printBreakpoints.find((function(e){return e.mediaQuery===t.mediaQuery}))&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t].concat(this.printBreakpoints):this.printBreakpoints.concat([t]))},t.prototype.clear=function(){this.printBreakpoints=[]},t}();function vS(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}var bS=function(){function t(t,e,n,r){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=r}return t.prototype.applyStyleToElement=function(t,e,n){void 0===n&&(n=null);var r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:vS(e),this._applyMultiValueStyleToElement(r,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.layoutConfig.disableVendorPrefixes?t:vS(t);e.forEach((function(t){n._applyMultiValueStyleToElement(r,t)}))},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||ll(this._platformId)&&this._serverModuleLoaded?e:""]},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return sl(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,n){void 0===n&&(n=!1);var r="";return t&&((r=this.lookupInlineStyle(t,e))||(sl(this._platformId)?n||(r=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(t,e)))),r?r.trim():""},t.prototype._applyMultiValueStyleToElement=function(t,e){var n=this;Object.keys(t).sort().forEach((function(r){var i=t[r],o=Array.isArray(i)?i:[i];o.sort();for(var a=0,s=o;a0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);e[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var r in e)e[r]&&(n+=r+":"+e[r]+";");t.setAttribute("style",n)},t.ngInjectableDef=vt({factory:function(){return new t(qt(Qx,8),qt(Kx,8),qt(Qi),qt(Gx))},token:t,providedIn:"root"}),t}(),wS=function(){function t(){this.shouldCache=!0}return t.prototype.sideEffect=function(t,e,n){},t}();function CS(t,e,n){void 0===e&&(e="1"),void 0===n&&(n="1");var r=[e,n,t],i=t.indexOf("calc");if(i>0)r[2]=xS(t.substring(i).trim()),2==(o=t.substr(0,i).trim().split(" ")).length&&(r[0]=o[0],r[1]=o[1]);else if(0==i)r[2]=xS(t.trim());else{var o;r=3===(o=t.split(" ")).length?o:[e,n,t]}return r}function xS(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var SS=function(){function t(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new I,this.observeActivations()}return Object.defineProperty(t.prototype,"activatedAlias",{get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""},enumerable:!0,configurable:!0}),t.prototype.onMediaChange=function(t){var e=this.findByQuery(t.mediaQuery);e&&((t=Xx(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(hS),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(hS),this.updateStyles()))},t.prototype.init=function(t,e,n,r,i){void 0===i&&(i=[]),kS(this.updateMap,t,e,n),kS(this.clearMap,t,e,r),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)},t.prototype.getValue=function(t,e,n){var r=this.elementMap.get(t);if(r){var i=void 0!==n?r.get(n):this.getActivatedValues(r,e);if(i)return i.get(e)}},t.prototype.hasValue=function(t,e){var n=this.elementMap.get(t);if(n){var r=this.getActivatedValues(n,e);if(r)return void 0!==r.get(e)||!1}return!1},t.prototype.setValue=function(t,e,n,r){var i=this.elementMap.get(t);if(i){var o=(i.get(r)||new Map).set(e,n);i.set(r,o),this.elementMap.set(t,i)}else i=(new Map).set(r,(new Map).set(e,n)),this.elementMap.set(t,i);var a=this.getValue(t,e);void 0!==a&&this.updateElement(t,e,a)},t.prototype.trackValue=function(t,e){return this.subject.asObservable().pipe(uh((function(n){return n.element===t&&n.key===e})))},t.prototype.updateStyles=function(){var t=this;this.elementMap.forEach((function(e,n){var r=new Set(t.elementKeyMap.get(n)),i=t.getActivatedValues(e);i&&i.forEach((function(e,i){t.updateElement(n,i,e),r.delete(i)})),r.forEach((function(r){if(i=t.getActivatedValues(e,r)){var o=i.get(r);t.updateElement(n,r,o)}else t.clearElement(n,r)}))}))},t.prototype.clearElement=function(t,e){var n=this.clearMap.get(t);if(n){var r=n.get(e);r&&(r(),this.subject.next({element:t,key:e,value:""}))}},t.prototype.updateElement=function(t,e,n){var r=this.updateMap.get(t);if(r){var i=r.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}},t.prototype.releaseElement=function(t){var e=this.watcherMap.get(t);e&&(e.forEach((function(t){return t.unsubscribe()})),this.watcherMap.delete(t));var n=this.elementMap.get(t);n&&(n.forEach((function(t,e){return n.delete(e)})),this.elementMap.delete(t))},t.prototype.triggerUpdate=function(t,e){var n=this,r=this.elementMap.get(t);if(r){var i=this.getActivatedValues(r,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((function(e,r){return n.updateElement(t,r,e)})))}},t.prototype.buildElementKeyMap=function(t,e){var n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)},t.prototype.watchExtraTriggers=function(t,e,n){var r=this;if(n&&n.length){var i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){var o=nt.apply(void 0,n).subscribe((function(){var n=r.getValue(t,e);r.updateElement(t,e,n)}));i.set(e,o)}}},t.prototype.findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype.getActivatedValues=function(t,e){for(var n=0;n-1}function DS(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var IS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a.__extends)(e,t),e.prototype.buildStyles=function(t){return void 0===(e=(r=AS(t))[1])&&(e=null),void 0===(n=r[2])&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":e||null};var e,n,r},e.ngInjectableDef=vt({factory:function(){return new e},token:e,providedIn:"root"}),e}(wS),PS=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],RS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=PS,e}return Object(a.__extends)(e,t),e}(function(t){function e(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.DIRECTIVE_KEY="layout",o.styleCache=NS,o.init(),o}return Object(a.__extends)(e,t),e}(tS)),NS=new Map;function MS(t){for(var e=[],n=1;n-1?"column":"row",s=TS(a)?"max-width":"max-height",l=TS(a)?"min-width":"min-height",u=String(o).indexOf("calc")>-1,c=u||"auto"===o,h=String(o).indexOf("%")>-1&&!u,d=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,p=u||d;i="0"==i?0:i;var f=!(r="0"==r?0:r)&&!i,m={},g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":o="row"===a?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,o="auto";break;case"grow":o="100%";break;case"noshrink":i=0,o="auto";break;case"auto":break;case"none":r=0,i=0,o="auto";break;default:p||h||isNaN(o)||(o+="%"),"0%"===o&&(p=!0),"0px"===o&&(o="0%"),m=MS(g,u?{"flex-grow":r,"flex-shrink":i,"flex-basis":p?o:"100%"}:{flex:r+" "+i+" "+(p?o:"100%")})}return m.flex||m["flex-grow"]||(m=MS(g,u?{"flex-grow":r,"flex-shrink":i,"flex-basis":o}:{flex:r+" "+i+" "+o})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(m[l]=f||p&&r?o:null,m[s]=f||!c&&i?o:null),m[l]||m[s]?e.hasWrap&&(m[u?"flex-basis":"flex"]=m[s]?u?m[s]:r+" "+i+" "+m[s]:u?m[l]:r+" "+i+" "+m[l]):m=MS(g,u?{"flex-grow":r,"flex-shrink":i,"flex-basis":o}:{flex:r+" "+i+" "+o}),MS(m,{"box-sizing":"border-box"})},e.ngInjectableDef=vt({factory:function(){return new e(qt(Gx))},token:e,providedIn:"root"}),e}(wS),FS=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],LS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=FS,e}return Object(a.__extends)(e,t),e}(function(t){function e(e,n,r,i,o){var a=t.call(this,e,i,n,o)||this;return a.elRef=e,a.styleUtils=n,a.layoutConfig=r,a.styleBuilder=i,a.marshal=o,a.DIRECTIVE_KEY="flex",a.direction="",a.wrap=!1,a.flexGrow="1",a.flexShrink="1",a.init(),a.parentElement&&(a.marshal.trackValue(a.parentElement,"layout").pipe(Ap(a.destroySubject)).subscribe(a.onLayoutChange.bind(a)),a.marshal.trackValue(a.nativeElement,"layout-align").pipe(Ap(a.destroySubject)).subscribe(a.triggerReflow.bind(a))),a}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"shrink",{get:function(){return this.flexShrink},set:function(t){this.flexShrink=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"grow",{get:function(){return this.flexGrow},set:function(t){this.flexGrow=t||"1",this.triggerReflow()},enumerable:!0,configurable:!0}),e.prototype.onLayoutChange=function(t){var e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()},e.prototype.updateWithValue=function(t){this.direction||(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent));var e=this.direction,n=e.startsWith("row"),r=this.wrap;n&&r?this.styleCache=zS:n&&!r?this.styleCache=VS:!n&&r?this.styleCache=qS:n||r||(this.styleCache=BS);var i=CS(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(i.join(" "),{direction:e,hasWrap:r})},e.prototype.triggerReflow=function(){var t=this.activatedValue;if(void 0!==t){var e=CS(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}},e}(tS)),VS=new Map,BS=new Map,zS=new Map,qS=new Map,US=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(a.__extends)(e,t),e.prototype.buildStyles=function(t,e){var n={},r=t.split(" "),i=r[1];switch(r[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(i){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return MS(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===i?TS(e.layout)?null:"100%":null,"max-height":"stretch"===i&&TS(e.layout)?"100%":null})},e.ngInjectableDef=vt({factory:function(){return new e},token:e,providedIn:"root"}),e}(wS),HS=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],WS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.inputs=HS,e}return Object(a.__extends)(e,t),e}(function(t){function e(e,n,r,i){var o=t.call(this,e,r,n,i)||this;return o.elRef=e,o.styleUtils=n,o.styleBuilder=r,o.marshal=i,o.DIRECTIVE_KEY="layout-align",o.layout="row",o.inline=!1,o.init(),o.marshal.trackValue(o.nativeElement,"layout").pipe(Ap(o.destroySubject)).subscribe(o.onLayoutChange.bind(o)),o}return Object(a.__extends)(e,t),e.prototype.updateWithValue=function(t){var e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=ZS:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=$S:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=XS:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=JS:"column-reverse"!==e||n||(this.styleCache=KS):this.styleCache=YS:this.styleCache=GS:this.styleCache=QS,this.addStyles(t,{layout:e,inline:n})},e.prototype.onLayoutChange=function(t){var e=this,n=t.value.split(" ");this.layout=n[0],this.inline=t.value.includes("inline"),OS.find((function(t){return t===e.layout}))||(this.layout="row"),this.triggerUpdate()},e}(tS)),QS=new Map,YS=new Map,GS=new Map,KS=new Map,ZS=new Map,XS=new Map,$S=new Map,JS=new Map,tk=function(){return function(){}}(),ek=function(){function t(t,e){this._data=t,this._dialogRef=e}return t.prototype.ngOnInit=function(){var t=this._data,e=t.message,n=t.translateParameters,r=t.confirmButtonMessage,i=t.cancelButtonMessage;this.dialogTitle=t.dialogTitle,this.message=e,this.translateParameters=n||{},this.cancelButtonMessage=i||"no",this.confirmButtonMessage=r||"yes"},t.prototype.onConfirm=function(){this._dialogRef.close(!0)},t.prototype.onCancel=function(){this._dialogRef.close()},t}(),nk=or({encapsulation:0,styles:[[".confirm-button[_ngcontent-%COMP%]{background:#1b5f7f}"]],data:{}});function rk(t){return ma(0,[(t()(),Xo(0,0,null,null,3,"h1",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),pi(1,81920,null,0,Af,[[2,wf],fn,Ef],null,null),(t()(),da(2,null,[" ","\n"])),fi(131072,qx,[zx,Me]),(t()(),Xo(4,0,null,null,3,"div",[["class","mat-dialog-content"],["mat-dialog-content",""]],null,null,null,null,null)),pi(5,16384,null,0,Tf,[],null,null),(t()(),Xo(6,0,null,null,1,"p",[["class","m-a-0 p-a-8"]],[[8,"innerHTML",1]],null,null,null,null)),fi(131072,qx,[zx,Me]),(t()(),Xo(8,0,null,null,11,"div",[["class","mat-dialog-actions"],["fxLayout","row"],["fxLayoutAlign","space-between"],["mat-dialog-actions",""]],null,null,null,null,null)),pi(9,16384,null,0,Df,[],null,null),pi(10,671744,null,0,RS,[fn,bS,[2,IS],SS],{fxLayout:[0,"fxLayout"]},null),pi(11,671744,null,0,WS,[fn,bS,[2,US],SS],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(t()(),Xo(12,0,null,null,3,"button",[["color","accent"],["mat-raised-button",""],["type","button"]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.onCancel()&&r),r}),H_,U_)),pi(13,180224,null,0,wg,[fn,tm,[2,B_]],{color:[0,"color"]},null),(t()(),da(14,0,[" "," "])),fi(131072,qx,[zx,Me]),(t()(),Xo(16,0,null,null,3,"button",[["class","confirm-button"],["color","primary"],["mat-raised-button",""],["type","button"]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.onConfirm()&&r),r}),H_,U_)),pi(17,180224,null,0,wg,[fn,tm,[2,B_]],{color:[0,"color"]},null),(t()(),da(18,0,[" "," "])),fi(131072,qx,[zx,Me])],(function(t,e){t(e,1,0),t(e,10,0,"row"),t(e,11,0,"space-between"),t(e,13,0,"accent"),t(e,17,0,"primary")}),(function(t,e){var n=e.component;t(e,0,0,ti(e,1).id),t(e,2,0,nr(e,2,0,ti(e,3).transform(n.dialogTitle,n.translateParameters))),t(e,6,0,nr(e,6,0,ti(e,7).transform(n.message,n.translateParameters))),t(e,12,0,ti(e,13).disabled||null,"NoopAnimations"===ti(e,13)._animationMode),t(e,14,0,nr(e,14,0,ti(e,15).transform(n.cancelButtonMessage))),t(e,16,0,ti(e,17).disabled||null,"NoopAnimations"===ti(e,17)._animationMode),t(e,18,0,nr(e,18,0,ti(e,19).transform(n.confirmButtonMessage)))}))}function ik(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-confirm-dialog",[],null,null,null,rk,nk)),pi(1,114688,null,0,ek,[Cf,wf],null,null)],(function(t,e){t(e,1,0)}),null)}var ok=Ur("teinme-confirm-dialog",ek,ik,{},{},[]),ak=sm(function(){return function(t){this._elementRef=t}}(),"primary"),sk=new Pt("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Ut(il),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),lk=0,uk=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o._elementRef=e,o._ngZone=n,o._animationMode=r,o._isNoopAnimation=!1,o._value=0,o._bufferValue=0,o.animationEnd=new Fi,o._animationEndSubscription=d.EMPTY,o.mode="determinate",o.progressbarId="mat-progress-bar-"+lk++;var a=i?i.getPathname().split("#")[0]:"";return o._rectangleFillValue="url('"+a+"#"+o.progressbarId+"')",o._isNoopAnimation="NoopAnimations"===r,o}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this._value=ck(t||0),this._isNoopAnimation&&this._emitAnimationEnd()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferValue",{get:function(){return this._bufferValue},set:function(t){this._bufferValue=ck(t||0)},enumerable:!0,configurable:!0}),e.prototype._primaryTransform=function(){return{transform:"scaleX("+this.value/100+")"}},e.prototype._bufferTransform=function(){if("buffer"===this.mode)return{transform:"scaleX("+this.bufferValue/100+")"}},e.prototype.ngAfterViewInit=function(){var t=this;this._isNoopAnimation||this._ngZone.runOutsideAngular((function(){var e=t._primaryValueBar.nativeElement;t._animationEndSubscription=bp(e,"transitionend").pipe(uh((function(t){return t.target===e}))).subscribe((function(){return t._ngZone.run((function(){return t._emitAnimationEnd()}))}))}))},e.prototype.ngOnDestroy=function(){this._animationEndSubscription.unsubscribe()},e.prototype._emitAnimationEnd=function(){"determinate"!==this.mode&&"buffer"!==this.mode||this.animationEnd.next({value:this.value})},e}(ak);function ck(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=100),Math.max(e,Math.min(n,t))}var hk=function(){return function(){}}(),dk=or({encapsulation:2,styles:[".mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}@media (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-background{display:none}}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}@media (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}@media (-ms-high-contrast:active){.mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:'';display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2s infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2s infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2s infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after{animation:none;transition:none}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(.5,0,.70173,.49582);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);transform:translateX(83.67142%)}100%{transform:translateX(200.61106%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(.06,.11,.6,1);transform:scaleX(.66148)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:translateX(37.65191%)}48.35%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:translateX(84.38617%)}100%{transform:translateX(160.27778%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:scaleX(.4571)}44.15%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}"],data:{}});function pk(t){return ma(2,[na(671088640,1,{_primaryValueBar:0}),(t()(),Xo(1,0,null,null,4,":svg:svg",[["class","mat-progress-bar-background mat-progress-bar-element"],["focusable","false"],["height","4"],["width","100%"]],null,null,null,null,null)),(t()(),Xo(2,0,null,null,2,":svg:defs",[],null,null,null,null,null)),(t()(),Xo(3,0,null,null,1,":svg:pattern",[["height","4"],["patternUnits","userSpaceOnUse"],["width","8"],["x","4"],["y","0"]],[[8,"id",0]],null,null,null,null)),(t()(),Xo(4,0,null,null,0,":svg:circle",[["cx","2"],["cy","2"],["r","2"]],null,null,null,null,null)),(t()(),Xo(5,0,null,null,0,":svg:rect",[["height","100%"],["width","100%"]],[[1,"fill",0]],null,null,null,null)),(t()(),Xo(6,0,null,null,2,"div",[["class","mat-progress-bar-buffer mat-progress-bar-element"]],null,null,null,null,null)),mi(512,null,Gs,Ks,[fn,Nn,vn]),pi(8,278528,null,0,Zs,[Gs],{ngStyle:[0,"ngStyle"]},null),(t()(),Xo(9,0,[[1,0],["primaryValueBar",1]],null,2,"div",[["class","mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element"]],null,null,null,null,null)),mi(512,null,Gs,Ks,[fn,Nn,vn]),pi(11,278528,null,0,Zs,[Gs],{ngStyle:[0,"ngStyle"]},null),(t()(),Xo(12,0,null,null,0,"div",[["class","mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element"]],null,null,null,null,null))],(function(t,e){var n=e.component;t(e,8,0,n._bufferTransform()),t(e,11,0,n._primaryTransform())}),(function(t,e){var n=e.component;t(e,3,0,n.progressbarId),t(e,5,0,n._rectangleFillValue)}))}var fk=function(){return function(){}}(),mk=function(){return function(){}}(),gk=function(){return function(){this.align="start"}}(),yk=function(){return function(t){this._animationMode=t}}(),_k=function(){return function(){}}(),vk=or({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-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}@media (-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,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media (max-width:599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card-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,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.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 bk(t){return ma(2,[sa(null,0),sa(null,1)],null,null)}var wk=0,Ck=function(){return function(){this.id="mat-error-"+wk++}}(),xk=function(){return function(){}}();function Sk(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var kk=function(){return function(){}}(),Ek=0,Ok=sm(function(){return function(t){this._elementRef=t}}(),"primary"),Ak=new Pt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Tk=function(t){function e(e,n,r,i,o,a,s,l){var u=t.call(this,e)||this;return u._elementRef=e,u._changeDetectorRef=n,u._dir=i,u._defaults=o,u._platform=a,u._ngZone=s,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new I,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+Ek++,u._labelId="mat-form-field-label-"+Ek++,u._previousDirection="ltr",u._labelOptions=r||{},u.floatLabel=u._labelOptions.float||"auto",u._animationsEnabled="NoopAnimations"!==l,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=mp(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_control",{get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_labelChild",{get:function(){return this._labelChildNonStatic||this._labelChildStatic},enumerable:!0,configurable:!0}),e.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(hp(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ap(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Ap(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),nt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(hp(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(hp(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(Ap(this._destroyed)).subscribe((function(){t.updateOutlineGap(),t._previousDirection=t._dir.value}))},e.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,bp(this._label.nativeElement,"transitionend").pipe(ap(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(r){if("start"===r.align){if(t||n.hintLabel)throw Sk("start");t=r}else if("end"===r.align){if(e)throw Sk("end");e=r}}))},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(document.documentElement.contains(this._elementRef.nativeElement)){var e=0,n=0,r=this._connectionContainerRef.nativeElement,i=r.querySelectorAll(".mat-form-field-outline-start"),o=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=r.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=this._getStartEnd(t.children[0].getBoundingClientRect()),u=0,c=0,h=t.children;c0?.75*u+10:0}for(var d=0;d 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 Pk(t){return ma(0,[(t()(),Xo(0,0,null,null,8,null,null,null,null,null,null,null)),(t()(),Xo(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(t()(),Xo(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),Xo(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),Xo(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(t()(),Xo(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(t()(),Xo(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),Xo(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),Xo(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function Rk(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),sa(null,0)],null,null)}function Nk(t){return ma(0,[(t()(),Xo(0,0,null,null,3,null,null,null,null,null,null,null)),sa(null,2),(t()(),Xo(2,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),da(3,null,["",""]))],null,(function(t,e){t(e,3,0,e.component._control.placeholder)}))}function Mk(t){return ma(0,[sa(null,3),(t()(),Zo(0,null,null,0))],null,null)}function jk(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(t()(),da(-1,null,[" *"]))],null,null)}function Fk(t){return ma(0,[(t()(),Xo(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(t,e,n){var r=!0;return"cdkObserveContent"===e&&(r=!1!==t.component.updateOutlineGap()&&r),r}),null,null)),pi(1,16384,null,0,Qs,[],{ngSwitch:[0,"ngSwitch"]},null),pi(2,1196032,null,0,yg,[gg,fn,fo],{disabled:[0,"disabled"]},{event:"cdkObserveContent"}),(t()(),Zo(16777216,null,null,1,null,Nk)),pi(4,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zo(16777216,null,null,1,null,Mk)),pi(6,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zo(16777216,null,null,1,null,jk)),pi(8,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null)],(function(t,e){var n=e.component;t(e,1,0,n._hasLabel()),t(e,2,0,"outline"!=n.appearance),t(e,4,0,!1),t(e,6,0,!0),t(e,8,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}),(function(t,e){var n=e.component;t(e,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 Lk(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),sa(null,4)],null,null)}function Vk(t){return ma(0,[(t()(),Xo(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(t()(),Xo(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(t,e){var n=e.component;t(e,1,0,"accent"==n.color,"warn"==n.color)}))}function Bk(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),sa(null,5)],null,(function(t,e){t(e,0,0,e.component._subscriptAnimationState)}))}function zk(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(t()(),da(1,null,["",""]))],null,(function(t,e){var n=e.component;t(e,0,0,n._hintLabelId),t(e,1,0,n.hintLabel)}))}function qk(t){return ma(0,[(t()(),Xo(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,zk)),pi(2,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),sa(null,6),(t()(),Xo(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),sa(null,7)],(function(t,e){t(e,2,0,e.component.hintLabel)}),(function(t,e){t(e,0,0,e.component._subscriptAnimationState)}))}function Uk(t){return ma(2,[na(671088640,1,{underlineRef:0}),na(402653184,2,{_connectionContainerRef:0}),na(671088640,3,{_inputContainerRef:0}),na(671088640,4,{_label:0}),(t()(),Xo(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(t()(),Xo(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],(function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==(i._control.onContainerClick&&i._control.onContainerClick(n))&&r),r}),null,null)),(t()(),Zo(16777216,null,null,1,null,Pk)),pi(7,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(16777216,null,null,1,null,Rk)),pi(9,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Xo(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),sa(null,1),(t()(),Xo(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,Fk)),pi(14,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(16777216,null,null,1,null,Lk)),pi(16,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(16777216,null,null,1,null,Vk)),pi(18,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Xo(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),pi(20,16384,null,0,Qs,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Zo(16777216,null,null,1,null,Bk)),pi(22,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zo(16777216,null,null,1,null,qk)),pi(24,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(t,e){var n=e.component;t(e,7,0,"outline"==n.appearance),t(e,9,0,n._prefixChildren.length),t(e,14,0,n._hasFloatingLabel()),t(e,16,0,n._suffixChildren.length),t(e,18,0,"outline"!=n.appearance),t(e,20,0,n._getDisplayedMessages()),t(e,22,0,"error"),t(e,24,0,"hint")}),null)}var Hk=Lp({passive:!0}),Wk=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return bu;var n=vp(t),r=this._monitoredElements.get(n);if(r)return r.subject.asObservable();var i=new I,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run((function(){return i.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(o),e._ngZone.run((function(){return i.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",a,Hk),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:i,unlisten:function(){n.removeEventListener("animationstart",a,Hk)}}),i.asObservable()},t.prototype.stopMonitoring=function(t){var e=vp(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))},t.ngInjectableDef=vt({factory:function(){return new t(qt(Np),qt(fo))},token:t,providedIn:"root"}),t}(),Qk=function(){return function(){}}(),Yk=new Pt("MAT_INPUT_VALUE_ACCESSOR"),Gk=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Kk=0,Zk=function(t){function e(e,n,r,i,o,a,s,l,u){var c=t.call(this,a,i,o,r)||this;c._elementRef=e,c._platform=n,c.ngControl=r,c._autofillMonitor=l,c._uid="mat-input-"+Kk++,c._isServer=!1,c._isNativeSelect=!1,c.focused=!1,c.stateChanges=new I,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(t){return Fp().has(t)}));var h=c._elementRef.nativeElement;return c._inputValueAccessor=s||h,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),c._isServer=!c._platform.isBrowser,c._isNativeSelect="select"===h.nodeName.toLowerCase(),c._isNativeSelect&&(c.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),c}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=mp(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=mp(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&Fp().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=mp(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._focusChanged=function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(Gk.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focused||this.focus()},e}(cm(function(){return function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r}}())),Xk=function(){return function(){}}(),$k=function(){function t(t){this._navigation=t,this.showLoadingIndicator=!1}return t.prototype.ngOnInit=function(){this.signInForm=new gc({userName:new mc,password:new mc})},t.prototype.signIn=function(){this._navigation.toMain()},t}(),Jk=or({encapsulation:0,styles:[[".backdrop-cover[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:1;background-color:#3f51b5}.content-layout[_ngcontent-%COMP%]{width:100%;position:absolute;z-index:2;display:flex;justify-content:center;align-items:center;height:100%;flex-direction:column}.form-container[_ngcontent-%COMP%]{min-width:25rem}.form-header[_ngcontent-%COMP%]{text-align:center;padding-bottom:1rem}.progress-bar[_ngcontent-%COMP%]{z-index:999;position:fixed}.form-header--app-name[_ngcontent-%COMP%]{font-size:2rem;font-weight:700}.form-header--partner[_ngcontent-%COMP%]{font-size:1.5rem}.footer-layout[_ngcontent-%COMP%]{z-index:2;position:absolute;bottom:0;width:100%}.footer-layout[_ngcontent-%COMP%]:empty{display:none}.add-margin[_ngcontent-%COMP%]{margin-bottom:1rem}"]],data:{}});function tE(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"mat-progress-bar",[["aria-valuemax","100"],["aria-valuemin","0"],["class","progress-bar mat-progress-bar"],["mode","indeterminate"],["role","progressbar"]],[[1,"aria-valuenow",0],[1,"mode",0],[2,"_mat-animation-noopable",null]],null,null,pk,dk)),pi(1,4374528,null,0,uk,[fn,fo,[2,B_],[2,sk]],{mode:[0,"mode"]},null)],(function(t,e){t(e,1,0,"indeterminate")}),(function(t,e){t(e,0,0,"indeterminate"===ti(e,1).mode||"query"===ti(e,1).mode?null:ti(e,1).value,ti(e,1).mode,ti(e,1)._isNoopAnimation)}))}function eE(t){return ma(0,[fi(0,nl,[]),(t()(),Xo(1,0,null,null,0,"div",[["class","backdrop-cover"]],null,null,null,null,null)),(t()(),Xo(2,0,null,null,73,"div",[["class","content-layout"]],null,null,null,null,null)),(t()(),Xo(3,0,null,null,72,"div",[["class","form-container"]],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,tE)),pi(5,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Xo(6,0,null,null,69,"mat-card",[["class","mat-card"]],[[2,"_mat-animation-noopable",null]],null,null,bk,vk)),pi(7,49152,null,0,yk,[[2,B_]],null,null),(t()(),Xo(8,0,null,0,67,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),pi(9,16384,null,0,fk,[],null,null),(t()(),Xo(10,0,null,null,12,"div",[["class","form-header"]],null,null,null,null,null)),(t()(),Xo(11,0,null,null,3,"span",[["class","form-header--app-name"]],null,null,null,null,null)),(t()(),da(12,null,[" "," "])),fi(131072,qx,[zx,Me]),ua(14,1),(t()(),Xo(15,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Xo(16,0,null,null,3,"span",[["class","form-header--partner"]],null,null,null,null,null)),(t()(),da(17,null,[" "," "])),fi(131072,qx,[zx,Me]),ua(19,1),(t()(),Xo(20,0,null,null,2,"p",[],null,null,null,null,null)),(t()(),da(21,null,[" "," "])),fi(131072,qx,[zx,Me]),(t()(),Xo(23,0,null,null,52,"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(t,e,n){var r=!0,i=t.component;return"submit"===e&&(r=!1!==ti(t,25).onSubmit(n)&&r),"reset"===e&&(r=!1!==ti(t,25).onReset()&&r),"ngSubmit"===e&&(r=!1!==i.signIn()&&r),r}),null,null)),pi(24,16384,null,0,Cc,[],null,null),pi(25,540672,null,0,kc,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),mi(2048,null,Tu,null,[kc]),pi(27,16384,null,0,Nu,[[4,Tu]],null,null),(t()(),Xo(28,0,null,null,21,"div",[["class","pb-1"],["fxLayout","row"],["fxLayoutWrap","wrap"]],null,null,null,null,null)),pi(29,671744,null,0,RS,[fn,bS,[2,IS],SS],{fxLayout:[0,"fxLayout"]},null),(t()(),Xo(30,0,null,null,19,"mat-form-field",[["class","full-width 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-has-label",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,Uk,Ik)),pi(31,7520256,null,9,Tk,[fn,Me,[2,zm],[2,pp],[2,Ak],Np,fo,[2,B_]],null,null),na(603979776,1,{_controlNonStatic:0}),na(335544320,2,{_controlStatic:0}),na(603979776,3,{_labelChildNonStatic:0}),na(335544320,4,{_labelChildStatic:0}),na(603979776,5,{_placeholderChild:0}),na(603979776,6,{_errorChildren:1}),na(603979776,7,{_hintChildren:1}),na(603979776,8,{_prefixChildren:1}),na(603979776,9,{_suffixChildren:1}),(t()(),Xo(41,0,null,1,8,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","userName"],["matInput",""],["name","userName"]],[[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],[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,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],(function(t,e,n){var r=!0;return"input"===e&&(r=!1!==ti(t,42)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ti(t,42).onTouched()&&r),"compositionstart"===e&&(r=!1!==ti(t,42)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ti(t,42)._compositionEnd(n.target.value)&&r),"blur"===e&&(r=!1!==ti(t,46)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==ti(t,46)._focusChanged(!0)&&r),"input"===e&&(r=!1!==ti(t,46)._onInput()&&r),r}),null,null)),pi(42,16384,null,0,Ou,[vn,fn,[2,Eu]],null,null),mi(1024,null,Su,(function(t){return[t]}),[Ou]),pi(44,671744,null,0,Tc,[[3,Tu],[8,null],[8,null],[6,Su],[2,xc]],{name:[0,"name"]},null),mi(2048,null,Iu,null,[Tc]),pi(46,999424,null,0,Zk,[fn,Np,[6,Iu],[2,vc],[2,kc],Sm,[8,null],Wk,fo],{placeholder:[0,"placeholder"]},null),fi(131072,qx,[zx,Me]),pi(48,16384,null,0,Ru,[[4,Iu]],null,null),mi(2048,[[1,4],[2,4]],xk,null,[Zk]),(t()(),Xo(50,0,null,null,21,"div",[["class","pb-1"],["fxLayout","row"],["fxLayoutWrap","wrap"]],null,null,null,null,null)),pi(51,671744,null,0,RS,[fn,bS,[2,IS],SS],{fxLayout:[0,"fxLayout"]},null),(t()(),Xo(52,0,null,null,19,"mat-form-field",[["class","full-width 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-has-label",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,Uk,Ik)),pi(53,7520256,null,9,Tk,[fn,Me,[2,zm],[2,pp],[2,Ak],Np,fo,[2,B_]],null,null),na(603979776,10,{_controlNonStatic:0}),na(335544320,11,{_controlStatic:0}),na(603979776,12,{_labelChildNonStatic:0}),na(335544320,13,{_labelChildStatic:0}),na(603979776,14,{_placeholderChild:0}),na(603979776,15,{_errorChildren:1}),na(603979776,16,{_hintChildren:1}),na(603979776,17,{_prefixChildren:1}),na(603979776,18,{_suffixChildren:1}),(t()(),Xo(63,0,null,1,8,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","password"],["matInput",""],["name","password"],["type","password"]],[[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],[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,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],(function(t,e,n){var r=!0;return"input"===e&&(r=!1!==ti(t,64)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==ti(t,64).onTouched()&&r),"compositionstart"===e&&(r=!1!==ti(t,64)._compositionStart()&&r),"compositionend"===e&&(r=!1!==ti(t,64)._compositionEnd(n.target.value)&&r),"blur"===e&&(r=!1!==ti(t,68)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==ti(t,68)._focusChanged(!0)&&r),"input"===e&&(r=!1!==ti(t,68)._onInput()&&r),r}),null,null)),pi(64,16384,null,0,Ou,[vn,fn,[2,Eu]],null,null),mi(1024,null,Su,(function(t){return[t]}),[Ou]),pi(66,671744,null,0,Tc,[[3,Tu],[8,null],[8,null],[6,Su],[2,xc]],{name:[0,"name"]},null),mi(2048,null,Iu,null,[Tc]),pi(68,999424,null,0,Zk,[fn,Np,[6,Iu],[2,vc],[2,kc],Sm,[8,null],Wk,fo],{placeholder:[0,"placeholder"],type:[1,"type"]},null),fi(131072,qx,[zx,Me]),pi(70,16384,null,0,Ru,[[4,Iu]],null,null),mi(2048,[[10,4],[11,4]],xk,null,[Zk]),(t()(),Xo(72,0,null,null,3,"button",[["class","full-width"],["color","primary"],["mat-raised-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,H_,U_)),pi(73,180224,null,0,wg,[fn,tm,[2,B_]],{color:[0,"color"]},null),(t()(),da(74,0,[" "," "])),fi(131072,qx,[zx,Me])],(function(t,e){var n=e.component;t(e,5,0,n.showLoadingIndicator),t(e,25,0,n.signInForm),t(e,29,0,"row"),t(e,44,0,"userName"),t(e,46,0,nr(e,46,0,ti(e,47).transform("signInForm.userName"))),t(e,51,0,"row"),t(e,66,0,"password"),t(e,68,0,nr(e,68,0,ti(e,69).transform("signInForm.password")),"password"),t(e,73,0,"primary")}),(function(t,e){t(e,6,0,"NoopAnimations"===ti(e,7)._animationMode);var n=nr(e,12,0,t(e,14,0,ti(e,0),nr(e,12,0,ti(e,13).transform("app.name"))));t(e,12,0,n);var r=nr(e,17,0,t(e,19,0,ti(e,0),nr(e,17,0,ti(e,18).transform("app.partner"))));t(e,17,0,r),t(e,21,0,nr(e,21,0,ti(e,22).transform("signInForm.title"))),t(e,23,0,ti(e,27).ngClassUntouched,ti(e,27).ngClassTouched,ti(e,27).ngClassPristine,ti(e,27).ngClassDirty,ti(e,27).ngClassValid,ti(e,27).ngClassInvalid,ti(e,27).ngClassPending),t(e,30,1,["standard"==ti(e,31).appearance,"fill"==ti(e,31).appearance,"outline"==ti(e,31).appearance,"legacy"==ti(e,31).appearance,ti(e,31)._control.errorState,ti(e,31)._canLabelFloat,ti(e,31)._shouldLabelFloat(),ti(e,31)._hasFloatingLabel(),ti(e,31)._hideControlPlaceholder(),ti(e,31)._control.disabled,ti(e,31)._control.autofilled,ti(e,31)._control.focused,"accent"==ti(e,31).color,"warn"==ti(e,31).color,ti(e,31)._shouldForward("untouched"),ti(e,31)._shouldForward("touched"),ti(e,31)._shouldForward("pristine"),ti(e,31)._shouldForward("dirty"),ti(e,31)._shouldForward("valid"),ti(e,31)._shouldForward("invalid"),ti(e,31)._shouldForward("pending"),!ti(e,31)._animationsEnabled]),t(e,41,1,[ti(e,46)._isServer,ti(e,46).id,ti(e,46).placeholder,ti(e,46).disabled,ti(e,46).required,ti(e,46).readonly&&!ti(e,46)._isNativeSelect||null,ti(e,46)._ariaDescribedby||null,ti(e,46).errorState,ti(e,46).required.toString(),ti(e,48).ngClassUntouched,ti(e,48).ngClassTouched,ti(e,48).ngClassPristine,ti(e,48).ngClassDirty,ti(e,48).ngClassValid,ti(e,48).ngClassInvalid,ti(e,48).ngClassPending]),t(e,52,1,["standard"==ti(e,53).appearance,"fill"==ti(e,53).appearance,"outline"==ti(e,53).appearance,"legacy"==ti(e,53).appearance,ti(e,53)._control.errorState,ti(e,53)._canLabelFloat,ti(e,53)._shouldLabelFloat(),ti(e,53)._hasFloatingLabel(),ti(e,53)._hideControlPlaceholder(),ti(e,53)._control.disabled,ti(e,53)._control.autofilled,ti(e,53)._control.focused,"accent"==ti(e,53).color,"warn"==ti(e,53).color,ti(e,53)._shouldForward("untouched"),ti(e,53)._shouldForward("touched"),ti(e,53)._shouldForward("pristine"),ti(e,53)._shouldForward("dirty"),ti(e,53)._shouldForward("valid"),ti(e,53)._shouldForward("invalid"),ti(e,53)._shouldForward("pending"),!ti(e,53)._animationsEnabled]),t(e,63,1,[ti(e,68)._isServer,ti(e,68).id,ti(e,68).placeholder,ti(e,68).disabled,ti(e,68).required,ti(e,68).readonly&&!ti(e,68)._isNativeSelect||null,ti(e,68)._ariaDescribedby||null,ti(e,68).errorState,ti(e,68).required.toString(),ti(e,70).ngClassUntouched,ti(e,70).ngClassTouched,ti(e,70).ngClassPristine,ti(e,70).ngClassDirty,ti(e,70).ngClassValid,ti(e,70).ngClassInvalid,ti(e,70).ngClassPending]),t(e,72,0,ti(e,73).disabled||null,"NoopAnimations"===ti(e,73)._animationMode),t(e,74,0,nr(e,74,0,ti(e,75).transform("signInForm.submit")))}))}function nE(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-sign-in",[],null,null,null,eE,Jk)),pi(1,114688,null,0,$k,[Gc],null,null)],(function(t,e){t(e,1,0)}),null)}var rE=Ur("teinme-sign-in",$k,nE,{},{},[]),iE=100,oE=sm(function(){return function(t){this._elementRef=t}}(),"primary"),aE=new Pt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:iE}}}),sE=function(t){function e(n,r,i,o,a){var s=t.call(this,n)||this;s._elementRef=n,s._document=i,s._diameter=iE,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var l=e._diameters;return l.has(i.head)||l.set(i.head,new Set([iE])),s._fallbackAnimation=r.EDGE||r.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return Object(a.__extends)(e,t),Object.defineProperty(e.prototype,"diameter",{get:function(){return this._diameter},set:function(t){this._diameter=gp(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=gp(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,gp(t)))},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){var n=e.head;if(n&&(n.createShadowRoot||n.attachShadow)){var r=t.getRootNode?t.getRootNode():null;if(r instanceof window.ShadowRoot)return r}}return null}(t,this._document)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate"+(this._fallbackAnimation?"-fallback":"")+"-animation")},Object.defineProperty(e.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_viewBox",{get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 "+t+" "+t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this.diameter*100},enumerable:!0,configurable:!0}),e.prototype._attachStyleNode=function(){var t=this._styleRoot,n=this._diameter,r=e._diameters,i=r.get(t);if(!i||!i.has(n)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",n+""),o.textContent=this._getAnimationText(),t.appendChild(o),i||(i=new Set,r.set(t,i)),i.add(n)}},e.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},e._diameters=new WeakMap,e}(oE),lE=function(){return function(){}}(),uE=or({encapsulation:2,styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],data:{}});function cE(t){return ma(0,[(t()(),Xo(0,0,null,null,0,":svg:circle",[["cx","50%"],["cy","50%"]],[[1,"r",0],[4,"animation-name",null],[4,"stroke-dashoffset","px"],[4,"stroke-dasharray","px"],[4,"stroke-width","%"]],null,null,null,null))],null,(function(t,e){var n=e.component;t(e,0,0,n._circleRadius,"mat-progress-spinner-stroke-rotate-"+n.diameter,n._strokeDashOffset,n._strokeCircumference,n._circleStrokeWidth)}))}function hE(t){return ma(0,[(t()(),Xo(0,0,null,null,0,":svg:circle",[["cx","50%"],["cy","50%"]],[[1,"r",0],[4,"stroke-dashoffset","px"],[4,"stroke-dasharray","px"],[4,"stroke-width","%"]],null,null,null,null))],null,(function(t,e){var n=e.component;t(e,0,0,n._circleRadius,n._strokeDashOffset,n._strokeCircumference,n._circleStrokeWidth)}))}function dE(t){return ma(2,[(t()(),Xo(0,0,null,null,5,":svg:svg",[["focusable","false"],["preserveAspectRatio","xMidYMid meet"]],[[4,"width","px"],[4,"height","px"],[1,"viewBox",0]],null,null,null,null)),pi(1,16384,null,0,Qs,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Zo(16777216,null,null,1,null,cE)),pi(3,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zo(16777216,null,null,1,null,hE)),pi(5,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(t,e){t(e,1,0,"indeterminate"===e.component.mode),t(e,3,0,!0),t(e,5,0,!1)}),(function(t,e){var n=e.component;t(e,0,0,n.diameter,n.diameter,n._viewBox)}))}var pE=function(){return function(){}}(),fE=or({encapsulation:0,styles:[[".overlay-wrapper[_ngcontent-%COMP%]{position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:1002;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,.1);width:100%;height:100%}"]],data:{}});function mE(t){return ma(0,[(t()(),Xo(0,0,null,null,2,"div",[["class","overlay"]],null,null,null,null,null)),(t()(),Xo(1,0,null,null,1,"mat-progress-spinner",[["class","mat-progress-spinner"],["color","primary"],["diameter","64"],["mode","indeterminate"],["role","progressbar"]],[[2,"_mat-animation-noopable",null],[4,"width","px"],[4,"height","px"],[1,"aria-valuemin",0],[1,"aria-valuemax",0],[1,"aria-valuenow",0],[1,"mode",0]],null,null,dE,uE)),pi(2,114688,null,0,sE,[fn,Np,[2,il],[2,B_],aE],{color:[0,"color"],diameter:[1,"diameter"],mode:[2,"mode"]},null)],(function(t,e){t(e,2,0,"primary","64","indeterminate")}),(function(t,e){t(e,1,0,ti(e,2)._noopAnimations,ti(e,2).diameter,ti(e,2).diameter,"determinate"===ti(e,2).mode?0:null,"determinate"===ti(e,2).mode?100:null,"determinate"===ti(e,2).mode?ti(e,2).value:null,ti(e,2).mode)}))}function gE(t){return ma(2,[(t()(),Xo(0,0,null,null,3,"div",[["class","overlay-wrapper"]],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,mE)),pi(2,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),sa(null,0)],(function(t,e){t(e,2,0,e.component.busy)}),null)}var yE=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._platform=n,i._document=r,i}return Object(a.__extends)(e,t),e.prototype.ngAfterViewInit=function(){var t=this;se()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e}(sm(function(){return function(t){this._elementRef=t}}())),_E=function(){return function(){}}(),vE=or({encapsulation:2,styles:["@media (-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 bE(t){return ma(2,[sa(null,0),sa(null,1)],null,null)}var wE=function(){return function(){}}(),CE=or({encapsulation:0,styles:[[".mat-toolbar[_ngcontent-%COMP%]{background:#1b5f7f;padding-top:.25rem;padding-bottom:.25rem}.logo[_ngcontent-%COMP%]{max-height:100%}"]],data:{}});function xE(t){return ma(0,[(t()(),Xo(0,0,null,null,7,"mat-toolbar",[["class","mat-toolbar"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,bE,vE)),pi(1,4243456,null,1,yE,[fn,Np,il],null,null),na(603979776,1,{_toolbarRows:1}),(t()(),Xo(3,0,null,0,1,"span",[["fxFlex",""]],null,null,null,null,null)),pi(4,671744,null,0,LS,[fn,bS,Gx,jS,SS],{fxFlex:[0,"fxFlex"]},null),(t()(),Xo(5,0,null,0,0,"img",[["class","logo"],["src","assets/images/teinme-logo-bianco-230-min.png"]],null,null,null,null,null)),(t()(),Xo(6,0,null,0,1,"span",[["fxFlex",""]],null,null,null,null,null)),pi(7,671744,null,0,LS,[fn,bS,Gx,jS,SS],{fxFlex:[0,"fxFlex"]},null)],(function(t,e){t(e,4,0,""),t(e,7,0,"")}),(function(t,e){t(e,0,0,ti(e,1)._toolbarRows.length>0,0===ti(e,1)._toolbarRows.length)}))}var SE=[{name:"menu.questionnaire",routerLink:"questionnaire"}],kE=function(){function t(t,e,n){this._busyService=t,this.mobileQuery=n.matchMedia("(max-width: 600px)"),this._mobileQueryListener=function(){return e.detectChanges()},this.mobileQuery.addListener(this._mobileQueryListener)}return Object.defineProperty(t.prototype,"questionnaire$",{get:function(){return this._questionnaire$},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menuItems",{get:function(){return SE},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"busy$",{get:function(){return this._busyService.busy$},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.mobileQuery.removeListener(this._mobileQueryListener)},t}(),EE=or({encapsulation:0,styles:[[""]],data:{}});function OE(t){return ma(2,[(t()(),Xo(0,0,null,null,6,"teinme-busy-overlay",[],null,null,null,gE,fE)),pi(1,49152,null,0,pE,[],{busy:[0,"busy"]},null),fi(131072,el,[Me]),(t()(),Xo(3,0,null,0,1,"teinme-header",[],null,null,null,xE,CE)),pi(4,49152,null,0,wE,[],null,null),(t()(),Xo(5,16777216,null,0,1,"router-outlet",[],null,null,null,null,null)),pi(6,212992,null,0,tx,[JC,Bn,cn,[8,null],Me],null,null)],(function(t,e){var n=e.component;t(e,1,0,nr(e,1,0,ti(e,2).transform(n.busy$))),t(e,6,0)}),null)}function AE(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-main",[],null,null,null,OE,EE)),pi(1,180224,null,0,kE,[qc,Me,Iv],null,null)],null,null)}var TE=Ur("teinme-main",kE,AE,{},{},[]);function DE(t){return Error('Unable to find icon with the name "'+t+'"')}function IE(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function PE(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+t+'".')}var RE=function(){return function(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}(),NE=function(){function t(t,e,n,r){this._httpClient=t,this._sanitizer=e,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return t.prototype.addSvgIcon=function(t,e,n){return this.addSvgIconInNamespace("",t,e,n)},t.prototype.addSvgIconLiteral=function(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)},t.prototype.addSvgIconInNamespace=function(t,e,n,r){return this._addSvgIconConfig(t,e,new RE(n,r))},t.prototype.addSvgIconLiteralInNamespace=function(t,e,n,r){var i=this._sanitizer.sanitize(Te.HTML,n);if(!i)throw PE(n);var o=this._createSvgElementForSingleIcon(i,r);return this._addSvgIconConfig(t,e,new RE(o,r))},t.prototype.addSvgIconSet=function(t,e){return this.addSvgIconSetInNamespace("",t,e)},t.prototype.addSvgIconSetLiteral=function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)},t.prototype.addSvgIconSetInNamespace=function(t,e,n){return this._addSvgIconSetConfig(t,new RE(e,n))},t.prototype.addSvgIconSetLiteralInNamespace=function(t,e,n){var r=this._sanitizer.sanitize(Te.HTML,e);if(!r)throw PE(e);var i=this._svgElementFromString(r);return this._addSvgIconSetConfig(t,new RE(i,n))},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var e=this,n=this._sanitizer.sanitize(Te.RESOURCE_URL,t);if(!n)throw IE(t);var r=this._cachedIconsByUrl.get(n);return r?ih(ME(r)):this._loadSvgIconFromConfig(new RE(t)).pipe(Hh((function(t){return e._cachedIconsByUrl.set(n,t)})),Q((function(t){return ME(t)})))},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=jE(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):eh(DE(n))},t.prototype.ngOnDestroy=function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()},t.prototype._getSvgFromConfig=function(t){return t.svgElement?ih(ME(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Hh((function(e){return t.svgElement=e})),Q((function(t){return ME(t)})))},t.prototype._getSvgFromIconSetConfigs=function(t,e){var n=this,r=this._extractIconWithNameFromAnySet(t,e);return r?ih(r):Cu(e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe($c((function(e){var r="Loading icon set URL: "+n._sanitizer.sanitize(Te.RESOURCE_URL,t.url)+" failed: "+e.message;return n._errorHandler?n._errorHandler.handleError(new Error(r)):console.error(r),ih(null)})))}))).pipe(Q((function(){var r=n._extractIconWithNameFromAnySet(t,e);if(!r)throw DE(t);return r})))},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,t,r.options);if(i)return i}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(Q((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?ih(t.svgElement):this._fetchUrl(t.url).pipe(Q((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))},t.prototype._createSvgElementForSingleIcon=function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n},t.prototype._extractSvgIconFromSet=function(t,e,n){var r=t.querySelector('[id="'+e+'"]');if(!r)return null;var i=r.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);var o=this._svgElementFromString("");return o.appendChild(i),this._setSvgAttributes(o,n)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString(""),n=t.attributes,r=0;r0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var r=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(r)}),1e3)}))}},e.prototype._emitChangeEvent=function(){var t=new AO;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},e.prototype.toggle=function(){this.checked=!this.checked},e.prototype._onInputClick=function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?OO.Checked:OO.Unchecked),this._emitChangeEvent())},e.prototype.focus=function(t,e){void 0===t&&(t="keyboard"),this._focusMonitor.focusVia(this._inputElement,t,e)},e.prototype._onInteractionEvent=function(t){t.stopPropagation()},e.prototype._getAnimationClassForCheckStateTransition=function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case OO.Init:if(e===OO.Checked)n="unchecked-checked";else{if(e!=OO.Indeterminate)return"";n="unchecked-indeterminate"}break;case OO.Unchecked:n=e===OO.Checked?"unchecked-checked":"unchecked-indeterminate";break;case OO.Checked:n=e===OO.Unchecked?"checked-unchecked":"checked-indeterminate";break;case OO.Indeterminate:n=e===OO.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},e}(um(sm(lm(am(function(){return function(t){this._elementRef=t}}())),"accent"))),DO=function(){return function(){}}(),IO=function(){return function(){}}(),PO=or({encapsulation:2,styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0,0,.2,.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}@media (-ms-high-contrast:active){.mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media (hover:none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.13333px}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0);border-radius:2px}@media (-ms-high-contrast:active){.mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0s mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0s mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:.3s linear 0s mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}"],data:{}});function RO(t){return ma(2,[na(671088640,1,{_inputElement:0}),na(671088640,2,{ripple:0}),(t()(),Xo(2,0,[["label",1]],null,16,"label",[["class","mat-checkbox-layout"]],[[1,"for",0]],null,null,null,null)),(t()(),Xo(3,0,null,null,10,"div",[["class","mat-checkbox-inner-container"]],[[2,"mat-checkbox-inner-container-no-side-margin",null]],null,null,null,null)),(t()(),Xo(4,0,[[1,0],["input",1]],null,0,"input",[["class","mat-checkbox-input cdk-visually-hidden"],["type","checkbox"]],[[8,"id",0],[8,"required",0],[8,"checked",0],[1,"value",0],[8,"disabled",0],[1,"name",0],[8,"tabIndex",0],[8,"indeterminate",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-checked",0]],[[null,"change"],[null,"click"]],(function(t,e,n){var r=!0,i=t.component;return"change"===e&&(r=!1!==i._onInteractionEvent(n)&&r),"click"===e&&(r=!1!==i._onInputClick(n)&&r),r}),null,null)),(t()(),Xo(5,0,null,null,3,"div",[["class","mat-checkbox-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),pi(6,212992,[[2,4]],0,Fm,[fn,fo,Np,[2,jm],[2,B_]],{centered:[0,"centered"],radius:[1,"radius"],animation:[2,"animation"],disabled:[3,"disabled"],trigger:[4,"trigger"]},null),ca(7,{enterDuration:0}),(t()(),Xo(8,0,null,null,0,"div",[["class","mat-ripple-element mat-checkbox-persistent-ripple"]],null,null,null,null,null)),(t()(),Xo(9,0,null,null,0,"div",[["class","mat-checkbox-frame"]],null,null,null,null,null)),(t()(),Xo(10,0,null,null,3,"div",[["class","mat-checkbox-background"]],null,null,null,null,null)),(t()(),Xo(11,0,null,null,1,":svg:svg",[[":xml:space","preserve"],["class","mat-checkbox-checkmark"],["focusable","false"],["version","1.1"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Xo(12,0,null,null,0,":svg:path",[["class","mat-checkbox-checkmark-path"],["d","M4.1,12.7 9,17.6 20.3,6.3"],["fill","none"],["stroke","white"]],null,null,null,null,null)),(t()(),Xo(13,0,null,null,0,"div",[["class","mat-checkbox-mixedmark"]],null,null,null,null,null)),(t()(),Xo(14,0,[["checkboxLabel",1]],null,4,"span",[["class","mat-checkbox-label"]],null,[[null,"cdkObserveContent"]],(function(t,e,n){var r=!0;return"cdkObserveContent"===e&&(r=!1!==t.component._onLabelTextChange()&&r),r}),null,null)),pi(15,1196032,null,0,yg,[gg,fn,fo],null,{event:"cdkObserveContent"}),(t()(),Xo(16,0,null,null,1,"span",[["style","display:none"]],null,null,null,null,null)),(t()(),da(-1,null,[" "])),sa(null,0)],(function(t,e){var n=e.component,r=t(e,7,0,150);t(e,6,0,!0,20,r,n._isRippleDisabled(),ti(e,2))}),(function(t,e){var n=e.component;t(e,2,0,n.inputId),t(e,3,0,!ti(e,14).textContent||!ti(e,14).textContent.trim()),t(e,4,1,[n.inputId,n.required,n.checked,n.value,n.disabled,n.name,n.tabIndex,n.indeterminate,n.ariaLabel||null,n.ariaLabelledby,n._getAriaChecked()]),t(e,5,0,ti(e,6).unbounded)}))}var NO=function(){function t(){this.optionValueField="id",this.optionTextField="value",this.direction="vertical",this.selectedOptionsChange=new Fi,this._sub=new d}return t.prototype.ngOnInit=function(){var t=this;this.optionsStatusControl=new yc(this.options.map((function(e){return t.selectedOptions&&t.selectedOptions.some((function(n){return e===n||e[t.optionValueField]===n}))?r.createFormControl(!0,void 0,t.disabled):r.createFormControl(void 0,void 0,t.disabled)}))),this._sub.add(this.optionsStatusControl.valueChanges.pipe(uh((function(){return!t.disabled})),Hh((function(e){return t.selectedOptionsChange.next(e.reduce((function(e,n,r){if(n){var i=t.options[r];return a.__spread(e,t.optionValueField?t.outputFully?[a.__assign({},i)]:[i[t.optionValueField]]:[i])}return e}),[]))}))).subscribe())},t.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},t}(),MO=or({encapsulation:0,styles:[["mat-checkbox[_ngcontent-%COMP%] .mat-checkbox-inner-container{width:1.5rem;height:1.5rem}mat-checkbox[_ngcontent-%COMP%] .mat-checkbox-layout{white-space:normal!important;display:block}mat-checkbox[_ngcontent-%COMP%] .mat-checkbox-layout .mat-checkbox-label{font-size:1rem;color:#172b4d}.checkbox-option-wrapper.vertical[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}.checkbox-option-wrapper.horizontal[_ngcontent-%COMP%]{display:inline-block;margin-top:.5rem}.checkbox-option-wrapper.horizontal[_ngcontent-%COMP%]:not(:last-child){margin-right:1rem}"]],data:{}});function jO(t){return ma(0,[(t()(),Xo(0,0,null,null,7,"div",[["class","checkbox-option-wrapper"]],[[2,"vertical",null],[2,"horizontal",null]],null,null,null,null)),(t()(),Xo(1,0,null,null,6,"mat-checkbox",[["class","mat-checkbox"]],[[8,"id",0],[1,"tabindex",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",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]],null,null,RO,PO)),pi(2,8568832,null,0,TO,[fn,Me,tm,fo,[8,null],[2,kO],[2,B_]],null,null),mi(1024,null,Su,(function(t){return[t]}),[TO]),pi(4,540672,null,0,Sc,[[8,null],[8,null],[6,Su],[2,xc]],{form:[0,"form"]},null),mi(2048,null,Iu,null,[Sc]),pi(6,16384,null,0,Ru,[[4,Iu]],null,null),(t()(),da(7,0,[" "," "]))],(function(t,e){t(e,4,0,e.component.optionsStatusControl.controls[e.context.index])}),(function(t,e){var n=e.component;t(e,0,0,"vertical"===n.direction,"horizontal"===n.direction),t(e,1,1,[ti(e,2).id,null,ti(e,2).indeterminate,ti(e,2).checked,ti(e,2).disabled,"before"==ti(e,2).labelPosition,"NoopAnimations"===ti(e,2)._animationMode,ti(e,6).ngClassUntouched,ti(e,6).ngClassTouched,ti(e,6).ngClassPristine,ti(e,6).ngClassDirty,ti(e,6).ngClassValid,ti(e,6).ngClassInvalid,ti(e,6).ngClassPending]),t(e,7,0,n.optionTextField?e.context.$implicit[n.optionTextField]:e.context.$implicit)}))}function FO(t){return ma(2,[(t()(),Zo(16777216,null,null,1,null,jO)),pi(1,278528,null,0,Bs,[Bn,Ln,Rn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,1,0,e.component.options)}),null)}var LO=function(){function t(){}return t.prototype.showError=function(t){return this.control.hasError(t.errorCode)&&(this.control.dirty||this.control.touched)},t}(),VO=or({encapsulation:0,styles:[[".error-container[_ngcontent-%COMP%]{margin-top:.5em;margin-bottom:.5em;text-align:center;font-size:1rem}.error[_ngcontent-%COMP%]{color:red;font-weight:700}"]],data:{}});function BO(t){return ma(0,[(t()(),Xo(0,0,null,null,2,"span",[["class","error"]],null,null,null,null,null)),(t()(),da(1,null,[" "," "])),fi(131072,qx,[zx,Me])],null,(function(t,e){t(e,1,0,nr(e,1,0,ti(e,2).transform(e.parent.context.$implicit.errorMessage)))}))}function zO(t){return ma(0,[(t()(),Xo(0,0,null,null,2,"div",[["class","error-container"],["fxLayout","row"],["fxLayoutAlign","center"]],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,BO)),pi(2,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null)],(function(t,e){t(e,2,0,e.component.showError(e.context.$implicit))}),null)}function qO(t){return ma(0,[(t()(),Zo(16777216,null,null,1,null,zO)),pi(1,278528,null,0,Bs,[Bn,Ln,Rn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,1,0,e.component.validators)}),null)}var UO=function(){function t(t){this._changeDetectorRef=t,this.answeredQuestionChange=new Fi}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this._isValid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionType",{get:function(){return dd},enumerable:!0,configurable:!0}),t.prototype.onDisable=function(){throw new Error("Function onDisable is not implemented")},t.prototype.validate=function(){},t}(),HO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._sub=new d,e}return a.__extends(e,t),Object.defineProperty(e.prototype,"questionModel",{get:function(){return this.question},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"answerModel",{get:function(){return this.answeredQuestion},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this.validators=[{validator:Lu.required,errorCode:"required",errorMessage:"this_question_need_to_be_answered"}],this.control=r.createFormControl(this.answerModel&&this.answerModel.answers,this.validators),this._sub.add(this.control.statusChanges.pipe(hp(this.control.status),Hh((function(e){t._isValid=e!==Zc.invalid}))).subscribe())},e.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},e.prototype.validate=function(){this.control.markAllAsTouched(),this._changeDetectorRef.detectChanges()},e.prototype.onMultipleChoiceQuestionAnswered=function(t){this.control.setValue(t),this.answeredQuestionChange.next({id:this.questionModel.id,type:this.questionModel.type,answers:t})},e}(UO),WO=or({encapsulation:0,styles:[[""]],data:{}});function QO(t){return ma(2,[(t()(),Xo(0,0,null,null,1,"teinme-checkboxes",[],null,[[null,"selectedOptionsChange"]],(function(t,e,n){var r=!0;return"selectedOptionsChange"===e&&(r=!1!==t.component.onMultipleChoiceQuestionAnswered(n)&&r),r}),FO,MO)),pi(1,245760,null,0,NO,[],{options:[0,"options"],selectedOptions:[1,"selectedOptions"],outputFully:[2,"outputFully"]},{selectedOptionsChange:"selectedOptionsChange"}),(t()(),Xo(2,0,null,null,1,"teinme-form-error",[],null,null,null,qO,VO)),pi(3,49152,null,0,LO,[],{control:[0,"control"],validators:[1,"validators"]},null)],(function(t,e){var n=e.component;t(e,1,0,n.questionModel.options,n.answerModel.answers,!1),t(e,3,0,n.control,n.validators)}),null)}var YO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._sub=new d,e}return a.__extends(e,t),Object.defineProperty(e.prototype,"questionModel",{get:function(){return this.question},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"answerModel",{get:function(){return this.answeredQuestion},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this.validators=[{validator:Lu.required,errorCode:"required",errorMessage:"this_question_need_to_be_answered"}],this.control=r.createFormControl(this.answerModel&&this.answerModel.answer,this.validators),this._sub.add(this.control.statusChanges.pipe(hp(this.control.status),Hh((function(e){t._isValid=e!==Zc.invalid}))).subscribe())},e.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},e.prototype.validate=function(){this.control.markAllAsTouched(),this._changeDetectorRef.detectChanges()},e.prototype.onSingleChoiceQuestionAnswered=function(t){this.control.setValue(t),this.answeredQuestionChange.next({id:this.questionModel.id,type:this.questionModel.type,answer:t})},e}(UO),GO=or({encapsulation:0,styles:[[""]],data:{}});function KO(t){return ma(2,[(t()(),Xo(0,0,null,null,1,"teinme-radio",[],null,[[null,"selectedOptionChange"]],(function(t,e,n){var r=!0;return"selectedOptionChange"===e&&(r=!1!==t.component.onSingleChoiceQuestionAnswered(n)&&r),r}),mO,pO)),pi(1,245760,null,0,dO,[],{options:[0,"options"],selectedOption:[1,"selectedOption"]},{selectedOptionChange:"selectedOptionChange"}),(t()(),Xo(2,0,null,null,1,"teinme-form-error",[],null,null,null,qO,VO)),pi(3,49152,null,0,LO,[],{control:[0,"control"],validators:[1,"validators"]},null)],(function(t,e){var n=e.component;t(e,1,0,n.questionModel.options,n.answerModel.answer),t(e,3,0,n.control,n.validators)}),null)}function ZO(t){return function(t){function e(){for(var e=[],n=0;n0;i--)e[i]&&(n[i]=r,r+=t[i]);return n},t}();function dA(t){return Error('Could not find column with id "'+t+'".')}var pA=function(){return function(t,e){this.viewContainer=t,this.elementRef=e}}(),fA=function(){return function(t,e){this.viewContainer=t,this.elementRef=e}}(),mA=function(){return function(t,e){this.viewContainer=t,this.elementRef=e}}(),gA=function(){function t(t,e,n,r,i,o,a){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=i,this._platform=a,this._onDestroy=new I,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new ah({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(t.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(t){se()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+"."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=mp(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}))},t.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()},t.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Vp(this.dataSource)&&this.dataSource.disconnect(this)},t.prototype.renderRows=function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;e.forEachOperation((function(e,r,i){if(null==e.previousIndex)t._insertRow(e.item,i);else if(null==i)n.remove(r);else{var o=n.get(r);n.move(o,i)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){n.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}},t.prototype.setHeaderRowDef=function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0},t.prototype.setFooterRowDef=function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype.addHeaderRowDef=function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0},t.prototype.removeHeaderRowDef=function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0},t.prototype.addFooterRowDef=function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0},t.prototype.removeFooterRowDef=function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0},t.prototype.updateStickyHeaderRowStyles=function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyFooterRowStyles=function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyColumnStyles=function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(e.concat(n,r),["left","right"]),e.forEach((function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])})),this._rowDefs.forEach((function(e){for(var r=[],i=0;i1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]},t.prototype._renderUpdatedColumns=function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()},t.prototype._switchDataSource=function(t){this._data=[],Vp(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t=this;if(this.dataSource){var e;if(Vp(this.dataSource)?e=this.dataSource.connect(this):this.dataSource instanceof k?e=this.dataSource:Array.isArray(this.dataSource)&&(e=ih(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(Ap(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}},t.prototype._forceRenderHeaderRows=function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,n){return t._renderRow(t._headerRowOutlet,e,n)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},t.prototype._forceRenderFooterRows=function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,n){return t._renderRow(t._footerRowOutlet,e,n)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},t.prototype._addStickyColumnStyles=function(t,e){var n=this,r=Array.from(e.columns||[]).map((function(t){var e=n._columnDefsByName.get(t);if(!e)throw dA(t);return e})),i=r.map((function(t){return t.sticky})),o=r.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,i,o)},t.prototype._getRenderedRows=function(t){for(var e=[],n=0;n [_ngcontent-%COMP%]:first-child{float:right;width:100%;margin-left:-5px}.ellipsis[_ngcontent-%COMP%]:after{content:"…";box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;float:right;position:relative;top:-25px;left:100%;width:3em;margin-left:-3em;padding-right:5px;text-align:right;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAABCAMAAACfZeZEAAAABGdBTUEAALGPC/xhBQAAAwBQTFRF////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wDWRdwAAAP90Uk5TgsRjMZXhS30YrvDUP3Emow1YibnM9+ggOZxrBtpRRo94gxItwLOoX/vsHdA2yGgL8+TdKUK8VFufmHSGgAQWJNc9tk+rb5KMCA8aM0iwpWV6dwP9+fXuFerm3yMs0jDOysY8wr5FTldeoWKabgEJ8RATG+IeIdsn2NUqLjQ3OgBDumC3SbRMsVKsValZplydZpZpbJOQco2KdYeEe36BDAL8/vgHBfr2CvTyDu8R7esU6RcZ5ecc4+Af3iLcJSjZ1ivT0S/PMs3LNck4x8U7wz7Bv0G9RLtHuEq1TbJQr1OtVqqnWqRdoqBhnmSbZ5mXapRtcJGOc4t2eYiFfH9AS7qYlgAAARlJREFUKM9jqK9fEGS7VNrDI2+F/nyB1Z4Fa5UKN4TbbeLY7FW0Tatkp3jp7mj7vXzl+4yrDsYoVx+JYz7mXXNSp/a0RN25JMcLPP8umzRcTZW77tNyk63tdprzXdmO+2ZdD9MFe56Y9z3LUG96mcX02n/CW71JH6Qmf8px/cw77ZvVzB+BCj8D5vxhn/vXZh6D4uzf1rN+Cc347j79q/zUL25TPrJMfG/5LvuNZP8rixeZz/mf+vU+Vut+5NL5gPOeb/sd1dZbTs03hBuvmV5JuaRyMfk849nEM7qnEk6IHI8/qn049hB35QGHiv0yZXuMdkXtYC3ebrglcqvYxoj1muvC1nDlrzJYGbpcdHHIMo2FwYv+j3QAAOBSfkZYITwUAAAAAElFTkSuQmCC);background:linear-gradient(to right,rgba(255,255,255,0),#fff 50%,#fff)}']],data:{}});function LA(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"th",[["class","mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),pi(1,16384,null,0,xA,[JO,fn],null,null)],null,null)}function VA(t){return ma(0,[(t()(),Xo(0,0,null,null,2,"td",[["class","text-align-left mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),pi(1,16384,null,0,SA,[JO,fn],null,null),(t()(),da(2,null,[" "," "]))],null,(function(t,e){t(e,2,0,e.component.getRowText(e.context.$implicit))}))}function BA(t){return ma(0,[(t()(),Xo(0,0,null,null,5,"th",[["class","test mat-header-cell"],["mat-header-cell",""],["role","columnheader"]],null,null,null,null,null)),pi(1,16384,null,0,xA,[JO,fn],null,null),(t()(),Xo(2,0,null,null,3,"div",[["class","ellipsis"]],null,null,null,null,null)),(t()(),Xo(3,16777216,null,null,2,"p",[],null,[[null,"longpress"],[null,"keydown"],[null,"touchend"]],(function(t,e,n){var r=!0;return"longpress"===e&&(r=!1!==ti(t,4).show()&&r),"keydown"===e&&(r=!1!==ti(t,4)._handleKeydown(n)&&r),"touchend"===e&&(r=!1!==ti(t,4)._handleTouchend()&&r),r}),null,null)),pi(4,212992,null,0,zv,[pf,fn,zp,Bn,fo,Np,zf,tm,Lv,[2,pp],[2,Bv],[2,ru]],{message:[0,"message"]},null),(t()(),da(5,null,[" "," "]))],(function(t,e){t(e,4,0,e.component.getColumnText(e.parent.context.$implicit))}),(function(t,e){t(e,5,0,e.component.getColumnText(e.parent.context.$implicit))}))}function zA(t){return ma(0,[(t()(),Xo(0,0,null,null,3,"td",[["class","option-cell mat-cell"],["mat-cell",""],["role","gridcell"]],null,null,null,null,null)),pi(1,16384,null,0,SA,[JO,fn],null,null),(t()(),Xo(2,0,null,null,1,"mat-radio-button",[["class","mat-radio-button"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[2,"mat-primary",null],[2,"mat-accent",null],[2,"mat-warn",null],[1,"tabindex",0],[1,"id",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-describedby",0]],[[null,"change"],[null,"focus"]],(function(t,e,n){var r=!0,i=t.component;return"focus"===e&&(r=!1!==ti(t,3)._inputElement.nativeElement.focus()&&r),"change"===e&&(r=!1!==i.onChange(t.context.$implicit,t.parent.context.$implicit)&&r),r}),hO,cO)),pi(3,4440064,null,0,lO,[[2,sO],fn,Me,tm,Bp,[2,B_],[2,iO]],{name:[0,"name"],checked:[1,"checked"],disabled:[2,"disabled"]},{change:"change"})],(function(t,e){var n=e.component;t(e,3,0,n.getRowValue(e.context.$implicit),n.isChecked(e.context.$implicit,e.parent.context.$implicit),n.disabled)}),(function(t,e){t(e,2,1,[ti(e,3).checked,ti(e,3).disabled,"NoopAnimations"===ti(e,3)._animationMode,"primary"===ti(e,3).color,"accent"===ti(e,3).color,"warn"===ti(e,3).color,-1,ti(e,3).id,null,null,null])}))}function qA(t){return ma(0,[(t()(),Xo(0,0,null,null,12,null,null,null,null,null,null,null)),mi(6144,null,"MAT_SORT_HEADER_COLUMN_DEF",null,[CA]),pi(2,16384,null,3,CA,[],{name:[0,"name"]},null),na(603979776,8,{cell:0}),na(603979776,9,{headerCell:0}),na(603979776,10,{footerCell:0}),mi(2048,[[1,4]],JO,null,[CA]),(t()(),Zo(0,null,null,2,null,BA)),pi(8,16384,null,0,wA,[Ln],null,null),mi(2048,[[9,4]],$O,null,[wA]),(t()(),Zo(0,null,null,2,null,zA)),pi(11,16384,null,0,bA,[Ln],null,null),mi(2048,[[8,4]],XO,null,[bA])],(function(t,e){t(e,2,0,e.component.getColumnValue(e.context.$implicit))}),null)}function UA(t){return ma(0,[(t()(),Xo(0,0,null,null,2,"tr",[["class","mat-header-row"],["mat-header-row",""],["role","row"]],null,null,null,RA,PA)),mi(6144,null,lA,null,[OA]),pi(2,49152,null,0,OA,[],null,null)],null,null)}function HA(t){return ma(0,[(t()(),Xo(0,0,null,null,2,"tr",[["class","mat-row"],["mat-row",""],["role","row"]],null,null,null,MA,NA)),mi(6144,null,uA,null,[AA]),pi(2,49152,null,0,AA,[],null,null)],null,null)}function WA(t){return ma(2,[(t()(),Xo(0,0,null,null,28,"div",[["class","table-wrapper"]],null,null,null,null,null)),(t()(),Xo(1,0,null,null,27,"table",[["class","table mat-table"],["mat-table",""]],null,null,null,IA,DA)),mi(6144,null,gA,null,[vA]),pi(3,2342912,null,4,vA,[Rn,Me,fn,[8,null],[2,pp],il,Np],{dataSource:[0,"dataSource"]},null),na(603979776,1,{_contentColumnDefs:1}),na(603979776,2,{_contentRowDefs:1}),na(603979776,3,{_contentHeaderRowDefs:1}),na(603979776,4,{_contentFooterRowDefs:1}),(t()(),Xo(8,0,null,null,12,null,null,null,null,null,null,null)),mi(6144,null,"MAT_SORT_HEADER_COLUMN_DEF",null,[CA]),pi(10,16384,null,3,CA,[],{name:[0,"name"],sticky:[1,"sticky"]},null),na(603979776,5,{cell:0}),na(603979776,6,{headerCell:0}),na(603979776,7,{footerCell:0}),mi(2048,[[1,4]],JO,null,[CA]),(t()(),Zo(0,null,null,2,null,LA)),pi(16,16384,null,0,wA,[Ln],null,null),mi(2048,[[6,4]],$O,null,[wA]),(t()(),Zo(0,null,null,2,null,VA)),pi(19,16384,null,0,bA,[Ln],null,null),mi(2048,[[5,4]],XO,null,[bA]),(t()(),Zo(16777216,null,null,1,null,qA)),pi(22,278528,null,0,Bs,[Bn,Ln,Rn],{ngForOf:[0,"ngForOf"]},null),(t()(),Zo(0,null,null,2,null,UA)),pi(24,540672,null,0,kA,[Ln,Rn],{columns:[0,"columns"],sticky:[1,"sticky"]},null),mi(2048,[[3,4]],iA,null,[kA]),(t()(),Zo(0,null,null,2,null,HA)),pi(27,540672,null,0,EA,[Ln,Rn],{columns:[0,"columns"]},null),mi(2048,[[2,4]],aA,null,[EA])],(function(t,e){var n=e.component;t(e,3,0,n.rows),t(e,10,0,n.emptyColumnKey,!0),t(e,22,0,n.columns),t(e,24,0,n.matHeaders,!0),t(e,27,0,n.matHeaders)}),null)}var QA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._sub=new d,e}return a.__extends(e,t),Object.defineProperty(e.prototype,"questionModel",{get:function(){return this.question},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"answerModel",{get:function(){return this.answeredQuestion},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t,e=this;this.validators=[{validator:(t=this.questionModel.rows.length,function(e){if(e instanceof mc){var n=e.value;return n&&n.length===t?n.some((function(t){return!t.rowId||!t.columnId}))?{allRowsNeedToBeAnswered:{valid:!1,message:"All row need to be answered"}}:null:{allRowsNeedToBeAnswered:{valid:!1,message:"All row need to be answered"}}}return null}),errorCode:"allRowsNeedToBeAnswered",errorMessage:"this_question_need_to_be_answered"}],this.control=r.createFormControl(this.answerModel&&this.answerModel.answers,this.validators),this._sub.add(this.control.statusChanges.pipe(hp(this.control.status),Hh((function(t){e._isValid=t!==Zc.invalid}))).subscribe())},e.prototype.ngOnDestroy=function(){this._sub.unsubscribe()},e.prototype.validate=function(){this.control.markAllAsTouched(),this._changeDetectorRef.detectChanges()},e.prototype.onTableMatrixQuestionAnswered=function(t){var e=t.map((function(t){return{rowId:t.row,columnId:t.col}}));this.control.setValue(e),this.answeredQuestionChange.next({id:this.questionModel.id,type:this.questionModel.type,answers:e})},e.prototype.getTableMatrixSelections=function(){var t=this.control.value;return t&&t.map((function(t){return{row:t.rowId,col:t.columnId}}))},e}(UO),YA=or({encapsulation:0,styles:[[""]],data:{}});function GA(t){return ma(2,[(t()(),Xo(0,0,null,null,1,"teinme-table-matrix",[],null,[[null,"selectedOptionsChange"]],(function(t,e,n){var r=!0;return"selectedOptionsChange"===e&&(r=!1!==t.component.onTableMatrixQuestionAnswered(n)&&r),r}),WA,FA)),pi(1,114688,null,0,jA,[],{rows:[0,"rows"],columns:[1,"columns"],selectedOptions:[2,"selectedOptions"]},{selectedOptionsChange:"selectedOptionsChange"}),(t()(),Xo(2,0,null,null,1,"teinme-form-error",[],null,null,null,qO,VO)),pi(3,49152,null,0,LO,[],{control:[0,"control"],validators:[1,"validators"]},null)],(function(t,e){var n=e.component;t(e,1,0,n.questionModel.rows,n.questionModel.columns,n.getTableMatrixSelections()),t(e,3,0,n.control,n.validators)}),null)}var KA=function(){function t(){this.answeredQuestionChange=new Fi}return Object.defineProperty(t.prototype,"questionType",{get:function(){return dd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this._questionElement.isValid},enumerable:!0,configurable:!0}),t.prototype.onAnswerChange=function(t){this.answeredQuestionChange.next(t)},t.prototype.validate=function(){this._questionElement.validate()},t}(),ZA=or({encapsulation:0,styles:[[".card-background[_ngcontent-%COMP%]{background:#f5f5f5}.question-title[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.question-description[_ngcontent-%COMP%]{font-size:1rem}"]],data:{}});function XA(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),da(1,null,[" ",". "]))],null,(function(t,e){t(e,1,0,e.component.questionNumber)}))}function $A(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"p",[["class","question-description"]],null,null,null,null,null)),(t()(),da(1,null,[" "," "]))],null,(function(t,e){t(e,1,0,e.component.question.description)}))}function JA(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-multiple-choice-question",[],null,[[null,"answeredQuestionChange"]],(function(t,e,n){var r=!0;return"answeredQuestionChange"===e&&(r=!1!==t.component.onAnswerChange(n)&&r),r}),QO,WO)),pi(1,245760,[[1,4],["questionElement",4]],0,HO,[Me],{question:[0,"question"],answeredQuestion:[1,"answeredQuestion"]},{answeredQuestionChange:"answeredQuestionChange"})],(function(t,e){var n=e.component;t(e,1,0,n.question,n.answeredQuestion)}),null)}function tT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-single-choice-question",[],null,[[null,"answeredQuestionChange"]],(function(t,e,n){var r=!0;return"answeredQuestionChange"===e&&(r=!1!==t.component.onAnswerChange(n)&&r),r}),KO,GO)),pi(1,245760,[[1,4],["questionElement",4]],0,YO,[Me],{question:[0,"question"],answeredQuestion:[1,"answeredQuestion"]},{answeredQuestionChange:"answeredQuestionChange"})],(function(t,e){var n=e.component;t(e,1,0,n.question,n.answeredQuestion)}),null)}function eT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-table-matrix-question",[],null,[[null,"answeredQuestionChange"]],(function(t,e,n){var r=!0;return"answeredQuestionChange"===e&&(r=!1!==t.component.onAnswerChange(n)&&r),r}),GA,YA)),pi(1,245760,[[1,4],["questionElement",4]],0,QA,[Me],{question:[0,"question"],answeredQuestion:[1,"answeredQuestion"]},{answeredQuestionChange:"answeredQuestionChange"})],(function(t,e){var n=e.component;t(e,1,0,n.question,n.answeredQuestion)}),null)}function nT(t){return ma(2,[na(671088640,1,{_questionElement:0}),(t()(),Xo(1,0,null,null,22,"mat-card",[["class","card-background mat-card"]],[[2,"_mat-animation-noopable",null]],null,null,bk,vk)),pi(2,49152,null,0,yk,[[2,B_]],null,null),(t()(),Xo(3,0,null,0,5,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),pi(4,16384,null,0,mk,[],null,null),(t()(),Xo(5,0,null,null,3,"h5",[["class","color-deep-blue question-title"]],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,XA)),pi(7,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),da(8,null,[" "," "])),(t()(),Xo(9,0,null,0,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,tO,JE)),pi(10,49152,null,0,XE,[],null,null),(t()(),Xo(11,0,null,0,12,"mat-card-content",[["class","p-a-8 mat-card-content"]],null,null,null,null,null)),pi(12,16384,null,0,fk,[],null,null),(t()(),Zo(16777216,null,null,1,null,$A)),pi(14,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Xo(15,0,null,null,8,"div",[],null,null,null,null,null)),(t()(),Xo(16,0,null,null,7,null,null,null,null,null,null,null)),pi(17,16384,null,0,Qs,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Zo(16777216,null,null,1,null,JA)),pi(19,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zo(16777216,null,null,1,null,tT)),pi(21,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Zo(16777216,null,null,1,null,eT)),pi(23,278528,null,0,Ys,[Bn,Ln,Qs],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(t,e){var n=e.component;t(e,7,0,n.questionNumber),t(e,14,0,n.question.description),t(e,17,0,n.question.type),t(e,19,0,n.questionType.multipleChoice),t(e,21,0,n.questionType.singleChoice),t(e,23,0,n.questionType.tableMatrix)}),(function(t,e){var n=e.component;t(e,1,0,"NoopAnimations"===ti(e,2)._animationMode),t(e,8,0,n.question.question),t(e,9,0,ti(e,10).vertical?"vertical":"horizontal",ti(e,10).vertical,!ti(e,10).vertical,ti(e,10).inset)}))}var rT=function(){function t(){this.answeredQuestions=new Fi,this.answeredSectionChange=new Fi}return Object.defineProperty(t.prototype,"answeredSection",{get:function(){return this._answeredSection},set:function(t){this._answeredSection=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return!this._questionElements.some((function(t){return!t.isValid}))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.answeredSection||(this._answeredSection=this._generateEmptySectionAnswerSheet())},t.prototype.onAnsweredQuestionChange=function(t){this._answeredSection={id:this._answeredSection.id,questions:this._answeredSection.questions.map((function(e){return e.id===t.id?t:e}))},this.answeredSectionChange.next(a.__assign({},this._answeredSection))},t.prototype.validate=function(){this._questionElements.forEach((function(t){return t.validate()}))},t.prototype._generateEmptySectionAnswerSheet=function(){return{id:this.section.id,questions:this.section.questions.map((function(t){return{id:t.id,type:t.type}}))}},t}(),iT=or({encapsulation:0,styles:[[".section-description[_ngcontent-%COMP%]{padding-left:1rem}.questions-wrapper[_ngcontent-%COMP%]{margin-top:1rem}.questions-wrapper[_ngcontent-%COMP%] .question[_ngcontent-%COMP%]{margin-top:2rem}"]],data:{}});function oT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),da(1,null,[" ",". "]))],null,(function(t,e){t(e,1,0,e.component.sectionNumber)}))}function aT(t){return ma(0,[(t()(),Xo(0,0,null,null,3,"h2",[["class","section-title color-deep-blue"]],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,oT)),pi(2,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),da(3,null,[" ","\n"]))],(function(t,e){t(e,2,0,e.component.sectionNumber)}),(function(t,e){t(e,3,0,e.component.section.title)}))}function sT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"p",[["class","section-description"]],null,null,null,null,null)),(t()(),da(1,null,[" ","\n"]))],null,(function(t,e){t(e,1,0,e.component.section.description)}))}function lT(t){return ma(0,[(t()(),Xo(0,0,null,null,2,"div",[["class","question"]],null,null,null,null,null)),(t()(),Xo(1,0,null,null,1,"teinme-question",[],null,[[null,"answeredQuestionChange"]],(function(t,e,n){var r=!0;return"answeredQuestionChange"===e&&(r=!1!==t.component.onAnsweredQuestionChange(n)&&r),r}),nT,ZA)),pi(2,49152,[[1,4],["questionElements",4]],0,KA,[],{questionNumber:[0,"questionNumber"],question:[1,"question"],answeredQuestion:[2,"answeredQuestion"]},{answeredQuestionChange:"answeredQuestionChange"})],(function(t,e){t(e,2,0,e.context.index+1,e.context.$implicit,e.component.answeredSection.questions[e.context.index])}),null)}function uT(t){return ma(2,[na(671088640,1,{_questionElements:1}),(t()(),Zo(16777216,null,null,1,null,aT)),pi(2,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(16777216,null,null,1,null,sT)),pi(4,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Xo(5,0,null,null,2,"div",[["class","questions-wrapper"]],null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,lT)),pi(7,278528,null,0,Bs,[Bn,Ln,Rn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){var n=e.component;t(e,2,0,n.section.title),t(e,4,0,n.section.description),t(e,7,0,n.section.questions)}),null)}var cT=function(){function t(t,e){this._notificationService=t,this._dateService=e,this.answeredQuestionnaireChange=new Fi,this.finalStep=new Fi,this.patientInformationChange=new Fi,this._selectedSectionIndex=0}return Object.defineProperty(t.prototype,"answeredQuestionnaire",{get:function(){return this._answeredQuestionnaire},set:function(t){this._answeredQuestionnaire=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedSectionIndex",{get:function(){return this._selectedSectionIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalSections",{get:function(){return this._totalSections},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.dateValidators=[{validator:Lu.required,errorCode:"required",errorMessage:"date_is_required"}],this.dateControl=r.createFormControl(this.questionHadDoneAt?this.questionHadDoneAt:this._dateService.currentDateTime(),this.dateValidators,!0),this._totalSections=this.questionnaire.sections.length,this._answeredQuestionnaire||(this._answeredQuestionnaire=this._generateEmptyQuestionnaireAnswerSheet())},t.prototype.goBack=function(){this._selectedSectionIndex&&(this._scrollToBeginningOfSection(),this._selectedSectionIndex--)},t.prototype.goForward=function(){this.sectionElement.isValid?this._selectedSectionIndex!==this.questionnaire.sections.length-1&&(this._scrollToBeginningOfSection(),this._selectedSectionIndex++):this._showErrors()},t.prototype.onFinalStep=function(){this.sectionElement.isValid?this.finalStep.next():this._showErrors()},t.prototype.onAnswerChange=function(t){this._answeredQuestionnaire={id:this._answeredQuestionnaire.id,sections:this._answeredQuestionnaire.sections.map((function(e){return e.id===t.id?t:e}))},this.answeredQuestionnaireChange.next(a.__assign({},this._answeredQuestionnaire))},t.prototype.onPatientInformationChange=function(t){this.patientInformationChange.next(t)},t.prototype._scrollToBeginningOfSection=function(){this.sectionWrapperRef&&this.sectionWrapperRef.nativeElement.scrollIntoView({block:"start",behavior:"smooth"})},t.prototype._generateEmptyQuestionnaireAnswerSheet=function(){return{id:this.questionnaire.id,sections:this.questionnaire.sections.map((function(t){return{id:t.id,questions:t.questions.map((function(t){return{id:t.id,type:t.type}}))}}))}},t.prototype._showErrors=function(){this.sectionElement.validate(),this._notificationService.warn("there_are_few_unanswered_questions")},t}(),hT=or({encapsulation:0,styles:[[".actions[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.action-button[_ngcontent-%COMP%]{margin-left:0!important;width:5rem;height:3rem;font-size:3rem;background:#1b5f7f}.action-button[_ngcontent-%COMP%] .action-icon[_ngcontent-%COMP%]{width:3rem;height:3rem;font-size:3rem}.page[_ngcontent-%COMP%]{margin:auto 1rem;font-size:1.5rem}.date-wrapper[_ngcontent-%COMP%]{font-size:1rem;align-self:center;padding-right:1rem}"]],data:{}});function dT(t){return ma(0,[(t()(),Xo(0,0,null,null,4,"button",[["class","action-button"],["color","primary"],["mat-raised-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.goBack()&&r),r}),H_,U_)),pi(1,180224,null,0,wg,[fn,tm,[2,B_]],{disabled:[0,"disabled"],color:[1,"color"]},null),(t()(),Xo(2,0,null,0,2,"mat-icon",[["class","action-icon mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,WE,HE)),pi(3,9158656,null,0,qE,[fn,NE,[8,null],[2,LE],[2,ie]],null,null),(t()(),da(-1,0,[" navigate_before "]))],(function(t,e){t(e,1,0,0===e.component.selectedSectionIndex,"primary"),t(e,3,0)}),(function(t,e){t(e,0,0,ti(e,1).disabled||null,"NoopAnimations"===ti(e,1)._animationMode),t(e,2,0,ti(e,3).inline,"primary"!==ti(e,3).color&&"accent"!==ti(e,3).color&&"warn"!==ti(e,3).color)}))}function pT(t){return ma(0,[(t()(),Xo(0,0,null,null,3,"span",[["class","page"]],null,null,null,null,null)),(t()(),da(1,null,[" "," "])),ca(2,{current:0,total:1}),fi(131072,qx,[zx,Me])],null,(function(t,e){var n=e.component,r=nr(e,1,0,ti(e,3).transform("pages",t(e,2,0,n.selectedSectionIndex+1,n.totalSections)));t(e,1,0,r)}))}function fT(t){return ma(0,[(t()(),Xo(0,0,null,null,4,"button",[["class","action-button"],["color","primary"],["mat-raised-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.goForward()&&r),r}),H_,U_)),pi(1,180224,null,0,wg,[fn,tm,[2,B_]],{color:[0,"color"]},null),(t()(),Xo(2,0,null,0,2,"mat-icon",[["class","action-icon mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,WE,HE)),pi(3,9158656,null,0,qE,[fn,NE,[8,null],[2,LE],[2,ie]],null,null),(t()(),da(-1,0,[" navigate_next "]))],(function(t,e){t(e,1,0,"primary"),t(e,3,0)}),(function(t,e){t(e,0,0,ti(e,1).disabled||null,"NoopAnimations"===ti(e,1)._animationMode),t(e,2,0,ti(e,3).inline,"primary"!==ti(e,3).color&&"accent"!==ti(e,3).color&&"warn"!==ti(e,3).color)}))}function mT(t){return ma(0,[(t()(),Xo(0,0,null,null,4,"button",[["class","action-button"],["color","primary"],["mat-raised-button",""]],[[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.onFinalStep()&&r),r}),H_,U_)),pi(1,180224,null,0,wg,[fn,tm,[2,B_]],{color:[0,"color"]},null),(t()(),Xo(2,0,null,0,2,"mat-icon",[["class","action-icon mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,WE,HE)),pi(3,9158656,null,0,qE,[fn,NE,[8,null],[2,LE],[2,ie]],null,null),(t()(),da(-1,0,[" done "]))],(function(t,e){t(e,1,0,"primary"),t(e,3,0)}),(function(t,e){t(e,0,0,ti(e,1).disabled||null,"NoopAnimations"===ti(e,1)._animationMode),t(e,2,0,ti(e,3).inline,"primary"!==ti(e,3).color&&"accent"!==ti(e,3).color&&"warn"!==ti(e,3).color)}))}function gT(t){return ma(2,[na(402653184,1,{sectionWrapperRef:0}),na(402653184,2,{sectionElement:0}),(t()(),Xo(2,0,null,null,32,"mat-card",[["class","mat-card"]],[[2,"_mat-animation-noopable",null]],null,null,bk,vk)),pi(3,49152,null,0,yk,[[2,B_]],null,null),(t()(),Xo(4,0,null,0,11,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),pi(5,16384,null,0,mk,[],null,null),(t()(),Xo(6,0,null,null,9,"div",[["fxLayout","column"],["fxLayout.gt-xs","row"],["fxLayoutAlign","space-between"]],null,null,null,null,null)),pi(7,671744,null,0,RS,[fn,bS,[2,IS],SS],{fxLayout:[0,"fxLayout"],"fxLayout.gt-xs":[1,"fxLayout.gt-xs"]},null),pi(8,671744,null,0,WS,[fn,bS,[2,US],SS],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(t()(),Xo(9,0,null,null,2,"h2",[["class","color-deep-blue"]],null,null,null,null,null)),(t()(),da(10,null,[" "," "])),fi(131072,qx,[zx,Me]),(t()(),Xo(12,0,null,null,3,"div",[["class","date-wrapper"]],null,null,null,null,null)),(t()(),Xo(13,0,null,null,2,"teinme-datepicker",[["name","date"]],null,null,null,ZE,YE)),pi(14,114688,null,0,QE,[],{placeholder:[0,"placeholder"],control:[1,"control"],validators:[2,"validators"],name:[3,"name"]},null),fi(131072,qx,[zx,Me]),(t()(),Xo(16,0,null,0,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,tO,JE)),pi(17,49152,null,0,XE,[],null,null),(t()(),Xo(18,0,[[1,0],["sectionWrapper",1]],0,7,"mat-card-content",[["class","p-a-8 mat-card-content"]],null,null,null,null,null)),pi(19,16384,null,0,fk,[],null,null),(t()(),Xo(20,0,null,null,1,"teinme-questionnaire-header",[],null,[[null,"patientInformationChange"]],(function(t,e,n){var r=!0;return"patientInformationChange"===e&&(r=!1!==t.component.onPatientInformationChange(n)&&r),r}),SO,xO)),pi(21,245760,null,0,CO,[Wc,Qc],{header:[0,"header"],selectedQuestionnaireType:[1,"selectedQuestionnaireType"],durationInTotal:[2,"durationInTotal"],patientInformation:[3,"patientInformation"]},{patientInformationChange:"patientInformationChange"}),(t()(),Xo(22,0,null,null,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,tO,JE)),pi(23,49152,null,0,XE,[],null,null),(t()(),Xo(24,0,null,null,1,"teinme-section",[],null,[[null,"answeredSectionChange"]],(function(t,e,n){var r=!0;return"answeredSectionChange"===e&&(r=!1!==t.component.onAnswerChange(n)&&r),r}),uT,iT)),pi(25,114688,[[2,4],["sectionElement",4]],0,rT,[],{sectionNumber:[0,"sectionNumber"],section:[1,"section"],answeredSection:[2,"answeredSection"]},{answeredSectionChange:"answeredSectionChange"}),(t()(),Xo(26,0,null,0,8,"mat-card-actions",[["class","actions mat-card-actions"],["fxLayoutAlign","center"]],[[2,"mat-card-actions-align-end",null]],null,null,null,null)),pi(27,16384,null,0,gk,[],null,null),pi(28,671744,null,0,WS,[fn,bS,[2,US],SS],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(t()(),Zo(16777216,null,null,1,null,dT)),pi(30,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(16777216,null,null,1,null,pT)),pi(32,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(16777216,null,null,1,null,fT)),pi(34,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Zo(0,[["finalStepTemplate",2]],null,0,null,mT))],(function(t,e){var n=e.component;t(e,7,0,"column","row"),t(e,8,0,"space-between"),t(e,14,0,nr(e,14,0,ti(e,15).transform("date")),n.dateControl,n.dateValidators,"date"),t(e,21,0,n.header,n.questionnaire.questionnaireType,n.questionnaire.duration,n.patientInformation),t(e,25,0,n.selectedSectionIndex+1,n.questionnaire.sections[n.selectedSectionIndex],n.answeredQuestionnaire.sections[n.selectedSectionIndex]),t(e,28,0,"center"),t(e,30,0,n.questionnaire.sections.length>1),t(e,32,0,n.questionnaire.sections.length>1),t(e,34,0,n.selectedSectionIndex!==n.totalSections-1,ti(e,35))}),(function(t,e){var n=e.component;t(e,2,0,"NoopAnimations"===ti(e,3)._animationMode),t(e,10,0,nr(e,10,0,ti(e,11).transform(n.questionnaire.name))),t(e,16,0,ti(e,17).vertical?"vertical":"horizontal",ti(e,17).vertical,!ti(e,17).vertical,ti(e,17).inset),t(e,22,0,ti(e,23).vertical?"vertical":"horizontal",ti(e,23).vertical,!ti(e,23).vertical,ti(e,23).inset),t(e,26,0,"end"===ti(e,27).align)}))}var yT=function(){function t(t,e,n,r,i){this._questionnaireService=t,this._confirmService=e,this._route=n,this._navigationService=r,this._busyService=i,this._patientInformation$=new ah(null)}return Object.defineProperty(t.prototype,"header$",{get:function(){return this._header$},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionnaire$",{get:function(){return this._questionnaire$},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patientInformation$",{get:function(){return this._patientInformation$},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e=this._route.snapshot.params.id;this._questionnaire$=rp((function(){return t._busyService.show(),t._questionnaireService.fetch(e).pipe(Db((function(){return t._busyService.hide()})),Hh((function(e){e.isDone?t._navigationService.toCongratulations():t._patientInformation$.next(e.patient)}),(function(){return t._navigationService.toNotFound()})))})),this._header$=rp((function(){return t._busyService.show(),t._questionnaireService.fetchQuestionnaireHeader(e).pipe(Hh((function(){return t._busyService.hide()}),(function(){return t._busyService.hide()})))}))},t.prototype.onAnswersChange=function(t){this.answeredQuestionnaire=t},t.prototype.onSubmit=function(){var t=this;this._confirmService.open("are_you_sure","questionnaire_will_be_submitted").pipe(uh((function(t){return!!t})),Hh((function(){return t._busyService.show()})),_d((function(){return t._questionnaireService.submit(t.answeredQuestionnaire)}))).subscribe((function(){t._busyService.hide(),t._navigationService.toCongratulations()}))},t}(),_T=function(){function t(t){this._dialog=t}return t.prototype.open=function(t,e,n,r,i){return void 0===n&&(n={}),void 0===r&&(r="yes"),void 0===i&&(i="no"),this._dialog.open(ek,{disableClose:!0,data:{dialogTitle:t,message:e,translateParameters:n,confirmButtonMessage:r,cancelButtonMessage:i}}).afterClosed()},t}(),vT=or({encapsulation:0,styles:[[""]],data:{}});function bT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-questionnaire",[],null,[[null,"answeredQuestionnaireChange"],[null,"finalStep"]],(function(t,e,n){var r=!0,i=t.component;return"answeredQuestionnaireChange"===e&&(r=!1!==i.onAnswersChange(n)&&r),"finalStep"===e&&(r=!1!==i.onSubmit()&&r),r}),gT,hT)),pi(1,114688,null,0,cT,[Kc,Qc],{header:[0,"header"],questionnaire:[1,"questionnaire"],patientInformation:[2,"patientInformation"],answeredQuestionnaire:[3,"answeredQuestionnaire"]},{answeredQuestionnaireChange:"answeredQuestionnaireChange",finalStep:"finalStep"})],(function(t,e){t(e,1,0,e.parent.context.ngIf.header,e.parent.context.ngIf.questionnaire,e.parent.context.ngIf.patientInformation,e.component.answeredQuestionnaire)}),null)}function wT(t){return ma(0,[(t()(),Xo(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,bT)),pi(2,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(0,null,null,0))],(function(t,e){t(e,2,0,e.context.ngIf.header&&e.context.ngIf.questionnaire&&e.context.ngIf.patientInformation)}),null)}function CT(t){return ma(2,[(t()(),Zo(16777216,null,null,5,null,wT)),pi(1,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),fi(131072,el,[Me]),fi(131072,el,[Me]),fi(131072,el,[Me]),ca(5,{header:0,questionnaire:1,patientInformation:2})],(function(t,e){var n=e.component,r=t(e,5,0,nr(e,1,0,ti(e,2).transform(n.header$)),nr(e,1,0,ti(e,3).transform(n.questionnaire$)),nr(e,1,0,ti(e,4).transform(n.patientInformation$)));t(e,1,0,r)}),null)}function xT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-do-questionnaire",[],null,null,null,CT,vT)),pi(1,114688,null,0,yT,[hd,_T,zw,Gc,qc],null,null)],(function(t,e){t(e,1,0)}),null)}var ST=Ur("teinme-do-questionnaire",yT,xT,{},{},[]),kT=function(){function t(t,e,n,r,i){this._questionnaireService=t,this._confirmService=e,this._route=n,this._navigationService=r,this._busyService=i,this._patientInformation$=new ah(null)}return Object.defineProperty(t.prototype,"header$",{get:function(){return this._header$},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionnaire$",{get:function(){return this._questionnaire$},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patientInformation$",{get:function(){return this._patientInformation$},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e=this._route.snapshot,n=e.params.id;if(this._code=e.queryParams.code,!this._code)throw new Error("Need code in url");this._questionnaire$=rp((function(){return t._busyService.show(),t._questionnaireService.fetch(n).pipe(Db((function(){return t._busyService.hide()})),Hh((function(e){e.isDone?t._navigationService.toCongratulations():t._patientInformation$.next(e.patient)}),(function(){return t._navigationService.toNotFound()})))})),this._header$=rp((function(){return t._busyService.show(),t._questionnaireService.fetchQuestionnaireHeader(n).pipe(Db((function(){return t._busyService.hide()})))}))},t.prototype.onAnswersChange=function(t){this.answeredQuestionnaire=t},t.prototype.onSubmit=function(){var t=this;this._confirmService.open("are_you_sure","questionnaire_will_be_submitted").pipe(uh((function(t){return!!t})),Hh((function(){return t._busyService.show()})),_d((function(){return t._questionnaireService.representativeSubmitAnswer(t.answeredQuestionnaire,t._code)}))).subscribe((function(){t._busyService.hide(),t._navigationService.toCongratulations()}))},t}(),ET=or({encapsulation:0,styles:[[""]],data:{}});function OT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-questionnaire",[],null,[[null,"answeredQuestionnaireChange"],[null,"finalStep"]],(function(t,e,n){var r=!0,i=t.component;return"answeredQuestionnaireChange"===e&&(r=!1!==i.onAnswersChange(n)&&r),"finalStep"===e&&(r=!1!==i.onSubmit()&&r),r}),gT,hT)),pi(1,114688,null,0,cT,[Kc,Qc],{header:[0,"header"],questionnaire:[1,"questionnaire"],patientInformation:[2,"patientInformation"],answeredQuestionnaire:[3,"answeredQuestionnaire"]},{answeredQuestionnaireChange:"answeredQuestionnaireChange",finalStep:"finalStep"})],(function(t,e){t(e,1,0,e.parent.context.ngIf.header,e.parent.context.ngIf.questionnaire,e.parent.context.ngIf.patientInformation,e.component.answeredQuestionnaire)}),null)}function AT(t){return ma(0,[(t()(),Xo(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),Zo(16777216,null,null,1,null,OT)),pi(2,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),(t()(),Zo(0,null,null,0))],(function(t,e){t(e,2,0,e.context.ngIf.header&&e.context.ngIf.questionnaire&&e.context.ngIf.patientInformation)}),null)}function TT(t){return ma(2,[(t()(),Zo(16777216,null,null,5,null,AT)),pi(1,16384,null,0,qs,[Bn,Ln],{ngIf:[0,"ngIf"]},null),fi(131072,el,[Me]),fi(131072,el,[Me]),fi(131072,el,[Me]),ca(5,{header:0,questionnaire:1,patientInformation:2})],(function(t,e){var n=e.component,r=t(e,5,0,nr(e,1,0,ti(e,2).transform(n.header$)),nr(e,1,0,ti(e,3).transform(n.questionnaire$)),nr(e,1,0,ti(e,4).transform(n.patientInformation$)));t(e,1,0,r)}),null)}function DT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-representative-do-questionnaire",[],null,null,null,TT,ET)),pi(1,114688,null,0,kT,[hd,_T,zw,Gc,qc],null,null)],(function(t,e){t(e,1,0)}),null)}var IT=Ur("teinme-representative-do-questionnaire",kT,DT,{},{},[]),PT=function(){return function(){}}(),RT=or({encapsulation:0,styles:[[".congratulation-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:calc(100vh - 64px)}.congratulation-icon[_ngcontent-%COMP%]{font-size:140px;height:140px;width:140px;color:#1581b9}.congratulation-title[_ngcontent-%COMP%]{font-size:30px;margin-top:0}.congratulation-description[_ngcontent-%COMP%]{font-size:24px;margin-top:0}"]],data:{}});function NT(t){return ma(0,[fi(0,nl,[]),(t()(),Xo(1,0,null,null,10,"div",[["class","congratulation-wrapper"]],null,null,null,null,null)),(t()(),Xo(2,0,null,null,2,"mat-icon",[["class","congratulation-icon mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,WE,HE)),pi(3,9158656,null,0,qE,[fn,NE,[8,null],[2,LE],[2,ie]],null,null),(t()(),da(-1,0,[" sentiment_very_satisfied "])),(t()(),Xo(5,0,null,null,3,"p",[["class","congratulation-title"]],null,null,null,null,null)),(t()(),da(6,null,[" "," "])),fi(131072,qx,[zx,Me]),ua(8,1),(t()(),Xo(9,0,null,null,2,"p",[["class","congratulation-description"]],null,null,null,null,null)),(t()(),da(10,null,[" "," "])),fi(131072,qx,[zx,Me])],(function(t,e){t(e,3,0)}),(function(t,e){t(e,2,0,ti(e,3).inline,"primary"!==ti(e,3).color&&"accent"!==ti(e,3).color&&"warn"!==ti(e,3).color);var n=nr(e,6,0,t(e,8,0,ti(e,0),nr(e,6,0,ti(e,7).transform("congrats"))));t(e,6,0,n),t(e,10,0,nr(e,10,0,ti(e,11).transform("your_questionnaire_submitted")))}))}function MT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-congratulations",[],null,null,null,NT,RT)),pi(1,49152,null,0,PT,[],null,null)],null,null)}var jT=Ur("teinme-congratulations",PT,MT,{},{},[]),FT=function(){return function(){}}(),LT=or({encapsulation:2,styles:[],data:{}});function VT(t){return ma(0,[(t()(),Xo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),pi(1,212992,null,0,tx,[JC,Bn,cn,[8,null],Me],null,null)],(function(t,e){t(e,1,0)}),null)}function BT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-router-outlet",[],null,null,null,VT,LT)),pi(1,49152,null,0,FT,[],null,null)],null,null)}var zT=Ur("teinme-router-outlet",FT,BT,{},{},[]),qT=function(){return function(){}}(),UT=or({encapsulation:0,styles:[[""]],data:{}});function HT(t){return ma(0,[(t()(),da(-1,null,["Not Found.\n"]))],null,null)}function WT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"teinme-not-found",[],null,null,null,HT,UT)),pi(1,49152,null,0,qT,[],null,null)],null,null)}var QT=Ur("teinme-not-found",qT,WT,{},{},[]),YT=or({encapsulation:0,styles:[[""]],data:{}});function GT(t){return ma(0,[(t()(),Xo(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),pi(1,212992,null,0,tx,[JC,Bn,cn,[8,null],Me],null,null)],(function(t,e){t(e,1,0)}),null)}function KT(t){return ma(0,[(t()(),Xo(0,0,null,null,1,"app-root",[],null,null,null,GT,YT)),pi(1,49152,null,0,jd,[zx],null,null)],null,null)}var ZT=Ur("app-root",jd,KT,{},{},[]),XT=new Pt("mat-autocomplete-scroll-strategy");function $T(t){return function(){return t.scrollStrategies.reposition()}}var JT=function(){return function(){}}(),tD=new Pt("mat-menu-scroll-strategy");function eD(t){return function(){return t.scrollStrategies.reposition()}}var nD=function(){return function(){}}(),rD=function(){return function(){}}(),iD=new Pt("mat-select-scroll-strategy");function oD(t){return function(){return t.scrollStrategies.reposition()}}var aD=function(){return function(){}}(),sD=function(){function t(){this.changes=new I,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of "+n;var r=t*e;return r+1+" – "+(r<(n=Math.max(n,0))?Math.min(r+e,n):r+e)+" of "+n}}return t.ngInjectableDef=vt({factory:function(){return new t},token:t,providedIn:"root"}),t}();function lD(t){return t||new sD}var uD=function(){return function(){}}(),cD=function(){function t(){this.changes=new I,this.sortButtonLabel=function(t){return"Change sorting for "+t}}return t.ngInjectableDef=vt({factory:function(){return new t},token:t,providedIn:"root"}),t}();function hD(t){return t||new cD}var dD=function(){return function(){}}(),pD=function(){return function(){}}(),fD=function(){function t(){this.changes=new I,this.optionalLabel="Optional"}return t.ngInjectableDef=vt({factory:function(){return new t},token:t,providedIn:"root"}),t}();function mD(t){return t||new fD}var gD=function(){return function(){}}(),yD=function(){function t(t){this._navigationService=t}return t.prototype.canActivate=function(t){var e=t.params.id,n=t.queryParams.code;return e?n?this._navigationService.toRepresentativeDoQuestionnaire(e,n):this._navigationService.toQuestionnaire(e):this._navigationService.toNotFound()},t}(),_D=function(){function t(t,e){this._tokenKey=t,this._cookieService=e}return t.prototype.intercept=function(t,e){var n=this;if(t.url.endsWith("authenticate"))return e.handle(t).pipe(Hh((function(t){if(t instanceof kh&&t.body&&t.body.token){var e=new Date;e.setDate(e.getDate()+1),n._cookieService.set(n._tokenKey,t.body.token,e,"/")}})));var r=t.clone({setHeaders:{Authorization:"Bearer "+this._cookieService.get(this._tokenKey)}});return i.contains(t.url,"log-out")&&this._cookieService.remove(this._tokenKey),e.handle(r)},t}(),vD=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new bD(t,this.notifier,this.source))},t}(),bD=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return a.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{n=new I;try{r=(0,this.notifier)(n)}catch(o){return t.prototype.error.call(this,o)}i=H(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},e}(W),wD=function(){function t(t,e,n,r){this._tokenKey=t,this._notificationService=e,this._navigationService=n,this._cookieService=r}return t.prototype.intercept=function(t,e){var n,r=this;return e.handle(t).pipe((n=function(t){return t.pipe(X((function(t,e){var n=e+1;return n>3||400===t.status||401===t.status||403===t.status||404===t.status?eh(t):kp(1e3*n)})))},function(t){return t.lift(new vD(n,t))}),Hh((function(){return null}),(function(t){return r._handleError(t)})))},t.prototype._handleError=function(t){t.status&&(401===t.status?(this._notificationService.warn("your_token_is_expired"),this._cookieService.remove(this._tokenKey),this._navigationService.toSignIn()):403===t.status?(this._notificationService.warn("you_are_not_authorized"),this._cookieService.remove(this._tokenKey),this._navigationService.toSignIn()):console.log(t))},t}(),CD=new Pt("Default config for Snack Bar"),xD=new Pt("Configuration file location"),SD=new Pt("jwt token key that will be saved in cookie"),kD=function(){return function(){}}(),ED=new Pt("mat-chips-default-options"),OD=function(){return function(){}}(),AD=function(){return function(){}}(),TD=function(){return function(){}}(),DD=function(){return function(){}}(),ID=function(){return function(){}}(),PD=function(){return function(){}}(),RD=function(){return function(){}}(),ND=function(){return function(){}}(),MD=function(){return function(){}}(),jD=function(){return function(){}}(),FD=function(){return function(){}}(),LD=function(){function t(t,e){ll(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(e,n){return void 0===n&&(n=[]),{ngModule:t,providers:e.serverLoaded?[{provide:Gx,useValue:Object(a.__assign)({},Yx,e)},{provide:Zx,useValue:n,multi:!0},{provide:Kx,useValue:!0}]:[{provide:Gx,useValue:Object(a.__assign)({},Yx,e)},{provide:Zx,useValue:n,multi:!0}]}},t}(),VD=function(){return function(){}}(),BD=function(){return function(){}}(),zD=function(){return function(){}}(),qD=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[_T]}},t}(),UD=function(){return function(){}}(),HD=function(){return function(){}}(),WD=function(){return function(){}}(),QD=function(){return function(){}}(),YD={duration:2e3},GD=function(){return function(){}}(),KD=ws(Md,[jd],(function(t){return function(t){for(var e={},n=[],r=!1,i=0;i