Index: src/mapservice-webclient/dist/webclient/main-es5.5c74c916cf4bc39d4091.js
===================================================================
--- src/mapservice-webclient/dist/webclient/main-es5.5c74c916cf4bc39d4091.js	(revision fd76434bf5392cbf8d6b2aa84f2d1aa47b75a0b8)
+++ src/mapservice-webclient/dist/webclient/main-es5.5c74c916cf4bc39d4091.js	(revision fd76434bf5392cbf8d6b2aa84f2d1aa47b75a0b8)
@@ -0,0 +1,1 @@
+!function(){var e,t,n,r,i,o,a,s,u,c,l,f,h,d,p,v,g,y,m,b,w,_,k,C,S,E,T,A,x,O,I,P,j,R,D,N,V,F,U,M,H,z,q,B,G,W,Z,K,$,X,Y,Q,J,ee;function te(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e){var t="function"==typeof Map?new Map:void 0;return(ie=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return oe(e,arguments,de(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ue(r,e)})(e)}function oe(e,t,n){return(oe=he()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ue(i,n.prototype),i}).apply(null,arguments)}function ae(e,t,n){return(ae="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=de(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function se(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ue(e,t)}function ue(e,t){return(ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=he();return function(){var n,r=de(e);if(t){var i=de(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return le(this,n)}}function le(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?fe(e):t}function fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pe(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=ve(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ve(e,t){if(e){if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function be(e,t,n){return t&&me(e.prototype,t),n&&me(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+lvF":function(e,t,n){e.exports=n("VTer")("native-function-to-string",Function.toString)},"+rLv":function(e,t,n){var r=n("dyZX").document;e.exports=r&&r.documentElement},0:function(e,t,n){e.exports=n("zUnb")},"0/R4":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"0YWM":function(e,t,n){var r=n("EemH"),i=n("OP3Y"),o=n("aagx"),a=n("XKFU"),s=n("0/R4"),u=n("y3w9");a(a.S,"Reflect",{get:function e(t,n){var a,c,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=i(t))?e(c,n,l):void 0}})},"1TsA":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"2OiF":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"2pl3":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"3Lyj":function(e,t,n){var r=n("KroJ");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},"3xty":function(e,t,n){var r=n("XKFU"),i=n("2OiF"),o=n("y3w9"),a=(n("dyZX").Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n("eeVq")(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=i(e),u=o(n);return a?a(r,t,u):s.call(r,t,u)}})},"45Tv":function(e,t,n){var r=n("N6cJ"),i=n("y3w9"),o=n("OP3Y"),a=r.has,s=r.get,u=r.key,c=function e(t,n,r){if(a(t,n,r))return s(t,n,r);var i=o(n);return null!==i?e(t,i,r):void 0};r.exp({getMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},"49D4":function(e,t,n){var r=n("N6cJ"),i=n("y3w9"),o=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,i(n),o(r))}})},"4LiD":function(e,t,n){"use strict";var r=n("dyZX"),i=n("XKFU"),o=n("KroJ"),a=n("3Lyj"),s=n("Z6vF"),u=n("SlkY"),c=n("9gX7"),l=n("0/R4"),f=n("eeVq"),h=n("XMVh"),d=n("fyDq"),p=n("Xbzi");e.exports=function(e,t,n,v,g,y){var m=r[e],b=m,w=g?"set":"add",_=b&&b.prototype,k={},C=function(e){var t=_[e];o(_,e,"delete"==e||"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(y||_.forEach&&!f(function(){(new b).entries().next()}))){var S=new b,E=S[w](y?{}:-0,1)!=S,T=f(function(){S.has(1)}),A=h(function(e){new b(e)}),x=!y&&f(function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)});A||((b=t(function(t,n){c(t,b,e);var r=p(new m,t,b);return null!=n&&u(n,g,r[w],r),r})).prototype=_,_.constructor=b),(T||x)&&(C("delete"),C("has"),g&&C("get")),(x||E)&&C(w),y&&_.clear&&delete _.clear}else b=v.getConstructor(t,e,g,w),a(b.prototype,n),s.NEED=!0;return d(b,e),k[e]=b,i(i.G+i.W+i.F*(b!=m),k),y||v.setStrong(b,e,g),b}},"4R4u":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"4xY4":function(e,t,n){(function(e){(function(){var n="[object Arguments]",r="[object Array]",i="[object Boolean]",o="[object Date]",a="[object Function]",s="[object GeneratorFunction]",u="[object Map]",c="[object Number]",l="[object Object]",f="[object RegExp]",h="[object Set]",d="[object String]",p="[object Symbol]",v="[object WeakMap]",g="[object DataView]",y="[object Float32Array]",m="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",k="[object Uint8Array]",C="[object Uint16Array]",S="[object Uint32Array]",E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/,A=/^\./,x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/\\(\\)?/g,I=/\w*$/,P=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,R={};R[y]=R[m]=R[b]=R[w]=R[_]=R[k]=R["[object Uint8ClampedArray]"]=R[C]=R[S]=!0,R[n]=R[r]=R["[object ArrayBuffer]"]=R[i]=R[g]=R[o]=R["[object Error]"]=R[a]=R[u]=R[c]=R[l]=R[f]=R[h]=R[d]=R[v]=!1;var D={};D[n]=D[r]=D["[object ArrayBuffer]"]=D[g]=D[i]=D[o]=D[y]=D[m]=D[b]=D[w]=D[_]=D[u]=D[c]=D[l]=D[f]=D[h]=D[d]=D[p]=D[k]=D["[object Uint8ClampedArray]"]=D[C]=D[S]=!0,D["[object Error]"]=D[a]=D[v]=!1;var N="object"==typeof global&&global&&global.Object===Object&&global,L="object"==typeof self&&self&&self.Object===Object&&self,V=N||L||Function("return this")(),F=t&&!t.nodeType&&t,U=F&&"object"==typeof e&&e&&!e.nodeType&&e,M=U&&U.exports===F,H=M&&N.process,z=function(){try{return H&&H.binding("util")}catch(e){}}(),q=z&&z.isTypedArray;function B(e,t){return e.set(t[0],t[1]),e}function G(e,t){return e.add(t),e}function W(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Z(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}function K(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function $(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function X(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Q(e,t){return function(n){return e(t(n))}}function J(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ee,te=Array.prototype,ne=Function.prototype,re=Object.prototype,ie=V["__core-js_shared__"],oe=(ee=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",ae=ne.toString,se=re.hasOwnProperty,ue=ae.call(Object),ce=re.toString,le=RegExp("^"+ae.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=M?V.Buffer:void 0,he=V.Symbol,de=V.Uint8Array,pe=Q(Object.getPrototypeOf,Object),ve=Object.create,ge=re.propertyIsEnumerable,ye=te.splice,me=Object.getOwnPropertySymbols,be=fe?fe.isBuffer:void 0,we=Q(Object.keys,Object),_e=Math.max,ke=lt(V,"DataView"),Ce=lt(V,"Map"),Se=lt(V,"Promise"),Ee=lt(V,"Set"),Te=lt(V,"WeakMap"),Ae=lt(Object,"create"),xe=!ge.call({valueOf:1},"valueOf"),Oe=wt(ke),Ie=wt(Ce),Pe=wt(Se),je=wt(Ee),Re=wt(Te),De=he?he.prototype:void 0,Ne=De?De.valueOf:void 0,Le=De?De.toString:void 0;function Ve(){}function Fe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ue(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Me(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function He(e){var t=-1,n=e?e.length:0;for(this.__data__=new Me;++t<n;)this.add(e[t])}function ze(e){this.__data__=new Ue(e)}function qe(e,t){var n=Et(e)||St(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!se.call(e,o)||i&&("length"==o||dt(o,r))||n.push(o);return n}function Be(e,t,n){(void 0!==n&&!Ct(e[t],n)||"number"==typeof t&&void 0===n&&!(t in e))&&(e[t]=n)}function Ge(e,t,n){var r=e[t];se.call(e,t)&&Ct(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function We(e,t){for(var n=e.length;n--;)if(Ct(e[n][0],t))return n;return-1}function Ze(e,t,r,v,E,T,A){var x;if(v&&(x=T?v(e,E,T,A):v(e)),void 0!==x)return x;if(!Pt(e))return e;var O=Et(e);if(O){if(x=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&se.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return ot(e,x)}else{var P=ht(e),j=P==a||P==s;if(xt(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(P==l||P==n||j&&!T){if(X(e))return T?e:{};if(x=function(e){return"function"!=typeof e.constructor||vt(e)?{}:Pt(t=pe(e))?ve(t):{};var t}(j?{}:e),!t)return function(e,t){return at(e,ft(e),t)}(e,function(e,t){return e&&at(t,Ht(t),e)}(x,e))}else{if(!D[P])return T?e:{};x=function(e,t,n,r){var a=e.constructor;switch(t){case"[object ArrayBuffer]":return it(e);case i:case o:return new a(+e);case g:return function(e,t){var n=t?it(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case y:case m:case b:case w:case _:case k:case"[object Uint8ClampedArray]":case C:case S:return function(e,t){var n=t?it(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){return K(t?n(Y(e),!0):Y(e),B,new e.constructor)}(e,r,n);case c:case d:return new a(e);case f:return function(e){var t=new e.constructor(e.source,I.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return K(t?n(J(e),!0):J(e),G,new e.constructor)}(e,r,n);case p:return Ne?Object(Ne.call(e)):{}}}(e,P,Ze,t)}}A||(A=new ze);var R=A.get(e);if(R)return R;if(A.set(e,x),!O)var N=r?function(e){return function(e,t,n){var r=t(e);return Et(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Ht,ft)}(e):Ht(e);return Z(N||e,function(n,i){N&&(n=e[i=n]),Ge(x,i,Ze(n,t,r,v,i,e,A))}),x}Fe.prototype.clear=function(){this.__data__=Ae?Ae(null):{}},Fe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Fe.prototype.get=function(e){var t=this.__data__;if(Ae){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return se.call(t,e)?t[e]:void 0},Fe.prototype.has=function(e){var t=this.__data__;return Ae?void 0!==t[e]:se.call(t,e)},Fe.prototype.set=function(e,t){return this.__data__[e]=Ae&&void 0===t?"__lodash_hash_undefined__":t,this},Ue.prototype.clear=function(){this.__data__=[]},Ue.prototype.delete=function(e){var t=this.__data__,n=We(t,e);return!(n<0||(n==t.length-1?t.pop():ye.call(t,n,1),0))},Ue.prototype.get=function(e){var t=this.__data__,n=We(t,e);return n<0?void 0:t[n][1]},Ue.prototype.has=function(e){return We(this.__data__,e)>-1},Ue.prototype.set=function(e,t){var n=this.__data__,r=We(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Me.prototype.clear=function(){this.__data__={hash:new Fe,map:new(Ce||Ue),string:new Fe}},Me.prototype.delete=function(e){return ct(this,e).delete(e)},Me.prototype.get=function(e){return ct(this,e).get(e)},Me.prototype.has=function(e){return ct(this,e).has(e)},Me.prototype.set=function(e,t){return ct(this,e).set(e,t),this},He.prototype.add=He.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},He.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.clear=function(){this.__data__=new Ue},ze.prototype.delete=function(e){return this.__data__.delete(e)},ze.prototype.get=function(e){return this.__data__.get(e)},ze.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ue){var r=n.__data__;if(!Ce||r.length<199)return r.push([e,t]),this;n=this.__data__=new Me(r)}return n.set(e,t),this};var Ke,$e=(Ke=function(e,t){return e&&Xe(e,t,Ht)},function(e,t){if(null==e)return e;if(!Tt(e))return Ke(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e}),Xe=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function Ye(e,t){for(var n=0,r=(t=pt(t,e)?[t]:rt(t)).length;null!=e&&n<r;)e=e[bt(t[n++])];return n&&n==r?e:void 0}function Qe(e,t){return null!=e&&t in Object(e)}function Je(e,t,a,s,v){return e===t||(null==e||null==t||!Pt(e)&&!jt(t)?e!=e&&t!=t:function(e,t,a,s,v,y){var m=Et(e),b=Et(t),w=r,_=r;m||(w=(w=ht(e))==n?l:w),b||(_=(_=ht(t))==n?l:_);var k=w==l&&!X(e),C=_==l&&!X(t),S=w==_;if(S&&!k)return y||(y=new ze),m||Lt(e)?st(e,t,a,s,v,y):function(e,t,n,r,a,s,l){switch(n){case g:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new de(e),new de(t)));case i:case o:case c:return Ct(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case f:case d:return e==t+"";case u:var v=Y;case h:if(v||(v=J),e.size!=t.size&&!(2&s))return!1;var y=l.get(e);if(y)return y==t;s|=1,l.set(e,t);var m=st(v(e),v(t),r,a,s,l);return l.delete(e),m;case p:if(Ne)return Ne.call(e)==Ne.call(t)}return!1}(e,t,w,a,s,v,y);if(!(2&v)){var E=k&&se.call(e,"__wrapped__"),T=C&&se.call(t,"__wrapped__");if(E||T){var A=E?e.value():e,x=T?t.value():t;return y||(y=new ze),a(A,x,s,v,y)}}return!!S&&(y||(y=new ze),function(e,t,n,r,i,o){var a=2&i,s=Ht(e),u=s.length;if(u!=Ht(t).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in t:se.call(t,l)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var h=!0;o.set(e,t),o.set(t,e);for(var d=a;++c<u;){var p=e[l=s[c]],v=t[l];if(r)var g=a?r(v,p,l,t,e,o):r(p,v,l,e,t,o);if(!(void 0===g?p===v||n(p,v,r,i,o):g)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,a,s,v,y))}(e,t,Je,a,s,v))}function et(e){return"function"==typeof e?e:null==e?Bt:"object"==typeof e?Et(e)?(i=e[1],pt(r=e[0])&&gt(i)?yt(bt(r),i):function(e){var t=Ut(e,r);return void 0===t&&t===i?Mt(e,r):Je(i,t,void 0,3)}):1==(n=function(e){for(var t=Ht(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,gt(i)]}return t}(t=e)).length&&n[0][2]?yt(n[0][0],n[0][1]):function(e){return e===t||function(e,t,n,r){var i=n.length,o=i;if(null==e)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var s=(a=n[i])[0],u=e[s];if(a[2]){if(void 0===u&&!(s in e))return!1}else if(!Je(a[1],u,void 0,3,new ze))return!1}return!0}(e,0,n)}:Wt(e);var t,n,r,i}function tt(e){if(!Pt(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=vt(e),n=[];for(var r in e)("constructor"!=r||!t&&se.call(e,r))&&n.push(r);return n}function nt(e,t,n,r,i){if(e!==t){if(!Et(t)&&!Lt(t))var o=tt(t);Z(o||t,function(a,s){if(o&&(a=t[s=a]),Pt(a))i||(i=new ze),function(e,t,n,r,i,o,a){var s=e[n],u=t[n],c=a.get(u);if(c)Be(e,n,c);else{var l=o?o(s,u,n+"",e,t,a):void 0,f=void 0===l;f&&(l=u,Et(u)||Lt(u)?Et(s)?l=s:At(s)?l=ot(s):(f=!1,l=Ze(u,!0)):Rt(u)||St(u)?St(s)?l=Vt(s):!Pt(s)||r&&Ot(s)?(f=!1,l=Ze(u,!0)):l=s:f=!1),f&&(a.set(u,l),i(l,u,r,o,a),a.delete(u)),Be(e,n,l)}}(e,t,s,n,nt,r,i);else{var u=r?r(e[s],a,s+"",e,t,i):void 0;void 0===u&&(u=a),Be(e,s,u)}})}}function rt(e){return Et(e)?e:mt(e)}function it(e){var t=new e.constructor(e.byteLength);return new de(t).set(new de(e)),t}function ot(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function at(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;Ge(n,a,void 0===s?e[a]:s)}return n}function st(e,t,n,r,i,o){var a=2&i,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var l=-1,f=!0,h=1&i?new He:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var d=e[l],p=t[l];if(r)var v=a?r(p,d,l,t,e,o):r(d,p,l,e,t,o);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!$(t,function(e,t){if(!h.has(t)&&(d===e||n(d,e,r,i,o)))return h.add(t)})){f=!1;break}}else if(d!==p&&!n(d,p,r,i,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function ut(){var e=Ve.iteratee||Gt;return e=e===Gt?et:e,arguments.length?e(arguments[0],arguments[1]):e}function ct(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function lt(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Pt(e)||(t=e,oe&&oe in t))&&(Ot(e)||X(e)?le:P).test(wt(e));var t}(n)?n:void 0}var ft=me?Q(me,Object):Zt,ht=function(e){return ce.call(e)};function dt(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||j.test(e))&&e>-1&&e%1==0&&e<t}function pt(e,t){if(Et(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Dt(e))||T.test(e)||!E.test(e)||null!=t&&e in Object(t)}function vt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||re)}function gt(e){return e==e&&!Pt(e)}function yt(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}(ke&&ht(new ke(new ArrayBuffer(1)))!=g||Ce&&ht(new Ce)!=u||Se&&"[object Promise]"!=ht(Se.resolve())||Ee&&ht(new Ee)!=h||Te&&ht(new Te)!=v)&&(ht=function(e){var t=ce.call(e),n=t==l?e.constructor:void 0,r=n?wt(n):void 0;if(r)switch(r){case Oe:return g;case Ie:return u;case Pe:return"[object Promise]";case je:return h;case Re:return v}return t});var mt=kt(function(e){e=Ft(e);var t=[];return A.test(e)&&t.push(""),e.replace(x,function(e,n,r,i){t.push(r?i.replace(O,"$1"):n||e)}),t});function bt(e){if("string"==typeof e||Dt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function wt(e){if(null!=e){try{return ae.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function _t(e,t){return(Et(e)?Z:$e)(e,ut(t,3))}function kt(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(kt.Cache||Me),n}function Ct(e,t){return e===t||e!=e&&t!=t}function St(e){return At(e)&&se.call(e,"callee")&&(!ge.call(e,"callee")||ce.call(e)==n)}kt.Cache=Me;var Et=Array.isArray;function Tt(e){return null!=e&&It(e.length)&&!Ot(e)}function At(e){return jt(e)&&Tt(e)}var xt=be||Kt;function Ot(e){var t=Pt(e)?ce.call(e):"";return t==a||t==s}function It(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Pt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function jt(e){return!!e&&"object"==typeof e}function Rt(e){if(!jt(e)||ce.call(e)!=l||X(e))return!1;var t=pe(e);if(null===t)return!0;var n=se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ae.call(n)==ue}function Dt(e){return"symbol"==typeof e||jt(e)&&ce.call(e)==p}var Nt,Lt=q?(Nt=q,function(e){return Nt(e)}):function(e){return jt(e)&&It(e.length)&&!!R[ce.call(e)]};function Vt(e){return at(e,zt(e))}function Ft(e){return null==e?"":function(e){if("string"==typeof e)return e;if(Dt(e))return Le?Le.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function Ut(e,t,n){var r=null==e?void 0:Ye(e,t);return void 0===r?n:r}function Mt(e,t){return null!=e&&function(e,t,n){for(var r,i=-1,o=(t=pt(t,e)?[t]:rt(t)).length;++i<o;){var a=bt(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}return r||!!(o=e?e.length:0)&&It(o)&&dt(a,o)&&(Et(e)||St(e))}(e,t,Qe)}function Ht(e){return Tt(e)?qe(e):function(e){if(!vt(e))return we(e);var t=[];for(var n in Object(e))se.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}function zt(e){return Tt(e)?qe(e,!0):tt(e)}var qt=function(e){return t=function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!Pt(n))return!1;var r=typeof t;return!!("number"==r?Tt(n)&&dt(t,n.length):"string"==r&&t in n)&&Ct(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r)}return t},n=_e(void 0===n?t.length-1:n,0),function(){for(var e=arguments,r=-1,i=_e(e.length-n,0),o=Array(i);++r<i;)o[r]=e[n+r];r=-1;for(var a=Array(n+1);++r<n;)a[r]=e[r];return a[n]=o,W(t,this,a)};var t,n}(function(e,t,n){nt(e,t,n)});function Bt(e){return e}function Gt(e){return et("function"==typeof e?e:Ze(e,!0))}function Wt(e){return pt(e)?(t=bt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Ye(t,e)}}(e);var t}function Zt(){return[]}function Kt(){return!1}Ve.compact=function(e){for(var t=-1,n=e?e.length:0,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Ve.iteratee=Gt,Ve.keys=Ht,Ve.keysIn=zt,Ve.memoize=kt,Ve.merge=qt,Ve.property=Wt,Ve.toPlainObject=Vt,Ve.clone=function(e){return Ze(e,!1,!0)},Ve.eq=Ct,Ve.forEach=_t,Ve.get=Ut,Ve.hasIn=Mt,Ve.identity=Bt,Ve.isArguments=St,Ve.isArray=Et,Ve.isArrayLike=Tt,Ve.isArrayLikeObject=At,Ve.isBuffer=xt,Ve.isEmpty=function(e){if(Tt(e)&&(Et(e)||"string"==typeof e||"function"==typeof e.splice||xt(e)||St(e)))return!e.length;var t=ht(e);if(t==u||t==h)return!e.size;if(xe||vt(e))return!we(e).length;for(var n in e)if(se.call(e,n))return!1;return!0},Ve.isFunction=Ot,Ve.isLength=It,Ve.isObject=Pt,Ve.isObjectLike=jt,Ve.isPlainObject=Rt,Ve.isSymbol=Dt,Ve.isTypedArray=Lt,Ve.stubArray=Zt,Ve.stubFalse=Kt,Ve.toString=Ft,Ve.each=_t,Ve.VERSION="4.15.0",U&&((U.exports=Ve)._=Ve,F._=Ve)}).call(this)}).call(this,n("2pl3")(e))},"694e":function(e,t,n){var r=n("EemH"),i=n("XKFU"),o=n("y3w9");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},"6FMO":function(e,t,n){var r=n("0/R4"),i=n("EWmC"),o=n("K0xU")("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},"7Dlh":function(e,t,n){var r=n("N6cJ"),i=n("y3w9"),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},"8MEG":function(e,t,n){"use strict";var r=n("2OiF"),i=n("0/R4"),o=n("MfQN"),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function r(){var i=n.concat(a.call(arguments));return this instanceof r?u(t,i.length,i):o(t,i,e)};return i(t.prototype)&&(s.prototype=t.prototype),s}},"9AAn":function(e,t,n){"use strict";var r=n("wmvG"),i=n("s5qY");e.exports=n("4LiD")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},"9NWu":function(e){e.exports=JSON.parse('[{"key":"building","polygon":"all"},{"key":"highway","polygon":"whitelist","values":["services","rest_area","escape","elevator"]},{"key":"natural","polygon":"blacklist","values":["coastline","cliff","ridge","arete","tree_row"]},{"key":"landuse","polygon":"all"},{"key":"waterway","polygon":"whitelist","values":["riverbank","dock","boatyard","dam"]},{"key":"amenity","polygon":"all"},{"key":"leisure","polygon":"all"},{"key":"barrier","polygon":"whitelist","values":["city_wall","ditch","hedge","retaining_wall","wall","spikes"]},{"key":"railway","polygon":"whitelist","values":["station","turntable","roundhouse","platform"]},{"key":"area","polygon":"all"},{"key":"boundary","polygon":"all"},{"key":"man_made","polygon":"blacklist","values":["cutline","embankment","pipeline"]},{"key":"power","polygon":"whitelist","values":["plant","substation","generator","transformer"]},{"key":"place","polygon":"all"},{"key":"shop","polygon":"all"},{"key":"aeroway","polygon":"blacklist","values":["taxiway"]},{"key":"tourism","polygon":"all"},{"key":"historic","polygon":"all"},{"key":"public_transport","polygon":"all"},{"key":"office","polygon":"all"},{"key":"building:part","polygon":"all"},{"key":"military","polygon":"all"},{"key":"ruins","polygon":"all"},{"key":"area:highway","polygon":"all"},{"key":"craft","polygon":"all"},{"key":"golf","polygon":"all"},{"key":"indoor","polygon":"all"}]')},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},"9rMk":function(e,t,n){var r=n("XKFU");r(r.S,"Reflect",{has:function(e,t){return t in e}})},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),i=n("XKFU"),o=n("KroJ"),a=n("Mukb"),s=n("hPIQ"),u=n("QaDb"),c=n("fyDq"),l=n("OP3Y"),f=n("K0xU")("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,p,v,g,y){u(n,t,p);var m,b,w,_=function(e){if(!h&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C="values"==v,S=!1,E=e.prototype,T=E[f]||E["@@iterator"]||v&&E[v],A=T||_(v),x=v?C?_("entries"):A:void 0,O="Array"==t&&E.entries||T;if(O&&(w=l(O.call(new e)))!==Object.prototype&&w.next&&(c(w,k,!0),r||"function"==typeof w[f]||a(w,f,d)),C&&T&&"values"!==T.name&&(S=!0,A=function(){return T.call(this)}),r&&!y||!h&&!S&&E[f]||a(E,f,A),s[t]=A,s[k]=d,v)if(m={values:C?A:_("values"),keys:g?A:_("keys"),entries:x},y)for(b in m)b in E||o(E,b,m[b]);else i(i.P+i.F*(h||S),t,m);return m}},Aib3:function(e,t,n){var r=n("mhV4");function i(e,t){return function(n){return e(n,t)}}function o(e,t){e[0]=a(e[0],t=!!t);for(var n=1;n<e.length;n++)e[n]=a(e[n],!t);return e}function a(e,t){return function(e){return r.ring(e)>=0}(e)===t?e:e.reverse()}e.exports=function e(t,n){switch(t&&t.type||null){case"FeatureCollection":return t.features=t.features.map(i(e,n)),t;case"GeometryCollection":return t.geometries=t.geometries.map(i(e,n)),t;case"Feature":return t.geometry=e(t.geometry,n),t;case"Polygon":case"MultiPolygon":return function(e,t){return"Polygon"===e.type?e.coordinates=o(e.coordinates,t):"MultiPolygon"===e.type&&(e.coordinates=e.coordinates.map(i(o,t))),e}(t,n);default:return t}}},BqfV:function(e,t,n){var r=n("N6cJ"),i=n("y3w9"),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},CkkT:function(e,t,n){var r=n("m0Pp"),i=n("Ymqv"),o=n("S/j/"),a=n("ne8i"),s=n("zRwo");e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,f=6==e,h=5==e||f,d=t||s;return function(t,s,p){for(var v,g,y=o(t),m=i(y),b=r(s,p,3),w=a(m.length),_=0,k=n?d(t,w):u?d(t,0):void 0;w>_;_++)if((h||_ in m)&&(g=b(v=m[_],_,y),e))if(n)k[_]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:k.push(v)}else if(l)return!1;return f?-1:c||l?l:k}}},DVgA:function(e,t,n){var r=n("zhAb"),i=n("4R4u");e.exports=Object.keys||function(e){return r(e,i)}},E6f0:function(e,t,n){var r,i=n("4xY4"),o=n("Aib3"),a={};function s(e,t){return(e.version||t.version)&&e.version!==t.version?(+e.version||0)>(+t.version||0)?e:t:i.merge(e,t)}function u(e){for(var t,n,r,i,o,a,s=function(e){return e[0]},u=function(e){return e[e.length-1]},c=function(e,t){return void 0!==e&&void 0!==t&&e.id===t.id},l=[];e.length;)for(t=e.pop().nodes.slice(),l.push(t);e.length&&!c(s(t),u(t));){for(n=s(t),r=u(t),i=0;i<e.length;i++){if(c(r,s(a=e[i].nodes))){o=t.push,a=a.slice(1);break}if(c(r,u(a))){o=t.push,a=a.slice(0,-1).reverse();break}if(c(n,u(a))){o=t.unshift,a=a.slice(0,-1);break}if(c(n,s(a))){o=t.unshift,a=a.slice(1).reverse();break}a=o=null}if(!a)break;e.splice(i,1),o.apply(t,a)}return l}n("JxlR").forEach(function(e){if("all"===e.polygon)a[e.key]=!0;else{var t="whitelist"===e.polygon?"included_values":"excluded_values",n={};e.values.forEach(function(e){n[e]=!0}),a[e.key]={},a[e.key][t]=n}}),(r=function(e,t,n){return t=i.merge({verbose:!1,flatProperties:!0,uninterestingTags:{source:!0,source_ref:!0,"source:ref":!0,history:!0,attribution:!0,created_by:!0,"tiger:county":!0,"tiger:tlid":!0,"tiger:upload_uuid":!0},polygonFeatures:a,deduplicator:s},t),"undefined"!=typeof XMLDocument&&e instanceof XMLDocument||"undefined"==typeof XMLDocument&&e.childNodes?function(e){var t,n,o=new Array,a=new Array,s=new Array;function u(e,t,n){e.hasAttribute(n)&&(t[n]=e.getAttribute(n))}function c(e,t){var n=i.clone(e);u(t,n,"lat"),u(t,n,"lon"),n.__is_center_placeholder=!0,o.push(n)}function l(e,t){var n=i.clone(e);function r(e,t,r){var i={type:"node",id:"_"+n.type+"/"+n.id+"bounds"+r,lat:e,lon:t};n.nodes.push(i.id),o.push(i)}n.nodes=[],r(t.getAttribute("minlat"),t.getAttribute("minlon"),1),r(t.getAttribute("maxlat"),t.getAttribute("minlon"),2),r(t.getAttribute("maxlat"),t.getAttribute("maxlon"),3),r(t.getAttribute("minlat"),t.getAttribute("maxlon"),4),n.nodes.push(n.nodes[0]),n.__is_bounds_placeholder=!0,a.push(n)}return i.each(e.getElementsByTagName("node"),function(e,t){var n={};i.each(e.getElementsByTagName("tag"),function(e){n[e.getAttribute("k")]=e.getAttribute("v")});var r={type:"node"};u(e,r,"id"),u(e,r,"lat"),u(e,r,"lon"),u(e,r,"version"),u(e,r,"timestamp"),u(e,r,"changeset"),u(e,r,"uid"),u(e,r,"user"),i.isEmpty(n)||(r.tags=n),o.push(r)}),i.each(e.getElementsByTagName("way"),function(e,r){var s={},f=[];i.each(e.getElementsByTagName("tag"),function(e){s[e.getAttribute("k")]=e.getAttribute("v")});var h=!1;i.each(e.getElementsByTagName("nd"),function(e,t){var n;(n=e.getAttribute("ref"))&&(f[t]=n),!h&&e.getAttribute("lat")&&(h=!0)});var d={type:"way"};u(e,d,"id"),u(e,d,"version"),u(e,d,"timestamp"),u(e,d,"changeset"),u(e,d,"uid"),u(e,d,"user"),f.length>0&&(d.nodes=f),i.isEmpty(s)||(d.tags=s),(t=e.getElementsByTagName("center")[0])&&c(d,t),h?function(e,t){i.isArray(e.nodes)||(e.nodes=[],i.each(t,function(t,n){e.nodes.push("_anonymous@"+t.getAttribute("lat")+"/"+t.getAttribute("lon"))})),i.each(t,function(t,n){var r,i;t.getAttribute("lat")&&(r=t.getAttribute("lat"),i=t.getAttribute("lon"),o.push({type:"node",id:e.nodes[n],lat:r,lon:i}))})}(d,e.getElementsByTagName("nd")):(n=e.getElementsByTagName("bounds")[0])&&l(d,n),a.push(d)}),i.each(e.getElementsByTagName("relation"),function(e,r){var f={},h=[];i.each(e.getElementsByTagName("tag"),function(e){f[e.getAttribute("k")]=e.getAttribute("v")});var d=!1;i.each(e.getElementsByTagName("member"),function(e,t){h[t]={},u(e,h[t],"ref"),u(e,h[t],"role"),u(e,h[t],"type"),(!d&&"node"==h[t].type&&e.getAttribute("lat")||"way"==h[t].type&&e.getElementsByTagName("nd").length>0)&&(d=!0)});var p={type:"relation"};u(e,p,"id"),u(e,p,"version"),u(e,p,"timestamp"),u(e,p,"changeset"),u(e,p,"uid"),u(e,p,"user"),h.length>0&&(p.members=h),i.isEmpty(f)||(p.tags=f),(t=e.getElementsByTagName("center")[0])&&c(p,t),d?function(e,t){i.each(t,function(t,n){var r,s;"node"==e.members[n].type?t.getAttribute("lat")&&(r=t.getAttribute("lat"),s=t.getAttribute("lon"),o.push({type:"node",id:e.members[n].ref,lat:r,lon:s})):"way"==e.members[n].type&&t.getElementsByTagName("nd").length>0&&(e.members[n].ref="_fullGeom"+e.members[n].ref,function(e,t){if(!a.some(function(e){return"way"==e.type&&e.id==t})){var n={type:"way",id:t,nodes:[]};i.each(e,function(e){var t,r,i;e.getAttribute("lat")?(t=e.getAttribute("lat"),r=e.getAttribute("lon"),n.nodes.push((i={type:"node",id:"_anonymous@"+t+"/"+r,lat:t,lon:r}).id),o.push(i)):n.nodes.push(void 0)}),a.push(n)}}(t.getElementsByTagName("nd"),e.members[n].ref))})}(p,e.getElementsByTagName("member")):(n=e.getElementsByTagName("bounds")[0])&&l(p,n),s.push(p)}),r(o,a,s)}(e):function(e){var t=new Array,n=new Array,o=new Array;function a(e){var n=i.clone(e);n.lat=e.center.lat,n.lon=e.center.lon,n.__is_center_placeholder=!0,t.push(n)}function s(e){var r=i.clone(e);function o(e,n,i){var o={type:"node",id:"_"+r.type+"/"+r.id+"bounds"+i,lat:e,lon:n};r.nodes.push(o.id),t.push(o)}r.nodes=[],o(r.bounds.minlat,r.bounds.minlon,1),o(r.bounds.maxlat,r.bounds.minlon,2),o(r.bounds.maxlat,r.bounds.maxlon,3),o(r.bounds.minlat,r.bounds.maxlon,4),r.nodes.push(r.nodes[0]),r.__is_bounds_placeholder=!0,n.push(r)}function u(e){i.isArray(e.nodes)||(e.nodes=e.geometry.map(function(e){return null!==e?"_anonymous@"+e.lat+"/"+e.lon:"_anonymous@unknown_location"})),e.geometry.forEach(function(n,r){n&&t.push({type:"node",id:e.nodes[r],lat:n.lat,lon:n.lon})})}function c(e){e.members.forEach(function(e,r){"node"==e.type?e.lat&&t.push({type:"node",id:e.ref,lat:e.lat,lon:e.lon}):"way"==e.type&&e.geometry&&(e.ref="_fullGeom"+e.ref,function(e,r){if(!n.some(function(e){return"way"==e.type&&e.id==r})){var i={type:"way",id:r,nodes:[]};e.forEach(function(e){var n,r,o;e?(i.nodes.push((o={type:"node",id:"_anonymous@"+(n=e.lat)+"/"+(r=e.lon),lat:n,lon:r}).id),t.push(o)):i.nodes.push(void 0)}),n.push(i)}}(e.geometry,e.ref))})}for(var l=0;l<e.elements.length;l++)switch(e.elements[l].type){case"node":t.push(e.elements[l]);break;case"way":var f=i.clone(e.elements[l]);f.nodes=i.clone(f.nodes),n.push(f),f.center&&a(f),f.geometry?u(f):f.bounds&&s(f);break;case"relation":var h=i.clone(e.elements[l]);h.members=i.clone(h.members),o.push(h);var d=h.members&&h.members.some(function(e){return"node"==e.type&&e.lat||"way"==e.type&&e.geometry&&e.geometry.length>0});h.center&&a(h),d?c(h):h.bounds&&s(h)}return r(t,n,o)}(e);function r(e,r,a){function s(e,n){if("object"!=typeof n&&(n={}),"function"==typeof t.uninterestingTags)return!t.uninterestingTags(e,n);for(var r in e)if(!0!==t.uninterestingTags[r]&&!0!==n[r]&&n[r]!==e[r])return!0;return!1}function l(e){var t={timestamp:e.timestamp,version:e.version,changeset:e.changeset,user:e.user,uid:e.uid};for(var n in t)void 0===t[n]&&delete t[n];return t}for(var f=new Object,h=new Object,d=0;d<e.length;d++)void 0!==f[(w=e[d]).id]&&(w=t.deduplicator(w,f[w.id])),f[w.id]=w,void 0!==w.tags&&s(w.tags)&&(h[w.id]=!0);for(d=0;d<a.length;d++)if(i.isArray(a[d].members))for(var p=0;p<a[d].members.length;p++)"node"==a[d].members[p].type&&(h[a[d].members[p].ref]=!0);var v=new Object,g=new Object;for(d=0;d<r.length;d++){var y=r[d];if(v[y.id]&&(y=t.deduplicator(y,v[y.id])),v[y.id]=y,i.isArray(y.nodes))for(p=0;p<y.nodes.length;p++)"object"!=typeof y.nodes[p]&&(g[y.nodes[p]]=!0,y.nodes[p]=f[y.nodes[p]])}var m=new Array;for(var b in f){var w=f[b];g[b]&&!h[b]||m.push(w)}var _=new Array;for(d=0;d<a.length;d++)_[(S=a[d]).id]&&(S=t.deduplicator(S,_[S.id])),_[S.id]=S;var k,C={node:{},way:{},relation:{}};for(var b in _){var S;if(i.isArray((S=_[b]).members))for(p=0;p<S.members.length;p++){var E=S.members[p].type,T=S.members[p].ref;"number"!=typeof T&&(T=T.replace("_fullGeom","")),C[E]?(void 0===C[E][T]&&(C[E][T]=[]),C[E][T].push({role:S.members[p].role,rel:S.id,reltags:S.tags})):t.verbose&&console.warn("Relation",S.type+"/"+S.id,"member",E+"/"+T,"ignored because it has an invalid type")}else t.verbose&&console.warn("Relation",S.type+"/"+S.id,"ignored because it has no members")}var A=[];for(d=0;d<m.length;d++)if(void 0!==m[d].lon&&void 0!==m[d].lat){var x={type:"Feature",id:m[d].type+"/"+m[d].id,properties:{type:m[d].type,id:m[d].id,tags:m[d].tags||{},relations:C.node[m[d].id]||[],meta:l(m[d])},geometry:{type:"Point",coordinates:[+m[d].lon,+m[d].lat]}};m[d].__is_center_placeholder&&(x.properties.geometry="center"),n?n(x):A.push(x)}else t.verbose&&console.warn("POI",m[d].type+"/"+m[d].id,"ignored because it lacks coordinates");var O=[],I=[];for(d=0;d<a.length;d++)if(_[a[d].id]===a[d]){if(void 0!==a[d].tags&&("route"==a[d].tags.type||"waterway"==a[d].tags.type)){if(!i.isArray(a[d].members)){t.verbose&&console.warn("Route",a[d].type+"/"+a[d].id,"ignored because it has no members");continue}if(a[d].members.forEach(function(e){v[e.ref]&&!s(v[e.ref].tags)&&(v[e.ref].is_skippablerelationmember=!0)}),!1===(x=function(e){var n,r,o,a=!1;if(n=(n=e.members.filter(function(e){return"way"===e.type})).map(function(n){var r=v[n.ref];return void 0===r||void 0===r.nodes?(t.verbose&&console.warn("Route "+e.type+"/"+e.id,"tainted by a missing or incomplete  way",n.type+"/"+n.ref),void(a=!0)):{id:n.ref,role:n.role,way:r,nodes:r.nodes.filter(function(r){return void 0!==r||(a=!0,t.verbose&&console.warn("Route",e.type+"/"+e.id,"tainted by a way",n.type+"/"+n.ref,"with a missing node"),!1)})}}),r=u(n=i.compact(n)),0==(o=i.compact(r.map(function(e){return i.compact(e.map(function(e){return[+e.lon,+e.lat]}))}))).length)return t.verbose&&console.warn("Route",e.type+"/"+e.id,"contains no coordinates"),!1;var s={type:"Feature",id:e.type+"/"+e.id,properties:{type:e.type,id:e.id,tags:e.tags||{},relations:C[e.type][e.id]||[],meta:l(e)},geometry:{type:1===o.length?"LineString":"MultiLineString",coordinates:1===o.length?o[0]:o}};return a&&(t.verbose&&console.warn("Route",e.type+"/"+e.id,"is tainted"),s.properties.tainted=!0),s}(a[d]))){t.verbose&&console.warn("Route relation",a[d].type+"/"+a[d].id,"ignored because it has invalid geometry");continue}n?n(o(x)):I.push(x)}if(void 0!==a[d].tags&&("multipolygon"==a[d].tags.type||"boundary"==a[d].tags.type)){var P=function(e,n){var r,o,a,s,c=!1,f=R?"way":"relation",h="number"==typeof e.id?e.id:+e.id.replace("_fullGeom","");function d(e){var t,n=function(e,t){for(var n=0;n<t.length;n++)if(i(t[n],e))return!0;return!1},r=function(e){return e.map(function(e){return[+e.lat,+e.lon]})},i=function(e,t){for(var n=e[0],r=e[1],i=!1,o=0,a=t.length-1;o<t.length;a=o++){var s=t[o][0],u=t[o][1],c=t[a][1];u>r!=c>r&&n<(t[a][0]-s)*(r-u)/(c-u)+s&&(i=!i)}return i};for(e=r(e),t=0;t<o.length;t++)if(n(r(o[t]),e))return t}r=(r=n.members.filter(function(e){return"way"===e.type})).map(function(e){var n=v[e.ref];return void 0===n||void 0===n.nodes?(t.verbose&&console.warn("Multipolygon",f+"/"+h,"tainted by a missing or incomplete way",e.type+"/"+e.ref),void(c=!0)):{id:e.ref,role:e.role||"outer",way:n,nodes:n.nodes.filter(function(n){return void 0!==n||(c=!0,t.verbose&&console.warn("Multipolygon",f+"/"+h,"tainted by a way",e.type+"/"+e.ref,"with a missing node"),!1)})}}),r=i.compact(r),o=u(r.filter(function(e){return"outer"===e.role})),a=u(r.filter(function(e){return"inner"===e.role})),s=o.map(function(e){return[e]});for(var p=0;p<a.length;p++){var g=d(a[p]);void 0!==g?s[g].push(a[p]):t.verbose&&console.warn("Multipolygon",f+"/"+h,"contains an inner ring with no containing outer")}var y=[];if(0==(y=i.compact(s.map(function(e){var n=i.compact(e.map(function(e){if(!(e.length<4))return i.compact(e.map(function(e){return[+e.lon,+e.lat]}));t.verbose&&console.warn("Multipolygon",f+"/"+h,"contains a ring with less than four nodes")}));if(0!=n.length)return n;t.verbose&&console.warn("Multipolygon",f+"/"+h,"contains an empty ring cluster")}))).length)return t.verbose&&console.warn("Multipolygon",f+"/"+h,"contains no coordinates"),!1;var m="MultiPolygon";1===y.length&&(m="Polygon",y=y[0]);var b={type:"Feature",id:e.type+"/"+h,properties:{type:e.type,id:h,tags:e.tags||{},relations:C[e.type][e.id]||[],meta:l(e)},geometry:{type:m,coordinates:y}};return c&&(t.verbose&&console.warn("Multipolygon",f+"/"+h,"is tainted"),b.properties.tainted=!0),b};if(!i.isArray(a[d].members)){t.verbose&&console.warn("Multipolygon",a[d].type+"/"+a[d].id,"ignored because it has no members");continue}var j=0;for(p=0;p<a[d].members.length;p++)"outer"==a[d].members[p].role?j++:t.verbose&&"inner"!=a[d].members[p].role&&console.warn("Multipolygon",a[d].type+"/"+a[d].id,"member",a[d].members[p].type+"/"+a[d].members[p].ref,'ignored because it has an invalid role: "'+a[d].members[p].role+'"');if(a[d].members.forEach(function(e){v[e.ref]&&("outer"!==e.role||s(v[e.ref].tags,a[d].tags)||(v[e.ref].is_skippablerelationmember=!0),"inner"!==e.role||s(v[e.ref].tags)||(v[e.ref].is_skippablerelationmember=!0))}),0==j){t.verbose&&console.warn("Multipolygon relation",a[d].type+"/"+a[d].id,"ignored because it has no outer ways");continue}var R=!1;if(1!=j||s(a[d].tags,{type:!0})||(R=!0),x=null,R){var D=a[d].members.filter(function(e){return"outer"===e.role})[0];if(void 0===(D=v[D.ref])){t.verbose&&console.warn("Multipolygon relation",a[d].type+"/"+a[d].id,"ignored because outer way",D.type+"/"+D.ref,"is missing");continue}D.is_skippablerelationmember=!0,x=P(D,a[d])}else x=P(a[d],a[d]);if(!1===x){t.verbose&&console.warn("Multipolygon relation",a[d].type+"/"+a[d].id,"ignored because it has invalid geometry");continue}n?n(o(x)):I.push(x)}}for(d=0;d<r.length;d++)if(v[r[d].id]===r[d])if(i.isArray(r[d].nodes)){if(!r[d].is_skippablerelationmember){"number"!=typeof r[d].id&&(r[d].id=+r[d].id.replace("_fullGeom","")),r[d].tainted=!1,r[d].hidden=!1;var N=new Array;for(p=0;p<r[d].nodes.length;p++)"object"==typeof r[d].nodes[p]?N.push([+r[d].nodes[p].lon,+r[d].nodes[p].lat]):(t.verbose&&console.warn("Way",r[d].type+"/"+r[d].id,"is tainted by an invalid node"),r[d].tainted=!0);if(N.length<=1)t.verbose&&console.warn("Way",r[d].type+"/"+r[d].id,"ignored because it contains too few nodes");else{var L="LineString";void 0!==r[d].nodes[0]&&void 0!==r[d].nodes[r[d].nodes.length-1]&&r[d].nodes[0].id===r[d].nodes[r[d].nodes.length-1].id&&(void 0!==r[d].tags&&c(r[d].tags)||r[d].__is_bounds_placeholder)&&(L="Polygon",N=[N]),x={type:"Feature",id:r[d].type+"/"+r[d].id,properties:{type:r[d].type,id:r[d].id,tags:r[d].tags||{},relations:C.way[r[d].id]||[],meta:l(r[d])},geometry:{type:L,coordinates:N}},r[d].tainted&&(t.verbose&&console.warn("Way",r[d].type+"/"+r[d].id,"is tainted"),x.properties.tainted=!0),r[d].__is_bounds_placeholder&&(x.properties.geometry="bounds"),n?n(o(x)):"LineString"==L?O.push(x):I.push(x)}}}else t.verbose&&console.warn("Way",r[d].type+"/"+r[d].id,"ignored because it has no nodes");return!!n||((k={type:"FeatureCollection",features:[]}).features=k.features.concat(I),k.features=k.features.concat(O),k.features=k.features.concat(A),t.flatProperties&&k.features.forEach(function(e){e.properties=i.merge(e.properties.meta,e.properties.tags,{id:e.properties.type+"/"+e.properties.id})}),o(k))}function c(e){var n=t.polygonFeatures;if("function"==typeof n)return n(e);if("no"===e.area)return!1;for(var r in e){var i=e[r],o=n[r];if(void 0!==o&&"no"!==i){if(!0===o)return!0;if(o.included_values&&!0===o.included_values[i])return!0;if(o.excluded_values&&!0!==o.excluded_values[i])return!0}}return!1}}).toGeojson=r,e.exports=r},EK0E:function(e,t,n){"use strict";var r,i=n("dyZX"),o=n("CkkT")(0),a=n("KroJ"),s=n("Z6vF"),u=n("czNK"),c=n("ZD67"),l=n("0/R4"),f=n("s5qY"),h=n("s5qY"),d=!i.ActiveXObject&&"ActiveXObject"in i,p=s.getWeak,v=Object.isExtensible,g=c.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(e){if(l(e)){var t=p(e);return!0===t?g(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(f(this,"WeakMap"),e,t)}},b=e.exports=n("4LiD")("WeakMap",y,m,c,!0,!0);h&&d&&(u((r=c.getConstructor(y,"WeakMap")).prototype,m),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=b.prototype,n=t[e];a(t,e,function(t,i){if(l(t)&&!v(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},EWmC:function(e,t,n){var r=n("LZWt");e.exports=Array.isArray||function(e){return"Array"==r(e)}},EemH:function(e,t,n){var r=n("UqcF"),i=n("RjD/"),o=n("aCFj"),a=n("apmT"),s=n("aagx"),u=n("xpql"),c=Object.getOwnPropertyDescriptor;t.f=n("nh4g")?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},FJW5:function(e,t,n){var r=n("hswa"),i=n("y3w9"),o=n("DVgA");e.exports=n("nh4g")?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},FZcq:function(e,t,n){n("49D4"),n("zq+C"),n("45Tv"),n("uAtd"),n("BqfV"),n("fN/3"),n("iW+S"),n("7Dlh"),n("Opxb"),e.exports=n("g3g5").Reflect},H6hf:function(e,t,n){var r=n("y3w9");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e.return;throw void 0!==o&&r(o.call(e)),a}}},I5cv:function(e,t,n){var r=n("XKFU"),i=n("Kuth"),o=n("2OiF"),a=n("y3w9"),s=n("0/R4"),u=n("eeVq"),c=n("8MEG"),l=(n("dyZX").Reflect||{}).construct,f=u(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),h=!u(function(){l(function(){})});r(r.S+r.F*(f||h),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,d=i(s(u)?u:Object.prototype),p=Function.apply.call(e,d,t);return s(p)?p:d}})},"I8a+":function(e,t,n){var r=n("LZWt"),i=n("K0xU")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},IlFx:function(e,t,n){var r=n("XKFU"),i=n("y3w9"),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},Iw71:function(e,t,n){var r=n("0/R4"),i=n("dyZX").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"J+6e":function(e,t,n){var r=n("I8a+"),i=n("K0xU")("iterator"),o=n("hPIQ");e.exports=n("g3g5").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},JiEa:function(e,t){t.f=Object.getOwnPropertySymbols},JxlR:function(e,t,n){e.exports=n("9NWu")},K0xU:function(e,t,n){var r=n("VTer")("wks"),i=n("ylqs"),o=n("dyZX").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},KroJ:function(e,t,n){var r=n("dyZX"),i=n("Mukb"),o=n("aagx"),a=n("ylqs")("src"),s=n("+lvF"),u=(""+s).split("toString");n("g3g5").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},Kuth:function(e,t,n){var r=n("y3w9"),i=n("FJW5"),o=n("4R4u"),a=n("YTvA")("IE_PROTO"),s=function(){},u=function(){var e,t=n("Iw71")("iframe"),r=o.length;for(t.style.display="none",n("+rLv").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},LQAc:function(e,t){e.exports=!1},LTTk:function(e,t,n){var r=n("XKFU"),i=n("OP3Y"),o=n("y3w9");r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},LZWt:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},M6Qj:function(e,t,n){var r=n("hPIQ"),i=n("K0xU")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},MfQN:function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},Mukb:function(e,t,n){var r=n("hswa"),i=n("RjD/");e.exports=n("nh4g")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"N/DB":function(e,t){var n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o="undefined"!=typeof global&&global;function a(e,t){return":"===t.charAt(0)?e.substring(function(e,t){for(var n=1,r=1;n<e.length;n++,r++)if("\\"===t[r])r++;else if(":"===e[n])return n;throw new Error('Unterminated $localize metadata block in "'.concat(t,'".'))}(e,t)+1):e}(n||o||r||i).$localize=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(e.translate){var o=e.translate(t,r);t=o[0],r=o[1]}for(var s=a(t[0],t.raw[0]),u=1;u<t.length;u++)s+=r[u-1]+a(t[u],t.raw[u]);return s}},N6cJ:function(e,t,n){var r=n("9AAn"),i=n("XKFU"),o=n("VTer")("metadata"),a=o.store||(o.store=new(n("EK0E"))),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o};e.exports={store:a,map:s,has:function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){s(n,r,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){i(i.S,"Reflect",e)}}},OP3Y:function(e,t,n){var r=n("aagx"),i=n("S/j/"),o=n("YTvA")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},Opxb:function(e,t,n){var r=n("N6cJ"),i=n("y3w9"),o=n("2OiF"),a=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:o)(n),a(r))}}})},Q3ne:function(e,t,n){var r=n("SlkY");e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},QaDb:function(e,t,n){"use strict";var r=n("Kuth"),i=n("RjD/"),o=n("fyDq"),a={};n("Mukb")(a,n("K0xU")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},RYi7:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"RjD/":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"S/j/":function(e,t,n){var r=n("vhPU");e.exports=function(e){return Object(r(e))}},SlkY:function(e,t,n){var r=n("m0Pp"),i=n("H6hf"),o=n("M6Qj"),a=n("y3w9"),s=n("ne8i"),u=n("J+6e"),c={},l={};(t=e.exports=function(e,t,n,f,h){var d,p,v,g,y=h?function(){return e}:u(e),m=r(n,f,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(d=s(e.length);d>b;b++)if((g=t?m(a(p=e[b])[0],p[1]):m(e[b]))===c||g===l)return g}else for(v=y.call(e);!(p=v.next()).done;)if((g=i(v,m,p.value,t))===c||g===l)return g}).BREAK=c,t.RETURN=l},T39b:function(e,t,n){"use strict";var r=n("wmvG"),i=n("s5qY");e.exports=n("4LiD")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},UqcF:function(e,t){t.f={}.propertyIsEnumerable},VTer:function(e,t,n){var r=n("g3g5"),i=n("dyZX"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("LQAc")?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},VbrY:function(e,t,n){n("3xty"),n("I5cv"),n("iMoV"),n("uhZd"),n("f/aN"),n("0YWM"),n("694e"),n("LTTk"),n("9rMk"),n("IlFx"),n("xpiv"),n("oZ/O"),n("klPD"),n("knU9"),e.exports=n("g3g5").Reflect},XKFU:function(e,t,n){var r=n("dyZX"),i=n("g3g5"),o=n("Mukb"),a=n("KroJ"),s=n("m0Pp"),u=function e(t,n,u){var c,l,f,h,d=t&e.F,p=t&e.G,v=t&e.P,g=t&e.B,y=p?r:t&e.S?r[n]||(r[n]={}):(r[n]||{}).prototype,m=p?i:i[n]||(i[n]={}),b=m.prototype||(m.prototype={});for(c in p&&(u=n),u)f=((l=!d&&y&&void 0!==y[c])?y:u)[c],h=g&&l?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,y&&a(y,c,f,t&e.U),m[c]!=f&&o(m,c,h),v&&b[c]!=f&&(b[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},XMVh:function(e,t,n){var r=n("K0xU")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},Xbzi:function(e,t,n){var r=n("0/R4"),i=n("i5dc").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},YTvA:function(e,t,n){var r=n("VTer")("keys"),i=n("ylqs");e.exports=function(e){return r[e]||(r[e]=i(e))}},Ymqv:function(e,t,n){var r=n("LZWt");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},Z6vF:function(e,t,n){var r=n("ylqs")("meta"),i=n("0/R4"),o=n("aagx"),a=n("hswa").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("eeVq")(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!o(e,r)&&l(e),e}}},ZD67:function(e,t,n){"use strict";var r=n("3Lyj"),i=n("Z6vF").getWeak,o=n("y3w9"),a=n("0/R4"),s=n("9gX7"),u=n("SlkY"),c=n("CkkT"),l=n("aagx"),f=n("s5qY"),h=c(5),d=c(6),p=0,v=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},y=function(e,t){return h(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e(function(e,r){s(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=r&&u(r,n,e[o],e)});return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(o(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},ZK94:function(e,t){e.exports.RADIUS=6378137,e.exports.FLATTENING=1/298.257223563,e.exports.POLAR_RADIUS=6356752.3142},aCFj:function(e,t,n){var r=n("Ymqv"),i=n("vhPU");e.exports=function(e){return r(i(e))}},aagx:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},apmT:function(e,t,n){var r=n("0/R4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},czNK:function(e,t,n){"use strict";var r=n("nh4g"),i=n("DVgA"),o=n("JiEa"),a=n("UqcF"),s=n("S/j/"),u=n("Ymqv"),c=Object.assign;e.exports=!c||n("eeVq")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,l=1,f=o.f,h=a.f;c>l;)for(var d,p=u(arguments[l++]),v=f?i(p).concat(f(p)):i(p),g=v.length,y=0;g>y;)d=v[y++],r&&!h.call(p,d)||(n[d]=p[d]);return n}:c},"d/Gc":function(e,t,n){var r=n("RYi7"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},dyZX:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},eeVq:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},elZq:function(e,t,n){"use strict";var r=n("dyZX"),i=n("hswa"),o=n("nh4g"),a=n("K0xU")("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},"f/aN":function(e,t,n){"use strict";var r=n("XKFU"),i=n("y3w9"),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n("QaDb")(o,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},"fN/3":function(e,t,n){var r=n("N6cJ"),i=n("y3w9"),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},fyDq:function(e,t,n){var r=n("hswa").f,i=n("aagx"),o=n("K0xU")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},g3g5:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"hN/g":function(e,t,n){"use strict";n.r(t),n("N/DB"),n("pDpN"),n("VbrY"),n("FZcq")},hPIQ:function(e,t){e.exports={}},hswa:function(e,t,n){var r=n("y3w9"),i=n("xpql"),o=n("apmT"),a=Object.defineProperty;t.f=n("nh4g")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},i5dc:function(e,t,n){var r=n("0/R4"),i=n("y3w9"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n("m0Pp")(Function.call,n("EemH").f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},iMoV:function(e,t,n){var r=n("hswa"),i=n("XKFU"),o=n("y3w9"),a=n("apmT");i(i.S+i.F*n("eeVq")(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(i){return!1}}})},"iW+S":function(e,t,n){var r=n("N6cJ"),i=n("y3w9"),o=n("OP3Y"),a=r.has,s=r.key,u=function e(t,n,r){if(a(t,n,r))return!0;var i=o(n);return null!==i&&e(t,i,r)};r.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},kJMx:function(e,t,n){var r=n("zhAb"),i=n("4R4u").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},klPD:function(e,t,n){var r=n("hswa"),i=n("EemH"),o=n("OP3Y"),a=n("aagx"),s=n("XKFU"),u=n("RjD/"),c=n("y3w9"),l=n("0/R4");s(s.S,"Reflect",{set:function e(t,n,s){var f,h,d=arguments.length<4?t:arguments[3],p=i.f(c(t),n);if(!p){if(l(h=o(t)))return e(h,n,s,d);p=u(0)}if(a(p,"value")){if(!1===p.writable||!l(d))return!1;if(f=i.f(d,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(d,n,f)}else r.f(d,n,u(0,s));return!0}return void 0!==p.set&&(p.set.call(d,s),!0)}})},knU9:function(e,t,n){var r=n("XKFU"),i=n("i5dc");i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(n){return!1}}})},m0Pp:function(e,t,n){var r=n("2OiF");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},mQtv:function(e,t,n){var r=n("kJMx"),i=n("JiEa"),o=n("y3w9"),a=n("dyZX").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},mhV4:function(e,t,n){var r=n("ZK94");function i(e){var t=0;if(e&&e.length>0){t+=Math.abs(o(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(o(e[n]))}return t}function o(e){var t,n,i,o,s,u,c=0,l=e.length;if(l>2){for(u=0;u<l;u++)u===l-2?(i=l-2,o=l-1,s=0):u===l-1?(i=l-1,o=0,s=1):(i=u,o=u+1,s=u+2),t=e[i],n=e[o],c+=(a(e[s][0])-a(t[0]))*Math.sin(a(n[1]));c=c*r.RADIUS*r.RADIUS/2}return c}function a(e){return e*Math.PI/180}e.exports.geometry=function e(t){var n,r=0;switch(t.type){case"Polygon":return i(t.coordinates);case"MultiPolygon":for(n=0;n<t.coordinates.length;n++)r+=i(t.coordinates[n]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<t.geometries.length;n++)r+=e(t.geometries[n]);return r}},e.exports.ring=o},ne8i:function(e,t,n){var r=n("RYi7"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},nh4g:function(e,t,n){e.exports=!n("eeVq")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"oZ/O":function(e,t,n){var r=n("XKFU"),i=n("y3w9"),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(t){return!1}}})},pDpN:function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");var i=e.__Zone_symbol_prefix||"__zone_symbol__";function o(e){return i+e}var a=!0===e[o("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var s=function(){function t(e,n){ye(this,t),this._parent=e,this._name=n?n.name||"unnamed":"<root>",this._properties=n&&n.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,n)}return be(t,[{key:"parent",get:function(){return this._parent}},{key:"name",get:function(){return this._name}},{key:"get",value:function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]}},{key:"getZoneWith",value:function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}},{key:"fork",value:function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}},{key:"wrap",value:function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}}},{key:"run",value:function(e,t,n,r){P={parent:P,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{P=P.parent}}},{key:"runGuarded",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;P={parent:P,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{P=P.parent}}},{key:"runTask",value:function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");if(e.state!==w||e.type!==x&&e.type!==A){var r=e.state!=C;r&&e._transitionTo(C,k),e.runCount++;var i=j;j=e,P={parent:P,zone:this};try{e.type==A&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{e.state!==w&&e.state!==E&&(e.type==x||e.data&&e.data.isPeriodic?r&&e._transitionTo(k,C):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(w,C,w))),P=P.parent,j=i}}}},{key:"scheduleTask",value:function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(e.zone.name));t=t.parent}e._transitionTo(_,w);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(E,_,w),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(k,_),e}},{key:"scheduleMicroTask",value:function(e,t,n,r){return this.scheduleTask(new f(T,e,t,n,r,void 0))}},{key:"scheduleMacroTask",value:function(e,t,n,r,i){return this.scheduleTask(new f(A,e,t,n,r,i))}},{key:"scheduleEventTask",value:function(e,t,n,r,i){return this.scheduleTask(new f(x,e,t,n,r,i))}},{key:"cancelTask",value:function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");e._transitionTo(S,k,C);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(E,S),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(w,S),e.runCount=0,e}},{key:"_updateTaskCount",value:function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)}}],[{key:"assertZonePatched",value:function(){if(e.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}},{key:"root",get:function(){for(var e=t.current;e.parent;)e=e.parent;return e}},{key:"current",get:function(){return P.zone}},{key:"currentTask",get:function(){return j}},{key:"__load_patch",value:function(i,o){if(O.hasOwnProperty(i)){if(a)throw Error("Already loaded patch: "+i)}else if(!e["__Zone_disable_"+i]){var s="Zone:"+i;n(s),O[i]=o(e,t,I),r(s,s)}}}]),t}();s.__symbol__=o;var u,c={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,i,o){return e.invokeTask(n,r,i,o)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},l=function(){function e(t,n,r){ye(this,e),this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=n,this._forkZS=r&&(r&&r.onFork?r:n._forkZS),this._forkDlgt=r&&(r.onFork?n:n._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:n._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:n._interceptZS),this._interceptDlgt=r&&(r.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:n._invokeZS),this._invokeDlgt=r&&(r.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:n._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:n._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:n._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:n._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var i=r&&r.onHasTask;(i||n&&n._hasTaskZS)&&(this._hasTaskZS=i?r:c,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,r.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}return be(e,[{key:"fork",value:function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new s(e,t)}},{key:"intercept",value:function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}},{key:"invoke",value:function(e,t,n,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,i):t.apply(n,r)}},{key:"handleError",value:function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}},{key:"scheduleTask",value:function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=T)throw new Error("Task is missing scheduleFn.");y(t)}return n}},{key:"invokeTask",value:function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)}},{key:"cancelTask",value:function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}},{key:"hasTask",value:function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}},{key:"_updateTaskCount",value:function(e,t){var n=this._taskCounts,r=n[e],i=n[e]=r+t;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}]),e}(),f=function(){function t(n,r,i,o,a,s){if(ye(this,t),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=o,this.scheduleFn=a,this.cancelFn=s,!i)throw new Error("callback is not defined");this.callback=i;var u=this;this.invoke=n===x&&o&&o.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return be(t,[{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}},{key:"cancelScheduleRequest",value:function(){this._transitionTo(w,_)}},{key:"_transitionTo",value:function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(e,"', expecting state '").concat(t,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."));this._state=e,e==w&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}],[{key:"invokeTask",value:function(e,t,n){e||(e=this),R++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==R&&m(),R--}}}]),t}(),h=o("setTimeout"),d=o("Promise"),p=o("then"),v=[],g=!1;function y(t){if(0===R&&0===v.length)if(u||e[d]&&(u=e[d].resolve(0)),u){var n=u[p];n||(n=u.then),n.call(u,m)}else e[h](m,0);t&&v.push(t)}function m(){if(!g){for(g=!0;v.length;){var e=v;v=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){I.onUnhandledError(r)}}}I.microtaskDrainDone(),g=!1}}var b={name:"NO ZONE"},w="notScheduled",_="scheduling",k="scheduled",C="running",S="canceling",E="unknown",T="microTask",A="macroTask",x="eventTask",O={},I={symbol:o,currentZoneFrame:function(){return P},onUnhandledError:D,microtaskDrainDone:D,scheduleMicroTask:y,showUncaughtError:function(){return!s[o("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:D,patchMethod:function(){return D},bindArguments:function(){return[]},patchThen:function(){return D},patchMacroTask:function(){return D},setNativePromise:function(e){e&&"function"==typeof e.resolve&&(u=e.resolve(0))},patchEventPrototype:function(){return D},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return D},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return D},wrapWithCurrentZone:function(){return D},filterProperties:function(){return[]},attachOriginToPatched:function(){return D},_redefineProperty:function(){return D},patchCallbacks:function(){return D}},P={parent:null,zone:new s(null,null)},j=null,R=0;function D(){}r("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var r=Object.getOwnPropertyDescriptor,i=Object.defineProperty,o=n.symbol,a=[],s=!0===e[o("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],u=o("Promise"),c=o("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(var e=function(){var e=a.shift();try{e.zone.runGuarded(function(){throw e})}catch(r){!function(e){n.onUnhandledError(e);try{var r=t[l];"function"==typeof r&&r.call(this,e)}catch(i){}}(r)}};a.length;)e()};var l=o("unhandledPromiseRejectionHandler");function f(e){return e&&e.then}function h(e){return e}function d(e){return T.reject(e)}var p=o("state"),v=o("value"),g=o("finally"),y=o("parentPromiseValue"),m=o("parentPromiseState");function b(e,t){return function(n){try{_(e,t,n)}catch(r){_(e,!1,r)}}}var w=o("currentTaskTrace");function _(e,r,o){var u,c,l=(u=!1,function(e){return function(){u||(u=!0,e.apply(null,arguments))}});if(e===o)throw new TypeError("Promise resolved with itself");if(null===e[p]){var f=null;try{"object"!=typeof o&&"function"!=typeof o||(f=o&&o.then)}catch(A){return l(function(){_(e,!1,A)})(),e}if(!1!==r&&o instanceof T&&o.hasOwnProperty(p)&&o.hasOwnProperty(v)&&null!==o[p])C(o),_(e,o[p],o[v]);else if(!1!==r&&"function"==typeof f)try{f.call(o,l(b(e,r)),l(b(e,!1)))}catch(A){l(function(){_(e,!1,A)})()}else{e[p]=r;var h=e[v];if(e[v]=o,e[g]===g&&!0===r&&(e[p]=e[m],e[v]=e[y]),!1===r&&o instanceof Error){var d=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;d&&i(o,w,{configurable:!0,enumerable:!1,writable:!0,value:d})}for(var k=0;k<h.length;)S(e,h[k++],h[k++],h[k++],h[k++]);if(0==h.length&&0==r){e[p]=0;var E=o;if(!s)try{throw new Error("Uncaught (in promise): "+((c=o)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(o&&o.stack?"\n"+o.stack:""))}catch(A){E=A}E.rejection=o,E.promise=e,E.zone=t.current,E.task=t.currentTask,a.push(E),n.scheduleMicroTask()}}}return e}var k=o("rejectionHandledHandler");function C(e){if(0===e[p]){try{var n=t[k];n&&"function"==typeof n&&n.call(this,{rejection:e[v],promise:e})}catch(i){}e[p]=!1;for(var r=0;r<a.length;r++)e===a[r].promise&&a.splice(r,1)}}function S(e,t,n,r,i){C(e);var o=e[p],a=o?"function"==typeof r?r:h:"function"==typeof i?i:d;t.scheduleMicroTask("Promise.then",function(){try{var r=e[v],i=!!n&&g===n[g];i&&(n[y]=r,n[m]=o);var s=t.run(a,void 0,i&&a!==d&&a!==h?[]:[r]);_(n,!0,s)}catch(u){_(n,!1,u)}},n)}var E=function(){},T=function(){function e(t){ye(this,e);var n=this;if(!(n instanceof e))throw new Error("Must be an instanceof Promise.");n[p]=null,n[v]=[];try{t&&t(b(n,!0),b(n,!1))}catch(r){_(n,!1,r)}}return be(e,[{key:Symbol.toStringTag,get:function(){return"Promise"}},{key:Symbol.species,get:function(){return e}},{key:"then",value:function(n,r){var i=this.constructor[Symbol.species];i&&"function"==typeof i||(i=this.constructor||e);var o=new i(E),a=t.current;return null==this[p]?this[v].push(a,o,n,r):S(this,a,o,n,r),o}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"finally",value:function(n){var r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=e);var i=new r(E);i[g]=g;var o=t.current;return null==this[p]?this[v].push(o,i,n,n):S(this,o,i,n,n),i}}],[{key:"toString",value:function(){return"function ZoneAwarePromise() { [native code] }"}},{key:"resolve",value:function(e){return _(new this(null),!0,e)}},{key:"reject",value:function(e){return _(new this(null),!1,e)}},{key:"race",value:function(e){var t,n,r=new this(function(e,r){t=e,n=r});function i(e){t(e)}function o(e){n(e)}var a,s=pe(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;f(u)||(u=this.resolve(u)),u.then(i,o)}}catch(c){s.e(c)}finally{s.f()}return r}},{key:"all",value:function(t){return e.allWithCallback(t)}},{key:"allSettled",value:function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(e){return{status:"fulfilled",value:e}},errorCallback:function(e){return{status:"rejected",reason:e}}})}},{key:"allWithCallback",value:function(e,t){var n,r,i,o=this,a=new this(function(e,t){n=e,r=t}),s=2,u=0,c=[],l=pe(e);try{var h=function(){var e=i.value;f(e)||(e=o.resolve(e));var a=u;try{e.then(function(e){c[a]=t?t.thenCallback(e):e,0===--s&&n(c)},function(e){t?(c[a]=t.errorCallback(e),0===--s&&n(c)):r(e)})}catch(l){r(l)}s++,u++};for(l.s();!(i=l.n()).done;)h()}catch(d){l.e(d)}finally{l.f()}return 0===(s-=2)&&n(c),a}}]),e}();T.resolve=T.resolve,T.reject=T.reject,T.race=T.race,T.all=T.all;var A=e[u]=e.Promise,x=t.__symbol__("ZoneAwarePromise"),O=r(e,"Promise");O&&!O.configurable||(O&&delete O.writable,O&&delete O.value,O||(O={configurable:!0,enumerable:!0}),O.get=function(){return e[x]?e[x]:e[u]},O.set=function(t){t===T?e[x]=t:(e[u]=t,t.prototype[c]||j(t),n.setNativePromise(t))},i(e,"Promise",O)),e.Promise=T;var I,P=o("thenPatched");function j(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var i=t.then;t[c]=i,e.prototype.then=function(e,t){var n=this;return new T(function(e,t){i.call(n,e,t)}).then(e,t)},e[P]=!0}}if(n.patchThen=j,A){j(A);var R=e.fetch;"function"==typeof R&&(e[n.symbol("fetch")]=R,e.fetch=(I=R,function(){var e=I.apply(this,arguments);if(e instanceof T)return e;var t=e.constructor;return t[P]||j(t),e}))}return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,T});var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,i=Array.prototype.slice,o=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),s=Zone.__symbol__("");function u(e,t){return Zone.current.wrap(e,t)}function c(e,t,n,r,i){return Zone.current.scheduleMacroTask(e,t,n,r,i)}var l=Zone.__symbol__,f="undefined"!=typeof window,h=f?window:void 0,d=f&&h||"object"==typeof self&&self||global,p=[null];function v(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=u(e[n],t+"_"+n));return e}function g(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var y="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!("nw"in d)&&void 0!==d.process&&"[object process]"==={}.toString.call(d.process),b=!m&&!y&&!(!f||!h.HTMLElement),w=void 0!==d.process&&"[object process]"==={}.toString.call(d.process)&&!y&&!(!f||!h.HTMLElement),_={},k=function(e){if(e=e||d.event){var t=_[e.type];t||(t=_[e.type]=l("ON_PROPERTY"+e.type));var n,r=this||e.target||d,i=r[t];if(b&&r===h&&"error"===e.type){var o=e;!0===(n=i&&i.call(this,o.message,o.filename,o.lineno,o.colno,o.error))&&e.preventDefault()}else null==(n=i&&i.apply(this,arguments))||n||e.preventDefault();return n}};function C(n,r,i){var o=e(n,r);if(!o&&i&&e(i,r)&&(o={enumerable:!0,configurable:!0}),o&&o.configurable){var a=l("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete o.writable,delete o.value;var s=o.get,u=o.set,c=r.substr(2),f=_[c];f||(f=_[c]=l("ON_PROPERTY"+c)),o.set=function(e){var t=this;t||n!==d||(t=d),t&&(t[f]&&t.removeEventListener(c,k),u&&u.apply(t,p),"function"==typeof e?(t[f]=e,t.addEventListener(c,k,!1)):t[f]=null)},o.get=function(){var e=this;if(e||n!==d||(e=d),!e)return null;var t=e[f];if(t)return t;if(s){var i=s&&s.call(this);if(i)return o.set.call(this,i),"function"==typeof e.removeAttribute&&e.removeAttribute(r),i}return null},t(n,r,o),n[a]=!0}}}function S(e,t,n){if(t)for(var r=0;r<t.length;r++)C(e,"on"+t[r],n);else{var i=[];for(var o in e)"on"==o.substr(0,2)&&i.push(o);for(var a=0;a<i.length;a++)C(e,i[a],n)}}var E=l("originalInstance");function T(e){var n=d[e];if(n){d[l(e)]=n,d[e]=function(){var t=v(arguments,e);switch(t.length){case 0:this[E]=new n;break;case 1:this[E]=new n(t[0]);break;case 2:this[E]=new n(t[0],t[1]);break;case 3:this[E]=new n(t[0],t[1],t[2]);break;case 4:this[E]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},O(d[e],n);var r,i=new n(function(){});for(r in i)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof i[n]?d[e].prototype[n]=function(){return this[E][n].apply(this[E],arguments)}:t(d[e].prototype,n,{set:function(t){"function"==typeof t?(this[E][n]=u(t,e+"."+n),O(this[E][n],t)):this[E][n]=t},get:function(){return this[E][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(d[e][r]=n[r])}}function A(t,r,i){for(var o=t;o&&!o.hasOwnProperty(r);)o=n(o);!o&&t[r]&&(o=t);var a=l(r),s=null;if(o&&!(s=o[a])&&(s=o[a]=o[r],g(o&&e(o,r)))){var u=i(s,a,r);o[r]=function(){return u(this,arguments)},O(o[r],s)}return s}function x(e,t,n){var r=null;function i(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=A(e,t,function(e){return function(t,r){var o=n(t,r);return o.cbIdx>=0&&"function"==typeof r[o.cbIdx]?c(o.name,r[o.cbIdx],o,i):e.apply(t,r)}})}function O(e,t){e[l("OriginalDelegate")]=t}var I=!1,P=!1;function j(){try{var e=h.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}function R(){if(I)return P;I=!0;try{var e=h.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(P=!0)}catch(t){}return P}Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,n=l("OriginalDelegate"),r=l("Promise"),i=l("Error"),o=function(){if("function"==typeof this){var o=this[n];if(o)return"function"==typeof o?t.call(o):Object.prototype.toString.call(o);if(this===Promise){var a=e[r];if(a)return t.call(a)}if(this===Error){var s=e[i];if(s)return t.call(s)}}return t.call(this)};o[n]=t,Function.prototype.toString=o;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});var D=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){D=!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(ue){D=!1}var L={useG:!0},V={},F={},U=new RegExp("^"+s+"(\\w+)(true|false)$"),M=l("propagationStopped");function H(e,t){var n=(t?t(e):e)+"false",r=(t?t(e):e)+"true",i=s+n,o=s+r;V[e]={},V[e].false=i,V[e].true=o}function z(e,t,r){var i=r&&r.add||"addEventListener",o=r&&r.rm||"removeEventListener",a=r&&r.listeners||"eventListeners",u=r&&r.rmAll||"removeAllListeners",c=l(i),f="."+i+":",h=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var i=e.options;i&&"object"==typeof i&&i.once&&t[o].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,i)}},d=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[V[t.type].false];if(r)if(1===r.length)h(r[0],n,t);else for(var i=r.slice(),o=0;o<i.length&&(!t||!0!==t[M]);o++)h(i[o],n,t)}},p=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[V[t.type].true];if(r)if(1===r.length)h(r[0],n,t);else for(var i=r.slice(),o=0;o<i.length&&(!t||!0!==t[M]);o++)h(i[o],n,t)}};function v(t,r){if(!t)return!1;var h=!0;r&&void 0!==r.useG&&(h=r.useG);var v=r&&r.vh,g=!0;r&&void 0!==r.chkDup&&(g=r.chkDup);var y=!1;r&&void 0!==r.rt&&(y=r.rt);for(var b=t;b&&!b.hasOwnProperty(i);)b=n(b);if(!b&&t[i]&&(b=t),!b)return!1;if(b[c])return!1;var w,_=r&&r.eventNameToString,k={},C=b[c]=b[i],S=b[l(o)]=b[o],E=b[l(a)]=b[a],T=b[l(u)]=b[u];function A(e,t){return!D&&"object"==typeof e&&e?!!e.capture:D&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}r&&r.prepend&&(w=b[l(r.prepend)]=b[r.prepend]);var x=h?function(e){if(!k.isExisting)return C.call(k.target,k.eventName,k.capture?p:d,k.options)}:function(e){return C.call(k.target,k.eventName,e.invoke,k.options)},I=h?function(e){if(!e.isRemoved){var t,n=V[e.eventName];n&&(t=n[e.capture?"true":"false"]);var r=t&&e.target[t];if(r)for(var i=0;i<r.length;i++)if(r[i]===e){r.splice(i,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[t]=null);break}}if(e.allRemoved)return S.call(e.target,e.eventName,e.capture?p:d,e.options)}:function(e){return S.call(e.target,e.eventName,e.invoke,e.options)},P=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},j=Zone[l("BLACK_LISTED_EVENTS")],R=e[l("PASSIVE_EVENTS")],N=function(t,n,i,o){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var u=this||e,c=arguments[0];r&&r.transferEventName&&(c=r.transferEventName(c));var l=arguments[1];if(!l)return t.apply(this,arguments);if(m&&"uncaughtException"===c)return t.apply(this,arguments);var f=!1;if("function"!=typeof l){if(!l.handleEvent)return t.apply(this,arguments);f=!0}if(!v||v(t,l,u,arguments)){var d=D&&!!R&&-1!==R.indexOf(c),p=A(arguments[2],d);if(j)for(var y=0;y<j.length;y++)if(c===j[y])return d?t.call(u,c,l,p):t.apply(this,arguments);var b=!!p&&("boolean"==typeof p||p.capture),w=!(!p||"object"!=typeof p)&&p.once,C=Zone.current,S=V[c];S||(H(c,_),S=V[c]);var E,T=S[b?"true":"false"],x=u[T],O=!1;if(x){if(O=!0,g)for(var I=0;I<x.length;I++)if(P(x[I],l))return}else x=u[T]=[];var N=u.constructor.name,U=F[N];U&&(E=U[c]),E||(E=N+n+(_?_(c):c)),k.options=p,w&&(k.options.once=!1),k.target=u,k.capture=b,k.eventName=c,k.isExisting=O;var M=h?L:void 0;M&&(M.taskData=k);var z=C.scheduleEventTask(E,l,M,i,o);return k.target=null,M&&(M.taskData=null),w&&(p.once=!0),(D||"boolean"!=typeof z.options)&&(z.options=p),z.target=u,z.capture=b,z.eventName=c,f&&(z.originalDelegate=l),s?x.unshift(z):x.push(z),a?u:void 0}}};return b[i]=N(C,f,x,I,y),w&&(b.prependListener=N(w,".prependListener:",function(e){return w.call(k.target,k.eventName,e.invoke,k.options)},I,y,!0)),b[o]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));var i=arguments[2],o=!!i&&("boolean"==typeof i||i.capture),a=arguments[1];if(!a)return S.apply(this,arguments);if(!v||v(S,a,t,arguments)){var u,c=V[n];c&&(u=c[o?"true":"false"]);var l=u&&t[u];if(l)for(var f=0;f<l.length;f++){var h=l[f];if(P(h,a))return l.splice(f,1),h.isRemoved=!0,0===l.length&&(h.allRemoved=!0,t[u]=null,"string"==typeof n)&&(t[s+"ON_PROPERTY"+n]=null),h.zone.cancelTask(h),y?t:void 0}return S.apply(this,arguments)}},b[a]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));for(var i=[],o=q(t,_?_(n):n),a=0;a<o.length;a++){var s=o[a];i.push(s.originalDelegate?s.originalDelegate:s.callback)}return i},b[u]=function(){var t=this||e,n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));var i=V[n];if(i){var a=t[i.false],s=t[i.true];if(a)for(var c=a.slice(),l=0;l<c.length;l++){var f=c[l];this[o].call(this,n,f.originalDelegate?f.originalDelegate:f.callback,f.options)}if(s)for(var h=s.slice(),d=0;d<h.length;d++){var p=h[d];this[o].call(this,n,p.originalDelegate?p.originalDelegate:p.callback,p.options)}}}else{for(var v=Object.keys(t),g=0;g<v.length;g++){var m=U.exec(v[g]),b=m&&m[1];b&&"removeListener"!==b&&this[u].call(this,b)}this[u].call(this,"removeListener")}if(y)return this},O(b[i],C),O(b[o],S),T&&O(b[u],T),E&&O(b[a],E),!0}for(var g=[],y=0;y<t.length;y++)g[y]=v(t[y],r);return g}function q(e,t){if(!t){var n=[];for(var r in e){var i=U.exec(r),o=i&&i[1];if(o&&(!t||o===t)){var a=e[r];if(a)for(var s=0;s<a.length;s++)n.push(a[s])}}return n}var u=V[t];u||(H(t),u=V[t]);var c=e[u.false],l=e[u.true];return c?l?c.concat(l):c.slice():l?l.slice():[]}function B(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",function(e){return function(t,n){t[M]=!0,e&&e.apply(t,n)}})}function G(e,t,n,r,i){var o=Zone.__symbol__(r);if(!t[o]){var a=t[o]=t[r];t[r]=function(o,s,u){return s&&s.prototype&&i.forEach(function(t){var i="".concat(n,".").concat(r,"::")+t,o=s.prototype;if(o.hasOwnProperty(t)){var a=e.ObjectGetOwnPropertyDescriptor(o,t);a&&a.value?(a.value=e.wrapWithCurrentZone(a.value,i),e._redefineProperty(s.prototype,t,a)):o[t]&&(o[t]=e.wrapWithCurrentZone(o[t],i))}else o[t]&&(o[t]=e.wrapWithCurrentZone(o[t],i))}),a.call(t,o,s,u)},e.attachOriginToPatched(t[r],a)}}var W=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],Z=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],K=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],X=["bounce","finish","start"],Y=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Q=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],J=["close","error","open","message"],ee=["error","message"],te=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],W,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ne(e,t,n){if(!n||0===n.length)return t;var r=n.filter(function(t){return t.target===e});if(!r||0===r.length)return t;var i=r[0].ignoreProperties;return t.filter(function(e){return-1===i.indexOf(e)})}function re(e,t,n,r){e&&S(e,ne(e,t,n),r)}function ie(e,t){if((!m||w)&&!Zone[e.symbol("patchEvents")]){var r="undefined"!=typeof WebSocket,i=t.__Zone_ignore_on_properties;if(b){var o=window,a=j?[{target:o,ignoreProperties:["error"]}]:[];re(o,te.concat(["messageerror"]),i?i.concat(a):i,n(o)),re(Document.prototype,te,i),void 0!==o.SVGElement&&re(o.SVGElement.prototype,te,i),re(Element.prototype,te,i),re(HTMLElement.prototype,te,i),re(HTMLMediaElement.prototype,Z,i),re(HTMLFrameSetElement.prototype,W.concat($),i),re(HTMLBodyElement.prototype,W.concat($),i),re(HTMLFrameElement.prototype,K,i),re(HTMLIFrameElement.prototype,K,i);var s=o.HTMLMarqueeElement;s&&re(s.prototype,X,i);var u=o.Worker;u&&re(u.prototype,ee,i)}var c=t.XMLHttpRequest;c&&re(c.prototype,Y,i);var l=t.XMLHttpRequestEventTarget;l&&re(l&&l.prototype,Y,i),"undefined"!=typeof IDBIndex&&(re(IDBIndex.prototype,Q,i),re(IDBRequest.prototype,Q,i),re(IDBOpenDBRequest.prototype,Q,i),re(IDBDatabase.prototype,Q,i),re(IDBTransaction.prototype,Q,i),re(IDBCursor.prototype,Q,i)),r&&re(WebSocket.prototype,J,i)}}Zone.__load_patch("util",function(n,o,a){a.patchOnProperties=S,a.patchMethod=A,a.bindArguments=v,a.patchMacroTask=x;var c=o.__symbol__("BLACK_LISTED_EVENTS"),l=o.__symbol__("UNPATCHED_EVENTS");n[l]&&(n[c]=n[l]),n[c]&&(o[c]=o[l]=n[c]),a.patchEventPrototype=B,a.patchEventTarget=z,a.isIEOrEdge=R,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=r,a.ArraySlice=i,a.patchClass=T,a.wrapWithCurrentZone=u,a.filterProperties=ne,a.attachOriginToPatched=O,a._redefineProperty=Object.defineProperty,a.patchCallbacks=G,a.getGlobalObjects=function(){return{globalSources:F,zoneSymbolEventNames:V,eventNames:te,isBrowser:b,isMix:w,isNode:m,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:s,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}});var oe=l("zoneTask");function ae(e,t,n,r){var i=null,o=null;n+=r;var a={};function s(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[oe]=null))}},n.handleId=i.apply(e,n.args),t}function u(e){return o(e.data.handleId)}i=A(e,t+=r,function(n){return function(i,o){if("function"==typeof o[0]){var l=c(t,o[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?o[1]||0:void 0,args:o},s,u);if(!l)return l;var f=l.data.handleId;return"number"==typeof f?a[f]=l:f&&(f[oe]=l),f&&f.ref&&f.unref&&"function"==typeof f.ref&&"function"==typeof f.unref&&(l.ref=f.ref.bind(f),l.unref=f.unref.bind(f)),"number"==typeof f||f?f:l}return n.apply(e,o)}}),o=A(e,n,function(t){return function(n,r){var i,o=r[0];"number"==typeof o?i=a[o]:(i=o&&o[oe])||(i=o),i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&("number"==typeof o?delete a[o]:o&&(o[oe]=null),i.zone.cancelTask(i)):t.apply(e,r)}})}function se(e,t){if(!Zone[t.symbol("patchEventTarget")]){for(var n=t.getGlobalObjects(),r=n.eventNames,i=n.zoneSymbolEventNames,o=n.TRUE_STR,a=n.FALSE_STR,s=n.ZONE_SYMBOL_PREFIX,u=0;u<r.length;u++){var c=r[u],l=s+(c+a),f=s+(c+o);i[c]={},i[c][a]=l,i[c][o]=f}var h=e.EventTarget;return h&&h.prototype?(t.patchEventTarget(e,[h&&h.prototype]),!0):void 0}}Zone.__load_patch("legacy",function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",function(e){ae(e,"set","clear","Timeout"),ae(e,"set","clear","Interval"),ae(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){ae(e,"request","cancel","AnimationFrame"),ae(e,"mozRequest","mozCancel","AnimationFrame"),ae(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)A(e,n[r],function(n,r,i){return function(r,o){return t.current.run(n,e,o,i)}})}),Zone.__load_patch("EventTarget",function(e,t,n){(function(e,t){t.patchEventPrototype(e,t)})(e,n),se(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype]),T("MutationObserver"),T("WebKitMutationObserver"),T("IntersectionObserver"),T("FileReader")}),Zone.__load_patch("on_property",function(e,t,n){ie(n,e)}),Zone.__load_patch("customElements",function(e,t,n){!function(e,t){var n=t.getGlobalObjects(),r=n.isBrowser,i=n.isMix;(r||i)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",function(e,t){!function(e){var h=e.XMLHttpRequest;if(h){var d=h.prototype,p=d[o],v=d[a];if(!p){var g=e.XMLHttpRequestEventTarget;if(g){var y=g.prototype;p=y[o],v=y[a]}}var m=A(d,"open",function(){return function(e,t){return e[r]=0==t[2],e[u]=t[1],m.apply(e,t)}}),b=l("fetchTaskAborting"),w=l("fetchTaskScheduling"),_=A(d,"send",function(){return function(e,n){if(!0===t.current[w])return _.apply(e,n);if(e[r])return _.apply(e,n);var i={target:e,url:e[u],isPeriodic:!1,args:n,aborted:!1},o=c("XMLHttpRequest.send",S,i,C,E);e&&!0===e[f]&&!i.aborted&&"scheduled"===o.state&&o.invoke()}}),k=A(d,"abort",function(){return function(e,r){var i=e[n];if(i&&"string"==typeof i.type){if(null==i.cancelFn||i.data&&i.data.aborted)return;i.zone.cancelTask(i)}else if(!0===t.current[b])return k.apply(e,r)}})}function C(e){var r=e.data,u=r.target;u[s]=!1,u[f]=!1;var c=u[i];p||(p=u[o],v=u[a]),c&&v.call(u,"readystatechange",c);var l=u[i]=function(){if(u.readyState===u.DONE)if(!r.aborted&&u[s]&&"scheduled"===e.state){var n=u[t.__symbol__("loadfalse")];if(n&&n.length>0){var i=e.invoke;e.invoke=function(){for(var n=u[t.__symbol__("loadfalse")],o=0;o<n.length;o++)n[o]===e&&n.splice(o,1);r.aborted||"scheduled"!==e.state||i.call(e)},n.push(e)}else e.invoke()}else r.aborted||!1!==u[s]||(u[f]=!0)};return p.call(u,"readystatechange",l),u[n]||(u[n]=e),_.apply(u,r.args),u[s]=!0,e}function S(){}function E(e){var t=e.data;return t.aborted=!0,k.apply(t.target,t.args)}}(e);var n=l("xhrTask"),r=l("xhrSync"),i=l("xhrListener"),s=l("xhrScheduled"),u=l("xhrURL"),f=l("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,i=function(i){var o=n[i],a=t[o];if(a){if(!g(e(t,o)))return"continue";t[o]=function(e){var t=function(){return e.apply(this,v(arguments,r+"."+o))};return O(t,e),t}(a)}},o=0;o<n.length;o++)i(o)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,t){function n(t){return function(n){q(e,t).forEach(function(r){var i=e.PromiseRejectionEvent;if(i){var o=new i(t,{promise:n.promise,reason:n.rejection});r.invoke(o)}})}}e.PromiseRejectionEvent&&(t[l("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[l("rejectionHandledHandler")]=n("rejectionhandled"))})})?r.call(t,n,t,e):r)||(e.exports=i)},s5qY:function(e,t,n){var r=n("0/R4");e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},uAtd:function(e,t,n){var r=n("T39b"),i=n("Q3ne"),o=n("N6cJ"),a=n("y3w9"),s=n("OP3Y"),u=o.keys,c=o.key,l=function e(t,n){var o=u(t,n),a=s(t);if(null===a)return o;var c=e(a,n);return c.length?o.length?i(new r(o.concat(c))):c:o};o.exp({getMetadataKeys:function(e){return l(a(e),arguments.length<2?void 0:c(arguments[1]))}})},uhZd:function(e,t,n){var r=n("XKFU"),i=n("EemH").f,o=n("y3w9");r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},vhPU:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},w2a5:function(e,t,n){var r=n("aCFj"),i=n("ne8i"),o=n("d/Gc");e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},wmvG:function(e,t,n){"use strict";var r=n("hswa").f,i=n("Kuth"),o=n("3Lyj"),a=n("m0Pp"),s=n("9gX7"),u=n("SlkY"),c=n("Afnz"),l=n("1TsA"),f=n("elZq"),h=n("nh4g"),d=n("Z6vF").fastKey,p=n("s5qY"),v=h?"_s":"size",g=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e(function(e,r){s(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,null!=r&&u(r,n,e[c],e)});return o(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=p(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(e){p(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),h&&r(l.prototype,"size",{get:function(){return p(this,t)[v]}}),l},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?l(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),f(t)}}},xpiv:function(e,t,n){var r=n("XKFU");r(r.S,"Reflect",{ownKeys:n("mQtv")})},xpql:function(e,t,n){e.exports=!n("nh4g")&&!n("eeVq")(function(){return 7!=Object.defineProperty(n("Iw71")("div"),"a",{get:function(){return 7}}).a})},y3w9:function(e,t,n){var r=n("0/R4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ylqs:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},zRwo:function(e,t,n){var r=n("6FMO");e.exports=function(e,t){return new(r(e))(t)}},zUnb:function(ue,he,ve){"use strict";function ge(e){return"function"==typeof e}ve.r(he);var me=!1,we={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else me&&console.log("RxJS: Back to a better error behavior. Thank you. <3");me=e},get useDeprecatedSynchronousErrorHandling(){return me}};function _e(e){setTimeout(function(){throw e},0)}var ke={closed:!0,next:function(e){},error:function(e){if(we.useDeprecatedSynchronousErrorHandling)throw e;_e(e)},complete:function(){}},Ce=Array.isArray||function(e){return e&&"number"==typeof e.length};function Se(e){return null!==e&&"object"==typeof e}var Ee,Te=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),Ae=((Ee=function(){function e(t){ye(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return be(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(ge(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(l){t=l instanceof Te?xe(l.errors):[l]}}if(Ce(o))for(var s=-1,u=o.length;++s<u;){var c=o[s];if(Se(c))try{c.unsubscribe()}catch(l){t=t||[],l instanceof Te?t=t.concat(xe(l.errors)):t.push(l)}}if(t)throw new Te(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new Ee),Ee);function xe(e){return e.reduce(function(e,t){return e.concat(t instanceof Te?t.errors:t)},[])}var Oe="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),Ie=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;switch(ye(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=ke;break;case 1:if(!e){o.destination=ke;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(fe(o))):(o.syncErrorThrowable=!0,o.destination=new Pe(fe(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new Pe(fe(o),e,r,i)}return o}return be(n,[{key:Oe,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,ae(de(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(Ae),Pe=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a,s;ye(this,n),(a=t.call(this))._parentSubscriber=e;var u=fe(a);return ge(r)?s=r:r&&(s=r.next,i=r.error,o=r.complete,r!==ke&&(ge((u=Object.create(r)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(fe(a)))),a._context=u,a._next=s,a._error=i,a._complete=o,a}return be(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;we.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=we.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):_e(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;_e(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};we.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),we.useDeprecatedSynchronousErrorHandling)throw n;_e(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!we.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return we.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(_e(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(Ie),je="function"==typeof Symbol&&Symbol.observable||"@@observable";function Re(e){return e}var De,Ne=((De=function(){function e(t){ye(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return be(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof Ie)return e;if(e[Oe])return e[Oe]()}return e||t||n?new Ie(e,t,n):new Ie(ke)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||we.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),we.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){we.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,i=t.isStopped;if(n||i)return!1;e=r&&r instanceof Ie?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=Le(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:je,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:(0===(r=t).length?Re:1===r.length?r[0]:function(e){return r.reduce(function(e,t){return t(e)},e)})(this);var r}},{key:"toPromise",value:function(e){var t=this;return new(e=Le(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})}}]),e}()).create=function(e){return new De(e)},De);function Le(e){if(e||(e=we.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var Ve,Fe=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),Ue=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return be(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(Ae),Me=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this,e)).destination=e,r}return n}(Ie),He=((Ve=function(e){se(n,e);var t=ce(n);function n(){var e;return ye(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return be(n,[{key:Oe,value:function(){return new Me(this)}},{key:"lift",value:function(e){var t=new ze(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new Fe;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)}},{key:"error",value:function(e){if(this.closed)throw new Fe;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new Fe;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new Fe;return ae(de(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new Fe;return this.hasError?(e.error(this.thrownError),Ae.EMPTY):this.isStopped?(e.complete(),Ae.EMPTY):(this.observers.push(e),new Ue(this,e))}},{key:"asObservable",value:function(){var e=new Ne;return e.source=this,e}}]),n}(Ne)).create=function(e,t){return new ze(e,t)},Ve),ze=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).destination=e,i.source=r,i}return be(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):Ae.EMPTY}}]),n}(He);function qe(e){return e&&"function"==typeof e.schedule}function Be(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ge(e,t))}}var Ge=function(){function e(t,n){ye(this,e),this.project=t,this.thisArg=n}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new We(e,this.project,this.thisArg))}}]),e}(),We=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||fe(o),o}return be(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Ie),Ze=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}};var Ke="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",$e=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Xe(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Ye=function(e){if(e&&"function"==typeof e[je])return r=e,function(e){var t=r[je]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if($e(e))return Ze(e);if(Xe(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,_e),e};if(e&&"function"==typeof e[Ke])return t=e,function(e){for(var n=t[Ke]();;){var r=void 0;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,r,i=Se(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(i," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function Qe(e,t){return new Ne(function(n){var r=new Ae,i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Je(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[je]}(e))return function(e,t){return new Ne(function(n){var r=new Ae;return r.add(t.schedule(function(){var i=e[je]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Xe(e))return function(e,t){return new Ne(function(n){var r=new Ae;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if($e(e))return Qe(e,t);if(function(e){return e&&"function"==typeof e[Ke]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ne(function(n){var r,i=new Ae;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[Ke](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof Ne?e:new Ne(Ye(e))}var et=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this)).parent=e,r}return be(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(Ie),tt=function(e){se(n,e);var t=ce(n);function n(){return ye(this,n),t.apply(this,arguments)}return be(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(Ie);function nt(e,t){if(!t.closed)return e instanceof Ne?e.subscribe(t):Ye(e)(t)}function rt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(rt(function(n,r){return Je(e(n,r)).pipe(Be(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new it(e,n))})}var it=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;ye(this,e),this.project=t,this.concurrent=n}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new ot(e,this.project,this.concurrent))}}]),e}(),ot=function(e){se(n,e);var t=ce(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return ye(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return be(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new et(this),n=this.destination;n.add(t);var r=nt(e,t);r!==t&&n.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(tt);function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return rt(Re,e)}function st(e,t){return t?Qe(e,t):new Ne(Ze(e))}function ut(){return function(e){return e.lift(new lt(e))}}var ct,lt=function(){function e(t){ye(this,e),this.connectable=t}return be(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new ft(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),ft=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).connectable=r,i}return be(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(Ie),ht={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(ct=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return be(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new Ae).add(this.source.subscribe(new dt(this.getSubject(),this))),e.closed&&(this._connection=null,e=Ae.EMPTY)),e}},{key:"refCount",value:function(){return ut()(this)}}]),n}(Ne).prototype)._subscribe},_isComplete:{value:ct._isComplete,writable:!0},getSubject:{value:ct.getSubject},connect:{value:ct.connect},refCount:{value:ct.refCount}},dt=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).connectable=r,i}return be(n,[{key:"_error",value:function(e){this._unsubscribe(),ae(de(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),ae(de(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(Me);function pt(){return new He}function vt(e){for(var t in e)if(e[t]===vt)return t;throw Error("Could not find renamed property on target object.")}function gt(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function yt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(yt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function mt(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var bt=vt({__forward_ref__:vt});function wt(e){return e.__forward_ref__=wt,e.toString=function(){return yt(this())},e}function _t(e){return kt(e)?e():e}function kt(e){return"function"==typeof e&&e.hasOwnProperty(bt)&&e.__forward_ref__===wt}function Ct(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+(null==r?"":" [Expected=> ".concat(n," ").concat(r," ").concat(t," <=Actual]")))}function St(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Et(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function Tt(e){return At(e,It)||At(e,jt)}function At(e,t){return e.hasOwnProperty(t)?e[t]:null}function xt(e){return e&&(e.hasOwnProperty(Pt)||e.hasOwnProperty(Rt))?e[Pt]:null}var Ot,It=vt({"\u0275prov":vt}),Pt=vt({"\u0275inj":vt}),jt=vt({ngInjectableDef:vt}),Rt=vt({ngInjectorDef:vt}),Dt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Nt(e){var t=Ot;return Ot=e,t}function Lt(e,t,n){var r=Tt(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Dt.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(yt(e),"]"))}function Vt(e){return{toString:e}.toString()}var Ft=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Ut=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Mt="undefined"!=typeof globalThis&&globalThis,Ht="undefined"!=typeof window&&window,zt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,qt="undefined"!=typeof global&&global,Bt=Mt||qt||Ht||zt,Gt={},Wt=[],Zt=vt({"\u0275cmp":vt}),Kt=vt({"\u0275dir":vt}),$t=vt({"\u0275pipe":vt}),Xt=vt({"\u0275mod":vt}),Yt=vt({"\u0275loc":vt}),Qt=vt({"\u0275fac":vt}),Jt=vt({__NG_ELEMENT_ID__:vt}),en=0;function tn(e){return Vt(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ft.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Wt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ut.Emulated,id:"c",styles:e.styles||Wt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,o=e.pipes;return n.id+=en++,n.inputs=sn(e.inputs,t),n.outputs=sn(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(nn)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(rn)}:null,n})}function nn(e){return cn(e)||function(e){return e[Kt]||null}(e)}function rn(e){return function(e){return e[$t]||null}(e)}var on={};function an(e){var t={type:e.type,bootstrap:e.bootstrap||Wt,declarations:e.declarations||Wt,imports:e.imports||Wt,exports:e.exports||Wt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Vt(function(){on[e.id]=e.type}),t}function sn(e,t){if(null==e)return Gt;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var un=tn;function cn(e){return e[Zt]||null}function ln(e,t){var n=e[Xt]||null;if(!n&&!0===t)throw new Error("Type ".concat(yt(e)," does not have '\u0275mod' property."));return n}function fn(e){return Array.isArray(e)&&"object"==typeof e[1]}function hn(e){return Array.isArray(e)&&!0===e[1]}function dn(e){return 0!=(8&e.flags)}function pn(e){return 2==(2&e.flags)}function vn(e){return 1==(1&e.flags)}function gn(e){return null!==e.template}function yn(e,t){return e.hasOwnProperty(Qt)?e[Qt]:null}var mn=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,r))).code=e,i}return n}(ie(Error));function bn(e){return"string"==typeof e?e:null==e?"":String(e)}function wn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():bn(e)}function _n(e,t){var n=t?" in ".concat(t):"";throw new mn("201","No provider for ".concat(wn(e)," found").concat(n))}var kn,Cn=function(){function e(t,n,r){ye(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return be(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Sn(){return En}function En(e){return e.type.prototype.ngOnChanges&&(e.setInput=An),Tn}function Tn(){var e=xn(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===Gt)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function An(e,t,n,r){var i=xn(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Gt,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Cn(u&&u.currentValue,t,a===Gt),e[r]=t}function xn(e){return e.__ngSimpleChanges__||null}function On(){return void 0!==kn?kn:"undefined"!=typeof document?document:void 0}function In(e){return!!e.listen}Sn.ngInherit=!0;var Pn={createRenderer:function(e,t){return On()}};function jn(e){for(;Array.isArray(e);)e=e[0];return e}function Rn(e,t){return jn(t[e])}function Dn(e,t){return jn(t[e.index])}function Nn(e,t){return e.data[t]}function Ln(e,t){var n=t[e];return fn(n)?n:n[0]}function Vn(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Fn(e){return 4==(4&e[2])}function Un(e){return 128==(128&e[2])}function Mn(e,t){return null==t?null:e[t]}function Hn(e){e[18]=0}function zn(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var qn={lFrame:hr(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bn(){return qn.bindingsEnabled}function Gn(){return qn.lFrame.lView}function Wn(){return qn.lFrame.tView}function Zn(e){qn.lFrame.contextLView=e}function Kn(){for(var e=$n();null!==e&&64===e.type;)e=e.parent;return e}function $n(){return qn.lFrame.currentTNode}function Xn(){var e=qn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Yn(e,t){var n=qn.lFrame;n.currentTNode=e,n.isParent=t}function Qn(){return qn.lFrame.isParent}function Jn(){qn.lFrame.isParent=!1}function er(){return qn.isInCheckNoChangesMode}function tr(e){qn.isInCheckNoChangesMode=e}function nr(){var e=qn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function rr(){return qn.lFrame.bindingIndex++}function ir(e){qn.lFrame.inI18n=e}function or(e){qn.lFrame.currentDirectiveIndex=e}function ar(){return qn.lFrame.currentQueryIndex}function sr(e){qn.lFrame.currentQueryIndex=e}function ur(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function cr(e,t,n){if(n&Dt.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&Dt.Host||(r=ur(i),null===r)||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var o=qn.lFrame=fr();return o.currentTNode=t,o.lView=e,!0}function lr(e){var t=fr(),n=e[1];qn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function fr(){var e=qn.lFrame,t=null===e?null:e.child;return null===t?hr(e):t}function hr(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function dr(){var e=qn.lFrame;return qn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var pr=dr;function vr(){var e=dr();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function gr(){return qn.lFrame.selectedIndex}function yr(e){qn.lFrame.selectedIndex=e}function mr(){var e=qn.lFrame;return Nn(e.tView,e.selectedIndex)}function br(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var i=e.data[n].type.prototype,o=i.ngAfterContentInit,a=i.ngAfterContentChecked,s=i.ngAfterViewInit,u=i.ngAfterViewChecked,c=i.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),u&&((e.viewHooks||(e.viewHooks=[])).push(n,u),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,u)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function wr(e,t,n){Cr(e,t,3,n)}function _r(e,t,n,r){(3&e[2])===n&&Cr(e,t,n,r)}function kr(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Cr(e,t,n,r){for(var i=null!=r?r:-1,o=t.length-1,a=0,s=void 0!==r?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=r&&a>=r)break}else t[s]<0&&(e[18]+=65536),(a<i||-1==i)&&(Sr(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Sr(e,t,n,r){var i=n[r]<0,o=n[r+1],a=e[i?-n[r]:n[r]];i?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(a)):o.call(a)}var Er=function e(t,n,r){ye(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Tr(e,t,n){for(var r=In(e),i=0;i<n.length;){var o=n[i];if("number"==typeof o){if(0!==o)break;i++;var a=n[i++],s=n[i++],u=n[i++];r?e.setAttribute(t,s,u,a):t.setAttributeNS(a,s,u)}else{var c=o,l=n[++i];xr(c)?r&&e.setProperty(t,c,l):r?e.setAttribute(t,c,l):t.setAttribute(c,l),i++}}return i}function Ar(e){return 3===e||4===e||6===e}function xr(e){return 64===e.charCodeAt(0)}function Or(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var i=t[r];"number"==typeof i?n=i:0===n||Ir(e,n,i,null,-1===n||2===n?t[++r]:null)}return e}function Ir(e,t,n,r,i){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var u=e[o];if("number"==typeof u)break;if(u===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function Pr(e){return-1!==e}function jr(e){return 32767&e}function Rr(e,t){for(var n=e>>16,r=t;n>0;)r=r[15],n--;return r}var Dr=!0;function Nr(e){var t=Dr;return Dr=e,t}var Lr=0;function Vr(e,t){var n=Ur(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Fr(r.data,e),Fr(t,null),Fr(r.blueprint,null));var i=Mr(e,t),o=e.injectorIndex;if(Pr(i))for(var a=jr(i),s=Rr(i,t),u=s[1].data,c=0;c<8;c++)t[o+c]=s[a+c]|u[a+c];return t[o+8]=i,o}function Fr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ur(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Mr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Hr(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Jt)&&(r=n[Jt]),null==r&&(r=n[Jt]=Lr++);var i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function zr(e,t,n){if(n&Dt.Optional)return e;_n(t,"NodeInjector")}function qr(e,t,n,r){if(n&Dt.Optional&&void 0===r&&(r=null),0==(n&(Dt.Self|Dt.Host))){var i=e[9],o=Nt(void 0);try{return i?i.get(t,r,n&Dt.Optional):Lt(t,r,n&Dt.Optional)}finally{Nt(o)}}return zr(r,t,n)}function Br(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dt.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Jt)?e[Jt]:void 0;return"number"==typeof t?t>=0?255&t:Wr:t}(n);if("function"==typeof o){if(!cr(t,e,r))return r&Dt.Host?zr(i,n,r):qr(t,n,r,i);try{var a=o();if(null!=a||r&Dt.Optional)return a;_n(n)}finally{pr()}}else if("number"==typeof o){var s=null,u=Ur(e,t),c=-1,l=r&Dt.Host?t[16][6]:null;for((-1===u||r&Dt.SkipSelf)&&(-1!==(c=-1===u?Mr(e,t):t[u+8])&&Yr(r,!1)?(s=t[1],u=jr(c),t=Rr(c,t)):u=-1);-1!==u;){var f=t[1];if(Xr(o,u,f.data)){var h=Zr(u,t,n,s,r,l);if(h!==Gr)return h}-1!==(c=t[u+8])&&Yr(r,t[1].data[u+8]===l)&&Xr(o,u,t)?(s=f,u=jr(c),t=Rr(c,t)):u=-1}}}return qr(t,n,r,i)}var Gr={};function Wr(){return new Qr(Kn(),Gn())}function Zr(e,t,n,r,i,o){var a=t[1],s=a.data[e+8],u=Kr(s,a,n,null==r?pn(s)&&Dr:r!=a&&0!=(3&s.type),i&Dt.Host&&o===s);return null!==u?$r(t,a,u,s):Gr}function Kr(e,t,n,r,i){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,c=o>>20,l=i?s+c:e.directiveEnd,f=r?s:s+c;f<l;f++){var h=a[f];if(f<u&&n===h||f>=u&&h.type===n)return f}if(i){var d=a[u];if(d&&gn(d)&&d.type===n)return u}return null}function $r(e,t,n,r){var i=e[n],o=t.data;if(i instanceof Er){var a=i;a.resolving&&function(e,t){throw new mn("200","Circular dependency in DI detected for ".concat(e))}(wn(o[n]));var s=Nr(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?Nt(a.injectImpl):null;cr(e,r,Dt.Default);try{i=e[n]=a.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var s=En(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&Nt(u),Nr(s),a.resolving=!1,pr()}}return i}function Xr(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Yr(e,t){return!(e&Dt.Self||e&Dt.Host&&t)}var Qr=function(){function e(t,n){ye(this,e),this._tNode=t,this._lView=n}return be(e,[{key:"get",value:function(e,t){return Br(this._tNode,this._lView,e,void 0,t)}}]),e}();function Jr(e){var t=e;if(kt(e))return function(){var e=Jr(_t(t));return e?e():null};var n=yn(t);if(null===n){var r=xt(t);n=r&&r.factory}return n||null}function ei(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,i=0;i<r;){var o=n[i];if(Ar(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(o===t)return n[i+1];i+=2}}return null}(Kn(),e)}function ti(e,t,n){return Vt(function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var o=oe(i,t);return a.annotation=o,a;function a(e,t,n){for(var r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var ni=function(){function e(t,n){ye(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=St({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return be(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),ri=new ni("AnalyzeForEntryComponents"),ii=Function;function oi(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),oi(r,t)):t!==e&&t.push(r)}return t}function ai(e,t){e.forEach(function(e){return Array.isArray(e)?ai(e,t):t(e)})}function si(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ui(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ci(e,t){var n=li(e,t);if(n>=0)return e[1|n]}function li(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),a=e[o<<1];if(t===a)return o<<1;a>t?i=o:r=o+1}return~(i<<1)}(e,t)}var fi,hi={},di=/\n/gm,pi=vt({provide:String,useValue:vt});function vi(e){var t=fi;return fi=e,t}function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.Default;if(void 0===fi)throw new Error("inject() must be called from an injection context");return null===fi?Lt(e,void 0,t):fi.get(e,t&Dt.Optional?null:void 0,t)}function yi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.Default;return(Ot||gi)(_t(e),t)}function mi(e){for(var t=[],n=0;n<e.length;n++){var r=_t(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=Dt.Default,a=0;a<r.length;a++){var s=r[a],u=s.__NG_DI_FLAG__;"number"==typeof u?-1===u?i=s.token:o|=u:i=s}t.push(yi(i,o))}else t.push(yi(r))}return t}function bi(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}var wi,_i=bi(ti("Inject",function(e){return{token:e}}),-1),ki=bi(ti("Optional"),8),Ci=bi(ti("SkipSelf"),4);function Si(){if(void 0===wi&&(wi=null,Bt.trustedTypes))try{wi=Bt.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return wi}function Ei(e){var t;return(null===(t=Si())||void 0===t?void 0:t.createHTML(e))||e}var Ti=function(){function e(t){ye(this,e),this.changingThisBreaksApplicationSecurity=t}return be(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}();function Ai(e){return e instanceof Ti?e.changingThisBreaksApplicationSecurity:e}var xi=function(){function e(t){ye(this,e),this.inertDocumentHelper=t}return be(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Ei(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),Oi=function(){function e(t){if(ye(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}}return be(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Ei(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Ei(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}]),e}(),Ii=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Pi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ji(e){return(e=String(e)).match(Ii)||e.match(Pi)?e:"unsafe:"+e}function Ri(e){return(e=String(e)).split(",").map(function(e){return ji(e.trim())}).join(", ")}function Di(e){var t,n={},r=pe(e.split(","));try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(i){r.e(i)}finally{r.f()}return n}function Ni(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var Li=Di("area,br,col,hr,img,wbr"),Vi=Di("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Fi=Di("rp,rt"),Ui=Ni(Fi,Vi),Mi=Ni(Li,Ni(Vi,Di("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ni(Fi,Di("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ui),Hi=Di("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zi=Di("srcset"),qi=Ni(Hi,zi,Di("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Di("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Bi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Gi(e){var t,n=(t=Gn())&&t[12];return n?n.sanitize(Bi.URL,e)||"":function(e,t){var n=function(e){return e instanceof Ti&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}(e,"URL")?Ai(e):ji(bn(e))}function Wi(e){return function(e){var t;return(null===(t=Si())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Zi(e){return e.ngDebugContext}function Ki(e){return e.ngOriginalError}function $i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var Xi=function(){function e(){ye(this,e),this._console=console}return be(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||$i}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Zi(e)?Zi(e):this._findContext(Ki(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Ki(e);t&&Ki(t);)t=Ki(t);return t}}]),e}(),Yi=/^>|^->|<!--|-->|--!>|<!-$/g,Qi=/(<|>)/;function Ji(e,t){e.__ngContext__=t}var eo=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Bt);function to(e){return e instanceof Function?e():e}var no,ro=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function io(e,t){return no(e,t)}function oo(e){var t=e[3];return hn(t)?t[3]:t}function ao(e){return uo(e[13])}function so(e){return uo(e[4])}function uo(e){for(;null!==e&&!hn(e);)e=e[4];return e}function co(e,t,n,r,i){if(null!=r){var o,a=!1;hn(r)?o=r:fn(r)&&(a=!0,r=r[0]);var s=jn(r);0===e&&null!==n?null==i?_o(t,n,s):wo(t,n,s,i||null,!0):1===e&&null!==n?wo(t,n,s,i||null,!0):2===e?Po(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,r,i){var o=n[7];o!==jn(n)&&co(t,e,r,o,i);for(var a=10;a<n.length;a++){var s=n[a];Ro(s[1],s,e,t,r,o)}}(t,e,o,n,i)}}function lo(e,t){return In(e)?e.createText(t):e.createTextNode(t)}function fo(e,t,n){In(e)?e.setValue(t,n):t.textContent=n}function ho(e,t){return e.createComment(function(e){return e.replace(Yi,function(e){return e.replace(Qi,"\u200b$1\u200b")})}(t))}function po(e,t,n){return In(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function vo(e,t){var n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,zn(i,-1)),n.splice(r,1)}function go(e,t){if(!(e.length<=10)){var n,r=10+t,i=e[r];if(i){var o=i[17];null!==o&&o!==e&&vo(o,i),t>0&&(e[r-1][4]=i[4]);var a=ui(e,10+t);Ro(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function yo(e,t){if(!(256&t[2])){var n=t[11];In(n)&&n.destroyNode&&Ro(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return mo(e[1],e);for(;t;){var n=null;if(fn(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)fn(t)&&mo(t[1],t),t=t[3];null===t&&(t=e),fn(t)&&mo(t[1],t),n=t&&t[4]}t=n}}(t)}}function mo(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r<n.length;r+=2){var i=t[n[r]];if(!(i instanceof Er)){var o=n[r+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2)o[a+1].call(i[o[a]]);else o.call(i)}}}(e,t),function(e,t){var n=e.cleanup,r=t[7],i=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):jn(t[a]),u=r[i=n[o+2]],c=n[o+3];"boolean"==typeof c?s.removeEventListener(n[o],u,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{var l=r[i=n[o+1]];n[o].call(l)}if(null!==r){for(var f=i+1;f<r.length;f++)(0,r[f])();t[7]=null}}(e,t),1===t[1].type&&In(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&hn(t[3])){n!==t[3]&&vo(n,t);var r=t[19];null!==r&&r.detachView(e)}}}function bo(e,t,n){for(var r=t;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){var i=e.data[r.directiveStart].encapsulation;if(i===Ut.None||i===Ut.Emulated)return null}return Dn(r,n)}function wo(e,t,n,r,i){In(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function _o(e,t,n){In(e)?e.appendChild(t,n):t.appendChild(n)}function ko(e,t,n,r,i){null!==r?wo(e,t,n,r,i):_o(e,t,n)}function Co(e,t){return In(e)?e.parentNode(t):t.parentNode}function So(e,t,n){return 40&e.type?Dn(e,n):null}var Eo,To=So;function Ao(e,t){To=e,Eo=t}function xo(e,t,n,r){var i=function(e,t,n){return bo(e,t.parent,n)}(e,r,t),o=t[11],a=function(e,t,n){return To(e,t,n)}(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(var s=0;s<n.length;s++)ko(o,i,n[s],a,!1);else ko(o,i,n,a,!1);void 0!==Eo&&Eo(o,r,t,n,i)}function Oo(e,t){if(null!==t){var n=t.type;if(3&n)return Dn(t,e);if(4&n)return Io(-1,e[t.index]);if(8&n){var r=t.child;if(null!==r)return Oo(e,r);var i=e[t.index];return hn(i)?Io(-1,i):jn(i)}if(32&n)return io(t,e)()||jn(e[t.index]);var o=e[16],a=o[6],s=oo(o),u=a.projection[t.projection];return null!=u?Oo(s,u):Oo(e,t.next)}return null}function Io(e,t){var n=10+e+1;if(n<t.length){var r=t[n],i=r[1].firstChild;if(null!==i)return Oo(r,i)}return t[7]}function Po(e,t,n){var r=Co(e,t);r&&function(e,t,n,r){In(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function jo(e,t,n,r,i,o,a){for(;null!=n;){var s=r[n.index],u=n.type;if(a&&0===t&&(s&&Ji(jn(s),r),n.flags|=4),64!=(64&n.flags))if(8&u)jo(e,t,n.child,r,i,o,!1),co(t,e,i,s,o);else if(32&u){for(var c=io(n,r),l=void 0;l=c();)co(t,e,i,l,o);co(t,e,i,s,o)}else 16&u?Do(e,t,r,n,i,o):co(t,e,i,s,o);n=a?n.projectionNext:n.next}}function Ro(e,t,n,r,i,o){jo(n,r,e.firstChild,t,i,o,!1)}function Do(e,t,n,r,i,o){var a=n[16],s=a[6].projection[r.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)co(t,e,i,s[u],o);else jo(e,t,s,a[3],i,o,!0)}function No(e,t,n){In(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Lo(e,t,n){In(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Vo(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function Fo(e,t,n){for(var r=0;r<e.length;){var i=e[r++];if(n&&"class"===i){if(-1!==Vo((i=e[r]).toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function Uo(e){return 4===e.type&&"ng-template"!==e.value}function Mo(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Ho(e,t,n){for(var r=4,i=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(Ar(e[t]))return t;return e.length}(i),a=!1,s=0;s<t.length;s++){var u=t[s];if("number"!=typeof u){if(!a)if(4&r){if(r=2|1&r,""!==u&&!Mo(e,u,n)||""===u&&1===t.length){if(zo(r))return!1;a=!0}}else{var c=8&r?u:t[++s];if(8&r&&null!==e.attrs){if(!Fo(e.attrs,c,n)){if(zo(r))return!1;a=!0}continue}var l=qo(8&r?"class":u,i,Uo(e),n);if(-1===l){if(zo(r))return!1;a=!0;continue}if(""!==c){var f;f=l>o?"":i[l+1].toLowerCase();var h=8&r?f:null;if(h&&-1!==Vo(h,c,0)||2&r&&c!==f){if(zo(r))return!1;a=!0}}}}else{if(!a&&!zo(r)&&!zo(u))return!1;if(a&&zo(u))continue;a=!1,r=u|1&r}}return zo(r)||a}function zo(e){return 0==(1&e)}function qo(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i<t.length;){var a=t[i];if(a===e)return i;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++i];"string"==typeof s;)s=t[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Bo(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)if(Ho(e,t[r],n))return!0;return!1}function Go(e,t){return e?":not("+t.trim()+")":t}function Wo(e){for(var t=e[0],n=1,r=2,i="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&r){var s=e[++n];i+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||zo(a)||(t+=Go(o,i),i=""),r=a,o=o||!zo(r);n++}return""!==i&&(t+=Go(o,i)),t}var Zo={};function Ko(e){$o(Wn(),Gn(),gr()+e,er())}function $o(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&wr(t,i,n)}else{var o=e.preOrderHooks;null!==o&&_r(t,o,0,n)}yr(n)}function Xo(e,t){return e<<17|t<<2}function Yo(e){return e>>17&32767}function Qo(e){return 2|e}function Jo(e){return(131068&e)>>2}function ea(e,t){return-131069&e|t<<2}function ta(e){return 1|e}function na(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1];if(-1!==o){var a=e.data[o];sr(i),a.contentQueries(2,t[o],o)}}}function ra(e,t,n,r,i,o,a,s,u,c){var l=t.blueprint.slice();return l[0]=i,l[2]=140|r,Hn(l),l[3]=l[15]=e,l[8]=n,l[10]=a||e&&e[10],l[11]=s||e&&e[11],l[12]=u||e&&e[12]||null,l[9]=c||e&&e[9]||null,l[6]=o,l[16]=2==t.type?e[16]:l,l}function ia(e,t,n,r,i){var o=e.data[t];if(null===o)o=oa(e,t,n,r,i),qn.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;var a=Xn();o.injectorIndex=null===a?-1:a.injectorIndex}return Yn(o,!0),o}function oa(e,t,n,r,i){var o=$n(),a=Qn(),s=e.data[t]=function(e,t,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}function aa(e,t,n,r){if(0===n)return-1;for(var i=t.length,o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function sa(e,t,n){lr(t);try{var r=e.viewQuery;null!==r&&Fa(1,r,n);var i=e.template;null!==i&&la(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&na(e,t),e.staticViewQueries&&Fa(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)Ra(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,vr()}}function ua(e,t,n,r){var i=t[2];if(256!=(256&i)){lr(t);var o=er();try{Hn(t),qn.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&la(e,t,n,2,r);var a=3==(3&i);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&wr(t,s,null)}else{var u=e.preOrderHooks;null!==u&&_r(t,u,0,null),kr(t,0)}if(function(e){for(var t=ao(e);null!==t;t=so(t))if(t[2])for(var n=t[9],r=0;r<n.length;r++){var i=n[r],o=i[3];0==(1024&i[2])&&zn(o,1),i[2]|=1024}}(t),function(e){for(var t=ao(e);null!==t;t=so(t))for(var n=10;n<t.length;n++){var r=t[n],i=r[1];Un(r)&&ua(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&na(e,t),!o)if(a){var c=e.contentCheckHooks;null!==c&&wr(t,c)}else{var l=e.contentHooks;null!==l&&_r(t,l,1),kr(t,1)}!function(e,t){var n,r,i,o=e.hostBindingOpCodes;if(null!==o)try{for(var a=0;a<o.length;a++){var s=o[a];if(s<0)yr(~s);else{var u=s,c=o[++a],l=o[++a];n=c,r=u,i=void 0,(i=qn.lFrame).bindingIndex=i.bindingRootIndex=n,or(r),l(2,t[u])}}}finally{yr(-1)}}(e,t);var f=e.components;null!==f&&function(e,t){for(var n=0;n<t.length;n++)Pa(e,t[n])}(t,f);var h=e.viewQuery;if(null!==h&&Fa(2,h,r),!o)if(a){var d=e.viewCheckHooks;null!==d&&wr(t,d)}else{var p=e.viewHooks;null!==p&&_r(t,p,2),kr(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,zn(t[3],-1))}finally{vr()}}}function ca(e,t,n,r){var i=t[10],o=!er(),a=Fn(t);try{o&&!a&&i.begin&&i.begin(),a&&sa(e,t,r),ua(e,t,n,r)}finally{o&&!a&&i.end&&i.end()}}function la(e,t,n,r,i){var o=gr();try{yr(-1),2&r&&t.length>20&&$o(e,t,20,er()),n(r,i)}finally{yr(o)}}function fa(e,t,n){if(dn(t))for(var r=t.directiveEnd,i=t.directiveStart;i<r;i++){var o=e.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}function ha(e,t,n){Bn()&&(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Vr(n,t),Ji(r,t);for(var a=n.initialInputs,s=i;s<o;s++){var u=e.data[s],c=gn(u);c&&Ta(t,n,u);var l=$r(t,e,s,n);Ji(l,t),null!==a&&xa(0,s-i,l,u,0,a),c&&(Ln(n.index,t)[8]=l)}}(e,t,n,Dn(n,t)),128==(128&n.flags)&&function(e,t,n){var r=n.directiveStart,i=n.directiveEnd,o=n.index,a=qn.lFrame.currentDirectiveIndex;try{yr(o);for(var s=r;s<i;s++){var u=e.data[s],c=t[s];or(s),null===u.hostBindings&&0===u.hostVars&&null===u.hostAttrs||_a(u,c)}}finally{yr(-1),or(a)}}(e,t,n))}function da(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dn,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o<r.length;o+=2){var a=r[o+1],s=-1===a?n(t,e):e[a];e[i++]=s}}function pa(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=va(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function va(e,t,n,r,i,o,a,s,u,c){var l=20+r,f=l+i,h=function(e,t){for(var n=[],r=0;r<t;r++)n.push(r<e?null:Zo);return n}(l,f),d="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:s,declTNode:t,data:h.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:u,consts:d,incompleteFirstPass:!1}}function ga(e,t,n,r){var i=Ma(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Ha(e).push(r,i.length-1))}function ya(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function ma(e,t,n,r,i,o,a,s){var u,c,l=Dn(t,n),f=t.inputs;!s&&null!=f&&(u=f[r])?(qa(e,n,u,r,i),pn(t)&&function(e,t){var n=Ln(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r="class"===(c=r)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,i=null!=a?a(i,t.value||"",r):i,In(o)?o.setProperty(l,r,i):xr(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function ba(e,t,n,r){var i=!1;if(Bn()){var o=function(e,t,n){var r=e.directiveRegistry,i=null;if(r)for(var o=0;o<r.length;o++){var a=r[o];Bo(n,a.selectors,!1)&&(i||(i=[]),Hr(Vr(n,t),e,a.type),gn(a)?(ka(e,n),i.unshift(a)):i.push(a))}return i}(e,t,n),a=null===r?null:{"":-1};if(null!==o){i=!0,Sa(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var u=o[s];u.providersResolver&&u.providersResolver(u)}for(var c=!1,l=!1,f=aa(e,t,o.length,null),h=0;h<o.length;h++){var d=o[h];n.mergedAttrs=Or(n.mergedAttrs,d.hostAttrs),Ea(e,n,t,f,d),Ca(f,d,a),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128);var p=d.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),c=!0),l||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),l=!0),f++}!function(e,t){for(var n=t.directiveEnd,r=e.data,i=t.attrs,o=[],a=null,s=null,u=t.directiveStart;u<n;u++){var c=r[u],l=c.inputs,f=null===i||Uo(t)?null:Oa(l,i);o.push(f),a=ya(l,u,a),s=ya(c.outputs,u,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var r=e.localNames=[],i=0;i<t.length;i+=2){var o=n[t[i+1]];if(null==o)throw new mn("301","Export of name '".concat(t[i+1],"' not found!"));r.push(t[i],o)}}(n,r,a)}return n.mergedAttrs=Or(n.mergedAttrs,n.attrs),i}function wa(e,t,n,r,i,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var u=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,a)}}function _a(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ka(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ca(e,t,n){if(n){if(t.exportAs)for(var r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;gn(t)&&(n[""]=e)}}function Sa(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ea(e,t,n,r,i){e.data[r]=i;var o=i.factory||(i.factory=yn(i.type)),a=new Er(o,gn(i),null);e.blueprint[r]=a,n[r]=a,wa(e,t,0,r,aa(e,n,i.hostVars,Zo),i)}function Ta(e,t,n){var r=Dn(t,e),i=pa(n),o=e[10],a=Da(e,ra(e,i,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n),null,null));e[t.index]=a}function Aa(e,t,n,r,i,o,a){if(null==o)In(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{var s=null==a?bn(o):a(o,r||"",i);In(e)?e.setAttribute(t,i,s,n):n?t.setAttributeNS(n,i,s):t.setAttribute(i,s)}}function xa(e,t,n,r,i,o){var a=o[t];if(null!==a)for(var s=r.setInput,u=0;u<a.length;){var c=a[u++],l=a[u++],f=a[u++];null!==s?r.setInput(n,f,c,l):n[l]=f}}function Oa(e,t){for(var n=null,r=0;r<t.length;){var i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Ia(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Pa(e,t){var n=Ln(t,e);if(Un(n)){var r=n[1];80&n[2]?ua(r,n,r.template,n[8]):n[5]>0&&ja(n)}}function ja(e){for(var t=ao(e);null!==t;t=so(t))for(var n=10;n<t.length;n++){var r=t[n];if(1024&r[2]){var i=r[1];ua(i,r,i.template,r[8])}else r[5]>0&&ja(r)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Ln(o[a],e);Un(s)&&s[5]>0&&ja(s)}}function Ra(e,t){var n=Ln(t,e),r=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),sa(r,n,n[8])}function Da(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Na(e){for(;e;){e[2]|=64;var t=oo(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function La(e,t,n){var r=t[10];r.begin&&r.begin();try{ua(e,t,e.template,n)}catch(i){throw za(t,i),i}finally{r.end&&r.end()}}function Va(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],r=Vn(n),i=r[1];ca(i,r,i.template,n)}}(e[8])}function Fa(e,t,n){sr(0),t(e,n)}var Ua=Promise.resolve(null);function Ma(e){return e[7]||(e[7]=[])}function Ha(e){return e.cleanup||(e.cleanup=[])}function za(e,t){var n=e[9],r=n?n.get(Xi,null):null;r&&r.handleError(t)}function qa(e,t,n,r,i){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],u=t[a],c=e.data[a];null!==c.setInput?c.setInput(u,i,r,s):u[s]=i}}function Ba(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?i=mt(i,s):2==o&&(r=mt(r,s+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var Ga,Wa=new ni("INJECTOR",-1),Za=function(){function e(){ye(this,e)}return be(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hi;if(t===hi){var n=new Error("NullInjectorError: No provider for ".concat(yt(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Ka=new ni("Set Injector scope."),$a={},Xa={},Ya=[];function Qa(){return void 0===Ga&&(Ga=new Za),Ga}function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new es(e,n,t||Qa(),r)}var es=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ye(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&ai(n,function(e){return i.processProvider(e,t,n)}),ai([t],function(e){return i.processInjectorType(e,[],a)}),this.records.set(Wa,rs(void 0,this));var s=this.records.get(Ka);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:yt(t))}return be(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dt.Default;this.assertNotDestroyed();var r,i=vi(this);try{if(!(n&Dt.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=("function"==typeof(r=e)||"object"==typeof r&&r instanceof ni)&&Tt(e);o=a&&this.injectableDefInScope(a)?rs(ts(e),$a):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&Dt.Self?Qa():this.parent).get(e,t=n&Dt.Optional&&t===hi?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(yt(e)),i)throw s;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=yt(t);if(Array.isArray(t))i=t.map(yt).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):yt(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(di,"\n  "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{vi(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(yt(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=_t(e)))return!1;var i=xt(e),o=null==i&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=xt(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{ai(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],n=t.ngModule,i=t.providers;ai(i,function(e){return r.processProvider(e,n,i||Ya)})},l=0;l<u.length;l++)c(l)}this.injectorDefTypes.add(a),this.records.set(a,rs(i.factory,$a));var f=i.providers;if(null!=f&&!s){var h=e;ai(f,function(e){return r.processProvider(e,h,f)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var r=os(e=_t(e))?e:_t(e&&e.provide),i=function(e,t,n){return is(e)?rs(void 0,e.useValue):rs(ns(e),$a)}(e);if(os(e)||!0!==e.multi)this.records.get(r);else{var o=this.records.get(r);o||((o=rs(void 0,$a,!0)).factory=function(){return mi(o.multi)},this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,i)}},{key:"hydrate",value:function(e,t){var n;return t.value===$a&&(t.value=Xa,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}]),e}();function ts(e){var t=Tt(e),n=null!==t?t.factory:yn(e);if(null!==n)return n;var r=xt(e);if(null!==r)return r.factory;if(e instanceof ni)throw new Error("Token ".concat(yt(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=function(e,t){for(var n=[],r=0;r<e;r++)n.push("?");return n}(t);throw new Error("Can't resolve all parameters for ".concat(yt(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[It]||e[jt]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function ns(e,t,n){var r,i;if(os(e)){var o=_t(e);return yn(o)||ts(o)}if(is(e))r=function(){return _t(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,re(mi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return yi(_t(e.useExisting))};else{var a=_t(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return yn(a)||ts(a);r=function(){return oe(a,re(mi(e.deps)))}}return r}function rs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function is(e){return null!==e&&"object"==typeof e&&pi in e}function os(e){return"function"==typeof e}var as=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Ja(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},ss=function(){var e=function(){function e(){ye(this,e)}return be(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?as(e,t,""):as(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=hi,e.NULL=new Za,e.\u0275prov=St({token:e,providedIn:"any",factory:function(){return yi(Wa)}}),e.__NG_ELEMENT_ID__=-1,e}();function us(e,t){br(Vn(e)[1],Kn())}function cs(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(gn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=ls(e.inputs),o.declaredInputs=ls(e.declaredInputs),o.outputs=ls(e.outputs);var a=i.hostBindings;a&&ds(e,a);var s=i.viewQuery,u=i.contentQueries;if(s&&fs(e,s),u&&hs(e,u),gt(e.inputs,i.inputs),gt(e.declaredInputs,i.declaredInputs),gt(e.outputs,i.outputs),gn(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var f=0;f<l.length;f++){var h=l[f];h&&h.ngInherit&&h(e),h===cs&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,r=e.length-1;r>=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Or(i.hostAttrs,n=Or(n,i.hostAttrs))}}(r)}function ls(e){return e===Gt?{}:e===Wt?[]:e}function fs(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function hs(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ds(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var ps=null;function vs(){if(!ps){var e=Bt.Symbol;if(e&&e.iterator)ps=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(ps=r)}}return ps}function gs(e){return!!ys(e)&&(Array.isArray(e)||!(e instanceof Map)&&vs()in e)}function ys(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ms(e,t,n){return e[t]=n}function bs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ws(e,t,n,r){var i=Gn();return bs(i,rr(),t)&&(Wn(),function(e,t,n,r,i,o){var a=Dn(e,t);Aa(t[11],a,o,e.value,n,r,i)}(mr(),i,e,t,n,r)),ws}function _s(e,t,n,r){return bs(e,rr(),n)?t+bn(n)+r:Zo}function ks(e,t,n,r,i,o,a,s){var u=Gn(),c=Wn(),l=e+20,f=c.firstCreatePass?function(e,t,n,r,i,o,a,s,u){var c=t.consts,l=ia(t,e,4,a||null,Mn(c,s));ba(t,n,l,Mn(c,u)),br(t,l);var f=l.tViews=va(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}(l,c,u,t,n,r,i,o,a):c.data[l];Yn(f,!1);var h=u[11].createComment("");xo(c,u,h,f),Ji(h,u),Da(u,u[l]=Ia(h,u,h,f)),vn(f)&&ha(c,u,f),null!=a&&da(u,f,s)}function Cs(e){return function(e,t){return e[t]}(qn.lFrame.contextLView,20+e)}function Ss(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dt.Default,n=Gn();return null===n?yi(e,t):Br(Kn(),n,_t(e),t)}function Es(e,t,n){var r=Gn();return bs(r,rr(),t)&&ma(Wn(),mr(),r,e,t,r[11],n,!1),Es}function Ts(e,t,n,r,i){var o=i?"class":"style";qa(e,n,t.inputs[o],o,r)}function As(e,t,n,r){var i=Gn(),o=Wn(),a=20+e,s=i[11],u=i[a]=po(s,t,qn.lFrame.currentNamespace),c=o.firstCreatePass?function(e,t,n,r,i,o,a){var s=t.consts,u=ia(t,e,2,i,Mn(s,o));return ba(t,n,u,Mn(s,a)),null!==u.attrs&&Ba(u,u.attrs,!1),null!==u.mergedAttrs&&Ba(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,i,0,t,n,r):o.data[a];Yn(c,!0);var l=c.mergedAttrs;null!==l&&Tr(s,u,l);var f=c.classes;null!==f&&Lo(s,u,f);var h=c.styles;null!==h&&No(s,u,h),64!=(64&c.flags)&&xo(o,i,u,c),0===qn.lFrame.elementDepthCount&&Ji(u,i),qn.lFrame.elementDepthCount++,vn(c)&&(ha(o,i,c),fa(o,c,i)),null!==r&&da(i,c)}function xs(){var e=Kn();Qn()?Jn():Yn(e=e.parent,!1);var t=e;qn.lFrame.elementDepthCount--;var n=Wn();n.firstCreatePass&&(br(n,e),dn(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Ts(n,t,Gn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Ts(n,t,Gn(),t.stylesWithoutHost,!1)}function Os(e,t,n,r){As(e,t,n,r),xs()}function Is(e,t,n){var r=Gn(),i=Wn(),o=e+20,a=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,a=Mn(o,r),s=ia(t,e,8,"ng-container",a);return null!==a&&Ba(s,a,!0),ba(t,n,s,Mn(o,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,i,r,t,n):i.data[o];Yn(a,!0);var s=r[o]=r[11].createComment("");xo(i,r,s,a),Ji(s,r),vn(a)&&(ha(i,r,a),fa(i,a,r)),null!=n&&da(r,a)}function Ps(){var e=Kn(),t=Wn();Qn()?Jn():Yn(e=e.parent,!1),t.firstCreatePass&&(br(t,e),dn(e)&&t.queries.elementEnd(e))}function js(){return Gn()}function Rs(e){return!!e&&"function"==typeof e.then}var Ds=function(e){return!!e&&"function"==typeof e.subscribe};function Ns(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Gn(),o=Wn(),a=Kn();return function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=vn(r),c=e.firstCreatePass&&Ha(e),l=Ma(t),f=!0;if(3&r.type){var h=Dn(r,t),d=s?s(h):Gt,p=d.target||h,v=l.length,g=s?function(e){return s(jn(e[r.index])).target}:r.index;if(In(n)){var y=null;if(!s&&u&&(y=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;o<i.length-1;o+=2){var a=i[o];if(a===n&&i[o+1]===r){var s=t[7],u=i[o+2];return s.length>u?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,f=!1;else{o=Vs(r,t,o,!1);var m=n.listen(d.name||p,i,o);l.push(o,m),c&&c.push(i,g,v,v+1)}}else o=Vs(r,t,o,!0),p.addEventListener(i,o,a),l.push(o),c&&c.push(i,g,v,a)}else o=Vs(r,t,o,!1);var b,w=r.outputs;if(f&&null!==w&&(b=w[i])){var _=b.length;if(_)for(var k=0;k<_;k+=2){var C=t[b[k]][b[k+1]].subscribe(o),S=l.length;l.push(o,C),c&&c.push(i,r.index,S,-(S+1))}}}(o,i,i[11],a,e,t,n,r),Ns}function Ls(e,t,n){try{return!1!==t(n)}catch(r){return za(e,r),!1}}function Vs(e,t,n,r){return function i(o){if(o===Function)return n;var a=2&e.flags?Ln(e.index,t):t;0==(32&t[2])&&Na(a);for(var s=Ls(t,n,o),u=i.__ngNextListenerFn__;u;)s=Ls(t,u,o)&&s,u=u.__ngNextListenerFn__;return r&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function Fs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(qn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,qn.lFrame.contextLView))[8]}(e)}function Us(e,t,n,r,i){var o=Gn(),a=_s(o,t,n,r);return a!==Zo&&ma(Wn(),mr(),o,e,a,o[11],i,!1),Us}var Ms=[];function Hs(e,t,n,r,i){for(var o=e[n+1],a=null===t,s=r?Yo(o):Jo(o),u=!1;0!==s&&(!1===u||a);){var c=e[s+1];zs(e[s],t)&&(u=!0,e[s+1]=r?ta(c):Qo(c)),s=r?Yo(c):Jo(c)}u&&(e[n+1]=r?Qo(o):ta(o))}function zs(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&li(e,t)>=0}function qs(e,t){return function(e,t,n,r){var i,o,a=Gn(),s=Wn(),u=(i=qn.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);s.firstUpdatePass&&function(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[gr()],a=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(16&e.flags)})(o)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=qn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=t.residualClasses;if(null===i)0===t.classBindings&&(n=Gs(n=Bs(null,e,t,n,!0),t.attrs,!0),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=Bs(i,e,t,n,!0),null===o){var s=function(e,t,n){var r=t.classBindings;if(0!==Jo(r))return e[Yo(r)]}(e,t);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[Yo(t.classBindings)]=r}(e,t,0,s=Gs(s=Bs(null,e,t,s[1],!0),t.attrs,!0))}else o=function(e,t,n){for(var r,i=t.directiveEnd,o=1+t.directiveStylingLast;o<i;o++)r=Gs(r,e[o].hostAttrs,!0);return Gs(r,t.attrs,!0)}(e,t)}return void 0!==o&&(t.residualClasses=o),n}(i,o,t),function(e,t,n,r,i,o){var a=t.classBindings,s=Yo(a),u=Jo(a);e[r]=n;var c,l=!1;if(Array.isArray(n)){var f=n;(null===(c=f[1])||li(f,c)>0)&&(l=!0)}else c=n;if(i)if(0!==u){var h=Yo(e[s+1]);e[r+1]=Xo(h,s),0!==h&&(e[h+1]=ea(e[h+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=Xo(s,0),0!==s&&(e[s+1]=ea(e[s+1],r)),s=r;else e[r+1]=Xo(u,0),0===s?s=r:e[u+1]=ea(e[u+1],r),u=r;l&&(e[r+1]=Qo(e[r+1])),Hs(e,c,r,!0),Hs(e,c,r,!1),function(e,t,n,r,i){var o=e.residualClasses;null!=o&&"string"==typeof t&&li(o,t)>=0&&(n[r+1]=ta(n[r+1]))}(t,c,e,r),a=Xo(s,u),t.classBindings=a}(i,o,t,n,a)}}(s,e,u),t!==Zo&&bs(a,u,t)&&function(e,t,n,r,i,o,a,s){if(3&t.type){var u=e.data,c=u[s+1];Zs(1==(1&c)?Ws(u,t,n,i,Jo(c),!0):void 0)||(Zs(o)||2==(2&c)&&(o=Ws(u,null,n,i,s,!0)),function(e,t,n,r,i){var o=In(e);i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r)}(r,0,Rn(gr(),n),i,o))}}(s,s.data[gr()],a,a[11],e,a[u+1]=function(e,t){return null==e||"object"==typeof e&&(e=yt(Ai(e))),e}(t),0,u)}(e,t),qs}function Bs(e,t,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(r=Gs(r,(o=t[s]).hostAttrs,i),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),r}function Gs(e,t,n){var r,i,o,a,s=n?1:2,u=-1;if(null!==t)for(var c=0;c<t.length;c++){var l=t[c];"number"==typeof l?u=l:u===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),r=e,i=l,o=!!n||t[++c],a=void 0,(a=li(r,i))>=0?r[1|a]=o:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(r,a=~a,i,o))}return void 0===e?null:e}function Ws(e,t,n,r,i,o){for(var a,s=null===t;i>0;){var u=e[i],c=Array.isArray(u),l=c?u[1]:u,f=null===l,h=n[i+1];h===Zo&&(h=f?Ms:void 0);var d=f?ci(h,r):l===r?h:void 0;if(c&&!Zs(d)&&(d=ci(u,r)),Zs(d)&&(a=d,s))return a;var p=e[i+1];i=s?Yo(p):Jo(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=ci(v,r))}return a}function Zs(e){return void 0!==e}function Ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Gn(),r=Wn(),i=e+20,o=r.firstCreatePass?ia(r,i,1,t,null):r.data[i],a=n[i]=lo(n[11],t);xo(r,n,a,o),Yn(o,!1)}function $s(e){return Xs("",e,""),$s}function Xs(e,t,n){var r=Gn(),i=_s(r,e,t,n);return i!==Zo&&function(e,t,n){var r=Rn(t,e);fo(e[11],r,n)}(r,gr(),i),Xs}function Ys(e,t,n){var r=Gn();return bs(r,rr(),t)&&ma(Wn(),mr(),r,e,t,r[11],n,!0),Ys}var Qs=void 0,Js=["en",[["a","p"],["AM","PM"],Qs],[["AM","PM"],Qs,Qs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qs,"{1} 'at' {0}",Qs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],eu={};function tu(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=nu(t);if(n)return n;var r=t.split("-")[0];if(n=nu(r))return n;if("en"===r)return Js;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[ru.PluralCase]}function nu(e){return e in eu||(eu[e]=Bt.ng&&Bt.ng.common&&Bt.ng.common.locales&&Bt.ng.common.locales[e]),eu[e]}var ru=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),iu=["zero","one","two","few","many"],ou={marker:"element"},au={marker:"ICU"},su=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({}),uu="en-US";function cu(e){var t;null==(t=e)&&Ct("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(uu=e.toLowerCase().replace(/_/g,"-"))}function lu(e,t,n){var r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?So(e,0,n):jn(n[i])}function fu(e,t,n,r,i){var o=t.insertBeforeIndex;if(Array.isArray(o)){var a=r,s=null;if(3&t.type||(s=a,a=i),null!==a&&0==(2&t.flags))for(var u=1;u<o.length;u++)wo(e,a,n[o[u]],s,!1)}}function hu(e,t){if(e.push(t),e.length>1)for(var n=e.length-2;n>=0;n--){var r=e[n];du(r)||pu(r,t)&&null===(i=void 0,i=r.insertBeforeIndex,Array.isArray(i)?i[0]:i)&&vu(r,t.index)}var i}function du(e){return!(64&e.type)}function pu(e,t){return du(t)||e.index>t.index}function vu(e,t){var n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Ao(lu,fu),e.insertBeforeIndex=t)}function gu(e,t){var n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function yu(e,t,n){var r=oa(e,n,64,null,null);return hu(t,r),r}function mu(e,t){var n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}var bu=0,wu=0;function _u(e,t,n,r){for(var i,o=n[11],a=null,s=0;s<t.length;s++){var u=t[s];if("string"==typeof u){var c=t[++s];null===n[c]&&(n[c]=lo(o,u))}else if("number"==typeof u)switch(1&u){case 0:var l=u>>>17,f=void 0,h=void 0;if(null===a&&(a=l,i=Co(o,r)),l===a?(f=r,h=i):(f=null,h=jn(n[l])),null!==h){var d=(131070&u)>>>1;wo(o,h,n[d],f,!1);var p=gu(e,d);if(null!==p&&"object"==typeof p){var v=mu(p,n);null!==v&&_u(e,p.create[v],n,n[p.anchorIdx])}}break;case 1:var g=t[++s],y=t[++s];Aa(o,Rn(u>>>1,n),null,null,g,y,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(u,'"'))}else switch(u){case au:var m=t[++s],b=t[++s];null===n[b]&&Ji(n[b]=ho(o,m),n);break;case ou:var w=t[++s],_=t[++s];null===n[_]&&Ji(n[_]=po(o,w,null),n)}}}function ku(e,t,n,r,i){for(var o=0;o<n.length;o++){var a=n[o],s=n[++o];if(a&i)for(var u="",c=o+1;c<=o+s;c++){var l=n[c];if("string"==typeof l)u+=l;else if("number"==typeof l)if(l<0)u+=bn(t[r-l]);else{var f=l>>>2;switch(3&l){case 1:var h=n[++c],d=n[++c],p=e.data[f];"string"==typeof p?Aa(t[11],t[f],null,p,h,u,d):ma(e,p,t,h,u,t[11],d,!1);break;case 0:var v=t[f];null!==v&&fo(t[11],v,u);break;case 2:Su(e,gu(e,f),t,u);break;case 3:Cu(e,gu(e,f),r,t)}}}else{var g=n[o+1];if(g>0&&3==(3&g)){var y=gu(e,g>>>2);t[y.currentCaseLViewIndex]<0&&Cu(e,y,r,t)}}o+=s}}function Cu(e,t,n,r){var i=r[t.currentCaseLViewIndex];if(null!==i){var o=bu;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),ku(e,r,t.update[i],n,o)}}function Su(e,t,n,r){var i=function(e,t){var n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:var r=function(e,t){var n=tu(t)(parseInt(e,10)),r=iu[n];return void 0!==r?r:"other"}(t,uu);-1===(n=e.cases.indexOf(r))&&"other"!==r&&(n=e.cases.indexOf("other"));break;case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(mu(t,n)!==i&&(Eu(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){var o=n[t.anchorIdx];o&&_u(e,t.create[i],n,o)}}function Eu(e,t,n){var r=mu(t,n);if(null!==r)for(var i=t.remove[r],o=0;o<i.length;o++){var a=i[o];if(a>0){var s=Rn(a,n);null!==s&&Po(n[11],s)}else Eu(e,gu(e,~a),n)}}var Tu=/\ufffd(\d+):?\d*\ufffd/gi,Au=/\ufffd(\d+)\ufffd/,xu=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ou=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Iu=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Pu=/\uE500/g;function ju(e,t,n,r,i,o,a){var s=aa(e,r,1,null),u=s<<su.SHIFT,c=Xn();t===c&&(c=null),null===c&&(u|=su.APPEND_EAGERLY),a&&(u|=su.COMMENT,void 0===no&&(no=function(){var e,t,n=[],r=-1;function i(e,n){r=0;var i=mu(e,n);t=null!==i?e.remove[i]:Wt}function o(){if(r<t.length){var a=t[r++];return a>0?e[a]:(n.push(r,t),i(e[1].data[~a],e),o())}return 0===n.length?null:(t=n.pop(),r=n.pop(),o())}return function(t,r){for(e=r;n.length;)n.pop();return i(t.value,r),o}}())),i.push(u,null===o?"":o);var l=oa(e,s,a?32:1,null===o?"":o,null);hu(n,l);var f=l.index;return Yn(l,!1),null!==c&&t!==c&&function(e,t){var n,r=e.insertBeforeIndex;null===r?(Ao(lu,fu),r=e.insertBeforeIndex=[null,t]):(1!=(n=Array.isArray(r))&&Ct("Expecting array here",n,!0,"=="),r.push(t))}(c,f),l}function Ru(e,t,n,r,i,o,a){var s=a.match(Tu),u=ju(e,t,n,o,r,s?null:a,!1);s&&Du(i,a,u.index)}function Du(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=e.length,a=o+1;e.push(null,null);for(var s=o+2,u=t.split(Tu),c=0,l=0;l<u.length;l++){var f=u[l];if(1&l){var h=parseInt(f,10);e.push(-1-h),c|=Nu(h)}else""!==f&&e.push(f)}return e.push(n<<2|(r?1:0)),r&&e.push(r,i),e[o]=c,e[a]=e.length-s,c}function Nu(e){return 1<<Math.min(e,31)}function Lu(e){for(var t,n,r="",i=0,o=!1;null!==(t=Ou.exec(e));)o?t[0]==="\ufffd/*".concat(n,"\ufffd")&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+=e.substr(i)}function Vu(e,t,n,r,i,o){var a=0,s={type:i.type,currentCaseLViewIndex:aa(e,t,1,null),anchorIdx:o,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(Nu(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,i,o),function(e,t,n){var r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,o,s);for(var u=i.values,c=0;c<u.length;c++){for(var l=u[c],f=[],h=0;h<l.length;h++){var d=l[h];if("string"!=typeof d){var p=f.push(d)-1;l[h]="\x3c!--\ufffd".concat(p,"\ufffd--\x3e")}}a=Mu(e,s,t,n,r,i.cases[c],l.join(""),f)|a}a&&function(e,t,n){e.push(t,1,n<<2|3)}(n,a,o)}function Fu(e){for(var t=[],n=[],r=1,i=0,o=Uu(e=e.replace(xu,function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""})),a=0;a<o.length;){var s=o[a++].trim();1===r&&(s=s.replace(/\s*(?:=)?(\w+)\s*/,"$1")),s.length&&t.push(s);var u=Uu(o[a++]);t.length>n.length&&n.push(u)}return{type:r,mainBinding:i,cases:t,values:n}}function Uu(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var a=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var s=e.substring(n,a);xu.test(s)?i.push(Fu(s)):i.push(s),n=a+1}}else{if(0==r.length){var u=e.substring(n,a);i.push(u),n=a+1}r.push("{")}}var c=e.substring(n);return i.push(c),i}function Mu(e,t,n,r,i,o,a,s){var u=[],c=[],l=[];t.cases.push(o),t.create.push(u),t.remove.push(c),t.update.push(l);var f,h,d,p=(f=On(),h=new Oi(f),function(){try{return!!(new window.DOMParser).parseFromString(Ei(""),"text/html")}catch(e){return!1}}()?new xi(h):h).getInertBodyElement(a),v=("content"in(d=p)&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(d)?d.content:null)||p;return v?Hu(e,t,n,r,u,c,l,v,i,s,0):0}function Hu(e,t,n,r,i,o,a,s,u,c,l){for(var f=0,h=s.firstChild;h;){var d=aa(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:var p=h,v=p.tagName.toLowerCase();if(Mi.hasOwnProperty(v)){Bu(i,ou,v,u,d),e.data[d]=v;for(var g=p.attributes,y=0;y<g.length;y++){var m=g.item(y),b=m.name.toLowerCase();m.value.match(Tu)?qi.hasOwnProperty(b)&&(Hi[b]?Du(a,m.value,d,m.name,ji):zi[b]?Du(a,m.value,d,m.name,Ri):Du(a,m.value,d,m.name)):Gu(i,d,m)}f=Hu(e,t,n,r,i,o,a,h,d,c,l+1)|f,zu(o,d,l)}break;case Node.TEXT_NODE:var w=h.textContent||"",_=w.match(Tu);Bu(i,null,_?"":w,u,d),zu(o,d,l),_&&(f=Du(a,w,d)|f);break;case Node.COMMENT_NODE:var k=Au.exec(h.textContent||"");if(k){var C=c[parseInt(k[1],10)];Bu(i,au,"",u,d),Vu(e,n,r,u,C,d),qu(o,d,l)}}h=h.nextSibling}return f}function zu(e,t,n){0===n&&e.push(t)}function qu(e,t,n){0===n&&(e.push(~t),e.push(t))}function Bu(e,t,n,r,i){null!==t&&e.push(t),e.push(n,i,0|r<<17|i<<1)}function Gu(e,t,n){e.push(t<<1|1,n.name,n.value)}function Wu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=Wn(),i=Gn(),o=20+e,a=Mn(r.consts,t),s=Xn();r.firstCreatePass&&function(e,t,n,r,i,o){for(var a,s=Xn(),u=[],c=[],l=[[]],f=(a=i=function(e,t){if(function(e){return-1===e}(t))return Lu(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return Lu(e.substring(n,r))}(i,o),a.replace(Pu," ")).split(Iu),h=0;h<f.length;h++){var d=f[h];if(0==(1&h))for(var p=Uu(d),v=0;v<p.length;v++){var g=p[v];if(0==(1&v)){var y=g;""!==y&&Ru(e,s,l[0],u,c,n,y)}else{var m=g;if("object"!=typeof m)throw new Error('Unable to parse ICU expression in "'.concat(i,'" message.'));Vu(e,n,c,t,m,ju(e,s,l[0],n,u,"",!0).index)}}else{var b=47===d.charCodeAt(0),w=(d.charCodeAt(b?1:0),20+Number.parseInt(d.substring(b?2:1)));if(b)l.shift(),Yn(Xn(),!1);else{var _=yu(e,l[0],w);l.unshift([]),Yn(_,!0)}}}e.data[r]={create:u,update:c}}(r,null===s?0:s.index,i,o,a,n);var u=r.data[o],c=bo(r,s===i[6]?null:s,i);!function(e,t,n,r){for(var i=e[11],o=0;o<t.length;o++){var a=t[o++],s=t[o],u=(a&su.COMMENT)===su.COMMENT,c=(a&su.APPEND_EAGERLY)===su.APPEND_EAGERLY,l=a>>>su.SHIFT,f=e[l];null===f&&(f=e[l]=u?i.createComment(s):lo(i,s)),c&&null!==n&&wo(i,n,f,r,!1)}}(i,u.create,c,s&&8&s.type?i[s.index]:null),ir(!0)}function Zu(){ir(!1)}function Ku(e,t,n){Wu(e,t,n),Zu()}function $u(e){return bs(Gn(),rr(),e)&&(bu|=1<<Math.min(wu,31)),wu++,$u}function Xu(e,t,n,r,i){if(e=_t(e),Array.isArray(e))for(var o=0;o<e.length;o++)Xu(e[o],t,n,r,i);else{var a=Wn(),s=Gn(),u=os(e)?e:_t(e.provide),c=ns(e),l=Kn(),f=1048575&l.providerIndexes,h=l.directiveStart,d=l.providerIndexes>>20;if(os(e)||!e.multi){var p=new Er(c,i,Ss),v=Ju(u,t,i?f:f+d,h);-1===v?(Hr(Vr(l,s),a,u),Yu(a,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var g=Ju(u,t,f+d,h),y=Ju(u,t,f,f+d),m=g>=0&&n[g],b=y>=0&&n[y];if(i&&!b||!i&&!m){Hr(Vr(l,s),a,u);var w=function(e,t,n,r,i){var o=new Er(e,n,Ss);return o.multi=[],o.index=t,o.componentProviders=0,Qu(o,i,r&&!n),o}(i?tc:ec,n.length,i,r,c);!i&&b&&(n[y].providerFactory=w),Yu(a,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(w),s.push(w)}else Yu(a,e,g>-1?g:y,Qu(n[i?y:g],c,!i&&r));!i&&r&&b&&n[y].componentProviders++}}}function Yu(e,t,n,r){var i=os(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function Qu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ju(e,t,n,r){for(var i=n;i<r;i++)if(t[i]===e)return i;return-1}function ec(e,t,n,r){return nc(this.multi,[])}function tc(e,t,n,r){var i,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=$r(n,n[1],this.providerFactory.index,r);nc(o,i=s.slice(0,a));for(var u=a;u<s.length;u++)i.push(s[u])}else nc(o,i=[]);return i}function nc(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function rc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=Wn();if(r.firstCreatePass){var i=gn(e);Xu(n,r.data,r.blueprint,i,!0),Xu(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}var ic=function e(){ye(this,e)},oc=function(){function e(){ye(this,e)}return be(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(yt(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),ac=function(){var e=function e(){ye(this,e)};return e.NULL=new oc,e}();function sc(){}function uc(e,t){return new lc(Dn(e,t))}var cc=function(){return uc(Kn(),Gn())},lc=function(){var e=function e(t){ye(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=cc,e}();function fc(e){return e instanceof lc?e.nativeElement:e}var hc=function e(){ye(this,e)},dc=function(){var e=function e(){ye(this,e)};return e.__NG_ELEMENT_ID__=function(){return pc()},e}(),pc=function(){var e=Gn(),t=Ln(Kn().index,e);return function(e){return e[11]}(fn(t)?t:e)},vc=function(){var e=function e(){ye(this,e)};return e.\u0275prov=St({token:e,providedIn:"root",factory:function(){return null}}),e}(),gc=new function e(t){ye(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("11.1.2"),yc=function(){function e(){ye(this,e)}return be(e,[{key:"supports",value:function(e){return gs(e)}},{key:"create",value:function(e){return new bc(e)}}]),e}(),mc=function(e,t){return t},bc=function(){function e(t){ye(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||mc}return be(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<Cc(n,r,i)?t:n,a=Cc(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var u=a-r,c=s-r;if(u!=c){for(var l=0;l<u;l++){var f=l<i.length?i[l]:i[l]=0,h=f+l;c<=h&&h<u&&(i[l]=f+1)}i[o.previousIndex]=c-u}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!gs(e))throw new Error("Error trying to diff '".concat(yt(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=e[s],i=this._trackByFn(s,r),null!==o&&Object.is(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),Object.is(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r,i=e[vs()]();!(r=i.next()).done;)t(r.value)}(e,function(e){i=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,i)?(a&&(o=t._verifyReinsertion(o,e,i,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new wc(t,n),i,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new kc),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new kc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),wc=function e(t,n){ye(this,e),this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},_c=function(){function e(){ye(this,e),this._head=null,this._tail=null}return be(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),kc=function(){function e(){ye(this,e),this.map=new Map}return be(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new _c,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function Cc(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var Sc=function(){function e(){ye(this,e)}return be(e,[{key:"supports",value:function(e){return e instanceof Map||ys(e)}},{key:"create",value:function(){return new Ec}}]),e}(),Ec=function(){function e(){ye(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return be(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||ys(e)))throw new Error("Error trying to diff '".concat(yt(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new Tc(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),Tc=function e(t){ye(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function Ac(){return new xc([new yc])}var xc=function(){var e=function(){function e(t){ye(this,e),this.factories=t}return be(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Ac())},deps:[[e,new Ci,new ki]]}}}]),e}();return e.\u0275prov=St({token:e,providedIn:"root",factory:Ac}),e}();function Oc(){return new Ic([new Sc])}var Ic=function(){var e=function(){function e(t){ye(this,e),this.factories=t}return be(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Oc())},deps:[[e,new Ci,new ki]]}}}]),e}();return e.\u0275prov=St({token:e,providedIn:"root",factory:Oc}),e}();function Pc(e,t,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&r.push(jn(o)),hn(o))for(var a=10;a<o.length;a++){var s=o[a],u=s[1].firstChild;null!==u&&Pc(s[1],s,u,r)}var c=n.type;if(8&c)Pc(e,t,n.child,r);else if(32&c)for(var l=io(n,t),f=void 0;f=l();)r.push(f);else if(16&c){var h=t[16],d=h[6].projection[n.projection];if(Array.isArray(d))r.push.apply(r,re(d));else{var p=oo(h);Pc(p[1],p,d,r,!0)}}n=i?n.projectionNext:n.next}return r}var jc=function(){function e(t,n){ye(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return be(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Pc(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(hn(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(go(e,n),ui(t,n))}this._attachedToViewContainer=!1}yo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){ga(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){Na(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){La(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){tr(!0);try{La(e,t,n)}finally{tr(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Ro(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Rc=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this,e))._view=e,r}return be(n,[{key:"detectChanges",value:function(){Va(this._view)}},{key:"checkNoChanges",value:function(){!function(e){tr(!0);try{Va(e)}finally{tr(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(jc),Dc=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&pn(e)){var r=Ln(e.index,t);return new jc(r,r)}return 47&e.type?new jc(t[16],t):null}(Kn(),Gn(),e)},Nc=function(){var e=function e(){ye(this,e)};return e.__NG_ELEMENT_ID__=Dc,e.__ChangeDetectorRef__=!0,e}(),Lc=[new Sc],Vc=new xc([new yc]),Fc=new Ic(Lc),Uc=function(){return zc(Kn(),Gn())},Mc=function(){var e=function e(){ye(this,e)};return e.__NG_ELEMENT_ID__=Uc,e}(),Hc=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=r,o.elementRef=i,o}return be(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=ra(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),sa(t,n,e),new jc(n)}}]),n}(Mc);function zc(e,t){return 4&e.type?new Hc(t,e,uc(e,t)):null}var qc=function e(){ye(this,e)},Bc=function e(){ye(this,e)},Gc=function(){return Xc(Kn(),Gn())},Wc=function(){var e=function e(){ye(this,e)};return e.__NG_ELEMENT_ID__=Gc,e}(),Zc=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=r,o._hostLView=i,o}return be(n,[{key:"element",get:function(){return uc(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Qr(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Mr(this._hostTNode,this._hostLView);if(Pr(e)){var t=Rr(e,this._hostLView),n=jr(e);return new Qr(t[1].data[n+8],t)}return new Qr(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Kc(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var a=o.get(qc,null);a&&(i=a)}var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var r=e._lView,i=r[1];if(hn(r[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=r[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-10?(t[4]=n[i],si(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,r,c,u);var l=Io(u,c),f=r[11],h=Co(f,c[7]);return null!==h&&function(e,t,n,r,i,o){r[0]=i,r[6]=t,Ro(e,r,n,1,i,o)}(i,c[6],f,r,h,l),e.attachToViewContainerRef(),si($c(c),u,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=Kc(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=go(this._lContainer,t);n&&(ui($c(this._lContainer),t),yo(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=go(this._lContainer,t);return n&&null!=ui($c(this._lContainer),t)?new jc(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(Wc);function Kc(e){return e[8]}function $c(e){return e[8]||(e[8]=[])}function Xc(e,t){var n,r=t[e.index];if(hn(r))n=r;else{var i;if(8&e.type)i=jn(r);else{var o=t[11];i=o.createComment("");var a=Dn(e,t);wo(o,Co(o,a),i,function(e,t){return In(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=Ia(r,t,i,e),Da(t,n)}return new Zc(n,e,t)}var Yc={},Qc=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this)).ngModule=e,r}return be(n,[{key:"resolveComponentFactory",value:function(e){var t=cn(e);return new tl(t,this.ngModule)}}]),n}(ac);function Jc(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var el=new ni("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return eo}}),tl=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(Wo).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return be(n,[{key:"inputs",get:function(){return Jc(this.componentDef.inputs)}},{key:"outputs",get:function(){return Jc(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,r){var i,o,a=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,Yc,i);return o!==Yc||r===Yc?o:t.get(n,r,i)}}}(e,r.injector):e,s=a.get(hc,Pn),u=a.get(vc,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=n?function(e,t,n){if(In(e))return e.selectRootElement(t,n===Ut.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(c,n,this.componentDef.encapsulation):po(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,d={components:[],scheduler:eo,clean:Ua,playerHandler:null,flags:0},p=va(0,null,null,1,0,null,null,null,null,null),v=ra(null,p,d,h,null,null,s,c,u,a);lr(v);try{var g=function(e,t,n,r,i,o){var a=n[1];n[20]=e;var s=ia(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(Ba(s,u,!0),null!==e&&(Tr(i,e,u),null!==s.classes&&Lo(i,e,s.classes),null!==s.styles&&No(i,e,s.styles)));var c=r.createRenderer(e,t),l=ra(n,pa(t),null,t.onPush?64:16,n[20],s,r,c,null,null);return a.firstCreatePass&&(Hr(Vr(s,n),a,t.type),ka(a,s),Sa(s,n.length,1)),Da(n,l),n[20]=l}(f,this.componentDef,v,s,c);if(f)if(n)Tr(c,f,["ng-version",gc.full]);else{var y=function(e){for(var t=[],n=[],r=1,i=2;r<e.length;){var o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!zo(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),m=y.attrs,b=y.classes;m&&Tr(c,f,m),b&&b.length>0&&Lo(c,f,b.join(" "))}if(o=Nn(p,20),void 0!==t)for(var w=o.projection=[],_=0;_<this.ngContentSelectors.length;_++){var k=t[_];w.push(null!=k?Array.from(k):null)}i=function(e,t,n,r,i){var o=n[1],a=function(e,t,n){var r=Kn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ea(e,r,t,aa(e,t,1,null),n));var i=$r(t,e,r.directiveStart,r);Ji(i,t);var o=Dn(r,t);return o&&Ji(o,t),i}(o,n,t);if(r.components.push(a),e[8]=a,i&&i.forEach(function(e){return e(a,t)}),t.contentQueries){var s=Kn();t.contentQueries(1,a,s.directiveStart)}var u=Kn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(yr(u.index),wa(n[1],u,0,u.directiveStart,u.directiveEnd,t),_a(t,a)),a}(g,this.componentDef,v,d,[us]),sa(p,v,null)}finally{vr()}return new nl(this.componentType,i,uc(o,v),v,o)}}]),n}(ic),nl=function(e){se(n,e);var t=ce(n);function n(e,r,i,o,a){var s;return ye(this,n),(s=t.call(this)).location=i,s._rootLView=o,s._tNode=a,s.instance=r,s.hostView=s.changeDetectorRef=new Rc(o),s.componentType=e,s}return be(n,[{key:"injector",get:function(){return new Qr(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(function(){return function e(){ye(this,e)}}()),rl=new Map,il=function(e){se(n,e);var t=ce(n);function n(e,r){var i;ye(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=fe(i),i.destroyCbs=[],i.componentFactoryResolver=new Qc(fe(i));var o=ln(e),a=e[Yt]||null;return a&&cu(a),i._bootstrapComponents=to(o.bootstrap),i._r3Injector=Ja(e,r,[{provide:qc,useValue:fe(i)},{provide:ac,useValue:i.componentFactoryResolver}],yt(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return be(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ss.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dt.Default;return e===ss||e===qc||e===Wa?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(qc),ol=function(e){se(n,e);var t=ce(n);function n(e){var r,i,o;return ye(this,n),(r=t.call(this)).moduleType=e,null!==ln(e)&&(i=e,o=new Set,function e(t){var n=ln(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(yt(t)," vs ").concat(yt(t.name)))}(r,rl.get(r),t),rl.set(r,t));var i,a=pe(to(n.imports));try{for(a.s();!(i=a.n()).done;){var s=i.value;o.has(s)||(o.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(i)),r}return be(n,[{key:"create",value:function(e){return new il(this.moduleType,e)}}]),n}(Bc);function al(e,t,n){var r=nr()+e,i=Gn();return i[r]===Zo?ms(i,r,n?t.call(n):t()):function(e,t){return e[t]}(i,r)}function sl(e,t,n,r){return function(e,t,n,r,i,o){var a=t+n;return bs(e,a,i)?ms(e,a+1,o?r.call(o,i):r(i)):ul(e,a+1)}(Gn(),nr(),e,t,n,r)}function ul(e,t){var n=e[t];return n===Zo?void 0:n}var cl=function(e){se(n,e);var t=ce(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ye(this,n),(e=t.call(this)).__isAsync=r,e}return be(n,[{key:"emit",value:function(e){ae(de(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var s=ae(de(n.prototype),"subscribe",this).call(this,i,o,a);return e instanceof Ae&&e.add(s),s}}]),n}(He);function ll(){return this._results[vs()]()}var fl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ye(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=vs(),r=e.prototype;r[n]||(r[n]=ll)}return be(e,[{key:"changes",get:function(){return this._changes||(this._changes=new cl)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=oi(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),hl=function(){function e(t){ye(this,e),this.queryList=t,this.matches=null}return be(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),dl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];ye(this,e),this.queries=t}return be(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o<r;o++){var a=n.getByIndex(o);i.push(this.queries[a.indexInDeclarationView].clone())}return new e(i)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Sl(e,t).matches&&this.queries[t].setDirty()}}]),e}(),pl=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ye(this,e),this.predicate=t,this.flags=n,this.read=r},vl=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];ye(this,e),this.queries=t}return be(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,r=0;r<this.length;r++){var i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),gl=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;ye(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return be(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r<n.length;r++){var i=n[r];this.matchTNodeWithReadOption(e,t,yl(t,i)),this.matchTNodeWithReadOption(e,t,Kr(t,e,i,!1,!1))}else n===Mc?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Kr(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===lc||r===Wc||r===Mc&&4&t.type)this.addMatch(t.index,-2);else{var i=Kr(t,e,r,!1,!1);null!==i&&this.addMatch(t.index,i)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function yl(e,t){var n=e.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function ml(e,t,n,r){return-1===n?function(e,t){return 11&e.type?uc(e,t):4&e.type?zc(e,t):null}(t,e):-2===n?function(e,t,n){return n===lc?uc(t,e):n===Mc?zc(t,e):n===Wc?Xc(t,e):void 0}(e,t,r):$r(e,e[1],n,t)}function bl(e,t,n,r){var i=t[19].queries[r];if(null===i.matches){for(var o=e.data,a=n.matches,s=[],u=0;u<a.length;u+=2){var c=a[u];s.push(c<0?null:ml(t,o[c],a[u+1],n.metadata.read))}i.matches=s}return i.matches}function wl(e,t,n,r){var i=e.queries.getByIndex(n),o=i.matches;if(null!==o)for(var a=bl(e,t,i,n),s=0;s<o.length;s+=2){var u=o[s];if(u>0)r.push(a[s/2]);else{for(var c=o[s+1],l=t[-u],f=10;f<l.length;f++){var h=l[f];h[17]===h[3]&&wl(h[1],h,c,r)}if(null!==l[9])for(var d=l[9],p=0;p<d.length;p++){var v=d[p];wl(v[1],v,c,r)}}}return r}function _l(e){var t=Gn(),n=Wn(),r=ar();sr(r+1);var i=Sl(n,r);if(e.dirty&&Fn(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{var o=i.crossesNgTemplate?wl(n,t,r,[]):bl(n,t,i,r);e.reset(o,fc),e.notifyOnChanges()}return!0}return!1}function kl(e,t,n){var r=Wn();r.firstCreatePass&&(function(e,t,n){null===e.queries&&(e.queries=new vl),e.queries.track(new gl(t,-1))}(r,new pl(e,t,n)),2==(2&t)&&(r.staticViewQueries=!0)),function(e,t,n){var r=new fl(4==(4&n));ga(e,t,r,r.destroy),null===t[19]&&(t[19]=new dl),t[19].queries.push(new hl(r))}(r,Gn(),t)}function Cl(){return e=Gn(),t=ar(),e[19].queries[t].queryList;var e,t}function Sl(e,t){return e.queries.getByIndex(t)}function El(e,t){return zc(e,t)}var Tl=new ni("Application Initializer"),Al=function(){var e=function(){function e(t){var n=this;ye(this,e),this.appInits=t,this.resolve=sc,this.reject=sc,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return be(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Rs(i)&&t.push(i)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(yi(Tl,8))},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}(),xl=new ni("AppId"),Ol={provide:xl,useFactory:function(){return"".concat(Il()).concat(Il()).concat(Il())},deps:[]};function Il(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Pl=new ni("Platform Initializer"),jl=new ni("Platform ID"),Rl=new ni("appBootstrapListener"),Dl=function(){var e=function(){function e(){ye(this,e)}return be(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}(),Nl=new ni("LocaleId"),Ll=new ni("DefaultCurrencyCode"),Vl=function e(t,n){ye(this,e),this.ngModuleFactory=t,this.componentFactories=n},Fl=function(e){return new ol(e)},Ul=Fl,Ml=function(e){return Promise.resolve(Fl(e))},Hl=function(e){var t=Fl(e),n=to(ln(e).declarations).reduce(function(e,t){var n=cn(t);return n&&e.push(new tl(n)),e},[]);return new Vl(t,n)},zl=Hl,ql=function(e){return Promise.resolve(Hl(e))},Bl=function(){var e=function(){function e(){ye(this,e),this.compileModuleSync=Ul,this.compileModuleAsync=Ml,this.compileModuleAndAllComponentsSync=zl,this.compileModuleAndAllComponentsAsync=ql}return be(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}(),Gl=Promise.resolve(0);function Wl(e){"undefined"==typeof Zone?Gl.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Zl=function(){function e(t){var n,r,i=t.enableLongStackTrace,o=void 0!==i&&i,a=t.shouldCoalesceEventChangeDetection,s=void 0!==a&&a,u=t.shouldCoalesceRunChangeDetection,c=void 0!==u&&u;if(ye(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new cl(!1),this.onMicrotaskEmpty=new cl(!1),this.onStable=new cl(!1),this.onError=new cl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!c&&s,this.shouldCoalesceRunChangeDetection=c,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=Bt.requestAnimationFrame,t=Bt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,r=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bt,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Xl(e),$l(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Xl(e))}(n)},(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,i,o,a,s){try{return Yl(n),e.invokeTask(i,o,a,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&r(),Ql(n)}},onInvoke:function(e,t,i,o,a,s,u){try{return Yl(n),e.invoke(i,o,a,s,u)}finally{n.shouldCoalesceRunChangeDetection&&r(),Ql(n)}},onHasTask:function(e,t,r,i){e.hasTask(r,i),t===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,Xl(n),$l(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,r,i){return e.handleError(r,i),n.runOutsideAngular(function(){return n.onError.emit(i)}),!1}})}return be(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Kl,sc,sc);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),Kl={};function $l(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Xl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Yl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ql(e){e._nesting--,$l(e)}var Jl,ef=function(){function e(){ye(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new cl,this.onMicrotaskEmpty=new cl,this.onStable=new cl,this.onError=new cl}return be(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,r){return e.apply(t,n)}}]),e}(),tf=function(){var e=function(){function e(t){var n=this;ye(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return be(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Zl.assertNotInAngularZone(),Wl(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Wl(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(yi(Zl))},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}(),nf=function(){var e=function(){function e(){ye(this,e),this._applications=new Map,rf.addToWindow(this)}return be(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return rf.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}(),rf=new(function(){function e(){ye(this,e)}return be(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),of=!0,af=!1;function sf(){return af=!0,of}var uf=new ni("AllowMultipleToken"),cf=function e(t,n){ye(this,e),this.name=t,this.token=n};function lf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new ni(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=ff();if(!o||o.injector.get(uf,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var a=n.concat(t).concat({provide:i,useValue:!0},{provide:Ka,useValue:"platform"});!function(e){if(Jl&&!Jl.destroyed&&!Jl.injector.get(uf,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Jl=e.get(hf);var t=e.get(Pl,null);t&&t.forEach(function(e){return e()})}(ss.create({providers:a,name:r}))}return function(e){var t=ff();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function ff(){return Jl&&!Jl.destroyed?Jl:null}var hf=function(){var e=function(){function e(t){ye(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return be(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new ef:("zone.js"===n?void 0:n)||new Zl({enableLongStackTrace:sf(),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),a=[{provide:Zl,useValue:o}];return o.run(function(){var t=ss.create({providers:a,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Xi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){r.handleError(e)}});n.onDestroy(function(){gf(i._modules,n),e.unsubscribe()})}),function(e,t,r){try{var o=((a=n.injector.get(Al)).runInitializers(),a.donePromise.then(function(){return cu(n.injector.get(Nl,"en-US")||"en-US"),i._moduleDoBootstrap(n),n}));return Rs(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var a}(r,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=df({},n);return function(e,t,n){var r=new ol(n);return Promise.resolve(r)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(vf);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(yt(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(yi(ss))},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}();function df(e,t){return Array.isArray(t)?t.reduce(df,e):Object.assign(Object.assign({},e),t)}var pf,vf=((pf=function(){function e(t,n,r,i,o,a){var s=this;ye(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new Ne(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),c=new Ne(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Zl.assertNotInAngularZone(),Wl(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Zl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Number.POSITIVE_INFINITY,i=null,o=t[t.length-1];return qe(o)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof Ne?t[0]:at(r)(st(t,i))}(u,c.pipe(function(e){return ut()((t=pt,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,ht);return r.source=e,r.subjectFactory=n,r})(e));var t}))}return be(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ic?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(qc),o=n.create(ss.NULL,[],t||n.selector,i),a=o.location.nativeElement,s=o.injector.get(tf,null),u=s&&o.injector.get(nf);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),gf(r.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),sf()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=pe(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;gf(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Rl,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||pf)(yi(Zl),yi(Dl),yi(ss),yi(Xi),yi(ac),yi(Al))},pf.\u0275prov=St({token:pf,factory:pf.\u0275fac}),pf);function gf(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var yf=function e(){ye(this,e)},mf=function e(){ye(this,e)},bf={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},wf=function(){var e=function(){function e(t,n){ye(this,e),this._compiler=t,this._config=n||bf}return be(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=ne(e.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),ve("zn8P")(r).then(function(e){return e[i]}).then(function(e){return _f(e,r,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=ne(e.split("#"),2),n=t[0],r=t[1],i="NgFactory";return void 0===r&&(r="default",i=""),ve("zn8P")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[r+i]}).then(function(e){return _f(e,n,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(yi(Bl),yi(mf,8))},e.\u0275prov=St({token:e,factory:e.\u0275fac}),e}();function _f(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var kf=lf(null,"core",[{provide:jl,useValue:"unknown"},{provide:hf,deps:[ss]},{provide:nf,deps:[]},{provide:Dl,deps:[]}]),Cf=[{provide:vf,useClass:vf,deps:[Zl,Dl,ss,Xi,ac,Al]},{provide:el,deps:[Zl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Al,useClass:Al,deps:[[new ki,Tl]]},{provide:Bl,useClass:Bl,deps:[]},Ol,{provide:xc,useFactory:function(){return Vc},deps:[]},{provide:Ic,useFactory:function(){return Fc},deps:[]},{provide:Nl,useFactory:function(e){return cu(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new _i(Nl),new ki,new Ci]]},{provide:Ll,useValue:"USD"}],Sf=function(){var e=function e(t){ye(this,e)};return e.\u0275mod=an({type:e}),e.\u0275inj=Et({factory:function(t){return new(t||e)(yi(vf))},providers:Cf}),e}(),Ef=null;function Tf(){return Ef}var Af,xf=new ni("DocumentToken"),Of=((Af=function e(){ye(this,e)}).\u0275fac=function(e){return new(e||Af)},Af.\u0275prov=St({factory:If,token:Af,providedIn:"platform"}),Af);function If(){return yi(Rf)}var Pf,jf=new ni("Location Initialized"),Rf=((Pf=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this))._doc=e,r._init(),r}return be(n,[{key:"_init",value:function(){this.location=Tf().getLocation(),this._history=Tf().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Tf().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Tf().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Tf().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){Df()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Df()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(Of)).\u0275fac=function(e){return new(e||Pf)(yi(xf))},Pf.\u0275prov=St({factory:Nf,token:Pf,providedIn:"platform"}),Pf);function Df(){return!!window.history.pushState}function Nf(){return new Rf(yi(xf))}function Lf(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Vf(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Ff(e){return e&&"?"!==e[0]?"?"+e:e}var Uf,Mf=((Uf=function e(){ye(this,e)}).\u0275fac=function(e){return new(e||Uf)},Uf.\u0275prov=St({factory:Hf,token:Uf,providedIn:"root"}),Uf);function Hf(e){var t=yi(xf).location;return new Wf(yi(Of),t&&t.origin||"")}var zf,qf,Bf,Gf=new ni("appBaseHref"),Wf=((Bf=function(e){se(n,e);var t=ce(n);function n(e,r){var i;if(ye(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,le(i)}return be(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return Lf(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+Ff(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Ff(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Ff(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Mf)).\u0275fac=function(e){return new(e||Bf)(yi(Of),yi(Gf,8))},Bf.\u0275prov=St({token:Bf,factory:Bf.\u0275fac}),Bf),Zf=((qf=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return be(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=Lf(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Ff(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+Ff(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Mf)).\u0275fac=function(e){return new(e||qf)(yi(Of),yi(Gf,8))},qf.\u0275prov=St({token:qf,factory:qf.\u0275fac}),qf),Kf=((zf=function(){function e(t,n){var r=this;ye(this,e),this._subject=new cl,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Vf(Xf(i)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return be(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+Ff(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Xf(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ff(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ff(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}()).\u0275fac=function(e){return new(e||zf)(yi(Mf),yi(Of))},zf.normalizeQueryParams=Ff,zf.joinWithSlash=Lf,zf.stripTrailingSlash=Vf,zf.\u0275prov=St({factory:$f,token:zf,providedIn:"root"}),zf);function $f(){return new Kf(yi(Mf),yi(Of))}function Xf(e){return e.replace(/\/index.html$/,"")}var Yf,Qf=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),Jf=tu,eh=function e(){ye(this,e)},th=((Yf=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this)).locale=e,r}return be(n,[{key:"getPluralCategory",value:function(e,t){switch(Jf(t||this.locale)(e)){case Qf.Zero:return"zero";case Qf.One:return"one";case Qf.Two:return"two";case Qf.Few:return"few";case Qf.Many:return"many";default:return"other"}}}]),n}(eh)).\u0275fac=function(e){return new(e||Yf)(yi(Nl))},Yf.\u0275prov=St({token:Yf,factory:Yf.\u0275fac}),Yf);function nh(e,t){t=encodeURIComponent(t);var n,r=pe(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=ne(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(c){r.e(c)}finally{r.f()}return null}var rh,ih,oh,ah=((rh=function(){function e(t,n,r,i){ye(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return be(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(gs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(yt(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}()).\u0275fac=function(e){return new(e||rh)(Ss(xc),Ss(Ic),Ss(lc),Ss(dc))},rh.\u0275dir=un({type:rh,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),rh),sh=function(){function e(t,n,r,i){ye(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return be(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),uh=((ih=function(){function e(t,n,r){ye(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return be(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new sh(null,t._ngForOf,-1,-1),null===i?void 0:i),a=new ch(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new ch(e,s);n.push(u)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var a=this._viewContainer.get(i);a.context.index=i,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||ih)(Ss(Wc),Ss(Mc),Ss(xc))},ih.\u0275dir=un({type:ih,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),ih),ch=function e(t,n){ye(this,e),this.record=t,this.view=n},lh=((oh=function(){function e(t,n){ye(this,e),this._viewContainer=t,this._context=new fh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return be(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){hh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){hh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||oh)(Ss(Wc),Ss(Mc))},oh.\u0275dir=un({type:oh,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),oh),fh=function e(){ye(this,e),this.$implicit=null,this.ngIf=null};function hh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(yt(t),"'."))}var dh,ph,vh,gh,yh,mh=function(){function e(t,n){ye(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return be(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),bh=((yh=function(){function e(){ye(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return be(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}()).\u0275fac=function(e){return new(e||yh)},yh.\u0275dir=un({type:yh,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),yh),wh=((gh=function(){function e(t,n,r){ye(this,e),this.ngSwitch=r,r._addCase(),this._view=new mh(t,n)}return be(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}()).\u0275fac=function(e){return new(e||gh)(Ss(Wc),Ss(Mc),Ss(bh,1))},gh.\u0275dir=un({type:gh,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),gh),_h=((vh=function e(t,n,r){ye(this,e),r._addDefault(new mh(t,n))}).\u0275fac=function(e){return new(e||vh)(Ss(Wc),Ss(Mc),Ss(bh,1))},vh.\u0275dir=un({type:vh,selectors:[["","ngSwitchDefault",""]]}),vh),kh=((ph=function e(){ye(this,e)}).\u0275mod=an({type:ph}),ph.\u0275inj=Et({factory:function(e){return new(e||ph)},providers:[{provide:eh,useClass:th}]}),ph),Ch=((dh=function e(){ye(this,e)}).\u0275prov=St({token:dh,providedIn:"root",factory:function(){return new Sh(yi(xf),window)}}),dh),Sh=function(){function e(t,n){ye(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return be(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){var t;if(this.supportsScrolling()){var n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Eh(this.window.history)||Eh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Eh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Th,Ah,xh,Oh,Ih=function(e){se(n,e);var t=ce(n);function n(){return ye(this,n),t.apply(this,arguments)}return be(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Ph||(Ph=document.querySelector("base"))?Ph.getAttribute("href"):null;return null==n?null:(t=n,Th||(Th=document.createElement("a")),Th.setAttribute("href",t),"/"===Th.pathname.charAt(0)?Th.pathname:"/"+Th.pathname)}},{key:"resetBaseElement",value:function(){Ph=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return nh(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Ef||(Ef=e)}}]),n}(function(e){se(n,e);var t=ce(n);function n(){return ye(this,n),t.call(this)}return be(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){ye(this,e)}}())),Ph=null,jh=new ni("TRANSITION_ID"),Rh=[{provide:Tl,useFactory:function(e,t,n){return function(){n.get(Al).donePromise.then(function(){var n=Tf();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[jh,xf,ss],multi:!0}],Dh=function(){function e(){ye(this,e)}return be(e,[{key:"addToWindow",value:function(e){Bt.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Bt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Bt.getAllAngularRootElements=function(){return e.getAllRootElements()},Bt.frameworkStabilizers||(Bt.frameworkStabilizers=[]),Bt.frameworkStabilizers.push(function(e){var t=Bt.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Tf().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,rf=t}}]),e}(),Nh=new ni("EventManagerPlugins"),Lh=((Ah=function(){function e(t,n){var r=this;ye(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return be(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}()).\u0275fac=function(e){return new(e||Ah)(yi(Nh),yi(Zl))},Ah.\u0275prov=St({token:Ah,factory:Ah.\u0275fac}),Ah),Vh=function(){function e(t){ye(this,e),this._doc=t}return be(e,[{key:"addGlobalEventListener",value:function(e,t,n){var r=Tf().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}]),e}(),Fh=((Oh=function(){function e(){ye(this,e),this._stylesSet=new Set}return be(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||Oh)},Oh.\u0275prov=St({token:Oh,factory:Oh.\u0275fac}),Oh),Uh=((xh=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this))._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return be(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach(function(e){return Tf().remove(e)})}}]),n}(Fh)).\u0275fac=function(e){return new(e||xh)(yi(xf))},xh.\u0275prov=St({token:xh,factory:xh.\u0275fac}),xh),Mh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Hh=/%COMP%/g;function zh(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?zh(e,i,n):(i=i.replace(Hh,e),n.push(i))}return n}function qh(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Bh,Gh,Wh,Zh,Kh=((Bh=function(){function e(t,n,r){ye(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new $h(t)}return be(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ut.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Xh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case Ut.ShadowDom:return new Yh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=zh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Bh)(yi(Lh),yi(Uh),yi(xl))},Bh.\u0275prov=St({token:Bh,factory:Bh.\u0275fac}),Bh),$h=function(){function e(t){ye(this,e),this.eventManager=t,this.data=Object.create(null)}return be(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Mh[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){if(r){t=r+":"+t;var i=Mh[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=Mh[n];r?e.removeAttributeNS(r,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&(ro.DashCase|ro.Important)?e.style.setProperty(t,n,r&ro.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&ro.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,qh(n)):this.eventManager.addEventListener(e,t,qh(n))}}]),e}(),Xh=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a;ye(this,n),(a=t.call(this,e)).component=i;var s=zh(o+"-"+i.id,i.styles,[]);return r.addStyles(s),a.contentAttr="_ngcontent-%COMP%".replace(Hh,o+"-"+i.id),a.hostAttr="_nghost-%COMP%".replace(Hh,o+"-"+i.id),a}return be(n,[{key:"applyToHost",value:function(e){ae(de(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var r=ae(de(n.prototype),"createElement",this).call(this,e,t);return ae(de(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}($h),Yh=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a;ye(this,n),(a=t.call(this,e)).sharedStylesHost=r,a.hostEl=i,a.shadowRoot=i.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=zh(o.id,o.styles,[]),u=0;u<s.length;u++){var c=document.createElement("style");c.textContent=s[u],a.shadowRoot.appendChild(c)}return a}return be(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return ae(de(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,r){return ae(de(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,r)}},{key:"removeChild",value:function(e,t){return ae(de(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(ae(de(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}($h),Qh=((Gh=function(e){se(n,e);var t=ce(n);function n(e){return ye(this,n),t.call(this,e)}return be(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Vh)).\u0275fac=function(e){return new(e||Gh)(yi(xf))},Gh.\u0275prov=St({token:Gh,factory:Gh.\u0275fac}),Gh),Jh=["alt","control","meta","shift"],ed={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},td={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},nd={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},rd=((Wh=function(e){se(n,e);var t=ce(n);function n(e){return ye(this,n),t.call(this,e)}return be(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Tf().onAndCancel(e,i.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(Jh.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=i,0!=t.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&td.hasOwnProperty(t)&&(t=td[t]))}return ed[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Jh.forEach(function(r){r!=n&&(0,nd[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Vh)).\u0275fac=function(e){return new(e||Wh)(yi(xf))},Wh.\u0275prov=St({token:Wh,factory:Wh.\u0275fac}),Wh),id=lf(kf,"browser",[{provide:jl,useValue:"browser"},{provide:Pl,useValue:function(){Ih.makeCurrent(),Dh.init()},multi:!0},{provide:xf,useFactory:function(){return function(e){kn=e}(document),document},deps:[]}]),od=[[],{provide:Ka,useValue:"root"},{provide:Xi,useFactory:function(){return new Xi},deps:[]},{provide:Nh,useClass:Qh,multi:!0,deps:[xf,Zl,jl]},{provide:Nh,useClass:rd,multi:!0,deps:[xf]},[],{provide:Kh,useClass:Kh,deps:[Lh,Uh,xl]},{provide:hc,useExisting:Kh},{provide:Fh,useExisting:Uh},{provide:Uh,useClass:Uh,deps:[xf]},{provide:tf,useClass:tf,deps:[Zl]},{provide:Lh,useClass:Lh,deps:[Nh,Zl]},[]],ad=((Zh=function(){function e(t){if(ye(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return be(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:xl,useValue:t.appId},{provide:jh,useExisting:xl},Rh]}}}]),e}()).\u0275mod=an({type:Zh}),Zh.\u0275inj=Et({factory:function(e){return new(e||Zh)(yi(Zh,12))},providers:od,imports:[kh,Sf]}),Zh);function sd(e,t){return new Ne(function(n){var r=e.length;if(0!==r)for(var i=new Array(r),o=0,a=0,s=function(s){var u=Je(e[s]),c=!1;n.add(u.subscribe({next:function(e){c||(c=!0,a++),i[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==r&&c||(a===r&&n.next(t?t.reduce(function(e,t,n){return e[t]=i[n],e},{}):i),n.complete())}}))},u=0;u<r;u++)s(u);else n.complete()})}"undefined"!=typeof window&&window,ve("hN/g");var ud,cd,ld=new ni("NgValueAccessor"),fd={provide:ld,useExisting:wt(function(){return hd}),multi:!0},hd=((ud=function(){function e(t,n){ye(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return be(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||ud)(Ss(dc),Ss(lc))},ud.\u0275dir=un({type:ud,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Ns("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[rc([fd])]}),ud),dd={provide:ld,useExisting:wt(function(){return vd}),multi:!0},pd=new ni("CompositionEventMode"),vd=((cd=function(){function e(t,n,r){var i;ye(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=r,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Tf()?Tf().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return be(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||cd)(Ss(dc),Ss(lc),Ss(pd,8))},cd.\u0275dir=un({type:cd,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&Ns("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[rc([dd])]}),cd);function gd(e){return null==e||0===e.length}function yd(e){return null!=e&&"number"==typeof e.length}var md=new ni("NgValidators"),bd=new ni("NgAsyncValidators"),wd=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_d=function(){function e(){ye(this,e)}return be(e,null,[{key:"min",value:function(e){return function(t){if(gd(t.value)||gd(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(gd(t.value)||gd(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return gd(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return gd(e.value)||wd.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return gd(t.value)||!yd(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"maxLength",value:function(e){return function(t){return yd(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(gd(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(kd);return 0==t.length?null:function(e){return Sd(Ed(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(kd);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];if(Ce(r))return sd(r,null);if(Se(r)&&Object.getPrototypeOf(r)===Object.prototype){var i=Object.keys(r);return sd(i.map(function(e){return r[e]}),i)}}if("function"==typeof t[t.length-1]){var o=t.pop();return sd(t=1===t.length&&Ce(t[0])?t[0]:t,null).pipe(Be(function(e){return o.apply(void 0,re(e))}))}return sd(t,null)}(Ed(e,t).map(Cd)).pipe(Be(Sd))}}}]),e}();function kd(e){return null!=e}function Cd(e){var t=Rs(e)?Je(e):e;return Ds(t),t}function Sd(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Ed(e,t){return t.map(function(t){return t(e)})}function Td(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Ad(e){return null!=e?_d.compose(Td(e)):null}function xd(e){return null!=e?_d.composeAsync(Td(e)):null}function Od(e,t){return null===e?[t]:Array.isArray(e)?[].concat(re(e),[t]):[e,t]}function Id(e){return e._rawValidators}function Pd(e){return e._rawAsyncValidators}var jd,Rd,Dd,Nd,Ld,Vd,Fd,Ud,Md,Hd,zd,qd=((Rd=function(){function e(){ye(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return be(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Ad(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=xd(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||Rd)},Rd.\u0275dir=un({type:Rd}),Rd),Bd=((jd=function(e){se(n,e);var t=ce(n);function n(){return ye(this,n),t.apply(this,arguments)}return be(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(qd)).\u0275fac=function(e){return Gd(e||jd)},jd.\u0275dir=un({type:jd,features:[cs]}),jd),Gd=(Dd=Bd,Vt(function(){for(var e=Dd.prototype.constructor,t=e[Qt]||Jr(e),n=Object.prototype,r=Object.getPrototypeOf(Dd.prototype).constructor;r&&r!==n;){var i=r[Qt]||Jr(r);if(i&&i!==t)return i;r=Object.getPrototypeOf(r)}return function(e){return new e}})),Wd=function(e){se(n,e);var t=ce(n);function n(){var e;return ye(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(qd),Zd=function(){function e(t){ye(this,e),this._cd=t}return be(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Kd=((Ld=function(e){se(n,e);var t=ce(n);function n(e){return ye(this,n),t.call(this,e)}return n}(Zd)).\u0275fac=function(e){return new(e||Ld)(Ss(Wd,2))},Ld.\u0275dir=un({type:Ld,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&qs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[cs]}),Ld),$d=((Nd=function(e){se(n,e);var t=ce(n);function n(e){return ye(this,n),t.call(this,e)}return n}(Zd)).\u0275fac=function(e){return new(e||Nd)(Ss(Bd,10))},Nd.\u0275dir=un({type:Nd,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&qs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[cs]}),Nd),Xd={provide:ld,useExisting:wt(function(){return Yd}),multi:!0},Yd=((Vd=function(){function e(t,n){ye(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return be(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||Vd)(Ss(dc),Ss(lc))},Vd.\u0275dir=un({type:Vd,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Ns("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[rc([Xd])]}),Vd),Qd={provide:ld,useExisting:wt(function(){return ep}),multi:!0},Jd=((Ud=function(){function e(){ye(this,e),this._accessors=[]}return be(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||Ud)},Ud.\u0275prov=St({token:Ud,factory:Ud.\u0275fac}),Ud),ep=((Fd=function(){function e(t,n,r,i){ye(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return be(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Wd),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),e}()).\u0275fac=function(e){return new(e||Fd)(Ss(dc),Ss(lc),Ss(Jd),Ss(ss))},Fd.\u0275dir=un({type:Fd,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Ns("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[rc([Qd])]}),Fd),tp={provide:ld,useExisting:wt(function(){return np}),multi:!0},np=((Md=function(){function e(t,n){ye(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return be(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||Md)(Ss(dc),Ss(lc))},Md.\u0275dir=un({type:Md,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Ns("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[rc([tp])]}),Md),rp={provide:ld,useExisting:wt(function(){return ip}),multi:!0},ip=((Hd=function(){function e(t,n){ye(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return be(e,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?"".concat(t):(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r),e))return r}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}]),e}()).\u0275fac=function(e){return new(e||Hd)(Ss(dc),Ss(lc))},Hd.\u0275dir=un({type:Hd,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Ns("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[rc([rp])]}),Hd),op={provide:ld,useExisting:wt(function(){return ap}),multi:!0},ap=((zd=function(){function e(t,n){ye(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return be(e,[{key:"compareWith",set:function(e){this._compareWith=e}},{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=t._getOptionValue(a.value);r.push(s)}else for(var u=n.options,c=0;c<u.length;c++){var l=u.item(c);if(l.selected){var f=t._getOptionValue(l.value);r.push(f)}}t.value=r,e(r)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r)._value,e))return r}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}]),e}()).\u0275fac=function(e){return new(e||zd)(Ss(dc),Ss(lc))},zd.\u0275dir=un({type:zd,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Ns("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[rc([op])]}),zd);function sp(e,t){lp(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&hp(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&hp(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function up(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),fp(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function cp(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function lp(e,t,n){var r=Id(e);null!==t.validator?e.setValidators(Od(r,t.validator)):"function"==typeof r&&e.setValidators([r]);var i=Pd(e);if(null!==t.asyncValidator?e.setAsyncValidators(Od(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]),n){var o=function(){return e.updateValueAndValidity()};cp(t._rawValidators,o),cp(t._rawAsyncValidators,o)}}function fp(e,t,n){var r=!1;if(null!==e){if(null!==t.validator){var i=Id(e);if(Array.isArray(i)&&i.length>0){var o=i.filter(function(e){return e!==t.validator});o.length!==i.length&&(r=!0,e.setValidators(o))}}if(null!==t.asyncValidator){var a=Pd(e);if(Array.isArray(a)&&a.length>0){var s=a.filter(function(e){return e!==t.asyncValidator});s.length!==a.length&&(r=!0,e.setAsyncValidators(s))}}}if(n){var u=function(){};cp(t._rawValidators,u),cp(t._rawAsyncValidators,u)}return r}function hp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}var dp=[hd,np,Yd,ip,ap,ep];function pp(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function vp(e){return(bp(e)?e.validators:e)||null}function gp(e){return Array.isArray(e)?Ad(e):e||null}function yp(e,t){return(bp(t)?t.asyncValidators:e)||null}function mp(e){return Array.isArray(e)?xd(e):e||null}function bp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var wp,_p,kp,Cp,Sp,Ep,Tp,Ap=function(){function e(t,n){ye(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=gp(this._rawValidators),this._composedAsyncValidatorFn=mp(this._rawAsyncValidators)}return be(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=gp(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=mp(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=Cd(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach(function(e){r=r instanceof Op?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Ip&&r.at(e)||null}),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new cl,this.statusChanges=new cl}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){bp(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),xp=function(e){se(n,e);var t=ce(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return ye(this,n),(e=t.call(this,vp(i),yp(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return be(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){pp(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){pp(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Ap),Op=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,vp(r),yp(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return be(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof xp?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var r=t.controls[n];r&&e(r,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var r=n[t],i=this.controls[r];if(this.contains(r)&&e(i))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Ap),Ip=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,vp(r),yp(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return be(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof xp?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=pe(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Ap),Pp=((wp=function e(){ye(this,e)}).\u0275fac=function(e){return new(e||wp)},wp.\u0275dir=un({type:wp,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),wp),jp=new ni("NgModelWithFormControlWarning"),Rp={provide:Bd,useExisting:wt(function(){return Dp})},Dp=((_p=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).validators=e,i.asyncValidators=r,i.submitted=!1,i._onCollectionChange=function(){return i._updateDomValue()},i.directives=[],i.form=null,i.ngSubmit=new cl,i._setValidators(e),i._setAsyncValidators(r),i}return be(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(fp(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return sp(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){up(e.control||null,e,!1),pp(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,t=this.directives,this.form._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(up(t.control||null,t),n&&sp(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);(function(e,t){lp(e,t,!1)})(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return fp(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){lp(this.form,this,!1),this._oldForm&&fp(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(Bd)).\u0275fac=function(e){return new(e||_p)(Ss(md,10),Ss(bd,10))},_p.\u0275dir=un({type:_p,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Ns("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[rc([Rp]),cs,Sn]}),_p),Np={provide:Wd,useExisting:wt(function(){return Lp})},Lp=((kp=function(e){se(n,e);var t=ce(n);function n(e,r,i,o,a){var s;return ye(this,n),(s=t.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new cl,s._ngModelWarningSent=!1,s._parent=e,s._setValidators(r),s._setAsyncValidators(i),s.valueAccessor=function(e,t){return t?(Array.isArray(t),t.forEach(function(e){var t;e.constructor===vd?n=e:(t=e,dp.some(function(e){return t.constructor===e})?r=e:i=e)}),i||r||n||null):null;var n,r,i}(0,o),s}return be(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return e=null==this.name?this.name:this.name.toString(),[].concat(re(this._parent.path),[e]);var e}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(Wd)).\u0275fac=function(e){return new(e||kp)(Ss(Bd,13),Ss(md,10),Ss(bd,10),Ss(ld,10),Ss(jp,8))},kp.\u0275dir=un({type:kp,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[rc([Np]),cs,Sn]}),kp._ngModelWarningSentOnce=!1,kp),Vp={provide:md,useExisting:wt(function(){return Fp}),multi:!0},Fp=((Tp=function(){function e(){ye(this,e),this._required=!1}return be(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?_d.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||Tp)},Tp.\u0275dir=un({type:Tp,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&ws("required",t.required?"":null)},inputs:{required:"required"},features:[rc([Vp])]}),Tp),Up=((Ep=function e(){ye(this,e)}).\u0275mod=an({type:Ep}),Ep.\u0275inj=Et({factory:function(e){return new(e||Ep)}}),Ep),Mp=((Sp=function(){function e(){ye(this,e)}return be(e,[{key:"group",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this._reduceControls(e),i=null,o=null;return null!=n&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(n)?(i=null!=n.validators?n.validators:null,o=null!=n.asyncValidators?n.asyncValidators:null,t=null!=n.updateOn?n.updateOn:void 0):(i=null!=n.validator?n.validator:null,o=null!=n.asyncValidator?n.asyncValidator:null)),new Op(r,{asyncValidators:o,updateOn:t,validators:i})}},{key:"control",value:function(e,t,n){return new xp(e,t,n)}},{key:"array",value:function(e,t,n){var r=this,i=e.map(function(e){return r._createControl(e)});return new Ip(i,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n}},{key:"_createControl",value:function(e){return e instanceof xp||e instanceof Op||e instanceof Ip?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}()).\u0275fac=function(e){return new(e||Sp)},Sp.\u0275prov=St({token:Sp,factory:Sp.\u0275fac}),Sp),Hp=((Cp=function(){function e(){ye(this,e)}return be(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:jp,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}()).\u0275mod=an({type:Cp}),Cp.\u0275inj=Et({factory:function(e){return new(e||Cp)},providers:[Mp,Jd],imports:[Up]}),Cp);function zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[t.length-1];return qe(r)?(t.pop(),Qe(t,r)):st(t)}function qp(e,t){return rt(e,t,1)}function Bp(e,t){return function(n){return n.lift(new Gp(e,t))}}var Gp=function(){function e(t,n){ye(this,e),this.predicate=t,this.thisArg=n}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new Wp(e,this.predicate,this.thisArg))}}]),e}(),Wp=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,e)).predicate=r,o.thisArg=i,o.count=0,o}return be(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(Ie),Zp=function e(){ye(this,e)},Kp=function e(){ye(this,e)},$p=function(){function e(t){var n=this;ye(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=r.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var r=t[e],i=e.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(e,i))})}:this.headers=new Map}return be(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,re(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),Xp=function(){function e(){ye(this,e)}return be(e,[{key:"encodeKey",value:function(e){return Yp(e)}},{key:"encodeValue",value:function(e){return Yp(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Yp(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Qp=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ye(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Xp,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.split("&").forEach(function(e){var r=e.indexOf("="),i=ne(-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],2),o=i[0],a=i[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var r=n.fromObject[e];t.map.set(e,Array.isArray(r)?r:[r])})):this.map=null}return be(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function Jp(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ev(e){return"undefined"!=typeof Blob&&e instanceof Blob}function tv(e){return"undefined"!=typeof FormData&&e instanceof FormData}var nv=function(){function e(t,n,r,i){var o;if(ye(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new $p),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+a}}else this.params=new Qp,this.urlWithParams=n}return be(e,[{key:"serializeBody",value:function(){return null===this.body?null:Jp(this.body)||ev(this.body)||tv(this.body)||"string"==typeof this.body?this.body:this.body instanceof Qp?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||tv(this.body)?null:ev(this.body)?this.body.type||null:Jp(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Qp?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,u=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(u=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},u)),t.setParams&&(c=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},c)),new e(n,r,o,{params:c,headers:u,reportProgress:s,responseType:i,withCredentials:a})}}]),e}(),rv=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),iv=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";ye(this,e),this.headers=t.headers||new $p,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},ov=function(e){se(n,e);var t=ce(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ye(this,n),(e=t.call(this,r)).type=rv.ResponseHeader,e}return be(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(iv),av=function(e){se(n,e);var t=ce(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ye(this,n),(e=t.call(this,r)).type=rv.Response,e.body=void 0!==r.body?r.body:null,e}return be(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(iv),sv=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),r.error=e.error||null,r}return n}(iv);function uv(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var cv,lv,fv,hv,dv,pv,vv,gv,yv,mv=((cv=function(){function e(t){ye(this,e),this.handler=t}return be(e,[{key:"request",value:function(e,t){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof nv?n=e:(r=a.headers instanceof $p?a.headers:new $p(a.headers),a.params&&(i=a.params instanceof Qp?a.params:new Qp({fromObject:a.params})),n=new nv(e,t,void 0!==a.body?a.body:null,{headers:r,params:i,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials}));var s=zp(n).pipe(qp(function(e){return o.handler.handle(e)}));if(e instanceof nv||"events"===a.observe)return s;var u=s.pipe(Bp(function(e){return e instanceof av}));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(Be(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(Be(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(Be(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(Be(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Qp).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,uv(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,uv(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,uv(n,t))}}]),e}()).\u0275fac=function(e){return new(e||cv)(yi(Zp))},cv.\u0275prov=St({token:cv,factory:cv.\u0275fac}),cv),bv=function(){function e(t,n){ye(this,e),this.next=t,this.interceptor=n}return be(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),wv=new ni("HTTP_INTERCEPTORS"),_v=((lv=function(){function e(){ye(this,e)}return be(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||lv)},lv.\u0275prov=St({token:lv,factory:lv.\u0275fac}),lv),kv=/^\)\]\}',?\n/,Cv=function e(){ye(this,e)},Sv=((hv=function(){function e(){ye(this,e)}return be(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||hv)},hv.\u0275prov=St({token:hv,factory:hv.\u0275fac}),hv),Ev=((fv=function(){function e(t){ye(this,e),this.xhrFactory=t}return be(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ne(function(n){var r=t.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(function(e,t){return r.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var i=e.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(e.responseType){var o=e.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===r.status?204:r.status,n=r.statusText||"OK",i=new $p(r.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new ov({headers:i,status:t,statusText:n,url:o})},c=function(){var t=u(),i=t.headers,o=t.status,a=t.statusText,s=t.url,c=null;204!==o&&(c=void 0===r.response?r.responseText:r.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof c){var f=c;c=c.replace(kv,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=f,l&&(l=!1,c={error:h,text:c})}}l?(n.next(new av({body:c,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new sv({error:c,headers:i,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=u().url,i=new sv({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});n.error(i)},f=!1,h=function(t){f||(n.next(u()),f=!0);var i={type:rv.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),"text"===e.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(e){var t={type:rv.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener("load",c),r.addEventListener("error",l),e.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:rv.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),e.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),e}()).\u0275fac=function(e){return new(e||fv)(yi(Cv))},fv.\u0275prov=St({token:fv,factory:fv.\u0275fac}),fv),Tv=new ni("XSRF_COOKIE_NAME"),Av=new ni("XSRF_HEADER_NAME"),xv=function e(){ye(this,e)},Ov=((yv=function(){function e(t,n,r){ye(this,e),this.doc=t,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return be(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=nh(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}()).\u0275fac=function(e){return new(e||yv)(yi(xf),yi(jl),yi(Tv))},yv.\u0275prov=St({token:yv,factory:yv.\u0275fac}),yv),Iv=((gv=function(){function e(t,n){ye(this,e),this.tokenService=t,this.headerName=n}return be(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||gv)(yi(xv),yi(Av))},gv.\u0275prov=St({token:gv,factory:gv.\u0275fac}),gv),Pv=((vv=function(){function e(t,n){ye(this,e),this.backend=t,this.injector=n,this.chain=null}return be(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(wv,[]);this.chain=t.reduceRight(function(e,t){return new bv(e,t)},this.backend)}return this.chain.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||vv)(yi(Kp),yi(ss))},vv.\u0275prov=St({token:vv,factory:vv.\u0275fac}),vv),jv=((pv=function(){function e(){ye(this,e)}return be(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Iv,useClass:_v}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:Tv,useValue:t.cookieName}:[],t.headerName?{provide:Av,useValue:t.headerName}:[]]}}}]),e}()).\u0275mod=an({type:pv}),pv.\u0275inj=Et({factory:function(e){return new(e||pv)},providers:[Iv,{provide:wv,useExisting:Iv,multi:!0},{provide:xv,useClass:Ov},{provide:Tv,useValue:"XSRF-TOKEN"},{provide:Av,useValue:"X-XSRF-TOKEN"}]}),pv),Rv=((dv=function e(){ye(this,e)}).\u0275mod=an({type:dv}),dv.\u0275inj=Et({factory:function(e){return new(e||dv)},providers:[mv,{provide:Zp,useClass:Pv},Ev,{provide:Kp,useExisting:Ev},Sv,{provide:Cv,useExisting:Sv}],imports:[[jv.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),dv),Dv=function(e){se(n,e);var t=ce(n);function n(e){var r;return ye(this,n),(r=t.call(this))._value=e,r}return be(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=ae(de(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Fe;return this._value}},{key:"next",value:function(e){ae(de(n.prototype),"next",this).call(this,this._value=e)}}]),n}(He),Nv=function(e){se(n,e);var t=ce(n);function n(){return ye(this,n),t.apply(this,arguments)}return be(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(Ie),Lv=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return be(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(Ie);function Vv(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Lv(e,n,r);if(!i.closed)return t instanceof Ne?t.subscribe(i):Ye(t)(i)}var Fv={},Uv=function(){function e(t){ye(this,e),this.resultSelector=t}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new Mv(e,this.resultSelector))}}]),e}(),Mv=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return be(n,[{key:"_next",value:function(e){this.values.push(Fv),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(Vv(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var r=this.values,i=this.toRespond?r[n]===Fv?--this.toRespond:this.toRespond:0;r[n]=t,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Nv),Hv=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function zv(){return at(1)(zp.apply(void 0,arguments))}var qv=new Ne(function(e){return e.complete()});function Bv(e){return e?function(e){return new Ne(function(t){return e.schedule(function(){return t.complete()})})}(e):qv}function Gv(e){return new Ne(function(t){var n;try{n=e()}catch(r){return void t.error(r)}return(n?Je(n):Bv()).subscribe(t)})}function Wv(e,t){return"function"==typeof t?function(n){return n.pipe(Wv(function(n,r){return Je(e(n,r)).pipe(Be(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new Zv(e))}}var Zv=function(){function e(t){ye(this,e),this.project=t}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new Kv(e,this.project))}}]),e}(),Kv=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).project=r,i.index=0,i}return be(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new et(this),r=this.destination;r.add(n),this.innerSubscription=nt(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||ae(de(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&ae(de(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(tt),$v=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}();function Xv(e){return function(t){return 0===e?Bv():t.lift(new Yv(e))}}var Yv=function(){function e(t){if(ye(this,e),this.total=t,this.total<0)throw new $v}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new Qv(e,this.total))}}]),e}(),Qv=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).total=r,i.count=0,i}return be(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(Ie);function Jv(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new eg(e,t,n))}}var eg=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];ye(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new tg(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),tg=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a;return ye(this,n),(a=t.call(this,e)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return be(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}]),n}(Ie);function ng(e){return function(t){var n=new rg(e),r=t.lift(n);return n.caught=r}}var rg=function(){function e(t){ye(this,e),this.selector=t}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new ig(e,this.selector,this.caught))}}]),e}(),ig=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,e)).selector=r,o.caught=i,o}return be(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void ae(de(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new et(this);this.add(r);var i=nt(t,r);i!==r&&this.add(i)}}}]),n}(tt);function og(e){return function(t){return 0===e?Bv():t.lift(new ag(e))}}var ag=function(){function e(t){if(ye(this,e),this.total=t,this.total<0)throw new $v}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new sg(e,this.total))}}]),e}(),sg=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return be(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()}}]),n}(Ie);function ug(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fg;return function(t){return t.lift(new cg(e))}}var cg=function(){function e(t){ye(this,e),this.errorFactory=t}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new lg(e,this.errorFactory))}}]),e}(),lg=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return be(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(Ie);function fg(){return new Hv}function hg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new dg(e))}}var dg=function(){function e(t){ye(this,e),this.defaultValue=t}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new pg(e,this.defaultValue))}}]),e}(),pg=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return be(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(Ie);function vg(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Bp(function(t,n){return e(t,n,r)}):Re,Xv(1),n?hg(t):ug(function(){return new Hv}))}}function gg(){}function yg(e,t,n){return function(r){return r.lift(new mg(e,t,n))}}var mg=function(){function e(t,n,r){ye(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new bg(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),bg=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a;return ye(this,n),(a=t.call(this,e))._tapNext=gg,a._tapError=gg,a._tapComplete=gg,a._tapError=i||gg,a._tapComplete=o||gg,ge(r)?(a._context=fe(a),a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||gg,a._tapError=r.error||gg,a._tapComplete=r.complete||gg),a}return be(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(Ie);function wg(e){return function(t){return t.lift(new _g(e))}}var _g=function(){function e(t){ye(this,e),this.callback=t}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new kg(e,this.callback))}}]),e}(),kg=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).add(new Ae(r)),i}return n}(Ie),Cg=function e(t,n){ye(this,e),this.id=t,this.url=n},Sg=function(e){se(n,e);var t=ce(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return ye(this,n),(i=t.call(this,e,r)).navigationTrigger=o,i.restoredState=a,i}return be(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Cg),Eg=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o}return be(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Cg),Tg=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,e,r)).reason=i,o}return be(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Cg),Ag=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,e,r)).error=i,o}return be(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Cg),xg=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a;return ye(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return be(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Cg),Og=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a;return ye(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return be(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Cg),Ig=function(e){se(n,e);var t=ce(n);function n(e,r,i,o,a){var s;return ye(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return be(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Cg),Pg=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a;return ye(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return be(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Cg),jg=function(e){se(n,e);var t=ce(n);function n(e,r,i,o){var a;return ye(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a.state=o,a}return be(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Cg),Rg=function(){function e(t){ye(this,e),this.route=t}return be(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Dg=function(){function e(t){ye(this,e),this.route=t}return be(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Ng=function(){function e(t){ye(this,e),this.snapshot=t}return be(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Lg=function(){function e(t){ye(this,e),this.snapshot=t}return be(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Vg=function(){function e(t){ye(this,e),this.snapshot=t}return be(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Fg=function(){function e(t){ye(this,e),this.snapshot=t}return be(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ug=function(){function e(t,n,r){ye(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return be(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),Mg=function(){function e(t){ye(this,e),this.params=t||{}}return be(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Hg(e){return new Mg(e)}function zg(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function qg(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],s=e[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function Bg(e,t){var n,r=e?Object.keys(e):void 0,i=t?Object.keys(t):void 0;if(!r||!i||r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(!Gg(e[n=r[o]],t[n]))return!1;return!0}function Gg(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=re(e).sort(),r=re(t).sort();return n.every(function(e,t){return r[t]===e})}return e===t}function Wg(e){return Array.prototype.concat.apply([],e)}function Zg(e){return e.length>0?e[e.length-1]:null}function Kg(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function $g(e){return Ds(e)?e:Rs(e)?Je(Promise.resolve(e)):zp(e)}function Xg(e,t,n){return n?function(e,t){return Bg(e,t)}(e.queryParams,t.queryParams)&&Yg(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return Gg(e[n],t[n])})}(e.queryParams,t.queryParams)&&Qg(e.root,t.root)}function Yg(e,t){if(!ry(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Yg(e.children[n],t.children[n]))return!1}return!0}function Qg(e,t){return Jg(e,t,t.segments)}function Jg(e,t,n){if(e.segments.length>n.length)return!!ry(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!ry(e.segments,n))return!1;for(var r in t.children){if(!e.children[r])return!1;if(!Qg(e.children[r],t.children[r]))return!1}return!0}var i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!ry(e.segments,i)&&!!e.children.primary&&Jg(e.children.primary,t,o)}var ey=function(){function e(t,n,r){ye(this,e),this.root=t,this.queryParams=n,this.fragment=r}return be(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Hg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return ay.serialize(this)}}]),e}(),ty=function(){function e(t,n){var r=this;ye(this,e),this.segments=t,this.children=n,this.parent=null,Kg(n,function(e,t){return e.parent=r})}return be(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return sy(this)}}]),e}(),ny=function(){function e(t,n){ye(this,e),this.path=t,this.parameters=n}return be(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Hg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return py(this)}}]),e}();function ry(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var iy=function e(){ye(this,e)},oy=function(){function e(){ye(this,e)}return be(e,[{key:"parse",value:function(e){var t=new by(e);return new ey(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r;return"/".concat(uy(e.root,!0)).concat((n=e.queryParams,r=Object.keys(n).map(function(e){var t=n[e];return Array.isArray(t)?t.map(function(t){return"".concat(ly(e),"=").concat(ly(t))}).join("&"):"".concat(ly(e),"=").concat(ly(t))}),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),ay=new oy;function sy(e){return e.segments.map(function(e){return py(e)}).join("/")}function uy(e,t){if(!e.hasChildren())return sy(e);if(t){var n=e.children.primary?uy(e.children.primary,!1):"",r=[];return Kg(e.children,function(e,t){"primary"!==t&&r.push("".concat(t,":").concat(uy(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(e,t){var n=[];return Kg(e.children,function(e,r){"primary"===r&&(n=n.concat(t(e,r)))}),Kg(e.children,function(e,r){"primary"!==r&&(n=n.concat(t(e,r)))}),n}(e,function(t,n){return"primary"===n?[uy(e.children.primary,!1)]:["".concat(n,":").concat(uy(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(sy(e),"/").concat(i[0]):"".concat(sy(e),"/(").concat(i.join("//"),")")}function cy(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ly(e){return cy(e).replace(/%3B/gi,";")}function fy(e){return cy(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hy(e){return decodeURIComponent(e)}function dy(e){return hy(e.replace(/\+/g,"%20"))}function py(e){return"".concat(fy(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(fy(e),"=").concat(fy(t[e]))}).join("")));var t}var vy=/^[^\/()?;=#]+/;function gy(e){var t=e.match(vy);return t?t[0]:""}var yy=/^[^=?&#]+/,my=/^[^?&#]+/,by=function(){function e(t){ye(this,e),this.url=t,this.remaining=t}return be(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ty([],{}):new ty([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new ty(e,t)),n}},{key:"parseSegment",value:function(){var e=gy(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new ny(hy(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=gy(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=gy(this.remaining);r&&(n=r,this.capture(n))}e[hy(t)]=hy(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(yy);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=function(e){var t=e.match(my);return t?t[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=dy(t),o=dy(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=gy(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i="primary");var o=this.parseChildren();t[i]=1===Object.keys(o).length?o.primary:new ty([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),wy=function(){function e(t){ye(this,e),this._root=t}return be(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=_y(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=_y(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=ky(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return ky(e,this._root).map(function(e){return e.value})}}]),e}();function _y(e,t){if(e===t.value)return t;var n,r=pe(t.children);try{for(r.s();!(n=r.n()).done;){var i=_y(e,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function ky(e,t){if(e===t.value)return[t];var n,r=pe(t.children);try{for(r.s();!(n=r.n()).done;){var i=ky(e,n.value);if(i.length)return i.unshift(t),i}}catch(o){r.e(o)}finally{r.f()}return[]}var Cy=function(){function e(t,n){ye(this,e),this.value=t,this.children=n}return be(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Sy(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Ey=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e)).snapshot=r,Py(fe(i),e),i}return be(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(wy);function Ty(e,t){var n=function(e,t){var n=new Oy([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Iy("",new Cy(n,[]))}(e,t),r=new Dv([new ny("",{})]),i=new Dv({}),o=new Dv({}),a=new Dv({}),s=new Dv(""),u=new Ay(r,i,a,s,o,"primary",t,n.root);return u.snapshot=n.root,new Ey(new Cy(u,[]),n)}var Ay=function(){function e(t,n,r,i,o,a,s,u){ye(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return be(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Be(function(e){return Hg(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Be(function(e){return Hg(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function xy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Oy=function(){function e(t,n,r,i,o,a,s,u,c,l,f){ye(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=f}return be(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Hg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Hg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),Iy=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,r)).url=e,Py(fe(i),r),i}return be(n,[{key:"toString",value:function(){return jy(this._root)}}]),n}(wy);function Py(e,t){t.value._routerState=e,t.children.forEach(function(t){return Py(e,t)})}function jy(e){var t=e.children.length>0?" { ".concat(e.children.map(jy).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Ry(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Bg(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Bg(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!Bg(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Bg(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Dy(e,t){var n,r;return Bg(e.params,t.params)&&ry(n=e.url,r=t.url)&&n.every(function(e,t){return Bg(e.parameters,r[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||Dy(e.parent,t.parent))}function Ny(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=t.value;var i=function(e,t,n){return t.children.map(function(t){var r,i=pe(n.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return Ny(e,t,o)}}catch(a){i.e(a)}finally{i.f()}return Ny(e,t)})}(e,t,n);return new Cy(r,i)}var o=e.retrieve(t.value);if(o){var a=o.route;return Ly(t,a),a}var s,u=new Ay(new Dv((s=t.value).url),new Dv(s.params),new Dv(s.queryParams),new Dv(s.fragment),new Dv(s.data),s.outlet,s.component,s),c=t.children.map(function(t){return Ny(e,t)});return new Cy(u,c)}function Ly(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)Ly(e.children[n],t.children[n])}function Vy(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Fy(e){return"object"==typeof e&&null!=e&&e.outlets}function Uy(e,t,n,r,i){var o={};return r&&Kg(r,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new ey(n.root===e?t:My(n.root,e,t),o,i)}function My(e,t,n){var r={};return Kg(e.children,function(e,i){r[i]=e===t?n:My(e,t,n)}),new ty(e.segments,r)}var Hy=function(){function e(t,n,r){if(ye(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Vy(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(Fy);if(i&&i!==Zg(r))throw new Error("{outlets:{}} has to be the last command")}return be(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),zy=function e(t,n,r){ye(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function qy(e,t,n){if(e||(e=new ty([],{})),0===e.segments.length&&e.hasChildren())return By(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return o;var a=e.segments[i],s=n[r];if(Fy(s))break;var u="".concat(s),c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!Ky(u,c,a))return o;r+=2}else{if(!Ky(u,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new ty(e.segments.slice(0,r.pathIndex),{});return o.children.primary=new ty(e.segments.slice(r.pathIndex),e.children),By(o,0,i)}return r.match&&0===i.length?new ty(e.segments,{}):r.match&&!e.hasChildren()?Gy(e,t,n):r.match?By(e,0,i):Gy(e,t,n)}function By(e,t,n){if(0===n.length)return new ty(e.segments,{});var r=function(e){return Fy(e[0])?e[0].outlets:{primary:e}}(n),i={};return Kg(r,function(n,r){"string"==typeof n&&(n=[n]),null!==n&&(i[r]=qy(e.children[r],t,n))}),Kg(e.children,function(e,t){void 0===r[t]&&(i[t]=e)}),new ty(e.segments,i)}function Gy(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){var o=n[i];if(Fy(o)){var a=Wy(o.outlets);return new ty(r,a)}if(0===i&&Vy(n[0]))r.push(new ny(e.segments[t].path,Zy(n[0]))),i++;else{var s=Fy(o)?o.outlets.primary:"".concat(o),u=i<n.length-1?n[i+1]:null;s&&u&&Vy(u)?(r.push(new ny(s,Zy(u))),i+=2):(r.push(new ny(s,{})),i++)}}return new ty(r,{})}function Wy(e){var t={};return Kg(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=Gy(new ty([],{}),0,e))}),t}function Zy(e){var t={};return Kg(e,function(e,n){return t[n]="".concat(e)}),t}function Ky(e,t,n){return e==n.path&&Bg(t,n.parameters)}var $y=function(){function e(t,n,r,i){ye(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i}return be(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Ry(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var r=this,i=Sy(t);e.children.forEach(function(e){var t=e.value.outlet;r.deactivateRoutes(e,i[t],n),delete i[t]}),Kg(i,function(e,t){r.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:r,route:e,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=Sy(e),o=0,a=Object.keys(i);o<a.length;o++){var s=a[o];this.deactivateRouteAndItsChildren(i[s],r)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}},{key:"activateChildRoutes",value:function(e,t,n){var r=this,i=Sy(t);e.children.forEach(function(e){r.activateRoutes(e,i[e.value.outlet],n),r.forwardEvent(new Fg(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Lg(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var r=e.value,i=t?t.value:null;if(Ry(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(r.component){var a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Xy(s.route)}else{var u=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),c=u?u.module.componentFactoryResolver:null;a.attachRef=null,a.route=r,a.resolver=c,a.outlet&&a.outlet.activateWith(r,c),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function Xy(e){Ry(e.value),e.children.forEach(Xy)}var Yy=function e(t,n){ye(this,e),this.routes=t,this.module=n};function Qy(e){return"function"==typeof e}function Jy(e){return e instanceof ey}var em=Symbol("INITIAL_VALUE");function tm(){return Wv(function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i;return qe(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&Ce(t[0])&&(t=t[0]),st(t,i).lift(new Uv(r))}(e.map(function(e){return e.pipe(Xv(1),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[t.length-1];return qe(r)?(t.pop(),function(e){return zv(t,e,r)}):function(e){return zv(t,e)}}(em))})).pipe(Jv(function(e,t){var n=!1;return t.reduce(function(e,r,i){if(e!==em)return e;if(r===em&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||Jy(r))return r}return e},e)},em),Bp(function(e){return e!==em}),Be(function(e){return Jy(e)?e:!0===e}),Xv(1))})}var nm,rm=((nm=function e(){ye(this,e)}).\u0275fac=function(e){return new(e||nm)},nm.\u0275cmp=tn({type:nm,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&Os(0,"router-outlet")},directives:function(){return[nb]},encapsulation:2}),nm);function im(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var r=e[n];om(r,am(t,r))}}function om(e,t){e.children&&im(e.children,t)}function am(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function sm(e){var t=e.children&&e.children.map(sm),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=rm),n}function um(e){return e.outlet||"primary"}function cm(e,t){var n=e.filter(function(e){return um(e)===t});return n.push.apply(n,re(e.filter(function(e){return um(e)!==t}))),n}var lm={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function fm(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},lm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(t.matcher||qg)(n,e,t);if(!i)return Object.assign({},lm);var o={};Kg(i.posParams,function(e,t){o[t]=e.path});var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function hm(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return dm(e,t,n)&&"primary"!==um(n)})}(e,n,r)){var o=new ty(t,function(e,t,n,r){var i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o,a=pe(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==um(s)){var u=new ty([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,i[um(s)]=u}}}catch(c){a.e(c)}finally{a.f()}return i}(e,t,r,new ty(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return dm(e,t,n)})}(e,n,r)){var a=new ty(e.segments,function(e,t,n,r,i,o){var a,s={},u=pe(r);try{for(u.s();!(a=u.n()).done;){var c=a.value;if(dm(e,n,c)&&!i[um(c)]){var l=new ty([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[um(c)]=l}}}catch(f){u.e(f)}finally{u.f()}return Object.assign(Object.assign({},i),s)}(e,t,n,r,e.children,i));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new ty(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function dm(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function pm(e,t,n,r){return!!(um(e)===r||"primary"!==r&&dm(t,n,e))&&("**"===e.path||fm(t,e,n).matched)}function vm(e,t,n){return 0===t.length&&!e.children[n]}var gm=function e(t){ye(this,e),this.segmentGroup=t||null},ym=function e(t){ye(this,e),this.urlTree=t};function mm(e){return new Ne(function(t){return t.error(new gm(e))})}function bm(e){return new Ne(function(t){return t.error(new ym(e))})}function wm(e){return new Ne(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var _m=function(){function e(t,n,r,i,o){ye(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(qc)}return be(e,[{key:"apply",value:function(){var e=this,t=hm(this.urlTree.root,[],[],this.config).segmentGroup,n=new ty(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(Be(function(t){return e.createUrlTree(km(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(ng(function(t){if(t instanceof ym)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof gm)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Be(function(n){return t.createUrlTree(km(n),e.queryParams,e.fragment)})).pipe(ng(function(e){if(e instanceof gm)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var r=e.segments.length>0?new ty([],{primary:e}):e;return new ey(r,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Be(function(e){return new ty([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){for(var r=this,i=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?i.unshift(s):i.push(s)}return Je(i).pipe(qp(function(i){var o=n.children[i],a=cm(t,i);return r.expandSegmentGroup(e,a,o,i).pipe(Be(function(e){return{segment:e,outlet:i}}))}),Jv(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Bp(function(t,n){return e(t,n,r)}):Re,og(1),n?hg(t):ug(function(){return new Hv}))}}())}},{key:"expandSegment",value:function(e,t,n,r,i,o){var a=this;return Je(n).pipe(qp(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,r,i,o).pipe(ng(function(e){if(e instanceof gm)return zp(null);throw e}))}),vg(function(e){return!!e}),ng(function(e,n){if(e instanceof Hv||"EmptyError"===e.name){if(vm(t,r,i))return zp(new ty([],{}));throw new gm(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,o,a){return pm(r,t,i,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):mm(t):mm(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?bm(o):this.lineralizeSegments(n,o).pipe(rt(function(n){var o=new ty(n,{});return i.expandSegment(e,o,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,o){var a=this,s=fm(t,r,i),u=s.matched,c=s.consumedSegments,l=s.lastChild,f=s.positionalParamSegments;if(!u)return mm(t);var h=this.applyRedirectCommands(c,r.redirectTo,f);return r.redirectTo.startsWith("/")?bm(h):this.lineralizeSegments(r,h).pipe(rt(function(r){return a.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Be(function(e){return n._loadedConfig=e,new ty(r,{})})):zp(new ty(r,{}));var a=fm(t,n,r),s=a.matched,u=a.consumedSegments,c=a.lastChild;if(!s)return mm(t);var l=r.slice(c);return this.getChildConfig(e,n,r).pipe(rt(function(e){var r=e.module,a=e.routes,s=hm(t,u,l,a),c=s.segmentGroup,f=s.slicedSegments,h=new ty(c.segments,c.children);if(0===f.length&&h.hasChildren())return o.expandChildren(r,a,h).pipe(Be(function(e){return new ty(u,e)}));if(0===a.length&&0===f.length)return zp(new ty(u,{}));var d=um(n)===i;return o.expandSegment(r,h,a,f,d?"primary":i,!0).pipe(Be(function(e){return new ty(u.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?zp(new Yy(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?zp(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(rt(function(n){return n?r.configLoader.load(e.injector,t).pipe(Be(function(e){return t._loadedConfig=e,e})):function(e){return new Ne(function(t){return t.error(zg("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):zp(new Yy([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;return i&&0!==i.length?zp(i.map(function(r){var i,o=e.get(r);if(function(e){return e&&Qy(e.canLoad)}(o))i=o.canLoad(t,n);else{if(!Qy(o))throw new Error("Invalid CanLoad guard");i=o(t,n)}return $g(i)})).pipe(tm(),yg(function(e){if(Jy(e)){var t=zg('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Be(function(e){return!0===e})):zp(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return zp(n);if(r.numberOfChildren>1||!r.children.primary)return wm(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new ey(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Kg(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return Kg(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new ty(o,a)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=pe(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return e}}]),e}();function km(e){for(var t={},n=0,r=Object.keys(e.children);n<r.length;n++){var i=r[n],o=km(e.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new ty(e.segments.concat(t.segments),t.children)}return e}(new ty(e.segments,t))}var Cm=function e(t){ye(this,e),this.path=t,this.route=this.path[this.path.length-1]},Sm=function e(t,n){ye(this,e),this.component=t,this.route=n};function Em(e,t,n){var r=e._root;return Am(r,t?t._root:null,n,[r.value])}function Tm(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Am(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Sy(t);return e.children.forEach(function(e){!function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!ry(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ry(e.url,t.url)||!Bg(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Dy(e,t)||!Bg(e.queryParams,t.queryParams);case"paramsChange":default:return!Dy(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Cm(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Am(e,t,o.component?s?s.children:null:n,r,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Sm(s.outlet.component,a))}else a&&xm(t,s,i),i.canActivateChecks.push(new Cm(r)),Am(e,null,o.component?s?s.children:null:n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]}),Kg(o,function(e,t){return xm(e,n.getContext(t),i)}),i}function xm(e,t,n){var r=Sy(e),i=e.value;Kg(r,function(e,r){xm(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Sm(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var Om=function e(){ye(this,e)};function Im(e){return new Ne(function(t){return t.error(e)})}var Pm=function(){function e(t,n,r,i,o,a){ye(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return be(e,[{key:"recognize",value:function(){var e=hm(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new Oy([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Cy(n,t),i=new Iy(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=xy(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],r=0,i=Object.keys(t.children);r<i.length;r++){var o=i[r],a=t.children[o],s=cm(e,o),u=this.processSegmentGroup(s,a,o);if(null===u)return null;n.push.apply(n,re(u))}var c=function(e){var t,n=[],r=pe(e);try{var i=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var i=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==i?(e=i.children).push.apply(e,re(r.children)):n.push(r)};for(r.s();!(t=r.n()).done;)i()}catch(o){r.e(o)}finally{r.f()}return n}(n);return c.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),c}},{key:"processSegment",value:function(e,t,n,r){var i,o=pe(e);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=this.processSegmentAgainstRoute(a,t,n,r);if(null!==s)return s}}catch(u){o.e(u)}finally{o.f()}return vm(t,n,r)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,r){if(e.redirectTo||!pm(e,t,n,r))return null;var i,o=[],a=[];if("**"===e.path){var s=n.length>0?Zg(n).parameters:{};i=new Oy(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Dm(e),um(e),e.component,e,jm(t),Rm(t)+n.length,Nm(e))}else{var u=fm(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),i=new Oy(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Dm(e),um(e),e.component,e,jm(t),Rm(t)+o.length,Nm(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=hm(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=l.segmentGroup,h=l.slicedSegments;if(0===h.length&&f.hasChildren()){var d=this.processChildren(c,f);return null===d?null:[new Cy(i,d)]}if(0===c.length&&0===h.length)return[new Cy(i,[])];var p=um(e)===r,v=this.processSegment(c,f,h,p?"primary":r);return null===v?null:[new Cy(i,v)]}}]),e}();function jm(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Rm(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Dm(e){return e.data||{}}function Nm(e){return e.resolve||{}}function Lm(e){return Wv(function(t){var n=e(t);return n?Je(n).pipe(Be(function(){return t})):zp(t)})}var Vm=function(e){se(n,e);var t=ce(n);function n(){return ye(this,n),t.apply(this,arguments)}return n}(function(){function e(){ye(this,e)}return be(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),Fm=new ni("ROUTES"),Um=function(){function e(t,n,r,i){ye(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return be(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Be(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Yy(Wg(i.injector.get(Fm,void 0,Dt.Self|Dt.Optional)).map(sm),i)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Je(this.loader.load(e)):$g(e()).pipe(rt(function(e){return e instanceof Bc?zp(e):Je(t.compiler.compileModuleAsync(e))}))}}]),e}(),Mm=function e(){ye(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Hm,this.attachRef=null},Hm=function(){function e(){ye(this,e),this.contexts=new Map}return be(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new Mm,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),zm=function(){function e(){ye(this,e)}return be(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function qm(e){throw e}function Bm(e,t,n){return t.parse("/")}function Gm(e,t){return zp(null)}var Wm,Zm,Km,$m=((Km=function(){function e(t,n,r,i,o,a,s,u){var c=this;ye(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new He,this.errorHandler=qm,this.malformedUriErrorHandler=Bm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Gm,afterPreactivation:Gm},this.urlHandlingStrategy=new zm,this.routeReuseStrategy=new Vm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(qc),this.console=o.get(Dl);var l=o.get(Zl);this.isNgZoneEnabled=l instanceof Zl&&Zl.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new ey(new ty([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Um(a,s,function(e){return c.triggerEvent(new Rg(e))},function(e){return c.triggerEvent(new Dg(e))}),this.routerState=Ty(this.currentUrlTree,this.rootComponentType),this.transitions=new Dv({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 be(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Bp(function(e){return 0!==e.id}),Be(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Wv(function(e){var r,i,o,a=!1,s=!1;return zp(e).pipe(yg(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Wv(function(e){var r,i,o,a,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return zp(e).pipe(Wv(function(e){var r=t.transitions.getValue();return n.next(new Sg(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?qv:Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,o=t.urlSerializer,a=t.config,Wv(function(e){return function(e,t,n,r,i){return new _m(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(Be(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),yg(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,o){return rt(function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new Pm(e,t,n,r,i,o).recognize();return null===a?Im(new Om):zp(a)}catch(s){return Im(s)}}(e,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,t.serializeUrl(a)),i,o).pipe(Be(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),yg(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var r=new xg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.id,c=e.extractedUrl,l=e.source,f=e.restoredState,h=e.extras,d=new Sg(u,t.serializeUrl(c),l,f);n.next(d);var p=Ty(c,t.rootComponentType).snapshot;return zp(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:c,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),qv}),Lm(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),yg(function(e){var n=new Og(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Be(function(e){return Object.assign(Object.assign({},e),{guards:Em(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return rt(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?zp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Je(e).pipe(rt(function(e){return function(e,t,n,r,i){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?zp(o.map(function(o){var a,s=Tm(o,t,i);if(function(e){return e&&Qy(e.canDeactivate)}(s))a=$g(s.canDeactivate(e,t,n,r));else{if(!Qy(s))throw new Error("Invalid CanDeactivate guard");a=$g(s(e,t,n,r))}return a.pipe(vg())})).pipe(tm()):zp(!0)}(e.component,e.route,n,t,r)}),vg(function(e){return!0!==e},!0))}(s,r,i,e).pipe(rt(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Je(t).pipe(qp(function(t){return zv(function(e,t){return null!==e&&t&&t(new Ng(e)),zp(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new Vg(e)),zp(!0)}(t.route,r),function(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Gv(function(){return zp(t.guards.map(function(i){var o,a=Tm(i,t.node,n);if(function(e){return e&&Qy(e.canActivateChild)}(a))o=$g(a.canActivateChild(r,e));else{if(!Qy(a))throw new Error("Invalid CanActivateChild guard");o=$g(a(r,e))}return o.pipe(vg())})).pipe(tm())})});return zp(i).pipe(tm())}(e,t.path,n),function(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?zp(r.map(function(r){return Gv(function(){var i,o=Tm(r,t,n);if(function(e){return e&&Qy(e.canActivate)}(o))i=$g(o.canActivate(t,e));else{if(!Qy(o))throw new Error("Invalid CanActivate guard");i=$g(o(t,e))}return i.pipe(vg())})})).pipe(tm()):zp(!0)}(e,t.route,n))}),vg(function(e){return!0!==e},!0))}(r,a,e,t):zp(n)}),Be(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),yg(function(e){if(Jy(e.guardsResult)){var n=zg('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var r=new Ig(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(r)}),Bp(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new Tg(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Lm(function(e){if(e.guards.canActivateChecks.length)return zp(e).pipe(yg(function(e){var n=new Pg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Wv(function(e){var r,i,o=!1;return zp(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,rt(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return zp(e);var o=0;return Je(n).pipe(qp(function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return zp({});var o={};return Je(i).pipe(rt(function(i){return function(e,t,n,r){var i=Tm(e,t,r);return $g(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(yg(function(e){o[i]=e}))}),og(1),rt(function(){return Object.keys(o).length===i.length?zp(o):qv}))}(e._resolve,e,t,r).pipe(Be(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),xy(e,n).resolve),null}))}(e.route,t,r,i)}),yg(function(){return o++}),og(1),rt(function(t){return o===n.length?zp(e):qv}))})),yg({next:function(){return o=!0},complete:function(){if(!o){var r=new Tg(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))}),yg(function(e){var n=new jg(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Lm(function(e){var n=e.targetSnapshot,r=e.id,i=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Be(function(e){var n=function(e,t,n){var r=Ny(e,t._root,n?n._root:void 0);return new Ey(r,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),yg(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(r=t.rootContexts,i=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Be(function(e){return new $y(i,e.targetRouterState,e.currentRouterState,o).activate(r),e})),yg({next:function(){a=!0},complete:function(){a=!0}}),wg(function(){if(!a&&!s){t.resetUrlToCurrentUrlTree();var r=new Tg(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null}),ng(function(r){if(s=!0,(u=r)&&u.ngNavigationCancelingError){var i=Jy(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new Tg(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new Ag(e.id,t.serializeUrl(e.extractedUrl),r);n.next(a);try{e.resolve(t.errorHandler(r))}catch(c){e.reject(c)}}var u;return qv}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(i,t,r,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){im(e),this.config=e.map(sm),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:i,c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,i){if(0===n.length)return Uy(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Hy(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return Kg(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(re(e),[{outlets:o}])}if(r.segmentPath)return[].concat(re(e),[r.segmentPath])}return"string"!=typeof r?[].concat(re(e),[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[].concat(re(e),[r])},[]);return new Hy(n,t,r)}(n);if(o.toRoot())return Uy(t.root,new ty([],{}),t,r,i);var a=function(e,t,n){if(e.isAbsolute)return new zy(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new zy(r,r===t.root,0)}var i=Vy(e.commands[0])?0:1;return function(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new zy(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?By(a.segmentGroup,a.index,o.commands):qy(a.segmentGroup,a.index,o.commands);return Uy(a.segmentGroup,s,t,r,i)}(s,this.currentUrlTree,e,c,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Jy(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if(Jy(e))return Xg(this.currentUrlTree,e,t);var n=this.parseUrl(e);return Xg(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new Eg(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,r,i){var o,a,s,u=this.getTransition(),c="imperative"!==t&&"imperative"===(null==u?void 0:u.source),l=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===e.toString();if(c&&l)return Promise.resolve(!0);i?(o=i.resolve,a=i.reject,s=i.promise):s=new Promise(function(e,t){o=e,a=t});var f=++this.navigationId;return this.setTransition({id:f,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,r){var i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),e}()).\u0275fac=function(e){return new(e||Km)(yi(ii),yi(iy),yi(Hm),yi(Kf),yi(ss),yi(yf),yi(Bl),yi(void 0))},Km.\u0275prov=St({token:Km,factory:Km.\u0275fac}),Km),Xm=((Zm=function(){function e(t,n,r,i,o){ye(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new He,null==r&&i.setAttribute(o.nativeElement,"tabindex","0")}return be(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:Qm(this.skipLocationChange),replaceUrl:Qm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Qm(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||Zm)(Ss($m),Ss(Ay),ei("tabindex"),Ss(dc),Ss(lc))},Zm.\u0275dir=un({type:Zm,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Ns("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Sn]}),Zm),Ym=((Wm=function(){function e(t,n,r){var i=this;ye(this,e),this.router=t,this.route=n,this.locationStrategy=r,this.commands=[],this.onChanges=new He,this.subscription=t.events.subscribe(function(e){e instanceof Eg&&i.updateTargetUrlAndHref()})}return be(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,r,i){if(0!==e||t||n||r||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:Qm(this.skipLocationChange),replaceUrl:Qm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Qm(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||Wm)(Ss($m),Ss(Ay),Ss(Mf))},Wm.\u0275dir=un({type:Wm,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Ns("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Ys("href",t.href,Gi),ws("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Sn]}),Wm);function Qm(e){return""===e||!!e}var Jm,eb,tb,nb=((Jm=function(){function e(t,n,r,i,o){ye(this,e),this.parentContexts=t,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new cl,this.deactivateEvents=new cl,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}return be(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new rb(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}()).\u0275fac=function(e){return new(e||Jm)(Ss(Hm),Ss(Wc),Ss(ac),ei("name"),Ss(Nc))},Jm.\u0275dir=un({type:Jm,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Jm),rb=function(){function e(t,n,r){ye(this,e),this.route=t,this.childContexts=n,this.parent=r}return be(e,[{key:"get",value:function(e,t){return e===Ay?this.route:e===Hm?this.childContexts:this.parent.get(e,t)}}]),e}(),ib=function e(){ye(this,e)},ob=function(){function e(){ye(this,e)}return be(e,[{key:"preload",value:function(e,t){return zp(null)}}]),e}(),ab=((tb=function(){function e(t,n,r,i,o){ye(this,e),this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new Um(n,r,function(e){return t.triggerEvent(new Rg(e))},function(e){return t.triggerEvent(new Dg(e))})}return be(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Bp(function(e){return e instanceof Eg}),qp(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(qc);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,r=[],i=pe(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(e,o)):o.children&&r.push(this.processRoutes(e,o.children))}}catch(s){i.e(s)}finally{i.f()}return Je(r).pipe(at(),Be(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return n.loader.load(e.injector,t).pipe(rt(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}()).\u0275fac=function(e){return new(e||tb)(yi($m),yi(yf),yi(Bl),yi(ss),yi(ib))},tb.\u0275prov=St({token:tb,factory:tb.\u0275fac}),tb),sb=((eb=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ye(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return be(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Sg?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Eg&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Ug&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Ug(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||eb)(yi($m),yi(Ch),yi(void 0))},eb.\u0275prov=St({token:eb,factory:eb.\u0275fac}),eb),ub=new ni("ROUTER_CONFIGURATION"),cb=new ni("ROUTER_FORROOT_GUARD"),lb=[Kf,{provide:iy,useClass:oy},{provide:$m,useFactory:function(e,t,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new $m(null,e,t,n,r,i,o,Wg(a));if(u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,l),s.enableTracing){var f=Tf();l.events.subscribe(function(e){f.logGroup("Router Event: ".concat(e.constructor.name)),f.log(e.toString()),f.log(e),f.logGroupEnd()})}return l},deps:[iy,Hm,Kf,ss,yf,Bl,Fm,ub,[function(){return function e(){ye(this,e)}}(),new ki],[function(){return function e(){ye(this,e)}}(),new ki]]},Hm,{provide:Ay,useFactory:function(e){return e.routerState.root},deps:[$m]},{provide:yf,useClass:wf},ab,ob,function(){function e(){ye(this,e)}return be(e,[{key:"preload",value:function(e,t){return t().pipe(ng(function(){return zp(null)}))}}]),e}(),{provide:ub,useValue:{enableTracing:!1}}];function fb(){return new cf("Router",$m)}var hb,db=((hb=function(){function e(t,n){ye(this,e)}return be(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[lb,yb(t),{provide:cb,useFactory:gb,deps:[[$m,new ki,new Ci]]},{provide:ub,useValue:n||{}},{provide:Mf,useFactory:vb,deps:[Of,[new _i(Gf),new ki],ub]},{provide:sb,useFactory:pb,deps:[$m,Ch,ub]},{provide:ib,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:ob},{provide:cf,multi:!0,useFactory:fb},[bb,{provide:Tl,multi:!0,useFactory:wb,deps:[bb]},{provide:Pb,useFactory:_b,deps:[bb]},{provide:Rl,multi:!0,useExisting:Pb}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[yb(t)]}}}]),e}()).\u0275mod=an({type:hb}),hb.\u0275inj=Et({factory:function(e){return new(e||hb)(yi(cb,8),yi($m,8))}}),hb);function pb(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new sb(e,t,n)}function vb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Zf(e,t):new Wf(e,t)}function gb(e){return"guarded"}function yb(e){return[{provide:ri,multi:!0,useValue:e},{provide:Fm,multi:!0,useValue:e}]}var mb,bb=((mb=function(){function e(t){ye(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new He}return be(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(jf,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get($m),i=e.injector.get(ub);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?zp(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(ub),n=this.injector.get(ab),r=this.injector.get(sb),i=this.injector.get($m),o=this.injector.get(vf);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||mb)(yi(ss))},mb.\u0275prov=St({token:mb,factory:mb.\u0275fac}),mb);function wb(e){return e.appInitializer.bind(e)}function _b(e){return e.bootstrapListener.bind(e)}var kb,Cb,Sb,Eb,Tb,Ab,xb,Ob,Ib,Pb=new ni("Router Initializer"),jb=((kb=function(){function e(t){var n=this;ye(this,e),this.router=t,this.subject=new He,this.keepAfterNavigationChange=!1,t.events.subscribe(function(e){e instanceof Sg&&(n.keepAfterNavigationChange?n.keepAfterNavigationChange=!1:n.subject.next())})}return be(e,[{key:"success",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.keepAfterNavigationChange=t,this.subject.next({type:"success",text:e})}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.keepAfterNavigationChange=t,this.subject.next({type:"error",text:e})}},{key:"getMessage",value:function(){return this.subject.asObservable()}}]),e}()).\u0275fac=function(e){return new(e||kb)(yi($m))},kb.\u0275prov=St({token:kb,factory:kb.\u0275fac,providedIn:"root"}),kb),Rb=function(){function e(){ye(this,e)}return be(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),Db=new ni("basePath"),Nb=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ye(this,e),this.apiKeys=t.apiKeys,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.withCredentials=t.withCredentials,this.encoder=t.encoder}return be(e,[{key:"selectHeaderContentType",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"selectHeaderAccept",value:function(e){var t=this;if(0!==e.length){var n=e.find(function(e){return t.isJsonMime(e)});return void 0===n?e[0]:n}}},{key:"isJsonMime",value:function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),e}(),Lb=((xb=function(){function e(t,n,r){ye(this,e),this.httpClient=t,this.basePath="https://gnuboat.engsas.com/mapservice/v1",this.defaultHeaders=new $p,this.configuration=new Nb,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Rb}return be(e,[{key:"addToHttpParams",value:function(e,t,n){return"object"==typeof t&&t instanceof Date==0?this.addToHttpParamsRecursive(e,t):this.addToHttpParamsRecursive(e,t,n)}},{key:"addToHttpParamsRecursive",value:function(e,t,n){var r=this;if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(function(t){return e=r.addToHttpParamsRecursive(e,t,n)});else if(t instanceof Date){if(null==n)throw Error("key may not be null if value is Date");e=e.append(n,t.toISOString().substr(0,10))}else Object.keys(t).forEach(function(i){return e=r.addToHttpParamsRecursive(e,t[i],null!=n?"".concat(n,".").concat(i):i)});else{if(null==n)throw Error("key may not be null if value is not object or array");e=e.append(n,t)}return e}},{key:"devicesCreate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this.defaultHeaders;if(this.configuration.apiKeys){var o=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];o&&(i=i.set("X-API-KEY",o))}(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var a=r&&r.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==a&&(i=i.set("Accept",a));var s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(i=i.set("Content-Type",s));var u="json";return a&&a.startsWith("text")&&(u="text"),this.httpClient.post("".concat(this.configuration.basePath,"/devices"),e,{responseType:u,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"devicesDeviceDelete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(null==e)throw new Error("Required parameter id was null or undefined when calling devicesDeviceDelete.");var i=this.defaultHeaders;if(this.configuration.apiKeys){var o=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];o&&(i=i.set("X-API-KEY",o))}(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var a=r&&r.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==a&&(i=i.set("Accept",a));var s="json";return a&&a.startsWith("text")&&(s="text"),this.httpClient.delete("".concat(this.configuration.basePath,"/devices/").concat(encodeURIComponent(String(e))),{responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"devicesGet",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=new Qp({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"order_by")),null!=n&&(s=this.addToHttpParams(s,n,"offset")),null!=r&&(s=this.addToHttpParams(s,r,"limit"));var u=this.defaultHeaders;if(this.configuration.apiKeys){var c=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];c&&(u=u.set("X-API-KEY",c))}(this.configuration.username||this.configuration.password)&&(u=u.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var l=a&&a.httpHeaderAccept;void 0===l&&(l=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==l&&(u=u.set("Accept",l));var f="json";return l&&l.startsWith("text")&&(f="text"),this.httpClient.get("".concat(this.configuration.basePath,"/devices"),{params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:u,observe:i,reportProgress:o})}},{key:"devicesGetById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(null==e)throw new Error("Required parameter id was null or undefined when calling devicesGetById.");var i=this.defaultHeaders;if(this.configuration.apiKeys){var o=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];o&&(i=i.set("X-API-KEY",o))}(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var a=r&&r.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==a&&(i=i.set("Accept",a));var s="json";return a&&a.startsWith("text")&&(s="text"),this.httpClient.get("".concat(this.configuration.basePath,"/devices/").concat(encodeURIComponent(String(e))),{responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||xb)(yi(mv),yi(Db,8),yi(Nb,8))},xb.\u0275prov=St({token:xb,factory:xb.\u0275fac,providedIn:"root"}),xb),Vb=((Ab=function(){function e(t,n,r){ye(this,e),this.httpClient=t,this.basePath="https://gnuboat.engsas.com/mapservice/v1",this.defaultHeaders=new $p,this.configuration=new Nb,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Rb}return be(e,[{key:"addToHttpParams",value:function(e,t,n){return"object"==typeof t&&t instanceof Date==0?this.addToHttpParamsRecursive(e,t):this.addToHttpParamsRecursive(e,t,n)}},{key:"addToHttpParamsRecursive",value:function(e,t,n){var r=this;if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(function(t){return e=r.addToHttpParamsRecursive(e,t,n)});else if(t instanceof Date){if(null==n)throw Error("key may not be null if value is Date");e=e.append(n,t.toISOString().substr(0,10))}else Object.keys(t).forEach(function(i){return e=r.addToHttpParamsRecursive(e,t[i],null!=n?"".concat(n,".").concat(i):i)});else{if(null==n)throw Error("key may not be null if value is not object or array");e=e.append(n,t)}return e}},{key:"logsGet",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"body",o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=new Qp({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"submitter")),null!=t&&(s=this.addToHttpParams(s,t,"order_by")),null!=n&&(s=this.addToHttpParams(s,n,"offset")),null!=r&&(s=this.addToHttpParams(s,r,"limit"));var u=this.defaultHeaders,c=a&&a.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==c&&(u=u.set("Accept",c));var l="json";return c&&c.startsWith("text")&&(l="text"),this.httpClient.get("".concat(this.configuration.basePath,"/logs"),{params:s,responseType:l,withCredentials:this.configuration.withCredentials,headers:u,observe:i,reportProgress:o})}},{key:"logsLogCreate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this.defaultHeaders;if(this.configuration.apiKeys){var o=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];o&&(i=i.set("X-API-KEY",o))}(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var a=r&&r.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==a&&(i=i.set("Accept",a));var s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(i=i.set("Content-Type",s));var u="json";return a&&a.startsWith("text")&&(u="text"),this.httpClient.post("".concat(this.configuration.basePath,"/logs"),e,{responseType:u,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"logsLogDelete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(null==e)throw new Error("Required parameter logId was null or undefined when calling logsLogDelete.");var i=this.defaultHeaders;if(this.configuration.apiKeys){var o=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];o&&(i=i.set("X-API-KEY",o))}(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var a=r&&r.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==a&&(i=i.set("Accept",a));var s="json";return a&&a.startsWith("text")&&(s="text"),this.httpClient.delete("".concat(this.configuration.basePath,"/logs/").concat(encodeURIComponent(String(e))),{responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"logsLogGetById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(null==e)throw new Error("Required parameter logId was null or undefined when calling logsLogGetById.");var i=this.defaultHeaders,o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json","application/geo+json","application/problem+json"])),void 0!==o&&(i=i.set("Accept",o));var a="json";return o&&o.startsWith("text")&&(a="text"),this.httpClient.get("".concat(this.configuration.basePath,"/logs/").concat(encodeURIComponent(String(e))),{responseType:a,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"logsLogUpload",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;if(null==e)throw new Error("Required parameter logId was null or undefined when calling logsLogUpload.");var o=this.defaultHeaders;if(this.configuration.apiKeys){var a=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];a&&(o=o.set("X-API-KEY",a))}(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==s&&(o=o.set("Accept",s));var u=this.configuration.selectHeaderContentType(["text/plain"]);void 0!==u&&(o=o.set("Content-Type",u));var c="json";return s&&s.startsWith("text")&&(c="text"),this.httpClient.post("".concat(this.configuration.basePath,"/logs/").concat(encodeURIComponent(String(e))),t,{responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}}]),e}()).\u0275fac=function(e){return new(e||Ab)(yi(mv),yi(Db,8),yi(Nb,8))},Ab.\u0275prov=St({token:Ab,factory:Ab.\u0275fac,providedIn:"root"}),Ab),Fb=((Tb=function(){function e(t,n,r){ye(this,e),this.httpClient=t,this.basePath="https://gnuboat.engsas.com/mapservice/v1",this.defaultHeaders=new $p,this.configuration=new Nb,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Rb}return be(e,[{key:"addToHttpParams",value:function(e,t,n){return"object"==typeof t&&t instanceof Date==0?this.addToHttpParamsRecursive(e,t):this.addToHttpParamsRecursive(e,t,n)}},{key:"addToHttpParamsRecursive",value:function(e,t,n){var r=this;if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(function(t){return e=r.addToHttpParamsRecursive(e,t,n)});else if(t instanceof Date){if(null==n)throw Error("key may not be null if value is Date");e=e.append(n,t.toISOString().substr(0,10))}else Object.keys(t).forEach(function(i){return e=r.addToHttpParamsRecursive(e,t[i],null!=n?"".concat(n,".").concat(i):i)});else{if(null==n)throw Error("key may not be null if value is not object or array");e=e.append(n,t)}return e}},{key:"userOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.defaultHeaders,i=n&&n.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(r=r.set("Accept",i));var o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.options("".concat(this.configuration.basePath,"/user"),{responseType:o,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:t})}},{key:"usersActivate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(null==e)throw new Error("Required parameter activationCode was null or undefined when calling usersActivate.");var i=this.defaultHeaders,o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept([])),void 0!==o&&(i=i.set("Accept",o));var a="json";return o&&o.startsWith("text")&&(a="text"),this.httpClient.get("".concat(this.configuration.basePath,"/user/activate/").concat(encodeURIComponent(String(e))),{responseType:a,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"usersApiKeyCreate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.defaultHeaders;(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var i=n&&n.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(r=r.set("Accept",i));var o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.get("".concat(this.configuration.basePath,"/user/apikey_create"),{responseType:o,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:t})}},{key:"usersApiKeyDelete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(null==e)throw new Error("Required parameter apiKey was null or undefined when calling usersApiKeyDelete.");var i=this.defaultHeaders;(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==o&&(i=i.set("Accept",o));var a="json";return o&&o.startsWith("text")&&(a="text"),this.httpClient.delete("".concat(this.configuration.basePath,"/user/").concat(encodeURIComponent(String(e))),{responseType:a,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"usersGet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.defaultHeaders;if(this.configuration.apiKeys){var i=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];i&&(r=r.set("X-API-KEY",i))}(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var o=n&&n.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==o&&(r=r.set("Accept",o));var a="json";return o&&o.startsWith("text")&&(a="text"),this.httpClient.get("".concat(this.configuration.basePath,"/user"),{responseType:a,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:t})}},{key:"usersRegister",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this.defaultHeaders,o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==o&&(i=i.set("Accept",o));var a=this.configuration.selectHeaderContentType(["application/json"]);void 0!==a&&(i=i.set("Content-Type",a));var s="json";return o&&o.startsWith("text")&&(s="text"),this.httpClient.post("".concat(this.configuration.basePath,"/user"),e,{responseType:s,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Tb)(yi(mv),yi(Db,8),yi(Nb,8))},Tb.\u0275prov=St({token:Tb,factory:Tb.\u0275fac,providedIn:"root"}),Tb),Ub=((Eb=function(){function e(t,n,r){ye(this,e),this.httpClient=t,this.basePath="https://gnuboat.engsas.com/mapservice/v1",this.defaultHeaders=new $p,this.configuration=new Nb,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof n&&(n=this.basePath),this.configuration.basePath=n),this.encoder=this.configuration.encoder||new Rb}return be(e,[{key:"addToHttpParams",value:function(e,t,n){return"object"==typeof t&&t instanceof Date==0?this.addToHttpParamsRecursive(e,t):this.addToHttpParamsRecursive(e,t,n)}},{key:"addToHttpParamsRecursive",value:function(e,t,n){var r=this;if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(function(t){return e=r.addToHttpParamsRecursive(e,t,n)});else if(t instanceof Date){if(null==n)throw Error("key may not be null if value is Date");e=e.append(n,t.toISOString().substr(0,10))}else Object.keys(t).forEach(function(i){return e=r.addToHttpParamsRecursive(e,t[i],null!=n?"".concat(n,".").concat(i):i)});else{if(null==n)throw Error("key may not be null if value is not object or array");e=e.append(n,t)}return e}},{key:"watersCreate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this.defaultHeaders;if(this.configuration.apiKeys){var o=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];o&&(i=i.set("X-API-KEY",o))}(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var a=r&&r.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==a&&(i=i.set("Accept",a));var s=this.configuration.selectHeaderContentType(["application/json"]);void 0!==s&&(i=i.set("Content-Type",s));var u="json";return a&&a.startsWith("text")&&(u="text"),this.httpClient.post("".concat(this.configuration.basePath,"/waters"),e,{responseType:u,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}},{key:"watersGaugeCreate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;if(null==e)throw new Error("Required parameter waterId was null or undefined when calling watersGaugeCreate.");var o=this.defaultHeaders;if(this.configuration.apiKeys){var a=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];a&&(o=o.set("X-API-KEY",a))}(this.configuration.username||this.configuration.password)&&(o=o.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));var s=i&&i.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json","application/geo+json","application/problem+json"])),void 0!==s&&(o=o.set("Accept",s));var u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(o=o.set("Content-Type",u));var c="json";return s&&s.startsWith("text")&&(c="text"),this.httpClient.post("".concat(this.configuration.basePath,"/waters/").concat(encodeURIComponent(String(e)),"/gauges"),t,{responseType:c,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"watersGaugeGetById",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;if(null==e)throw new Error("Required parameter waterId was null or undefined when calling watersGaugeGetById.");if(null==t)throw new Error("Required parameter gaugeId was null or undefined when calling watersGaugeGetById.");var o=this.defaultHeaders,a=i&&i.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json","application/geo+json","application/problem+json"])),void 0!==a&&(o=o.set("Accept",a));var s="json";return a&&a.startsWith("text")&&(s="text"),this.httpClient.get("".concat(this.configuration.basePath,"/waters/").concat(encodeURIComponent(String(e)),"/gauges/").concat(encodeURIComponent(String(t))),{responseType:s,withCredentials:this.configuration.withCredentials,headers:o,observe:n,reportProgress:r})}},{key:"watersGaugesGet",value:function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=arguments.length>8?arguments[8]:void 0;if(null==e)throw new Error("Required parameter waterId was null or undefined when calling watersGaugesGet.");var c=new Qp({encoder:this.encoder});null!=t&&(c=this.addToHttpParams(c,t,"name")),null!=n&&(c=this.addToHttpParams(c,n,"manager")),null!=r&&(c=this.addToHttpParams(c,r,"order_by")),null!=i&&(c=this.addToHttpParams(c,i,"offset")),null!=o&&(c=this.addToHttpParams(c,o,"limit"));var l=this.defaultHeaders,f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json","application/geo+json"])),void 0!==f&&(l=l.set("Accept",f));var h="json";return f&&f.startsWith("text")&&(h="text"),this.httpClient.get("".concat(this.configuration.basePath,"/waters/").concat(encodeURIComponent(String(e)),"/gauges"),{params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:s})}},{key:"watersGet",value:function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"body",s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=arguments.length>8?arguments[8]:void 0,c=new Qp({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"name")),null!=t&&(c=this.addToHttpParams(c,t,"manager")),null!=n&&(c=this.addToHttpParams(c,n,"stakeholder")),null!=r&&(c=this.addToHttpParams(c,r,"order_by")),null!=i&&(c=this.addToHttpParams(c,i,"offset")),null!=o&&(c=this.addToHttpParams(c,o,"limit"));var l=this.defaultHeaders,f=u&&u.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==f&&(l=l.set("Accept",f));var h="json";return f&&f.startsWith("text")&&(h="text"),this.httpClient.get("".concat(this.configuration.basePath,"/waters"),{params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:l,observe:a,reportProgress:s})}},{key:"watersGetById",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;if(null==e)throw new Error("Required parameter id was null or undefined when calling watersGetById.");var i=this.defaultHeaders,o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==o&&(i=i.set("Accept",o));var a="json";return o&&o.startsWith("text")&&(a="text"),this.httpClient.get("".concat(this.configuration.basePath,"/waters/").concat(encodeURIComponent(String(e))),{responseType:a,withCredentials:this.configuration.withCredentials,headers:i,observe:t,reportProgress:n})}}]),e}()).\u0275fac=function(e){return new(e||Eb)(yi(mv),yi(Db,8),yi(Nb,8))},Eb.\u0275prov=St({token:Eb,factory:Eb.\u0275fac,providedIn:"root"}),Eb),Mb=((Sb=function(){function e(t,n){if(ye(this,e),t)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!n)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}return be(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[{provide:Nb,useFactory:t}]}}}]),e}()).\u0275mod=an({type:Sb}),Sb.\u0275inj=Et({factory:function(e){return new(e||Sb)(yi(Sb,12),yi(mv,8))},providers:[],imports:[[]]}),Sb),Hb=((Cb=function(){function e(t){ye(this,e),this.usersService=t,this.currentUserSubject=new Dv(null),this.currentUser=this.currentUserSubject.asObservable()}return be(e,[{key:"currentUserValue",get:function(){return this.currentUserSubject.value}},{key:"login",value:function(e,t){var n=this;return this.usersService.configuration.username=e,this.usersService.configuration.password=t,this.usersService.usersGet().pipe(Be(function(r){return r&&r.username==e&&(n.currentUserPassword=t,n.currentUserSubject.next(r)),r}))}},{key:"logout",value:function(){this.currentUserSubject.next(null)}}]),e}()).\u0275fac=function(e){return new(e||Cb)(yi(Fb))},Cb.\u0275prov=St({token:Cb,factory:Cb.\u0275fac,providedIn:"root"}),Cb),zb=ve("E6f0"),qb=((Ib=function(){function e(t,n){ye(this,e),this.http=t,this.alertService=n,this.overpassHeaders=new $p({"Content-Type":"text/xml"}).set("Accept","text/xml")}return be(e,[{key:"findWaters",value:function(e){return this.http.get('https://overpass-api.de/api/interpreter?data=[timeout:25];( rel[name~"'+e+'"][natural="water"]; rel[name~"'+e+'"][type="waterway"]; ); out center;',{observe:"response",responseType:"text",headers:this.overpassHeaders}).pipe(Be(function(e){return zb(jQuery.parseXML(e.body))}))}},{key:"getElement",value:function(e,t){var n=void 0;if("Relation"==t)n="rel";else{if("Way"!=t)return void this.alertService.error("Type "+t+" then relation from Overpass API requested!");n="way"}return this.http.get("https://overpass-api.de/api/interpreter?data=[timeout:25];( "+n+"("+e+"); ); out body; >; out skel qt;",{observe:"response",responseType:"text",headers:this.overpassHeaders}).pipe(Be(function(e){return zb(jQuery.parseXML(e.body))}))}}]),e}()).\u0275fac=function(e){return new(e||Ib)(yi(mv),yi(jb))},Ib.\u0275prov=St({token:Ib,factory:Ib.\u0275fac}),Ib),Bb=((Ob=function(){function e(t,n){ye(this,e),this.router=t,this.authenticationService=n}return be(e,[{key:"canActivate",value:function(e,t){return!!this.authenticationService.currentUserValue||(this.router.navigate(["/login"],{queryParams:{returnUrl:t.url,fragment:e.fragment}}),!1)}}]),e}()).\u0275fac=function(e){return new(e||Ob)(yi($m),yi(Hb))},Ob.\u0275prov=St({token:Ob,factory:Ob.\u0275fac,providedIn:"root"}),Ob),Gb=function(e,t,n){return{alert:e,"alert-success":t,"alert-danger":n}};function Wb(e,t){if(1&e&&(As(0,"div",1),Ks(1),xs()),2&e){var n=Fs();Es("ngClass",(r=2,i=Gb,o=n.message,a="success"===n.message.type,s="error"===n.message.type,function(e,t,n,r,i,o,a,s){var u=t+n;return function(e,t,n,r,i){var o=function(e,t,n,r){var i=bs(e,t,n);return bs(e,t+1,r)||i}(e,t,n,r);return bs(e,t+2,i)||o}(e,u,i,o,a)?ms(e,u+3,s?r.call(s,i,o,a):r(i,o,a)):ul(e,u+3)}(Gn(),nr(),r,i,o,a,s,u))),Ko(1),$s(n.message.text)}var r,i,o,a,s,u}var Zb,Kb=((Zb=function(){function e(t){ye(this,e),this.alertService=t}return be(e,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.alertService.getMessage().subscribe(function(t){e.message=t})}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Zb)(Ss(jb))},Zb.\u0275cmp=tn({type:Zb,selectors:[["alert"]],decls:1,vars:1,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(e,t){1&e&&ks(0,Wb,2,6,"div",0),2&e&&Es("ngIf",t.message)},directives:[lh,ah],encapsulation:2}),Zb);function $b(e,t){1&e&&(As(0,"div"),Ks(1,"First Name is required"),xs())}function Xb(e,t){if(1&e&&(As(0,"div",21),ks(1,$b,2,0,"div",22),xs()),2&e){var n=Fs();Ko(1),Es("ngIf",n.f.firstName.errors.required)}}function Yb(e,t){1&e&&(As(0,"div"),Ks(1,"Last Name is required"),xs())}function Qb(e,t){if(1&e&&(As(0,"div",21),ks(1,Yb,2,0,"div",22),xs()),2&e){var n=Fs();Ko(1),Es("ngIf",n.f.lastName.errors.required)}}function Jb(e,t){1&e&&(As(0,"div"),Ks(1,"Username is required"),xs())}function ew(e,t){if(1&e&&(As(0,"div",21),ks(1,Jb,2,0,"div",22),xs()),2&e){var n=Fs();Ko(1),Es("ngIf",n.f.username.errors.required)}}function tw(e,t){1&e&&(As(0,"div"),Ks(1,"Password is required"),xs())}function nw(e,t){1&e&&(As(0,"div"),Ks(1,"Password must be at least 6 characters"),xs())}function rw(e,t){if(1&e&&(As(0,"div",21),ks(1,tw,2,0,"div",22),ks(2,nw,2,0,"div",22),xs()),2&e){var n=Fs();Ko(1),Es("ngIf",n.f.password.errors.required),Ko(1),Es("ngIf",n.f.password.errors.minlength)}}function iw(e,t){1&e&&(As(0,"div"),Ks(1,"E-Mail is required"),xs())}function ow(e,t){if(1&e&&(As(0,"div",21),ks(1,iw,2,0,"div",22),xs()),2&e){var n=Fs();Ko(1),Es("ngIf",n.f.email.errors.required)}}function aw(e,t){1&e&&(As(0,"div"),Ks(1,"Accepting the license is required"),xs())}function sw(e,t){if(1&e&&(As(0,"div",21),ks(1,aw,2,0,"div",22),xs()),2&e){var n=Fs();Ko(1),Es("ngIf",n.f.licenseAccepted.errors.required)}}function uw(e,t){1&e&&Os(0,"img",23)}var cw,lw=function(e){return{"is-invalid":e}},fw=((cw=function(){function e(t,n,r,i,o){ye(this,e),this.formBuilder=t,this.router=n,this.authenticationService=r,this.userService=i,this.alertService=o,this.loading=!1,this.submitted=!1,this.authenticationService.currentUserValue&&this.router.navigate(["/"])}return be(e,[{key:"ngOnInit",value:function(){this.registerForm=this.formBuilder.group({firstName:["",_d.required],lastName:["",_d.required],username:["",_d.required],password:["",[_d.required,_d.minLength(6)]],email:["",_d.required],licenseAccepted:["",_d.required]})}},{key:"f",get:function(){return this.registerForm.controls}},{key:"onSubmit",value:function(){var e=this;this.submitted=!0,this.registerForm.invalid||(this.loading=!0,this.userService.usersRegister(this.registerForm.value).pipe(vg()).subscribe(function(t){e.alertService.success("Registration successful",!0),e.router.navigate(["/login"])},function(t){e.alertService.error(t),e.loading=!1}))}}]),e}()).\u0275fac=function(e){return new(e||cw)(Ss(Mp),Ss($m),Ss(Hb),Ss(Fb),Ss(jb))},cw.\u0275cmp=tn({type:cw,selectors:[["ng-component"]],decls:45,vars:27,consts:[[1,"header"],[1,"content"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","firstName"],["type","text","formControlName","firstName",3,"ngClass"],["class","invalid-feedback",4,"ngIf"],["for","lastName"],["type","text","formControlName","lastName",3,"ngClass"],["for","username"],["type","text","formControlName","username",3,"ngClass"],["for","password"],["type","password","formControlName","password",3,"ngClass"],["type","email","formControlName","email",3,"ngClass"],["for","licenseAccepted"],["id","licenseAccepted","type","checkbox","formControlName","licenseAccepted",3,"ngClass"],["href","https://www.opendatacommons.org/licenses/odbl/summary/index.html","target","_blank"],[1,"pure-controls"],[1,"pure-button","pure-button-primary","button-add",3,"disabled"],["class","pl-3 processing","src","/resources/processing.svg",4,"ngIf"],["routerLink","/login",1,"pure-button"],[1,"invalid-feedback"],[4,"ngIf"],["src","/resources/processing.svg",1,"pl-3","processing"]],template:function(e,t){1&e&&(As(0,"div",0),As(1,"h1"),Ks(2,"Register"),xs(),Os(3,"alert"),xs(),As(4,"div",1),As(5,"form",2),Ns("ngSubmit",function(){return t.onSubmit()}),As(6,"fieldset"),As(7,"div",3),As(8,"label",4),Ks(9,"First Name"),xs(),Os(10,"input",5),ks(11,Xb,2,1,"div",6),xs(),As(12,"div",3),As(13,"label",7),Ks(14,"Last Name"),xs(),Os(15,"input",8),ks(16,Qb,2,1,"div",6),xs(),As(17,"div",3),As(18,"label",9),Ks(19,"Username"),xs(),Os(20,"input",10),ks(21,ew,2,1,"div",6),xs(),As(22,"div",3),As(23,"label",11),Ks(24,"Password"),xs(),Os(25,"input",12),ks(26,rw,3,2,"div",6),xs(),As(27,"div",3),As(28,"label",11),Ks(29,"E-Mail"),xs(),Os(30,"input",13),ks(31,ow,2,1,"div",6),xs(),As(32,"div",3),Os(33,"label",14),Os(34,"input",15),Ks(35," I agree to upload all date under the "),As(36,"a",16),Ks(37,"Open Data Commons Open Database License (ODbL)"),xs(),ks(38,sw,2,1,"div",6),xs(),As(39,"div",17),As(40,"button",18),Ks(41,"Register"),xs(),ks(42,uw,1,0,"img",19),As(43,"a",20),Ks(44,"Cancel"),xs(),xs(),xs(),xs(),xs()),2&e&&(Ko(5),Es("formGroup",t.registerForm),Ko(5),Es("ngClass",sl(15,lw,t.submitted&&t.f.firstName.errors)),Ko(1),Es("ngIf",t.submitted&&t.f.firstName.errors),Ko(4),Es("ngClass",sl(17,lw,t.submitted&&t.f.lastName.errors)),Ko(1),Es("ngIf",t.submitted&&t.f.lastName.errors),Ko(4),Es("ngClass",sl(19,lw,t.submitted&&t.f.username.errors)),Ko(1),Es("ngIf",t.submitted&&t.f.username.errors),Ko(4),Es("ngClass",sl(21,lw,t.submitted&&t.f.password.errors)),Ko(1),Es("ngIf",t.submitted&&t.f.password.errors),Ko(4),Es("ngClass",sl(23,lw,t.submitted&&t.f.email.errors)),Ko(1),Es("ngIf",t.submitted&&t.f.email.errors),Ko(3),Es("ngClass",sl(25,lw,t.submitted&&t.f.licenseAccepted.errors)),Ko(4),Es("ngIf",t.submitted&&t.f.licenseAccepted.errors),Ko(2),Es("disabled",t.loading),Ko(2),Es("ngIf",t.loading))},directives:[Kb,Pp,$d,Dp,vd,Kd,Lp,ah,lh,hd,Ym],encapsulation:2}),cw);function hw(e,t){1&e&&(As(0,"span",13),Ks(1,"Username is required."),xs())}function dw(e,t){1&e&&(As(0,"span",13),Ks(1,"Password is required."),xs())}function pw(e,t){1&e&&Os(0,"img",14)}var vw,gw=function(e){return{"is-invalid":e}},yw=((vw=function(){function e(t,n,r,i,o){ye(this,e),this.formBuilder=t,this.route=n,this.router=r,this.authenticationService=i,this.alertService=o,this.loading=!1,this.submitted=!1,this.authenticationService.currentUserValue&&this.router.navigate(["/"])}return be(e,[{key:"ngOnInit",value:function(){this.loginForm=this.formBuilder.group({username:["",_d.required],password:["",_d.required]}),this.returnUrl=this.route.snapshot.queryParams.returnUrl?this.route.snapshot.queryParams.returnUrl:"/mygnuboat",this.returnUrlFragment=this.route.snapshot.queryParams.fragment?this.route.snapshot.queryParams.fragment:""}},{key:"f",get:function(){return this.loginForm.controls}},{key:"onSubmit",value:function(){var e=this;this.submitted=!0,this.loginForm.invalid?this.alertService.error("Please enter all necessary data"):(this.loading=!0,this.authenticationService.login(this.f.username.value,this.f.password.value).pipe(vg()).subscribe(function(t){e.router.navigate([e.returnUrl],{fragment:e.returnUrlFragment})},function(t){e.alertService.error(t),e.loading=!1}))}}]),e}()).\u0275fac=function(e){return new(e||vw)(Ss(Mp),Ss(Ay),Ss($m),Ss(Hb),Ss(jb))},vw.\u0275cmp=tn({type:vw,selectors:[["ng-component"]],decls:23,vars:11,consts:[[1,"header"],[1,"content"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","username"],["type","text","formControlName","username",1,"form-control",3,"ngClass"],["class","pure-form-message-inline",4,"ngIf"],["for","password"],["type","password","formControlName","password",1,"form-control",3,"ngClass"],[1,"pure-controls"],[1,"pure-button","pure-button-primary","gnuboat-button",3,"disabled"],["class","processing","src","/resources/processing.svg",4,"ngIf"],["routerLink","/register",1,"pure-button"],[1,"pure-form-message-inline"],["src","/resources/processing.svg",1,"processing"]],template:function(e,t){1&e&&(As(0,"div",0),As(1,"h1"),Ks(2,"Login"),xs(),Os(3,"alert"),xs(),As(4,"div",1),As(5,"form",2),Ns("ngSubmit",function(){return t.onSubmit()}),As(6,"fieldset"),As(7,"div",3),As(8,"label",4),Ks(9,"Username:"),xs(),Os(10,"input",5),ks(11,hw,2,0,"span",6),xs(),As(12,"div",3),As(13,"label",7),Ks(14,"Password:"),xs(),Os(15,"input",8),ks(16,dw,2,0,"span",6),xs(),As(17,"div",9),As(18,"button",10),Ks(19,"Login"),xs(),ks(20,pw,1,0,"img",11),As(21,"button",12),Ks(22,"Register"),xs(),xs(),xs(),xs(),xs()),2&e&&(Ko(5),Es("formGroup",t.loginForm),Ko(5),Es("ngClass",sl(7,gw,t.submitted&&t.f.username.errors)),Ko(1),Es("ngIf",t.submitted&&t.f.username.errors),Ko(4),Es("ngClass",sl(9,gw,t.submitted&&t.f.password.errors)),Ko(1),Es("ngIf",t.submitted&&t.f.password.errors),Ko(2),Es("disabled",t.loading),Ko(2),Es("ngIf",t.loading))},directives:[Kb,Pp,$d,Dp,vd,Kd,Lp,ah,lh,Xm],encapsulation:2}),vw),mw=["mapElement"];function bw(e,t){1&e&&Os(0,"img",5)}var ww,_w,kw,Cw,Sw=((Cw=function(){function e(t,n){ye(this,e),this.logsService=t,this.osmOverpassService=n,this._mapViewportStyleClass="",this.map=void 0,this.mapControl=void 0,this.osmLayer=void 0,this.gaugesLayer=void 0,this.logsLayer=void 0,this.water=void 0,this.logoShow=!0,this.controlsShow=!0,this.logsShow=!0,this.clickedRight=new cl}return be(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}},{key:"ngOnChanges",value:function(e){"water"in e&&this.water&&this.map&&(e.water.previousValue&&e.water.currentValue.waterId==e.water.previousValue.waterId||this.addWaterToMap(this.water),this.addGaugesToMap(e.water.currentValue.gauges))}},{key:"ngAfterViewInit",value:function(){this.map||this.mapSetup()}},{key:"getMap",value:function(){return this.map}},{key:"viewportStyleClass",set:function(e){this._mapViewportStyleClass=e}},{key:"mapSetup",value:function(){var e=this;this.map=L.map(this.mapElement.nativeElement,{center:[48.43,10.04],zoom:17,zoomControl:this.controlsShow}),this.map.on("contextmenu",function(t){var n={};return n.latitude=t.latlng.lat,n.longitude=t.latlng.lng,e.clickedRight.emit(n),t});var t={Map:L.tileLayer("https://gnuboat.engsas.de/osm_tiles/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://www.openseamap.org">OpenSeaMap</a>, <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}).addTo(this.map)},n={Seamarks:L.tileLayer("http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",{attribute:'&copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}).addTo(this.map)},r=L.tileLayer("https://gnuboat.engsas.com/mapservice//tiles/gnuboat/low/256/{z}/{x}/{y}.png",{tms:!0,opacity:.5,zIndex:98,attribute:'&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}),i=L.tileLayer("https://gnuboat.engsas.com/mapservice//tiles/gnuboat/high/256/{z}/{x}/{y}.png",{tms:!0,opacity:.5,zIndex:98,attribute:'&copy; <a href="http://gnuboat.engsas.de">GNUBoat</a> contributors'}).addTo(this.map);n["GNUBoat Low Accuracy"]=r,n["GNUBoat High Accuracy"]=i,this.controlsShow&&(this.mapControl=L.control.layers(t,n,{hideSingleBase:!0,sortLayers:!0}).addTo(this.map),L.control.scale().addTo(this.map)),this.water&&this.addWaterToMap(this.water)}},{key:"addOsmElement",value:function(e,t){var n=this;this.osmLayer||(this.osmLayer=this.addGeoJsonLayer(),this.mapControl&&this.mapControl.addOverlay(this.osmLayer,"OSM Data")),this.osmLayer.clearLayers(),this.osmOverpassService.getElement(e,t).subscribe(function(e){n.osmLayer.addData(e),n.map.fitBounds(n.osmLayer.getBounds())})}},{key:"addGeoJsonLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return L.geoJSON(void 0,e).addTo(this.map)}},{key:"addWaterToMap",value:function(e){this.addOsmElement(e.osmId,e.osmType),"gauges"in e&&this.addGaugesToMap(e.gauges),this.logsShow&&"logs"in e&&this.addLogs(e.logs)}},{key:"addGaugesToMap",value:function(e){var t=this;this.gaugesLayer&&this.gaugesLayer.clearLayers(),!e||e.length<1||(this.gaugesLayer||(this.gaugesLayer=this.addGeoJsonLayer({onEachFeature:this.gaugesMarkerPopup,pointToLayer:this.gaugesMarker}),this.mapControl&&this.mapControl.addOverlay(this.gaugesLayer,"Gauges")),e.forEach(function(e){var n={type:"Feature",geometry:{}};n.geometry.type="Point",n.geometry.coordinates=[],n.geometry.coordinates.push(e.location[0]),n.geometry.coordinates.push(e.location[1]),n.properties={},n.properties.name=e.name,n.properties.manager=e.manager,n.properties.comment=e.comment,t.gaugesLayer.addData(n)}))}},{key:"addLogs",value:function(e){var t=this;e&&e.length<1||e.forEach(function(e){t.logsService.logsLogGetById(e.logId).pipe(vg()).subscribe(function(e){t.addLogToMap(e)})})}},{key:"addLogToMap",value:function(t){if(t&&!(t.entries.length<1)){this.logsLayer||(this.logsLayer=this.addGeoJsonLayer({style:e.logsStyle,pointToLayer:function(e,t){return L.circleMarker(t,{radius:1.5})}}),this.mapControl&&this.mapControl.addOverlay(this.logsLayer,"Logs"),this.logsLayer.remove());var n={type:"FeatureCollection",features:[]};t.entries.forEach(function(e){var t={type:"Feature",geometry:{}};t.geometry.type="Point",t.geometry.coordinates=[],t.geometry.coordinates.push(e.location[0]),t.geometry.coordinates.push(e.location[1]),t.properties={},t.properties.datetime=e.datetime,t.properties.waterDepth=e.waterDepth,n.features.push(t)}),this.logsLayer.addData(n)}}},{key:"gaugesMarker",value:function(e,t){var n=L.icon({iconUrl:"/resources/gnuboat-gauge.svg",iconSize:[32,32]});return L.marker(t,{icon:n})}},{key:"gaugesMarkerPopup",value:function(e,t){e.properties&&e.properties.name&&t.bindPopup(e.properties.name)}}],[{key:"logsStyle",value:function(t){return{color:e.waterDepthToColor(t.properties.waterDepth)}}},{key:"waterDepthToColor",value:function(t){var n=void 0;for(var r in e.logsWaterDepthPalette){if(t<Number(r))return n?e.logsWaterDepthPalette[n]:"#FF0000";n=r}return n?e.logsWaterDepthPalette[n]:"#FF0000"}}]),e}()).logsWaterDepthPalette={0:"#00008B",2:"#1E90FF",6:" #ADD8E6",10:"#F0F8FF"},Cw.\u0275fac=function(e){return new(e||Cw)(Ss(Vb),Ss(qb))},Cw.\u0275cmp=tn({type:Cw,selectors:[["gnuboat-map"]],viewQuery:function(e,t){var n;1&e&&kl(mw,3),2&e&&_l(n=Cl())&&(t.mapElement=n.first)},inputs:{water:"water",logoShow:"logoShow",controlsShow:"controlsShow",logsShow:"logsShow",viewportStyleClass:"viewportStyleClass"},outputs:{clickedRight:"clickedRight"},features:[rc([qb]),Sn],decls:5,vars:2,consts:[[3,"ngClass"],["mapElement",""],[1,"leaflet-top","map-middle"],[1,"leaflet-control"],["id","logo","src","resources/gnuboat-256-256-transparent.png",4,"ngIf"],["id","logo","src","resources/gnuboat-256-256-transparent.png"]],template:function(e,t){1&e&&(As(0,"div",0,1),As(2,"div",2),As(3,"div",3),ks(4,bw,1,0,"img",4),xs(),xs(),xs()),2&e&&(Es("ngClass",t._mapViewportStyleClass),Ko(4),Es("ngIf",t.logoShow))},directives:[ah,lh],encapsulation:2}),Cw),Ew=((kw=function(){function e(t){ye(this,e),this.authenticationService=t}return be(e,[{key:"intercept",value:function(e,t){var n=this.authenticationService.currentUserValue;return n&&n.apiKeys.length>0&&(e=e.clone({setHeaders:{"X-API-KEY":"".concat(n.apiKeys[0])}})),t.handle(e)}}]),e}()).\u0275fac=function(e){return new(e||kw)(yi(Hb))},kw.\u0275prov=St({token:kw,factory:kw.\u0275fac}),kw),Tw=((_w=function(){function e(t){ye(this,e),this.authenticationService=t}return be(e,[{key:"intercept",value:function(e,t){var n=this;return t.handle(e).pipe(ng(function(e){return 401===e.status&&(n.authenticationService.logout(),location.reload(!0)),t=e.error.message||e.statusText,new Ne(function(e){return e.error(t)});var t}))}}]),e}()).\u0275fac=function(e){return new(e||_w)(yi(Hb))},_w.\u0275prov=St({token:_w,factory:_w.\u0275fac}),_w),Aw=((ww=function(){function e(){ye(this,e)}return be(e,[{key:"getAddParameter",value:function(e,t,n){var r={};return e&&(r.water=JSON.stringify(e)),t&&(r.device=JSON.stringify(t)),n&&(r.gauge=JSON.stringify(n)),r}}]),e}()).\u0275fac=function(e){return new(e||ww)},ww.\u0275prov=St({token:ww,factory:ww.\u0275fac}),ww),xw=["mapComponent"];function Ow(e,t){if(1&e&&(As(0,"span"),Ks(1),xs()),2&e){var n=Fs();Ko(1),Xs("",n.water.gauges.length," Gauges")}}function Iw(e,t){1&e&&(As(0,"span"),Ks(1,"No Gauges"),xs())}function Pw(e,t){if(1&e&&(As(0,"span"),Ks(1),xs()),2&e){var n=Fs();Ko(1),Xs("",n.water.logs.length," Logs")}}function jw(e,t){1&e&&(As(0,"span"),Ks(1,"No Logs"),xs())}function Rw(e,t){1&e&&(As(0,"span"),Ks(1,"Edit / "),xs())}var Dw,Nw=function(e){return["/water",e]},Lw=function(){return["/mygnuboat/log/add"]},Vw=((Dw=function(){function e(t){ye(this,e),this.logParameter=t,this.mapViewportStyleClass="water-map",this.mapControlsShow=!1,this.mapLogsShow=!1,this.mapLogoShow=!1}return be(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Dw)(Ss(Aw))},Dw.\u0275cmp=tn({type:Dw,selectors:[["gnuboat-water"]],viewQuery:function(e,t){var n;1&e&&kl(xw,1),2&e&&_l(n=Cl())&&(t.mapComponent=n.first)},inputs:{water:"water",user:"user"},features:[rc([Aw])],decls:24,vars:20,consts:[[1,"water"],[1,"water-background"],[3,"viewportStyleClass","controlsShow","logsShow","logoShow","water"],["mapComponent",""],[1,"water-content"],[3,"routerLink"],[4,"ngIf","ngIfElse"],["noGauges",""],["noLogs",""],[1,"button-add","pure-button",3,"routerLink","queryParams"],[1,"pure-button","water-edit",3,"routerLink"],[4,"ngIf"]],template:function(e,t){if(1&e&&(As(0,"div",0),As(1,"div",1),Os(2,"gnuboat-map",2,3),xs(),As(4,"div",4),As(5,"a",5),As(6,"h2"),Ks(7),xs(),xs(),As(8,"ul"),As(9,"li"),ks(10,Ow,2,1,"span",6),ks(11,Iw,2,0,"ng-template",null,7,El),Ks(13," / "),ks(14,Pw,2,1,"span",6),ks(15,jw,2,0,"ng-template",null,8,El),xs(),As(17,"li"),As(18,"a",9),Ks(19,"Add Logfile"),xs(),xs(),As(20,"li"),As(21,"a",10),ks(22,Rw,2,0,"span",11),Ks(23,"Details"),xs(),xs(),xs(),xs(),xs()),2&e){var n=Cs(12),r=Cs(16);Ko(2),Es("viewportStyleClass",t.mapViewportStyleClass)("controlsShow",t.mapControlsShow)("logsShow",t.mapLogsShow)("logoShow",t.mapLogoShow)("water",t.water),Ko(3),Es("routerLink",sl(15,Nw,t.water.waterId)),Ko(2),$s(t.water.name),Ko(3),Es("ngIf",t.water.gauges)("ngIfElse",n),Ko(4),Es("ngIf",t.water.logs)("ngIfElse",r),Ko(4),Es("routerLink",al(17,Lw))("queryParams",t.logParameter.getAddParameter(t.water)),Ko(3),Es("routerLink",sl(18,Nw,t.water.waterId)),Ko(1),Es("ngIf",t.user)}},directives:[Sw,Ym,lh],encapsulation:2}),Dw);function Fw(e,t){if(1&e&&(As(0,"div",6),Os(1,"gnuboat-water",7),xs()),2&e){var n=t.$implicit,r=Fs();Ko(1),Es("water",n)("user",r.currentUser)}}var Uw,Mw=((Uw=function(){function e(t,n,r){var i=this;ye(this,e),this.watersService=t,this.authenticationService=n,this.usersService=r,this.waters=[],this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(e){i.currentUser=e,e&&(i.usersService.configuration.username=e.username,i.usersService.configuration.password=i.authenticationService.currentUserPassword)}),this.watersService.watersGet(void 0,void 0,void 0,"name",0,25).pipe(vg()).subscribe(function(e){i.waters=e})}return be(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.currentUserSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||Uw)(Ss(Ub),Ss(Hb),Ss(Fb))},Uw.\u0275cmp=tn({type:Uw,selectors:[["gnuboat-waters"]],decls:11,vars:1,consts:[[1,"header"],["data",Wi(e||(e=te(["/resources/gnuboat-water.svg"]))),1,"svg-icon"],["routerLink","/mygnuboat/water/add",1,"pure-button","button-add"],[1,"content"],[1,"pure-g"],["class","pure-u-1 pure-u-md-1-3",4,"ngFor","ngForOf"],[1,"pure-u-1","pure-u-md-1-3"],[3,"water","user"]],template:function(e,t){1&e&&(As(0,"div",0),As(1,"h1"),Os(2,"object",1),Ks(3,"Waters"),xs(),Os(4,"alert"),As(5,"p"),As(6,"a",2),Ks(7,"Add Water"),xs(),xs(),xs(),As(8,"div",3),As(9,"div",4),ks(10,Fw,2,2,"div",5),xs(),xs()),2&e&&(Ko(10),Es("ngForOf",t.waters))},directives:[Kb,Ym,uh,Vw],encapsulation:2}),Uw),Hw=function(){return["/mygnuboat/log/add"]};function zw(e,t){if(1&e&&(As(0,"p"),As(1,"a",7),Ks(2,"Add Logfile"),xs(),xs()),2&e){var n=Fs();Ko(1),Es("routerLink",al(2,Hw))("queryParams",n.logParameter.getAddParameter(n.water,n.device,n.gauge))}}function qw(e,t){1&e&&Os(0,"img",16),2&e&&Us("title","Status: ",Fs().$implicit.processingState.label,"")}function Bw(e,t){1&e&&Os(0,"img",17),2&e&&Us("title","Status: ",Fs().$implicit.processingState.label,"")}function Gw(e,t){1&e&&Os(0,"img",16),2&e&&Us("title","Status: ",Fs().$implicit.processingState.label,"")}function Ww(e,t){1&e&&Os(0,"img",17),2&e&&Us("title","Status: ",Fs().$implicit.processingState.label,"")}function Zw(e,t){1&e&&Os(0,"img",18),2&e&&Us("title","Status: ",Fs().$implicit.processingState.label,"")}function Kw(e,t){1&e&&Os(0,"img",19),2&e&&Us("title","Status: ",Fs().$implicit.processingState.label,"")}function $w(e,t){1&e&&Os(0,"img",20),2&e&&Us("title","Status: ",Fs().$implicit.processingState.label,"")}function Xw(e,t){if(1&e){var n=js();As(0,"button",21),Ns("click",function(){Zn(n);var e=Fs().$implicit;return Fs(2).logDelete(e)}),Ks(1,"Delete"),xs()}}function Yw(e,t){if(1&e&&(As(0,"tr"),As(1,"td"),Ks(2),xs(),As(3,"td"),Ks(4),xs(),As(5,"td"),Ks(6),xs(),As(7,"td"),Ks(8),xs(),As(9,"td"),Ks(10),xs(),As(11,"td"),Ks(12),xs(),As(13,"td",9),ks(14,qw,1,1,"img",10),ks(15,Bw,1,1,"img",11),ks(16,Gw,1,1,"img",10),ks(17,Ww,1,1,"img",11),ks(18,Zw,1,1,"img",12),ks(19,Kw,1,1,"img",13),ks(20,$w,1,1,"img",14),xs(),As(21,"td"),Ks(22),xs(),As(23,"td"),ks(24,Xw,2,0,"button",15),xs(),xs()),2&e){var n=t.$implicit,r=Fs(2);Ko(2),$s(n.water.label),Ko(2),$s(n.device.label),Ko(2),$s(n.gauge.label),Ko(2),$s(n.gaugeLevel),Ko(2),$s(r.printDate(n.start)),Ko(2),$s(r.printDate(n.end)),Ko(1),Es("ngSwitch",n.processingState.id),Ko(1),Es("ngSwitchCase",2),Ko(1),Es("ngSwitchCase",3),Ko(1),Es("ngSwitchCase",4),Ko(1),Es("ngSwitchCase",5),Ko(1),Es("ngSwitchCase",6),Ko(1),Es("ngSwitchCase",7),Ko(3),$s(n.comment),Ko(2),Es("ngIf",!r.currentUser||r.currentUser.username==n.submitter)}}function Qw(e,t){if(1&e&&(Is(0),ks(1,Yw,25,15,"tr",8),Ps()),2&e){var n=Fs();Ko(1),Es("ngForOf",n.logs)}}function Jw(e,t){1&e&&(As(0,"tr"),As(1,"td",22),Ks(2,"No Logfiles"),xs(),xs())}var e_,t_=((e_=function(){function e(t,n,r,i,o){var a=this;ye(this,e),this.alertService=t,this.authenticationService=n,this.logsService=r,this.logParameter=i,this.router=o,this.water=void 0,this.logs=[],this.device=void 0,this.gauge=void 0,this.currentUser=void 0,this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(e){a.currentUser=e,e&&(a.logsService.configuration.username=e.username,a.logsService.configuration.password=a.authenticationService.currentUserPassword)})}return be(e,[{key:"ngOnInit",value:function(){var e=this;this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(t){e.currentUser=t})}},{key:"ngOnChanges",value:function(e){"water"in e&&this.water&&(this.logs=this.water.logs)}},{key:"ngOnDestroy",value:function(){this.currentUserSubscription.unsubscribe()}},{key:"printDate",value:function(e){return new Date(e).toLocaleDateString("de-De",{day:"numeric",month:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}},{key:"logDelete",value:function(e){var t=this;this.currentUser?this.currentUser.username==e.submitter?this.logsService.logsLogDelete(e.logId).subscribe(function(e){t.alertService.success("Log deleted")},function(e){t.alertService.error(e)}):this.alertService.error("You have not submitted the log and therefore could not delete it"):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}}]),e}()).\u0275fac=function(e){return new(e||e_)(Ss(jb),Ss(Hb),Ss(Vb),Ss(Aw),Ss($m))},e_.\u0275cmp=tn({type:e_,selectors:[["gnuboat-logs"]],inputs:{water:"water",logs:"logs",device:"device",gauge:"gauge"},features:[rc([Aw]),Sn],decls:30,vars:3,consts:[[1,"content-subhead"],["data",Wi(t||(t=te(["/resources/gnuboat-logfile.svg"]))),1,"svg-icon"],["name","logfiles"],[4,"ngIf"],["id","logsTable",1,"pure-table","pure-table-horizontal","pure-table-striped"],[4,"ngIf","ngIfElse"],["noLogs",""],[1,"pure-button","button-add",3,"routerLink","queryParams"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],["class","pure-img state-icon","src","/resources/log-queued.svg",3,"title",4,"ngSwitchCase"],["class","pure-img state-icon processing","src","/resources/processing.svg",3,"title",4,"ngSwitchCase"],["class","pure-img state-icon","src","/resources/log-deployed.svg",3,"title",4,"ngSwitchCase"],["class","pure-img state-icon","src","/resources/log-excluded.svg",3,"title",4,"ngSwitchCase"],["class","pure-img state-icon","src","/resources/log-undefined.svg",3,"title",4,"ngSwitchDefault"],["class","button-remove pure-button",3,"click",4,"ngIf"],["src","/resources/log-queued.svg",1,"pure-img","state-icon",3,"title"],["src","/resources/processing.svg",1,"pure-img","state-icon","processing",3,"title"],["src","/resources/log-deployed.svg",1,"pure-img","state-icon",3,"title"],["src","/resources/log-excluded.svg",1,"pure-img","state-icon",3,"title"],["src","/resources/log-undefined.svg",1,"pure-img","state-icon",3,"title"],[1,"button-remove","pure-button",3,"click"],["colspan","9"]],template:function(e,t){if(1&e&&(As(0,"h2",0),Os(1,"object",1),Ks(2,"Logfiles"),xs(),As(3,"div"),Os(4,"a",2),ks(5,zw,3,3,"p",3),As(6,"table",4),As(7,"thead"),As(8,"tr"),As(9,"th"),Ks(10,"Water"),xs(),As(11,"th"),Ks(12,"Device"),xs(),As(13,"th"),Ks(14,"Gauge"),xs(),As(15,"th"),Ks(16,"Gauge Height"),xs(),As(17,"th"),Ks(18,"Start"),xs(),As(19,"th"),Ks(20,"End"),xs(),As(21,"th"),Ks(22,"Status"),xs(),As(23,"th"),Ks(24,"Comment"),xs(),Os(25,"th"),xs(),xs(),As(26,"tbody"),ks(27,Qw,2,1,"ng-container",5),ks(28,Jw,3,0,"ng-template",null,6,El),xs(),xs(),xs()),2&e){var n=Cs(29);Ko(5),Es("ngIf",t.currentUser),Ko(22),Es("ngIf",t.logs&&t.logs.length>0)("ngIfElse",n)}},directives:[lh,Ym,uh,bh,wh,_h],encapsulation:2}),e_);function n_(e,t){if(1&e&&(Is(0),Ks(1),Ps()),2&e){var n=Fs().$implicit;Ko(1),Xs(" ",n.comment," ")}}var r_=function(){return["/mygnuboat/log/add"]},i_=function(e){return["/water",e]};function o_(e,t){if(1&e&&(As(0,"tr"),As(1,"td",6),Ks(2),xs(),As(3,"td"),Ks(4),xs(),As(5,"td"),Ks(6),xs(),As(7,"td"),Ks(8),xs(),As(9,"td"),ks(10,n_,2,1,"ng-container",7),xs(),As(11,"td"),As(12,"a",8),Ks(13,"Add Logfile"),xs(),xs(),As(14,"td"),As(15,"a",9),Ks(16,"Edit"),xs(),xs(),xs()),2&e){var n=t.$implicit,r=Fs(2);Ko(1),Us("title","Gauge Id = ",n.gaugeId,""),Ko(1),$s(n.name),Ko(2),$s(r.decimalDegreesToDegreesMinutesSeconds(n.location[1],r.Coordinate.Latitude)),Ko(2),$s(r.decimalDegreesToDegreesMinutesSeconds(n.location[0],r.Coordinate.Longitude)),Ko(2),$s(n.referenceWaterLevelGaugeHeight),Ko(2),Es("ngIf",n.comment),Ko(2),Es("routerLink",al(9,r_))("queryParams",r.logParameter.getAddParameter(r.water,void 0,n)),Ko(3),Es("routerLink",sl(10,i_,r.water.waterId))}}function a_(e,t){if(1&e&&(Is(0),ks(1,o_,17,12,"tr",5),Ps()),2&e){var n=Fs();Ko(1),Es("ngForOf",n.water.gauges)}}function s_(e,t){1&e&&(As(0,"tr"),As(1,"td",10),Ks(2,"No Gauges"),xs(),xs())}var u_,c_=function(e){return e[e.Latitude=1]="Latitude",e[e.Longitude=2]="Longitude",e}({}),l_=((u_=function(){function e(t,n,r,i){ye(this,e),this.watersService=t,this.alertService=n,this.authenticationService=r,this.logParameter=i,this.Coordinate=c_,this.currentUser=void 0}return be(e,[{key:"ngOnInit",value:function(){var e=this;this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(t){e.currentUser=t,t&&(e.watersService.configuration.username=t.username,e.watersService.configuration.password=e.authenticationService.currentUserPassword)})}},{key:"ngOnDestroy",value:function(){}},{key:"decimalDegreesToDegreesMinutesSeconds",value:function(e,t){var n=Math.trunc(e),r=Math.trunc(60*(e-n)),i=3600*(e-n-r/60),o="";switch(t){case c_.Latitude:o=n>0?"N":"S";break;case c_.Longitude:o=n>0?"E":"W"}return o+" "+n.toString()+"\xb0 "+r.toString()+"'"+i.toPrecision(4)+"''"}}]),e}()).\u0275fac=function(e){return new(e||u_)(Ss(Ub),Ss(jb),Ss(Hb),Ss(Aw))},u_.\u0275cmp=tn({type:u_,selectors:[["gnuboat-gauges"]],inputs:{water:"water",mapComponent:"mapComponent"},features:[rc([Aw])],decls:22,vars:2,consts:[[1,"content-subhead"],["data",Wi(n||(n=te(["/resources/gnuboat-gauge.svg"]))),1,"svg-icon"],["id","gaugesTable",1,"pure-table","pure-table-horizontal","pure-table-striped"],[4,"ngIf","ngIfElse"],["noGauges",""],[4,"ngFor","ngForOf"],[3,"title"],[4,"ngIf"],[1,"pure-button","button-add",3,"routerLink","queryParams"],[1,"pure-button",3,"routerLink"],["colspan","7"]],template:function(e,t){if(1&e&&(As(0,"h2",0),Os(1,"object",1),Ks(2,"Gauges"),xs(),As(3,"table",2),As(4,"thead"),As(5,"tr"),As(6,"th"),Ks(7,"Name"),xs(),As(8,"th"),Ks(9,"Latitude"),xs(),As(10,"th"),Ks(11,"Longitude"),xs(),As(12,"th"),Ks(13,"Reference Gauge Height"),xs(),As(14,"th"),Ks(15,"Comment"),xs(),Os(16,"th"),Os(17,"th"),xs(),xs(),As(18,"tbody"),ks(19,a_,2,1,"ng-container",3),ks(20,s_,3,0,"ng-template",null,4,El),xs(),xs()),2&e){var n=Cs(21);Ko(19),Es("ngIf",t.water&&t.water.gauges&&t.water.gauges.length>0)("ngIfElse",n)}},directives:[lh,uh,Ym],encapsulation:2}),u_);function f_(e,t){if(1&e&&(As(0,"div",29),As(1,"h2"),Ku(2,30),xs(),xs()),2&e){var n=Fs();Ko(2),$u(n.water.name),2,function(e,t,n){if(wu>0){var r=e.data[22];ku(e,t,Array.isArray(r)?r:r.update,qn.lFrame.bindingIndex-wu-1,bu)}bu=0,wu=0}(Wn(),Gn())}}function h_(e,t){1&e&&(As(0,"span",31),Ku(1,32),xs())}function d_(e,t){1&e&&(As(0,"span",31),Ku(1,33),xs())}function p_(e,t){1&e&&(As(0,"span",31),Ku(1,34),xs())}function v_(e,t){1&e&&(As(0,"span",31),Ku(1,35),xs())}var g_,y_=((g_=function(){function e(t,n,r,i){ye(this,e),this.watersService=t,this.alertService=n,this.authenticationService=r,this.formBuilder=i,this.currentUser=void 0,this.cancel=new cl,this.gaugeCreated=new cl}return be(e,[{key:"ngOnInit",value:function(){var e=this;this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(t){e.currentUser=t,t&&(e.watersService.configuration.username=t.username,e.watersService.configuration.password=e.authenticationService.currentUserPassword)}),this.gaugeForm=this.formBuilder.group({name:[,_d.required],latitude:[,_d.required],longitude:[,_d.required],referenceWaterLevelGaugeHeight:[,_d.required],comment:[]}),this.updateFormValues()}},{key:"ngOnDestroy",value:function(){}},{key:"gauge",set:function(e){this._gauge=e,this.updateFormValues(),document.getElementById("gaugeEditName").scrollIntoView()}},{key:"updateFormValues",value:function(){this.gaugeForm&&this._gauge&&this.gaugeForm.patchValue({name:this._gauge.name,longitude:this._gauge.location[0],latitude:this._gauge.location[1],referenceWaterLevelGaugeHeight:this._gauge.referenceWaterLevelGaugeHeight,comment:this._gauge.comment})}},{key:"addGauge",value:function(){var e=this;this.gaugeForm.invalid?this.alertService.error("Please enter all necessary data"):(this._gauge.name=this.gaugeForm.get("name").value,this._gauge.location=[this.gaugeForm.get("longitude").value,this.gaugeForm.get("latitude").value],this._gauge.referenceWaterLevelGaugeHeight=this.gaugeForm.get("referenceWaterLevelGaugeHeight").value,this._gauge.comment=this.gaugeForm.get("comment").value,this.watersService.watersGaugeCreate(this.water.waterId,this._gauge).pipe(vg()).subscribe(function(t){e.gaugeCreated.emit(t),e._gauge=void 0,e.gaugeForm.reset(),e.gaugeForm.clearValidators()},function(t){e.alertService.error(t)}))}},{key:"cancelEditing",value:function(){this._gauge=void 0,this.gaugeForm.reset(),this.gaugeForm.clearValidators(),this.cancel.emit()}}]),e}()).\u0275fac=function(e){return new(e||g_)(Ss(Ub),Ss(jb),Ss(Hb),Ss(Mp))},g_.\u0275cmp=tn({type:g_,selectors:[["gnuboat-gauge-edit"]],inputs:{water:"water",gauge:"gauge"},outputs:{cancel:"cancel",gaugeCreated:"gaugeCreated"},decls:38,vars:7,consts:function(){return[["class","header",4,"ngIf"],[1,"content"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","name"],$localize(r||(r=te([":@@gaugeEditName\u241f616e206cb4f25bd5885fc35925365e43cf5fb929\u241f7658402240953727096:Name:"]))),["id","gaugeEditName","formControlName","name","type","text","placeholder",$localize(i||(i=te([":\u241f87796cdf3ff1e4a4890beb20272671b9a2bda611\u241f1020859659887325667:Name of Gauge"]))),"required",""],["gaugeNameInput",""],["class","pure-form-message-inline",4,"ngIf"],["for","latitude"],$localize(o||(o=te([":@@gaugeEditLatitude\u241f4e0ad02a8a2295d1f317fcdbe9057c5e460c8dd0\u241f6691856122567960400:Latitude:"]))),["formControlName","latitude","type","number","required",""],["gaugeLatitudeInput",""],["for","longitude"],$localize(a||(a=te([":@@gaugeEditLongitude\u241f284b2009235fd44e3da87a60adb793608ee5d02c\u241f1113549170516305374:Longitude:"]))),["formControlName","longitude","type","number","required",""],["gaugeLongitudeInput",""],["for","referenceWaterLevelGaugeHeight"],$localize(s||(s=te([":@@gaugeEditReferenceWaterLevelGaugeHeight\u241f89f32820b7ac84682cb3f6e46804a26075e04dee\u241f5846044266052805760:Gauge Height Reference Water Level:"]))),["formControlName","referenceWaterLevelGaugeHeight","type","number","title","The gauge height (Stage) of the reference Water Level is used to calculate and show the water depth at the map","required",""],["gaugeReferenceWaterLevelGaugeHeightInput",""],["for","comment"],$localize(u||(u=te([":@@gaugeEditComment\u241f96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd\u241f872792317034860453:Comment:"]))),["formControlName","comment"],["gaugeCommentInput",""],[1,"pure-controls"],[1,"pure-button","pure-button-primary","button-add",3,"disabled"],$localize(c||(c=te([":@@gaugeButtonAdd\u241ff6755cff4957d5c3c89bafce5651f1b6fa2b1fd9\u241f3249513483374643425:Add"]))),[1,"pure-button",3,"mousedown"],[1,"header"],$localize(l||(l=te([":@@gaugeaddTitle\u241f4a4bc6ee2170dc7a2f18c29de4a3b97dd7266b8a\u241f2037897628365666937:Add a new Gauge to ",":INTERPOLATION:"])),"\ufffd0\ufffd"),[1,"pure-form-message-inline"],$localize(f||(f=te([":@@gaugeNameRequired\u241f541087322c34e8b26954fd67ff4fc80d1a6c1b33\u241f4444753420973870540:Name is required."]))),$localize(h||(h=te([":@@gaugeLatitudeRequired\u241f83376835482106ab6db74cb61a76b6e3247bcf1d\u241f359746990905750303:Latitude is required."]))),$localize(d||(d=te([":@@gaugeLongitudeRequired\u241fce46de58238d73eeb0d11e84a9ed4ff777b84e8b\u241f947832037198147866:Longitude is required."]))),$localize(p||(p=te([":@@gaugeReferenceWaterLevelGaugeHeightRequired\u241f47549dadf2f25a1a478490d7a73fefb13c735629\u241f2759965436677198358:Reference Gauge Height is required."])))]},template:function(e,t){1&e&&(ks(0,f_,3,1,"div",0),As(1,"div",1),As(2,"form",2),Ns("ngSubmit",function(){return t.addGauge()}),As(3,"fieldset"),As(4,"div",3),As(5,"label",4),Ku(6,5),xs(),Os(7,"input",6,7),ks(9,h_,2,0,"span",8),xs(),As(10,"div",3),As(11,"label",9),Ku(12,10),xs(),Os(13,"input",11,12),ks(15,d_,2,0,"span",8),xs(),As(16,"div",3),As(17,"label",13),Ku(18,14),xs(),Os(19,"input",15,16),ks(21,p_,2,0,"span",8),xs(),As(22,"div",3),As(23,"label",17),Ku(24,18),xs(),Os(25,"input",19,20),ks(27,v_,2,0,"span",8),xs(),As(28,"div",3),As(29,"label",21),Ku(30,22),xs(),Os(31,"textarea",23,24),xs(),As(33,"div",25),As(34,"button",26),Ku(35,27),xs(),As(36,"button",28),Ns("mousedown",function(){return t.cancelEditing()}),Ks(37,"Cancel"),xs(),xs(),xs(),xs(),xs()),2&e&&(Es("ngIf",t.water&&t._gauge),Ko(2),Es("formGroup",t.gaugeForm),Ko(7),Es("ngIf",t.gaugeForm.controls.name.errors),Ko(6),Es("ngIf",t.gaugeForm.controls.latitude.errors),Ko(6),Es("ngIf",t.gaugeForm.controls.longitude.errors),Ko(6),Es("ngIf",t.gaugeForm.controls.referenceWaterLevelGaugeHeight.errors),Ko(7),Es("disabled",t.gaugeForm.pristine||t.gaugeForm.invalid))},directives:[lh,Pp,$d,Dp,vd,Kd,Lp,Fp,Yd],encapsulation:2}),g_),m_=["mapComponent"];function b_(e,t){if(1&e&&(As(0,"h1"),Os(1,"object",8),Ks(2),xs()),2&e){var n=Fs();Ko(2),$s(n.water.name)}}function w_(e,t){1&e&&(As(0,"p"),Ks(1,"Right click on Map to add new Gauges"),xs())}function __(e,t){if(1&e){var n=js();As(0,"gnuboat-gauge-edit",9),Ns("cancel",function(){return Zn(n),Fs().gaugeEditingCanceled()})("gaugeCreated",function(e){return Zn(n),Fs().gaugeCreated(e)}),xs()}if(2&e){var r=Fs();Es("water",r.water)("gauge",r.gaugeEditing)}}var k_,C_=((k_=function(){function e(t,n,r,i,o){ye(this,e),this.route=t,this.router=n,this.watersService=r,this.alertService=i,this.authenticationService=o,this.water=void 0,this.mapViewportStyleClass="water-edit-map",this.mapLogoShow=!1,this.mapControlsShow=!0,this.mapLogsShow=!0,this.currentUser=void 0,this.gaugeEditing=void 0,this.waterId=void 0}return be(e,[{key:"ngOnInit",value:function(){var e=this;this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(t){e.currentUser=t,t&&(e.watersService.configuration.username=t.username,e.watersService.configuration.password=e.authenticationService.currentUserPassword)}),this.waterId=Number(this.route.snapshot.paramMap.get("id")),this.getWater(),this.interval=setInterval(function(){e.getWater()},6e4)}},{key:"ngOnDestroy",value:function(){}},{key:"getWater",value:function(){var e=this;this.watersService.watersGetById(this.waterId).subscribe(function(t){e.water=t},function(t){e.alertService.error(t)})}},{key:"mapClicked",value:function(e){this.currentUser?this.gaugeEditing?this.alertService.error("Please finish or abort your currently edited gauge before creating a new one!"):(this.gaugeEditing={},this.gaugeEditing.location=[],this.gaugeEditing.location.push(e.longitude),this.gaugeEditing.location.push(e.latitude),this.gaugeEditing.comment="",window["gnuboat-gauge-edit"]&&window["gnuboat-gauge-edit"].scrollIntoView()):this.router.navigate(["/login"],{queryParams:{returnUrl:this.router.url}})}},{key:"gaugeEditingCanceled",value:function(){this.gaugeEditing=void 0}},{key:"gaugeCreated",value:function(e){this.water.gauges.push(e),this.water=Object.assign({},this.water),this.gaugeEditing=void 0}}]),e}()).\u0275fac=function(e){return new(e||k_)(Ss(Ay),Ss($m),Ss(Ub),Ss(jb),Ss(Hb))},k_.\u0275cmp=tn({type:k_,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&kl(m_,3),2&e&&_l(n=Cl())&&(t.mapComponent=n.first)},inputs:{water:"water"},decls:10,vars:11,consts:[[1,"header"],[4,"ngIf"],[1,"content"],[3,"viewportStyleClass","controlsShow","logsShow","logoShow","water","clickedRight"],["mapComponent",""],[3,"water"],[3,"water","mapComponent"],[3,"water","gauge","cancel","gaugeCreated",4,"ngIf"],["data",Wi(v||(v=te(["/resources/gnuboat-water.svg"]))),1,"svg-icon"],[3,"water","gauge","cancel","gaugeCreated"]],template:function(e,t){if(1&e&&(As(0,"div",0),ks(1,b_,3,1,"h1",1),Os(2,"alert"),xs(),As(3,"div",2),ks(4,w_,2,0,"p",1),As(5,"gnuboat-map",3,4),Ns("clickedRight",function(e){return t.mapClicked(e)}),xs(),Os(7,"gnuboat-logs",5),Os(8,"gnuboat-gauges",6),ks(9,__,1,2,"gnuboat-gauge-edit",7),xs()),2&e){var n=Cs(6);Ko(1),Es("ngIf",t.water),Ko(3),Es("ngIf",t.currentUser),Ko(1),Es("viewportStyleClass",t.mapViewportStyleClass)("controlsShow",t.mapControlsShow)("logsShow",t.mapLogsShow)("logoShow",t.mapLogoShow)("water",t.water),Ko(2),Es("water",t.water),Ko(1),Es("water",t.water)("mapComponent",n),Ko(1),Es("ngIf",t.gaugeEditing)}},directives:[lh,Kb,Sw,t_,l_,y_],encapsulation:2}),k_);function S_(e,t){if(1&e&&(As(0,"div",17),Os(1,"gnuboat-water",18),xs()),2&e){var n=t.$implicit,r=Fs();Ko(1),Es("water",n)("user",r.currentUser)}}var E_=function(){return["/mygnuboat/log/add"]};function T_(e,t){if(1&e){var n=js();As(0,"tr"),As(1,"td",19),Ks(2),xs(),As(3,"td",20),Ks(4),xs(),As(5,"td",21),Ks(6),xs(),As(7,"td",22),As(8,"a",23),Ks(9,"Add Logfile"),xs(),xs(),As(10,"td",22),As(11,"button",24),Ns("click",function(){Zn(n);var e=t.$implicit;return Fs().deviceDelete(e)}),Ks(12,"Delete"),xs(),xs(),xs()}if(2&e){var r=t.$implicit,i=Fs();Ko(1),Us("title","Device Id = ",r.deviceId,""),Ko(1),$s(r.name),Ko(2),Xs("",100*r.sensorDepth,"cm"),Ko(2),$s(r.comment),Ko(2),Es("routerLink",al(6,E_))("queryParams",i.logParameter.getAddParameter(void 0,r))}}function A_(e,t){if(1&e){var n=js();As(0,"tr"),As(1,"td",25),Ks(2),xs(),As(3,"td",22),As(4,"button",24),Ns("click",function(){Zn(n);var e=t.$implicit;return Fs().apiKeyDelete(e)}),Ks(5,"Delete"),xs(),xs(),xs()}if(2&e){var r=t.$implicit;Ko(2),$s(r)}}var x_,O_=((x_=function(){function e(t,n,r,i,o,a,s){var u=this;ye(this,e),this.authenticationService=t,this.usersService=n,this.watersService=r,this.devicesService=i,this.logsService=o,this.alertService=a,this.logParameter=s,this.apiKeys=[],this.waters=[],this.devices=[],this.logs=[],this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(e){u.currentUser=e,u.usersService.configuration.username=e.username,u.usersService.configuration.password=u.authenticationService.currentUserPassword,u.watersService.configuration.username=e.username,u.watersService.configuration.password=u.authenticationService.currentUserPassword,u.devicesService.configuration.username=e.username,u.devicesService.configuration.password=u.authenticationService.currentUserPassword,u.logsService.configuration.username=e.username,u.logsService.configuration.password=u.authenticationService.currentUserPassword,u.watersService.watersGet(void 0,e.username,e.username).pipe(vg()).subscribe(function(e){u.waters=e}),u.devicesService.devicesGet().pipe(vg()).subscribe(function(e){u.devices=e}),u.logsService.logsGet(e.username).pipe(vg()).subscribe(function(e){u.logs=e})})}return be(e,[{key:"ngOnInit",value:function(){this.apiKeys=this.currentUser.apiKeys}},{key:"ngOnDestroy",value:function(){this.currentUserSubscription.unsubscribe()}},{key:"deviceDelete",value:function(e){var t=this;this.devicesService.devicesDeviceDelete(e.deviceId).pipe(vg()).subscribe(function(e){t.devices=e},function(e){t.alertService.error(e)})}},{key:"apiKeyDelete",value:function(e){var t=this;this.usersService.usersApiKeyDelete(e).pipe(vg()).subscribe(function(e){t.apiKeys=e},function(e){t.alertService.error(e)})}},{key:"apiKeyCreate",value:function(){var e=this;this.usersService.usersApiKeyCreate().pipe(vg()).subscribe(function(t){e.apiKeys=t},function(t){e.alertService.error(t)})}}]),e}()).\u0275fac=function(e){return new(e||x_)(Ss(Hb),Ss(Fb),Ss(Ub),Ss(Lb),Ss(Vb),Ss(jb),Ss(Aw))},x_.\u0275cmp=tn({type:x_,selectors:[["ng-component"]],features:[rc([Aw])],decls:47,vars:5,consts:[[1,"header"],[1,"content"],[3,"logs"],[1,"content-subhead"],["data",Wi(g||(g=te(["/resources/gnuboat-water.svg"]))),1,"svg-icon"],["name","waters"],["routerLink","water/add",1,"pure-button","button-add"],[1,"pure-g"],["class","pure-u-1 pure-u-md-1-3",4,"ngFor","ngForOf"],["data",Wi(y||(y=te(["/resources/gnuboat-device.svg"]))),1,"svg-icon"],["name","devices"],["routerLink","device/add",1,"pure-button","button-add"],["id","devices",1,"pure-table","pure-table-horizontal","pure-table-striped"],[4,"ngFor","ngForOf"],["name","apikeys"],[1,"button-add","pure-button",3,"click"],["id","apiKeys",1,"pure-table","pure-table-striped","pure-table-horizontal"],[1,"pure-u-1","pure-u-md-1-3"],[3,"water","user"],["id","name",3,"title"],["id","sensorDepth"],["id","comment"],["id","button"],[1,"button-add","pure-button",3,"routerLink","queryParams"],[1,"button-remove","pure-button",3,"click"],["id","key"]],template:function(e,t){1&e&&(As(0,"div",0),As(1,"h1"),Ks(2),xs(),Os(3,"alert"),xs(),As(4,"div",1),Os(5,"gnuboat-logs",2),As(6,"h2",3),Os(7,"object",4),Ks(8,"My Waters"),xs(),As(9,"div"),Os(10,"a",5),As(11,"p"),As(12,"a",6),Ks(13,"Add Water"),xs(),xs(),As(14,"div",7),ks(15,S_,2,2,"div",8),xs(),xs(),As(16,"h2",3),Os(17,"object",9),Ks(18,"Devices"),xs(),As(19,"div"),Os(20,"a",10),As(21,"p"),As(22,"a",11),Ks(23,"Add Device"),xs(),xs(),As(24,"table",12),As(25,"thead"),As(26,"tr"),As(27,"th"),Ks(28,"Name"),xs(),As(29,"th"),Ks(30,"Sensor Depth"),xs(),As(31,"th"),Ks(32,"Comment"),xs(),Os(33,"th"),Os(34,"th"),xs(),xs(),As(35,"tbody"),ks(36,T_,13,7,"tr",13),xs(),xs(),xs(),As(37,"h2",3),Ks(38,"Your API keys"),xs(),As(39,"div"),Os(40,"a",14),As(41,"div"),As(42,"a",15),Ns("click",function(){return t.apiKeyCreate()}),Ks(43,"Create New Api Key"),xs(),xs(),As(44,"table",16),As(45,"tbody"),ks(46,A_,6,1,"tr",13),xs(),xs(),xs(),xs()),2&e&&(Ko(2),Xs("Welcome to ",t.currentUser.firstName,"'s GNUBoat!"),Ko(3),Es("logs",t.logs),Ko(10),Es("ngForOf",t.waters),Ko(21),Es("ngForOf",t.devices),Ko(10),Es("ngForOf",t.apiKeys))},directives:[Kb,t_,Ym,uh,Vw],encapsulation:2}),x_),I_=function(e){se(n,e);var t=ce(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e,r)).scheduler=e,i.work=r,i.pending=!1,i}return be(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){se(n,e);var t=ce(n);function n(e,r){return ye(this,n),t.call(this)}return be(n,[{key:"schedule",value:function(e){return this}}]),n}(Ae)),P_=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;ye(this,e),this.SchedulerAction=t,this.now=n}return be(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),j_=new(function(e){se(n,e);var t=ce(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P_.now;return ye(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==fe(r)?n.delegate.now():i()})).actions=[],r.active=!1,r.scheduled=void 0,r}return be(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):ae(de(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(P_))(I_);function R_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j_;return function(n){return n.lift(new D_(e,t))}}var D_=function(){function e(t,n){ye(this,e),this.dueTime=t,this.scheduler=n}return be(e,[{key:"call",value:function(e,t){return t.subscribe(new N_(e,this.dueTime,this.scheduler))}}]),e}(),N_=function(e){se(n,e);var t=ce(n);function n(e,r,i){var o;return ye(this,n),(o=t.call(this,e)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return be(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(Ie);function L_(e){e.debouncedNext()}var V_=["mapComponent"],F_=["waterNameInput"];function U_(e,t){1&e&&Os(0,"img",19)}function M_(e,t){1&e&&(As(0,"span",20),Ku(1,21),xs())}function H_(e,t){if(1&e&&(As(0,"button",22),Ku(1,23),xs()),2&e){var n=Fs();Es("disabled",!n.waterChoosen||!n.currentUser)}}function z_(e,t){if(1&e&&(As(0,"button",22),Ku(1,24),xs()),2&e){var n=Fs();Es("disabled",!n.waterChoosen||!n.currentUser)}}function q_(e,t){1&e&&Os(0,"img",19)}var B_,G_=function(e){return e[e.GNUBOAT=1]="GNUBOAT",e[e.OSM=2]="OSM",e}({}),W_=((B_=function(){function e(t,n,r,i,o,a,s){var u=this;ye(this,e),this.formBuilder=t,this.watersService=n,this.osmOverpassService=r,this.alertService=i,this.authenticationService=o,this.router=a,this.route=s,this.mapViewportStyleClass="water-add-map",this.mapControlsShow=!1,this.Origin=G_,this.waterChoosen=void 0,this.currentUser=void 0,this.isProcessingGnuBoat=!1,this.isProcessingOverpass=!1,this.isProcessingRelation=!1,this.filteredWatersGnuBoat=new Map,this.filteredWatersOverpass=new Map,this.map=void 0,this.mapLogoShow=!1,this.mapLogsShow=!1,this.geoJsonLayer=void 0,this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(e){u.currentUser=e,u.watersService.configuration.username=e.username,u.watersService.configuration.password=u.authenticationService.currentUserPassword})}return be(e,[{key:"ngOnInit",value:function(){var e=this;this.watersForm=this.formBuilder.group({name:[,_d.required]}),jQuery("#waterNameAutocomplete").autocomplete({minLength:3,source:[],select:function(t,n){e.waterSelected(t,n)}}),this.watersForm.get("name").valueChanges.pipe(Bp(function(e){return 3==e.length}),R_(300),yg(function(){return e.isProcessingGnuBoat=!0}),Wv(function(t){return e.watersService.watersGet(t).pipe(wg(function(){return e.isProcessingGnuBoat=!1}))})).subscribe(function(t){e.getGnuBoatWaters(t)}),this.watersForm.get("name").valueChanges.pipe(Bp(function(e){return 3==e.length}),R_(300),yg(function(){return e.isProcessingOverpass=!0}),Wv(function(t){return e.osmOverpassService.findWaters(t).pipe(wg(function(){return e.isProcessingOverpass=!1}))})).subscribe(function(t){e.getOverpassWaters(t)})}},{key:"ngOnDestroy",value:function(){}},{key:"ngAfterViewInit",value:function(){this.map=this.mapComponent.getMap(),this.geoJsonLayer=L.geoJSON().addTo(this.map)}},{key:"getGnuBoatWaters",value:function(e){this.filteredWatersGnuBoat.clear();for(var t=0;t<e.length;t++){var n={};n.value=e[t].name,n.label=n.value+" (GNUBoat)",n.origin=G_.GNUBOAT,n.id=e[t].waterId,n.osmId=e[t].osmId,n.osmType=e[t].osmType,this.filteredWatersGnuBoat.set(n.id,n)}this.buildAutoCompletor()}},{key:"getOverpassWaters",value:function(e){var t=this;this.filteredWatersOverpass.clear(),"features"in e&&e.features.forEach(function(e){var n={};n.value=e.properties.name,n.label=n.value+" (OSM)",n.origin=G_.OSM,n.id=Number(e.properties.id.replace(/\D/g,"")),n.osmId=n.id,"relation"==e.properties.id.replace(/\/\d+/g,"").toLowerCase()?n.osmType="Relation":console.log(["Unidentified OSM Type",e.properties.id.replace(/\/\d+/g,"")]),t.filteredWatersOverpass.set(n.id,n)}),this.buildAutoCompletor()}},{key:"getOverpassRelation",value:function(e,t){this.geoJsonLayer.clearLayers(),this.mapComponent.addOsmElement(e,t)}},{key:"buildAutoCompletor",value:function(){var e=[];this.filteredWatersGnuBoat.forEach(function(t,n){e.push(t)}),this.filteredWatersOverpass.forEach(function(t,n){e.push(t)}),jQuery("#waterNameAutocomplete").autocomplete("option","source",e),jQuery("#waterNameAutocomplete").autocomplete("search",jQuery("#waterNameAutocomplete").val())}},{key:"waterSelected",value:function(e,t){this.waterChoosen=t.item,t.item.osmId&&t.item.osmType&&this.getOverpassRelation(t.item.osmId,t.item.osmType)}},{key:"addWater",value:function(){var e=this;if(this.watersForm.invalid)this.alertService.error("Please enter all necessary data");else if(this.waterChoosen)if(this.waterChoosen.value==this.waterNameInput.nativeElement.value){if(this.waterChoosen.origin==G_.GNUBOAT&&this.router.navigate(["/water",this.waterChoosen.id]),this.waterChoosen.origin==G_.OSM){var t={};t.name=this.waterChoosen.value,t.osmId=this.waterChoosen.id,t.osmType=this.waterChoosen.osmType,this.watersService.watersCreate(t).pipe(vg()).subscribe(function(n){t.name==n.name?e.router.navigate(["/water",n.waterId]):(console.log(n),e.alertService.error("Could not add water!"))},function(t){e.alertService.error(t)})}}else this.alertService.error("Water selected has different name than entered in name field!");else this.alertService.error("No water selected!")}}]),e}()).\u0275fac=function(e){return new(e||B_)(Ss(Mp),Ss(Ub),Ss(qb),Ss(jb),Ss(Hb),Ss($m),Ss(Ay))},B_.\u0275cmp=tn({type:B_,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&(kl(V_,1),kl(F_,1)),2&e&&(_l(n=Cl())&&(t.mapComponent=n.first),_l(n=Cl())&&(t.waterNameInput=n.first))},features:[rc([qb])],decls:24,vars:10,consts:function(){var e,t,n,r,i,o;return e=$localize(m||(m=te([":@@wateraddTitle\u241f07a814b542ed5c77fdd1418d32af9c2a69e37067\u241f1503542668491126145:",":START_TAG_OBJECT:",":CLOSE_TAG_OBJECT:Add a new Water"])),"\ufffd#3\ufffd","\ufffd/#3\ufffd"),t=$localize(b||(b=te([":@@waterAddName\u241f616e206cb4f25bd5885fc35925365e43cf5fb929\u241f7658402240953727096:Name:"]))),n=$localize(w||(w=te([":\u241fad1cf55a5798fc11fd75dcd508c8561fe086beb9\u241f5866076180880331164:Name of Water"]))),r=$localize(_||(_=te([":@@waterNameRequired\u241f965d956cedfe49676e79e0b87161d5bff7661fa5\u241f3958642272853103661:Watername is required."]))),i=$localize(k||(k=te([":@@waterButtonAdd\u241ff6755cff4957d5c3c89bafce5651f1b6fa2b1fd9\u241f3249513483374643425:Add"]))),o=$localize(C||(C=te([":@@waterButtonChoose\u241f9fabdfadf0453602acf388171bd4f758df47e1a7\u241f5698046514233867599:Choose"]))),[[1,"header"],e,["data",Wi(S||(S=te(["/resources/gnuboat-water.svg"]))),1,"svg-icon"],[1,"content"],[1,"pure-g"],[1,"pure-u-2-3"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","name"],t,["id","waterNameAutocomplete","formControlName","name","type","text","placeholder",n,"required",""],["waterNameInput",""],["class","processing","src","/resources/processing.svg",4,"ngIf"],["class","pure-form-message-inline",4,"ngIf"],[1,"pure-controls"],["class","pure-button pure-button-primary button-add",3,"disabled",4,"ngIf"],[1,"pure-u-1-3"],[3,"viewportStyleClass","controlsShow","logoShow","logsShow"],["mapComponent",""],["src","/resources/processing.svg",1,"processing"],[1,"pure-form-message-inline"],r,[1,"pure-button","pure-button-primary","button-add",3,"disabled"],i,o]},template:function(e,t){1&e&&(As(0,"div",0),As(1,"h1"),Wu(2,1),Os(3,"object",2),Zu(),xs(),Os(4,"alert"),xs(),As(5,"div",3),As(6,"div",4),As(7,"div",5),As(8,"form",6),Ns("ngSubmit",function(){return t.addWater()}),As(9,"fieldset"),As(10,"div",7),As(11,"label",8),Ku(12,9),xs(),Os(13,"input",10,11),ks(15,U_,1,0,"img",12),ks(16,M_,2,0,"span",13),xs(),As(17,"div",14),ks(18,H_,2,1,"button",15),ks(19,z_,2,1,"button",15),xs(),xs(),xs(),xs(),As(20,"div",16),ks(21,q_,1,0,"img",12),Os(22,"gnuboat-map",17,18),xs(),xs(),xs()),2&e&&(Ko(8),Es("formGroup",t.watersForm),Ko(7),Es("ngIf",t.isProcessingGnuBoat||t.isProcessingOverpass),Ko(1),Es("ngIf",t.watersForm.controls.name.errors),Ko(2),Es("ngIf",!t.waterChoosen||t.waterChoosen.origin!=t.Origin.GNUBOAT),Ko(1),Es("ngIf",t.waterChoosen&&t.waterChoosen.origin==t.Origin.GNUBOAT),Ko(2),Es("ngIf",t.isProcessingRelation),Ko(1),Es("viewportStyleClass",t.mapViewportStyleClass)("controlsShow",t.mapControlsShow)("logoShow",t.mapLogoShow)("logsShow",t.mapLogsShow))},directives:[Kb,Pp,$d,Dp,vd,Kd,Lp,Fp,lh,Sw],encapsulation:2}),B_);function Z_(e,t){1&e&&(As(0,"span",22),Ku(1,23),xs())}function K_(e,t){1&e&&(As(0,"span",22),Ku(1,24),xs())}var $_,X_=(($_=function(){function e(t,n,r,i,o){var a=this;ye(this,e),this.formBuilder=t,this.devicesService=n,this.alertService=r,this.authenticationService=i,this.router=o,this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(e){a.currentUser=e,a.devicesService.configuration.username=e.username,a.devicesService.configuration.password=a.authenticationService.currentUserPassword})}return be(e,[{key:"ngOnInit",value:function(){this.devicesForm=this.formBuilder.group({name:[,_d.required],sensorDepth:[,_d.required],comment:[]})}},{key:"ngOnDestroy",value:function(){}},{key:"addDevice",value:function(){var e=this;if(this.devicesForm.invalid)this.alertService.error("Please enter all necessary data");else{var t={};t.name=this.devicesForm.get("name").value,t.sensorDepth=this.devicesForm.get("sensorDepth").value/100,t.comment=this.devicesForm.get("comment").value?this.devicesForm.get("comment").value:"",this.devicesService.devicesCreate(t).pipe(vg()).subscribe(function(n){t.name==n.name?e.router.navigate(["/mygnuboat"]):(console.log(n),e.alertService.error("Could not add device!"))},function(t){e.alertService.error(t)})}}},{key:"cancelEditing",value:function(){this.router.navigate(["/mygnuboat"])}}]),e}()).\u0275fac=function(e){return new(e||$_)(Ss(Mp),Ss(Lb),Ss(jb),Ss(Hb),Ss($m))},$_.\u0275cmp=tn({type:$_,selectors:[["ng-component"]],decls:30,vars:4,consts:function(){return[[1,"header"],$localize(E||(E=te([":@@deviceaddTitle\u241f02b0e404258ae0f38cdc0a248c15f45e5ef3bb3b\u241f2631079662194939396:Add a new Device"]))),[1,"content"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","name"],$localize(T||(T=te([":@@deviceEditName\u241f616e206cb4f25bd5885fc35925365e43cf5fb929\u241f7658402240953727096:Name:"]))),["id","deviceEditName","formControlName","name","type","text","placeholder",$localize(A||(A=te([":\u241f9a36b287229cfbce7525ea51ce88d070e8960b5d\u241f4268034752503309278:Name of Device"]))),"required",""],["deviceNameInput",""],["class","pure-form-message-inline",4,"ngIf"],["for","sensorDepth"],$localize(x||(x=te([":@@deviceEditSensorDepth\u241ff49c8261e048ef66223f420d9a3a16e28ef1e105\u241f6964567358702715848:Sensor Depth:"]))),["formControlName","sensorDepth","type","number","placeholder","cm","min","0","required",""],["deviceSensorDepthInput",""],["for","comment"],$localize(O||(O=te([":@@deviceEditComment\u241f96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd\u241f872792317034860453:Comment:"]))),["formControlName","comment"],["deviceCommentInput",""],[1,"pure-controls"],[1,"pure-button","pure-button-primary","button-add",3,"disabled"],$localize(I||(I=te([":@@deviceButtonAdd\u241ff6755cff4957d5c3c89bafce5651f1b6fa2b1fd9\u241f3249513483374643425:Add"]))),[1,"pure-button",3,"mousedown"],[1,"pure-form-message-inline"],$localize(P||(P=te([":@@deviceNameRequired\u241f541087322c34e8b26954fd67ff4fc80d1a6c1b33\u241f4444753420973870540:Name is required."]))),$localize(j||(j=te([":@@deviceSensorDepthRequired\u241f6f73b1cdf75e7b167c6f587067be96c0ce914767\u241f5781133826951020538:Sensor Depth is required."])))]},template:function(e,t){1&e&&(As(0,"div",0),As(1,"h2"),Ku(2,1),xs(),xs(),As(3,"div",2),As(4,"form",3),Ns("ngSubmit",function(){return t.addDevice()}),As(5,"fieldset"),As(6,"div",4),As(7,"label",5),Ku(8,6),xs(),Os(9,"input",7,8),ks(11,Z_,2,0,"span",9),xs(),As(12,"div",4),As(13,"label",10),Ku(14,11),xs(),Os(15,"input",12,13),As(17,"span"),Ks(18,"cm"),xs(),ks(19,K_,2,0,"span",9),xs(),As(20,"div",4),As(21,"label",14),Ku(22,15),xs(),Os(23,"textarea",16,17),xs(),As(25,"div",18),As(26,"button",19),Ku(27,20),xs(),As(28,"button",21),Ns("mousedown",function(){return t.cancelEditing()}),Ks(29,"Cancel"),xs(),xs(),xs(),xs(),xs()),2&e&&(Ko(4),Es("formGroup",t.devicesForm),Ko(7),Es("ngIf",t.devicesForm.controls.name.errors),Ko(8),Es("ngIf",t.devicesForm.controls.sensorDepth.errors),Ko(7),Es("disabled",t.devicesForm.pristine||t.devicesForm.invalid))},directives:[Pp,$d,Dp,vd,Kd,Lp,Fp,lh,Yd],encapsulation:2}),$_),Y_=["logFileInput"];function Q_(e,t){1&e&&Os(0,"img",35)}function J_(e,t){1&e&&(As(0,"span",36),Ku(1,37),xs())}function ek(e,t){1&e&&Os(0,"img",35)}function tk(e,t){1&e&&(As(0,"span",36),Ku(1,38),xs())}function nk(e,t){1&e&&(As(0,"span",36),Ku(1,39),xs())}function rk(e,t){1&e&&Os(0,"img",35)}function ik(e,t){1&e&&(As(0,"span",36),Ku(1,40),xs())}function ok(e,t){1&e&&(As(0,"span",36),Ku(1,41),xs())}function ak(e,t){1&e&&Os(0,"img",35)}var sk,uk,ck=((sk=function(){function e(t,n,r,i,o,a,s,u){ye(this,e),this.logsService=t,this.watersService=n,this.devicesService=r,this.alertService=i,this.authenticationService=o,this.formBuilder=a,this._route=s,this.router=u,this.water=void 0,this.device=void 0,this.gauge=void 0,this.currentUser=void 0,this.cancel=new cl,this.isProcessingWater=!1,this.isProcessingDevice=!1,this.isProcessingGauge=!1,this.isUploading=!1}return be(e,[{key:"ngOnInit",value:function(){var e=this;if(this.currentUserSubscription=this.authenticationService.currentUser.subscribe(function(t){e.currentUser=t,t&&(e.logsService.configuration.username=t.username,e.logsService.configuration.password=e.authenticationService.currentUserPassword)}),this.routeSubcription=this._route.queryParams.subscribe(function(t){if("gauge"in t){var n=JSON.parse(t.gauge);e.gauge={},e.gauge.label=n.name,e.gauge.value=n.name,e.gauge.id=n.gaugeId,e.gauge.originalObject=n}if("water"in t||e.gauge&&"water"in e.gauge.originalObject){var r="water"in t?JSON.parse(t.water):e.gauge.originalObject.water;e.water={},e.water.label=r.name,e.water.value=r.name,e.water.id=r.waterId,e.water.originalObject=r}if("device"in t){var i=JSON.parse(t.device);e.device={},e.device.label=i.name,e.device.value=i.name,e.device.id=i.deviceId,e.device.originalObject=i}}),this.logForm=this.formBuilder.group({water:[,_d.required],device:[,_d.required],gauge:[,_d.required],gaugeHeight:[,_d.required],logfile:[,_d.required],comment:[]}),this.updateFormValues(),jQuery("#logEditWater").autocomplete({minLength:3,source:[],select:function(t,n){e.waterSelected(t,n)}}),jQuery("#logEditDevice").autocomplete({minLength:3,source:[],select:function(t,n){e.deviceSelected(t,n)}}),jQuery("#logEditGauge").autocomplete({minLength:this.water?0:3,source:[],select:function(t,n){e.gaugeSelected(t,n)}}),this.water){for(var t=[],n=this.water.originalObject.gauges,r=0;r<n.length;r++){var i={};i.id=n[r].gaugeId,i.value=n[r].name,i.label=n[r].name,t.push(i)}this.setupGaugeCompletion(t)}this.logForm.get("water").valueChanges.pipe(Bp(function(e){return e&&3==e.length}),R_(300),yg(function(){return e.isProcessingWater=!0}),Wv(function(t){return e.watersService.watersGet(t).pipe(wg(function(){return e.isProcessingWater=!1}))})).subscribe(function(t){e.getWaters(t)}),this.logForm.get("device").valueChanges.pipe(Bp(function(e){return e&&3==e.length}),R_(300),yg(function(){return e.isProcessingDevice=!0}),Wv(function(t){return e.devicesService.devicesGet(t).pipe(wg(function(){return e.isProcessingDevice=!1}))})).subscribe(function(t){e.getDevices(t)}),this.logForm.get("gauge").valueChanges.pipe(Bp(function(e){return e&&3==e.length}),R_(300),yg(function(){return e.isProcessingGauge=!0}),Wv(function(t){return e.watersService.watersGaugesGet(e.water.id,t).pipe(wg(function(){return e.isProcessingGauge=!1}))})).subscribe(function(t){e.getGauges(t)})}},{key:"ngOnDestroy",value:function(){this.currentUserSubscription.unsubscribe(),this.routeSubcription.unsubscribe()}},{key:"updateFormValues",value:function(){this.logForm&&this.logForm.patchValue({water:this.water?this.water.label:"",device:this.device?this.device.label:"",gauge:this.gauge?this.gauge.label:""}),this.logForm.get("water").value?this.logForm.get("gauge").enable():this.logForm.get("gauge").disable(),this.logForm.updateValueAndValidity()}},{key:"addLog",value:function(){var e=this;if(this.logForm.invalid)this.alertService.error("Please enter all necessary data");else if(this.water&&this.device&&this.gauge){var t={};t.water=this.water.id,t.device=this.device.id,t.gauge=this.gauge.id,t.gaugeHeight=this.logForm.get("gaugeHeight").value,t.comment=null==this.logForm.get("comment").value?"":this.logForm.get("comment").value;var n=new FileReader;this.isUploading=!0,n.onload=function(r){if(null==n.result)return e.alertService.error("Could not read log file"),void(e.isUploading=!1);e.logsService.logsLogCreate(t).pipe(vg()).subscribe(function(r){e.logsService.logsLogUpload(r.logId,new Blob([n.result],{type:"text/plain"})).pipe(vg()).subscribe(function(n){e.isUploading=!1,e.logForm.reset(),e.logForm.clearValidators(),e.router.navigate(["/water",t.water])},function(t){e.alertService.error(t),e.isUploading=!1})},function(t){e.alertService.error(t),e.isUploading=!1})},n.readAsArrayBuffer(this.logFileInput.nativeElement.files[0])}else this.alertService.error("Please enter all necessary data")}},{key:"cancelEditing",value:function(){this.logForm.reset(),this.logForm.clearValidators(),this.cancel.emit()}},{key:"getWaters",value:function(e){for(var t=[],n=0;n<e.length;n++){var r={};r.id=e[n].waterId,r.value=e[n].name,r.label=e[n].name,r.originalObject=e[n],t.push(r)}jQuery("#logEditWater").autocomplete("option","source",t),jQuery("#logEditWater").autocomplete("search",this.logForm.get("water").value)}},{key:"waterSelected",value:function(e,t){this.water=t.item,this.logForm.updateValueAndValidity();for(var n=[],r=0;r<t.item.originalObject.gauges.length;r++){var i={};i.id=t.item.originalObject.gauges[r].gaugeId,i.value=t.item.originalObject.gauges[r].name,i.label=t.item.originalObject.gauges[r].name,n.push(i)}jQuery("#logEditGauge").autocomplete("option","minLength",0),this.setupGaugeCompletion(n),this.updateFormValues()}},{key:"getDevices",value:function(e){for(var t=[],n=0;n<e.length;n++){var r={};r.id=e[n].deviceId,r.value=e[n].name,r.label=e[n].name,t.push(r)}jQuery("#logEditDevice").autocomplete("option","source",t),jQuery("#logEditDevice").autocomplete("search",this.logForm.get("device").value)}},{key:"deviceSelected",value:function(e,t){this.device=t.item,this.updateFormValues()}},{key:"getGauges",value:function(e){for(var t=[],n=0;n<e.length;n++){var r={};r.id=e[n].gaugeId,r.value=e[n].name,r.label=e[n].name,t.push(r)}this.setupGaugeCompletion(t)}},{key:"setupGaugeCompletion",value:function(e){jQuery("#logEditGauge").autocomplete("option","source",e),jQuery("#logEditGauge").autocomplete("search",this.logForm.get("gauge").value)}},{key:"gaugeSelected",value:function(e,t){this.gauge=t.item,this.updateFormValues()}}]),e}()).\u0275fac=function(e){return new(e||sk)(Ss(Vb),Ss(Ub),Ss(Lb),Ss(jb),Ss(Hb),Ss(Mp),Ss(Ay),Ss($m))},sk.\u0275cmp=tn({type:sk,selectors:[["gnuboat-log-add"]],viewQuery:function(e,t){var n;1&e&&kl(Y_,1),2&e&&_l(n=Cl())&&(t.logFileInput=n.first)},inputs:{water:"water",device:"device",gauge:"gauge"},outputs:{cancel:"cancel"},decls:51,vars:11,consts:function(){return[[1,"header"],$localize(R||(R=te([":@@logAddTitle\u241f6e15ec5e24042c70d278ba7919f1f22b98da8c4d\u241f5276023314238517641:Add a new Log"]))),[1,"content"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","water"],$localize(D||(D=te([":@@logEditWater\u241f3fe5e24f5be930a2b913c38eebe1e9f2498ceac8\u241f8544097686337078941:Water:"]))),["id","logEditWater","ngModel","","formControlName","water","type","text","placeholder",$localize(N||(N=te([":\u241f98a340d734af4784a6da5b051621eaabe834336c\u241f3389994882033960886:Water where the logged data belongs to"]))),"required",""],["logWaterInput",""],["class","processing","src","/resources/processing.svg",4,"ngIf"],["class","pure-form-message-inline",4,"ngIf"],["for","gauge"],$localize(V||(V=te([":@@logEditGauge\u241f4415257db5ecbb583acd5fbb0b5b1fdf50c97aef\u241f9003461997693281664:Gauge:"]))),["id","logEditGauge","ngModel","","formControlName","gauge","type","text","placeholder",$localize(F||(F=te([":\u241f36bc69a34c55aaabc970860ef4dec23b0e06f686\u241f8771286106126615689:Gauge measured in"]))),"required",""],["logGaugeInput",""],["for","gaugeHeight"],$localize(U||(U=te([":@@logEditGaugeHeight\u241f9f053067bc1c40fa5b704eca40b6d49bdec48f29\u241f5764946672313343537:Gauge Height (Stage) in metre:"]))),["ngModel","","formControlName","gaugeHeight","type","number","placeholder",$localize(M||(M=te([":\u241fd4915cafac52ba0b37bde47df608e5110138308e\u241f5359421901574936400:Level as number with . as decimal seperator"]))),"required",""],["logGaugeHeightInput",""],["for","device"],$localize(H||(H=te([":@@logEditDevice\u241f5e9272a5fe59404f637fb8343fe594f9d840aae8\u241f8067885942233821820:Device:"]))),["id","logEditDevice","ngModel","","formControlName","device","type","text","placeholder",$localize(z||(z=te([":\u241f3b70c5e96cc2a0a586d02306c5251d504b7a18f9\u241f6690842742111842657:Device used for logging"]))),"required",""],["logDeviceInput",""],["for","logEditFile"],$localize(q||(q=te([":@@logEditFile\u241f5123f1da2143102e0d190692a9c71c61feb7e4dd\u241f3826823411314679528:Logfile:"]))),["type","file","id","logEditFile","ngModel","","formControlName","logfile","required",""],["logFileInput",""],["for","comment"],$localize(B||(B=te([":@@logEditComment\u241f96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd\u241f872792317034860453:Comment:"]))),["ngModel","","formControlName","comment"],["logCommentInput",""],[1,"pure-controls"],[1,"pure-button","pure-button-primary","button-add",3,"disabled"],$localize(G||(G=te([":@@logButtonAdd\u241ff6755cff4957d5c3c89bafce5651f1b6fa2b1fd9\u241f3249513483374643425:Add"]))),[1,"pure-button",3,"mousedown"],["src","/resources/processing.svg",1,"processing"],[1,"pure-form-message-inline"],$localize(W||(W=te([":@@logWaterRequired\u241fd473305d4c72e1f050254147599b4611484020b2\u241f259140155653744296:Water is required."]))),$localize(Z||(Z=te([":@@logGaugeRequired\u241faef0f4f5c2ee55bb55716b6fddd857118bf5d4d8\u241f7006240767005844549:Gauge is required."]))),$localize(K||(K=te([":@@logGaugeHeightRequired\u241fe1371fad77ac299455fc6566d067051b05581e3c\u241f2514946971223976852:Level of gauge is required."]))),$localize($||($=te([":@@logDeviceRequired\u241f544a3a3f388029669e2bf1e003947c02a468d7f5\u241f3577197732437117405:Device is required."]))),$localize(X||(X=te([":@@logLogFileRequired\u241fac68874819dd65cc31abb6f8e46b8f3806b4d999\u241f2134246091287354565:Logfile is required."])))]},template:function(e,t){1&e&&(As(0,"div",0),As(1,"h1"),Ku(2,1),xs(),Os(3,"alert"),xs(),As(4,"div",2),As(5,"form",3),Ns("ngSubmit",function(){return t.addLog()}),As(6,"fieldset"),As(7,"div",4),As(8,"label",5),Ku(9,6),xs(),Os(10,"input",7,8),ks(12,Q_,1,0,"img",9),ks(13,J_,2,0,"span",10),xs(),As(14,"div",4),As(15,"label",11),Ku(16,12),xs(),Os(17,"input",13,14),ks(19,ek,1,0,"img",9),ks(20,tk,2,0,"span",10),xs(),As(21,"div",4),As(22,"label",15),Ku(23,16),xs(),Os(24,"input",17,18),ks(26,nk,2,0,"span",10),xs(),As(27,"div",4),As(28,"label",19),Ku(29,20),xs(),Os(30,"input",21,22),ks(32,rk,1,0,"img",9),ks(33,ik,2,0,"span",10),xs(),As(34,"div",4),As(35,"label",23),Ku(36,24),xs(),Os(37,"input",25,26),ks(39,ok,2,0,"span",10),xs(),As(40,"div",4),As(41,"label",27),Ku(42,28),xs(),Os(43,"textarea",29,30),xs(),As(45,"div",31),ks(46,ak,1,0,"img",9),As(47,"button",32),Ku(48,33),xs(),As(49,"button",34),Ns("mousedown",function(){return t.cancelEditing()}),Ks(50,"Cancel"),xs(),xs(),xs(),xs(),xs()),2&e&&(Ko(5),Es("formGroup",t.logForm),Ko(7),Es("ngIf",t.isProcessingWater),Ko(1),Es("ngIf",t.logForm.controls.water.errors),Ko(6),Es("ngIf",t.isProcessingGauge),Ko(1),Es("ngIf",t.logForm.controls.gauge.errors),Ko(6),Es("ngIf",t.logForm.controls.gaugeHeight.errors),Ko(6),Es("ngIf",t.isProcessingDevice),Ko(1),Es("ngIf",t.logForm.controls.device.errors),Ko(6),Es("ngIf",t.logForm.controls.logfile.errors),Ko(7),Es("ngIf",t.isUploading),Ko(1),Es("disabled",t.logForm.pristine||t.logForm.invalid))},directives:[Kb,Pp,$d,Dp,vd,Kd,Lp,Fp,lh,Yd],encapsulation:2}),sk),lk=db.forRoot([{path:"",component:(uk=function(){function e(){ye(this,e),this.mapViewportStyleClass="home-map"}return be(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}}]),e}(),uk.\u0275fac=function(e){return new(e||uk)},uk.\u0275cmp=tn({type:uk,selectors:[["ng-component"]],decls:1,vars:1,consts:[[3,"viewportStyleClass"]],template:function(e,t){1&e&&Os(0,"gnuboat-map",0),2&e&&Es("viewportStyleClass",t.mapViewportStyleClass)},directives:[Sw],encapsulation:2}),uk)},{path:"login",component:yw},{path:"mygnuboat",component:O_,canActivate:[Bb]},{path:"mygnuboat/water/add",component:W_,canActivate:[Bb]},{path:"mygnuboat/device/add",component:X_,canActivate:[Bb]},{path:"mygnuboat/log/add",component:ck,canActivate:[Bb]},{path:"water",component:Mw},{path:"water/:id",component:C_},{path:"register",component:fw},{path:"**",redirectTo:""}],{relativeLinkResolution:"legacy"});function fk(e,t){if(1&e){var n=js();As(0,"li",6),As(1,"a",25),Ns("click",function(){return Zn(n),Fs().logout()}),Ks(2,"Logout"),xs(),xs()}}function hk(e,t){1&e&&(As(0,"li",6),As(1,"a",26),Ks(2,"Login"),xs(),xs())}function dk(e,t){1&e&&(As(0,"a",27),Ks(1,"Register"),xs())}var pk,vk,gk=((vk=function(){function e(t,n){var r=this;ye(this,e),this.router=t,this.authenticationService=n,this.authenticationService.currentUser.subscribe(function(e){return r.currentUser=e})}return be(e,[{key:"logout",value:function(){this.authenticationService.logout(),this.router.navigate(["/login"])}}]),e}()).\u0275fac=function(e){return new(e||vk)(Ss($m),Ss(Hb))},vk.\u0275cmp=tn({type:vk,selectors:[["app"]],decls:48,vars:3,consts:[["id","layout",1,""],["id","menuLink",1,"menu-link"],["id","menu",1,""],[1,"pure-menu"],["routerLink","home",1,"pure-menu-heading"],[1,"pure-menu-list"],[1,"pure-menu-item"],["routerLink","home",1,"pure-menu-link"],["data",Wi(Y||(Y=te(["/resources/gnuboat-map.svg"]))),1,"svg-icon-logfile"],["routerLink","water",1,"pure-menu-link"],["data",Wi(Q||(Q=te(["/resources/gnuboat-water.svg"]))),1,"svg-icon"],[1,"pure-menu-heading"],["routerLink","mygnuboat","fragment","logfiles",1,"pure-menu-link"],["data",Wi(J||(J=te(["/resources/gnuboat-logfile.svg"]))),1,"svg-icon-logfile"],["routerLink","mygnuboat","fragment","waters",1,"pure-menu-link"],["routerLink","mygnuboat","fragment","devices",1,"pure-menu-link"],["data",Wi(ee||(ee=te(["/resources/gnuboat-device.svg"]))),1,"svg-icon-device"],["routerLink","mygnuboat","fragment","apikeys",1,"pure-menu-link"],["class","pure-menu-item",4,"ngIf"],["class","pure-menu-heading","routerLink","register",4,"ngIf"],[1,"main"],[1,"footer"],[1,"pure-g"],[1,"pure-u-1-2"],["href","trac.engsas.de/gnuboat"],[1,"pure-menu-link",3,"click"],["routerLink","login",1,"pure-menu-link"],["routerLink","register",1,"pure-menu-heading"]],template:function(e,t){1&e&&(As(0,"div",0),As(1,"nav"),As(2,"a",1),Os(3,"span"),xs(),As(4,"div",2),As(5,"div",3),As(6,"a",4),Ks(7,"GNUBoat"),xs(),As(8,"ul",5),As(9,"li",6),As(10,"a",7),Os(11,"object",8),Ks(12,"Map"),xs(),xs(),As(13,"li",6),As(14,"a",9),Os(15,"object",10),Ks(16,"Waters"),xs(),xs(),As(17,"li",11),Ks(18,"My GNUBoat"),xs(),As(19,"li",6),As(20,"a",12),Os(21,"object",13),Ks(22,"Logfiles"),xs(),xs(),As(23,"li",6),As(24,"a",14),Os(25,"object",10),Ks(26,"Waters"),xs(),xs(),As(27,"li",6),As(28,"a",15),Os(29,"object",16),Ks(30,"Devices"),xs(),xs(),As(31,"li",6),As(32,"a",17),Ks(33,"Api Keys"),xs(),xs(),ks(34,fk,3,0,"li",18),ks(35,hk,3,0,"li",18),xs(),ks(36,dk,2,0,"a",19),xs(),xs(),xs(),As(37,"div",20),Os(38,"router-outlet"),As(39,"div",21),As(40,"div",22),As(41,"div",23),As(42,"p"),As(43,"a",24),Ks(44,"Visit GNUBoat Project"),xs(),xs(),xs(),As(45,"div",23),As(46,"p"),Ks(47,"This software uses several open source componentes"),xs(),xs(),xs(),xs(),xs(),xs()),2&e&&(Ko(34),Es("ngIf",t.currentUser),Ko(1),Es("ngIf",!t.currentUser),Ko(1),Es("ngIf",!t.currentUser))},directives:[Ym,lh,nb],styles:[""]}),vk),yk=((pk=function e(){ye(this,e)}).\u0275mod=an({type:pk,bootstrap:[gk]}),pk.\u0275inj=Et({factory:function(e){return new(e||pk)},providers:[{provide:wv,useClass:Ew,multi:!0},{provide:wv,useClass:Tw,multi:!0},{provide:Db,useValue:"https://gnuboat.engsas.com/mapservice/"}],imports:[[ad,Hp,Rv,Mb,lk]]}),pk);(function(){if(af)throw new Error("Cannot enable prod mode after platform setup.");of=!1})(),id().bootstrapModule(yk).catch(function(e){return console.error(e)})},zhAb:function(e,t,n){var r=n("aagx"),i=n("aCFj"),o=n("w2a5")(!1),a=n("YTvA")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},"zq+C":function(e,t,n){var r=n("N6cJ"),i=n("y3w9"),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var u=s.get(t);return u.delete(n),!!u.size||s.delete(t)}})}},[[0,0]]])}();
