Index: src/mapservice-webclient/dist/webclient/main-es2015.5c74c916cf4bc39d4091.js
===================================================================
--- src/mapservice-webclient/dist/webclient/main-es2015.5c74c916cf4bc39d4091.js	(revision fd76434bf5392cbf8d6b2aa84f2d1aa47b75a0b8)
+++ src/mapservice-webclient/dist/webclient/main-es2015.5c74c916cf4bc39d4091.js	(revision fd76434bf5392cbf8d6b2aa84f2d1aa47b75a0b8)
@@ -0,0 +1,1 @@
+(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"),s=n("OP3Y"),i=n("aagx"),o=n("XKFU"),a=n("0/R4"),l=n("y3w9");o(o.S,"Reflect",{get:function e(t,n){var o,u,c=arguments.length<3?t:arguments[2];return l(t)===c?t[n]:(o=r.f(t,n))?i(o,"value")?o.value:void 0!==o.get?o.get.call(c):void 0:a(u=s(t))?e(u,n,c):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 s in t)r(e,s,t[s],n);return e}},"3xty":function(e,t,n){var r=n("XKFU"),s=n("2OiF"),i=n("y3w9"),o=(n("dyZX").Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n("eeVq")(function(){o(function(){})}),"Reflect",{apply:function(e,t,n){var r=s(e),l=i(n);return o?o(r,t,l):a.call(r,t,l)}})},"45Tv":function(e,t,n){var r=n("N6cJ"),s=n("y3w9"),i=n("OP3Y"),o=r.has,a=r.get,l=r.key,u=function(e,t,n){if(o(e,t,n))return a(e,t,n);var r=i(t);return null!==r?u(e,r,n):void 0};r.exp({getMetadata:function(e,t){return u(e,s(t),arguments.length<3?void 0:l(arguments[2]))}})},"49D4":function(e,t,n){var r=n("N6cJ"),s=n("y3w9"),i=r.key,o=r.set;r.exp({defineMetadata:function(e,t,n,r){o(e,t,s(n),i(r))}})},"4LiD":function(e,t,n){"use strict";var r=n("dyZX"),s=n("XKFU"),i=n("KroJ"),o=n("3Lyj"),a=n("Z6vF"),l=n("SlkY"),u=n("9gX7"),c=n("0/R4"),h=n("eeVq"),d=n("XMVh"),p=n("fyDq"),f=n("Xbzi");e.exports=function(e,t,n,g,m,y){var v=r[e],b=v,w=m?"set":"add",_=b&&b.prototype,C={},S=function(e){var t=_[e];i(_,e,"delete"==e||"has"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!c(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&&!h(function(){(new b).entries().next()}))){var E=new b,k=E[w](y?{}:-0,1)!=E,x=h(function(){E.has(1)}),T=d(function(e){new b(e)}),A=!y&&h(function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)});T||((b=t(function(t,n){u(t,b,e);var r=f(new v,t,b);return null!=n&&l(n,m,r[w],r),r})).prototype=_,_.constructor=b),(x||A)&&(S("delete"),S("has"),m&&S("get")),(A||k)&&S(w),y&&_.clear&&delete _.clear}else b=g.getConstructor(t,e,m,w),o(b.prototype,n),a.NEED=!0;return p(b,e),C[e]=b,s(s.G+s.W+s.F*(b!=v),C),y||g.setStrong(b,e,m),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]",s="[object Boolean]",i="[object Date]",o="[object Function]",a="[object GeneratorFunction]",l="[object Map]",u="[object Number]",c="[object Object]",h="[object RegExp]",d="[object Set]",p="[object String]",f="[object Symbol]",g="[object WeakMap]",m="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",C="[object Uint8Array]",S="[object Uint16Array]",E="[object Uint32Array]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,T=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/\\(\\)?/g,I=/\w*$/,P=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,j={};j[y]=j[v]=j[b]=j[w]=j[_]=j[C]=j["[object Uint8ClampedArray]"]=j[S]=j[E]=!0,j[n]=j[r]=j["[object ArrayBuffer]"]=j[s]=j[m]=j[i]=j["[object Error]"]=j[o]=j[l]=j[u]=j[c]=j[h]=j[d]=j[p]=j[g]=!1;var D={};D[n]=D[r]=D["[object ArrayBuffer]"]=D[m]=D[s]=D[i]=D[y]=D[v]=D[b]=D[w]=D[_]=D[l]=D[u]=D[c]=D[h]=D[d]=D[p]=D[f]=D[C]=D["[object Uint8ClampedArray]"]=D[S]=D[E]=!0,D["[object Error]"]=D[o]=D[g]=!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){}}(),$=z&&z.isTypedArray;function q(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function G(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 W(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}function Z(e,t,n,r){var s=-1,i=e?e.length:0;for(r&&i&&(n=e[++s]);++s<i;)n=t(n,e[s],s,e);return n}function K(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,se=V["__core-js_shared__"],ie=(ee=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",oe=ne.toString,ae=re.hasOwnProperty,le=oe.call(Object),ue=re.toString,ce=RegExp("^"+oe.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),he=M?V.Buffer:void 0,de=V.Symbol,pe=V.Uint8Array,fe=Q(Object.getPrototypeOf,Object),ge=Object.create,me=re.propertyIsEnumerable,ye=te.splice,ve=Object.getOwnPropertySymbols,be=he?he.isBuffer:void 0,we=Q(Object.keys,Object),_e=Math.max,Ce=ct(V,"DataView"),Se=ct(V,"Map"),Ee=ct(V,"Promise"),ke=ct(V,"Set"),xe=ct(V,"WeakMap"),Te=ct(Object,"create"),Ae=!me.call({valueOf:1},"valueOf"),Oe=wt(Ce),Ie=wt(Se),Pe=wt(Ee),Re=wt(ke),je=wt(xe),De=de?de.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 $e(e,t){var n=kt(e)||Et(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,s=!!r;for(var i in e)!t&&!ae.call(e,i)||s&&("length"==i||pt(i,r))||n.push(i);return n}function qe(e,t,n){(void 0!==n&&!St(e[t],n)||"number"==typeof t&&void 0===n&&!(t in e))&&(e[t]=n)}function Be(e,t,n){var r=e[t];ae.call(e,t)&&St(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ge(e,t){for(var n=e.length;n--;)if(St(e[n][0],t))return n;return-1}function We(e,t,r,g,k,x,T){var A;if(g&&(A=x?g(e,k,x,T):g(e)),void 0!==A)return A;if(!Pt(e))return e;var O=kt(e);if(O){if(A=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&ae.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return it(e,A)}else{var P=dt(e),R=P==o||P==a;if(At(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==c||P==n||R&&!x){if(X(e))return x?e:{};if(A=function(e){return"function"!=typeof e.constructor||gt(e)?{}:Pt(t=fe(e))?ge(t):{};var t}(R?{}:e),!t)return function(e,t){return ot(e,ht(e),t)}(e,function(e,t){return e&&ot(t,Ht(t),e)}(A,e))}else{if(!D[P])return x?e:{};A=function(e,t,n,r){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return st(e);case s:case i:return new o(+e);case m:return function(e,t){var n=t?st(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case y:case v:case b:case w:case _:case C:case"[object Uint8ClampedArray]":case S:case E:return function(e,t){var n=t?st(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return Z(t?n(Y(e),!0):Y(e),q,new e.constructor)}(e,r,n);case u:case p:return new o(e);case h:return function(e){var t=new e.constructor(e.source,I.exec(e));return t.lastIndex=e.lastIndex,t}(e);case d:return function(e,t,n){return Z(t?n(J(e),!0):J(e),B,new e.constructor)}(e,r,n);case f:return Ne?Object(Ne.call(e)):{}}}(e,P,We,t)}}T||(T=new ze);var j=T.get(e);if(j)return j;if(T.set(e,A),!O)var N=r?function(e){return function(e,t,n){var r=t(e);return kt(e)?r:function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}(r,n(e))}(e,Ht,ht)}(e):Ht(e);return W(N||e,function(n,s){N&&(n=e[s=n]),Be(A,s,We(n,t,r,g,s,e,T))}),A}Fe.prototype.clear=function(){this.__data__=Te?Te(null):{}},Fe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Fe.prototype.get=function(e){var t=this.__data__;if(Te){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ae.call(t,e)?t[e]:void 0},Fe.prototype.has=function(e){var t=this.__data__;return Te?void 0!==t[e]:ae.call(t,e)},Fe.prototype.set=function(e,t){return this.__data__[e]=Te&&void 0===t?"__lodash_hash_undefined__":t,this},Ue.prototype.clear=function(){this.__data__=[]},Ue.prototype.delete=function(e){var t=this.__data__,n=Ge(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=Ge(t,e);return n<0?void 0:t[n][1]},Ue.prototype.has=function(e){return Ge(this.__data__,e)>-1},Ue.prototype.set=function(e,t){var n=this.__data__,r=Ge(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(Se||Ue),string:new Fe}},Me.prototype.delete=function(e){return ut(this,e).delete(e)},Me.prototype.get=function(e){return ut(this,e).get(e)},Me.prototype.has=function(e){return ut(this,e).has(e)},Me.prototype.set=function(e,t){return ut(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(!Se||r.length<199)return r.push([e,t]),this;n=this.__data__=new Me(r)}return n.set(e,t),this};var Ze,Ke=(Ze=function(e,t){return e&&Xe(e,t,Ht)},function(e,t){if(null==e)return e;if(!xt(e))return Ze(e,t);for(var n=e.length,r=-1,s=Object(e);++r<n&&!1!==t(s[r],r,s););return e}),Xe=function(e,t,n){for(var r=-1,s=Object(e),i=n(e),o=i.length;o--;){var a=i[++r];if(!1===t(s[a],a,s))break}return e};function Ye(e,t){for(var n=0,r=(t=ft(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,o,a,g){return e===t||(null==e||null==t||!Pt(e)&&!Rt(t)?e!=e&&t!=t:function(e,t,o,a,g,y){var v=kt(e),b=kt(t),w=r,_=r;v||(w=(w=dt(e))==n?c:w),b||(_=(_=dt(t))==n?c:_);var C=w==c&&!X(e),S=_==c&&!X(t),E=w==_;if(E&&!C)return y||(y=new ze),v||Lt(e)?at(e,t,o,a,g,y):function(e,t,n,r,o,a,c){switch(n){case m: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 pe(e),new pe(t)));case s:case i:case u:return St(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case h:case p:return e==t+"";case l:var g=Y;case d:if(g||(g=J),e.size!=t.size&&!(2&a))return!1;var y=c.get(e);if(y)return y==t;a|=1,c.set(e,t);var v=at(g(e),g(t),r,o,a,c);return c.delete(e),v;case f:if(Ne)return Ne.call(e)==Ne.call(t)}return!1}(e,t,w,o,a,g,y);if(!(2&g)){var k=C&&ae.call(e,"__wrapped__"),x=S&&ae.call(t,"__wrapped__");if(k||x){var T=k?e.value():e,A=x?t.value():t;return y||(y=new ze),o(T,A,a,g,y)}}return!!E&&(y||(y=new ze),function(e,t,n,r,s,i){var o=2&s,a=Ht(e),l=a.length;if(l!=Ht(t).length&&!o)return!1;for(var u=l;u--;){var c=a[u];if(!(o?c in t:ae.call(t,c)))return!1}var h=i.get(e);if(h&&i.get(t))return h==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=o;++u<l;){var f=e[c=a[u]],g=t[c];if(r)var m=o?r(g,f,c,t,e,i):r(f,g,c,e,t,i);if(!(void 0===m?f===g||n(f,g,r,s,i):m)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,o,a,g,y))}(e,t,Je,o,a,g))}function et(e){return"function"==typeof e?e:null==e?qt:"object"==typeof e?kt(e)?(s=e[1],ft(r=e[0])&&mt(s)?yt(bt(r),s):function(e){var t=Ut(e,r);return void 0===t&&t===s?Mt(e,r):Je(s,t,void 0,3)}):1==(n=function(e){for(var t=Ht(e),n=t.length;n--;){var r=t[n],s=e[r];t[n]=[r,s,mt(s)]}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 s=n.length,i=s;if(null==e)return!i;for(e=Object(e);s--;){var o=n[s];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++s<i;){var a=(o=n[s])[0],l=e[a];if(o[2]){if(void 0===l&&!(a in e))return!1}else if(!Je(o[1],l,void 0,3,new ze))return!1}return!0}(e,0,n)}:Gt(e);var t,n,r,s}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=gt(e),n=[];for(var r in e)("constructor"!=r||!t&&ae.call(e,r))&&n.push(r);return n}function nt(e,t,n,r,s){if(e!==t){if(!kt(t)&&!Lt(t))var i=tt(t);W(i||t,function(o,a){if(i&&(o=t[a=o]),Pt(o))s||(s=new ze),function(e,t,n,r,s,i,o){var a=e[n],l=t[n],u=o.get(l);if(u)qe(e,n,u);else{var c=i?i(a,l,n+"",e,t,o):void 0,h=void 0===c;h&&(c=l,kt(l)||Lt(l)?kt(a)?c=a:Tt(a)?c=it(a):(h=!1,c=We(l,!0)):jt(l)||Et(l)?Et(a)?c=Vt(a):!Pt(a)||r&&Ot(a)?(h=!1,c=We(l,!0)):c=a:h=!1),h&&(o.set(l,c),s(c,l,r,i,o),o.delete(l)),qe(e,n,c)}}(e,t,a,n,nt,r,s);else{var l=r?r(e[a],o,a+"",e,t,s):void 0;void 0===l&&(l=o),qe(e,a,l)}})}}function rt(e){return kt(e)?e:vt(e)}function st(e){var t=new e.constructor(e.byteLength);return new pe(t).set(new pe(e)),t}function it(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function ot(e,t,n,r){n||(n={});for(var s=-1,i=t.length;++s<i;){var o=t[s],a=r?r(n[o],e[o],o,n,e):void 0;Be(n,o,void 0===a?e[o]:a)}return n}function at(e,t,n,r,s,i){var o=2&s,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var u=i.get(e);if(u&&i.get(t))return u==t;var c=-1,h=!0,d=1&s?new He:void 0;for(i.set(e,t),i.set(t,e);++c<a;){var p=e[c],f=t[c];if(r)var g=o?r(f,p,c,t,e,i):r(p,f,c,e,t,i);if(void 0!==g){if(g)continue;h=!1;break}if(d){if(!K(t,function(e,t){if(!d.has(t)&&(p===e||n(p,e,r,s,i)))return d.add(t)})){h=!1;break}}else if(p!==f&&!n(p,f,r,s,i)){h=!1;break}}return i.delete(e),i.delete(t),h}function lt(){var e=Ve.iteratee||Bt;return e=e===Bt?et:e,arguments.length?e(arguments[0],arguments[1]):e}function ut(e,t){var n,r,s=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?s["string"==typeof t?"string":"hash"]:s.map}function ct(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Pt(e)||(t=e,ie&&ie in t))&&(Ot(e)||X(e)?ce:P).test(wt(e));var t}(n)?n:void 0}var ht=ve?Q(ve,Object):Wt,dt=function(e){return ue.call(e)};function pt(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||R.test(e))&&e>-1&&e%1==0&&e<t}function ft(e,t){if(kt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Dt(e))||x.test(e)||!k.test(e)||null!=t&&e in Object(t)}function gt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||re)}function mt(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))}}(Ce&&dt(new Ce(new ArrayBuffer(1)))!=m||Se&&dt(new Se)!=l||Ee&&"[object Promise]"!=dt(Ee.resolve())||ke&&dt(new ke)!=d||xe&&dt(new xe)!=g)&&(dt=function(e){var t=ue.call(e),n=t==c?e.constructor:void 0,r=n?wt(n):void 0;if(r)switch(r){case Oe:return m;case Ie:return l;case Pe:return"[object Promise]";case Re:return d;case je:return g}return t});var vt=Ct(function(e){e=Ft(e);var t=[];return T.test(e)&&t.push(""),e.replace(A,function(e,n,r,s){t.push(r?s.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 oe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function _t(e,t){return(kt(e)?W:Ke)(e,lt(t,3))}function Ct(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o),o};return n.cache=new(Ct.Cache||Me),n}function St(e,t){return e===t||e!=e&&t!=t}function Et(e){return Tt(e)&&ae.call(e,"callee")&&(!me.call(e,"callee")||ue.call(e)==n)}Ct.Cache=Me;var kt=Array.isArray;function xt(e){return null!=e&&It(e.length)&&!Ot(e)}function Tt(e){return Rt(e)&&xt(e)}var At=be||Zt;function Ot(e){var t=Pt(e)?ue.call(e):"";return t==o||t==a}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 Rt(e){return!!e&&"object"==typeof e}function jt(e){if(!Rt(e)||ue.call(e)!=c||X(e))return!1;var t=fe(e);if(null===t)return!0;var n=ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&oe.call(n)==le}function Dt(e){return"symbol"==typeof e||Rt(e)&&ue.call(e)==f}var Nt,Lt=$?(Nt=$,function(e){return Nt(e)}):function(e){return Rt(e)&&It(e.length)&&!!j[ue.call(e)]};function Vt(e){return ot(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,s=-1,i=(t=ft(t,e)?[t]:rt(t)).length;++s<i;){var o=bt(t[s]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||!!(i=e?e.length:0)&&It(i)&&pt(o,i)&&(kt(e)||Et(e))}(e,t,Qe)}function Ht(e){return xt(e)?$e(e):function(e){if(!gt(e))return we(e);var t=[];for(var n in Object(e))ae.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}function zt(e){return xt(e)?$e(e,!0):tt(e)}var $t=function(e){return t=function(t,n){var r=-1,s=n.length,i=s>1?n[s-1]:void 0,o=s>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(s--,i):void 0,o&&function(e,t,n){if(!Pt(n))return!1;var r=typeof t;return!!("number"==r?xt(n)&&pt(t,n.length):"string"==r&&t in n)&&St(n[t],e)}(n[0],n[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++r<s;){var a=n[r];a&&e(t,a,r)}return t},n=_e(void 0===n?t.length-1:n,0),function(){for(var e=arguments,r=-1,s=_e(e.length-n,0),i=Array(s);++r<s;)i[r]=e[n+r];r=-1;for(var o=Array(n+1);++r<n;)o[r]=e[r];return o[n]=i,G(t,this,o)};var t,n}(function(e,t,n){nt(e,t,n)});function qt(e){return e}function Bt(e){return et("function"==typeof e?e:We(e,!0))}function Gt(e){return ft(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 Wt(){return[]}function Zt(){return!1}Ve.compact=function(e){for(var t=-1,n=e?e.length:0,r=0,s=[];++t<n;){var i=e[t];i&&(s[r++]=i)}return s},Ve.iteratee=Bt,Ve.keys=Ht,Ve.keysIn=zt,Ve.memoize=Ct,Ve.merge=$t,Ve.property=Gt,Ve.toPlainObject=Vt,Ve.clone=function(e){return We(e,!1,!0)},Ve.eq=St,Ve.forEach=_t,Ve.get=Ut,Ve.hasIn=Mt,Ve.identity=qt,Ve.isArguments=Et,Ve.isArray=kt,Ve.isArrayLike=xt,Ve.isArrayLikeObject=Tt,Ve.isBuffer=At,Ve.isEmpty=function(e){if(xt(e)&&(kt(e)||"string"==typeof e||"function"==typeof e.splice||At(e)||Et(e)))return!e.length;var t=dt(e);if(t==l||t==d)return!e.size;if(Ae||gt(e))return!we(e).length;for(var n in e)if(ae.call(e,n))return!1;return!0},Ve.isFunction=Ot,Ve.isLength=It,Ve.isObject=Pt,Ve.isObjectLike=Rt,Ve.isPlainObject=jt,Ve.isSymbol=Dt,Ve.isTypedArray=Lt,Ve.stubArray=Wt,Ve.stubFalse=Zt,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"),s=n("XKFU"),i=n("y3w9");s(s.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},"6FMO":function(e,t,n){var r=n("0/R4"),s=n("EWmC"),i=n("K0xU")("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},"7Dlh":function(e,t,n){var r=n("N6cJ"),s=n("y3w9"),i=r.has,o=r.key;r.exp({hasOwnMetadata:function(e,t){return i(e,s(t),arguments.length<3?void 0:o(arguments[2]))}})},"8MEG":function(e,t,n){"use strict";var r=n("2OiF"),s=n("0/R4"),i=n("MfQN"),o=[].slice,a={},l=function(e,t,n){if(!(t in a)){for(var r=[],s=0;s<t;s++)r[s]="a["+s+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?l(t,r.length,r):i(t,r,e)};return s(t.prototype)&&(a.prototype=t.prototype),a}},"9AAn":function(e,t,n){"use strict";var r=n("wmvG"),s=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(s(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(s(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"),s=n("XKFU"),i=n("KroJ"),o=n("Mukb"),a=n("hPIQ"),l=n("QaDb"),u=n("fyDq"),c=n("OP3Y"),h=n("K0xU")("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,f,g,m,y){l(n,t,f);var v,b,w,_=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",S="values"==g,E=!1,k=e.prototype,x=k[h]||k["@@iterator"]||g&&k[g],T=x||_(g),A=g?S?_("entries"):T:void 0,O="Array"==t&&k.entries||x;if(O&&(w=c(O.call(new e)))!==Object.prototype&&w.next&&(u(w,C,!0),r||"function"==typeof w[h]||o(w,h,p)),S&&x&&"values"!==x.name&&(E=!0,T=function(){return x.call(this)}),r&&!y||!d&&!E&&k[h]||o(k,h,T),a[t]=T,a[C]=p,g)if(v={values:S?T:_("values"),keys:m?T:_("keys"),entries:A},y)for(b in v)b in k||i(k,b,v[b]);else s(s.P+s.F*(d||E),t,v);return v}},Aib3:function(e,t,n){var r=n("mhV4");function s(e,t){return function(n){return e(n,t)}}function i(e,t){e[0]=o(e[0],t=!!t);for(var n=1;n<e.length;n++)e[n]=o(e[n],!t);return e}function o(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(s(e,n)),t;case"GeometryCollection":return t.geometries=t.geometries.map(s(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=i(e.coordinates,t):"MultiPolygon"===e.type&&(e.coordinates=e.coordinates.map(s(i,t))),e}(t,n);default:return t}}},BqfV:function(e,t,n){var r=n("N6cJ"),s=n("y3w9"),i=r.get,o=r.key;r.exp({getOwnMetadata:function(e,t){return i(e,s(t),arguments.length<3?void 0:o(arguments[2]))}})},CkkT:function(e,t,n){var r=n("m0Pp"),s=n("Ymqv"),i=n("S/j/"),o=n("ne8i"),a=n("zRwo");e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,h=6==e,d=5==e||h,p=t||a;return function(t,a,f){for(var g,m,y=i(t),v=s(y),b=r(a,f,3),w=o(v.length),_=0,C=n?p(t,w):l?p(t,0):void 0;w>_;_++)if((d||_ in v)&&(m=b(g=v[_],_,y),e))if(n)C[_]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:C.push(g)}else if(c)return!1;return h?-1:u||c?c:C}}},DVgA:function(e,t,n){var r=n("zhAb"),s=n("4R4u");e.exports=Object.keys||function(e){return r(e,s)}},E6f0:function(e,t,n){var r,s=n("4xY4"),i=n("Aib3"),o={};function a(e,t){return(e.version||t.version)&&e.version!==t.version?(+e.version||0)>(+t.version||0)?e:t:s.merge(e,t)}function l(e){for(var t,n,r,s,i,o,a=function(e){return e[0]},l=function(e){return e[e.length-1]},u=function(e,t){return void 0!==e&&void 0!==t&&e.id===t.id},c=[];e.length;)for(t=e.pop().nodes.slice(),c.push(t);e.length&&!u(a(t),l(t));){for(n=a(t),r=l(t),s=0;s<e.length;s++){if(u(r,a(o=e[s].nodes))){i=t.push,o=o.slice(1);break}if(u(r,l(o))){i=t.push,o=o.slice(0,-1).reverse();break}if(u(n,l(o))){i=t.unshift,o=o.slice(0,-1);break}if(u(n,a(o))){i=t.unshift,o=o.slice(1).reverse();break}o=i=null}if(!o)break;e.splice(s,1),i.apply(t,o)}return c}n("JxlR").forEach(function(e){if("all"===e.polygon)o[e.key]=!0;else{var t="whitelist"===e.polygon?"included_values":"excluded_values",n={};e.values.forEach(function(e){n[e]=!0}),o[e.key]={},o[e.key][t]=n}}),(r=function(e,t,n){return t=s.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:o,deduplicator:a},t),"undefined"!=typeof XMLDocument&&e instanceof XMLDocument||"undefined"==typeof XMLDocument&&e.childNodes?function(e){var t,n,i=new Array,o=new Array,a=new Array;function l(e,t,n){e.hasAttribute(n)&&(t[n]=e.getAttribute(n))}function u(e,t){var n=s.clone(e);l(t,n,"lat"),l(t,n,"lon"),n.__is_center_placeholder=!0,i.push(n)}function c(e,t){var n=s.clone(e);function r(e,t,r){var s={type:"node",id:"_"+n.type+"/"+n.id+"bounds"+r,lat:e,lon:t};n.nodes.push(s.id),i.push(s)}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,o.push(n)}return s.each(e.getElementsByTagName("node"),function(e,t){var n={};s.each(e.getElementsByTagName("tag"),function(e){n[e.getAttribute("k")]=e.getAttribute("v")});var r={type:"node"};l(e,r,"id"),l(e,r,"lat"),l(e,r,"lon"),l(e,r,"version"),l(e,r,"timestamp"),l(e,r,"changeset"),l(e,r,"uid"),l(e,r,"user"),s.isEmpty(n)||(r.tags=n),i.push(r)}),s.each(e.getElementsByTagName("way"),function(e,r){var a={},h=[];s.each(e.getElementsByTagName("tag"),function(e){a[e.getAttribute("k")]=e.getAttribute("v")});var d=!1;s.each(e.getElementsByTagName("nd"),function(e,t){var n;(n=e.getAttribute("ref"))&&(h[t]=n),!d&&e.getAttribute("lat")&&(d=!0)});var p={type:"way"};l(e,p,"id"),l(e,p,"version"),l(e,p,"timestamp"),l(e,p,"changeset"),l(e,p,"uid"),l(e,p,"user"),h.length>0&&(p.nodes=h),s.isEmpty(a)||(p.tags=a),(t=e.getElementsByTagName("center")[0])&&u(p,t),d?function(e,t){s.isArray(e.nodes)||(e.nodes=[],s.each(t,function(t,n){e.nodes.push("_anonymous@"+t.getAttribute("lat")+"/"+t.getAttribute("lon"))})),s.each(t,function(t,n){var r,s;t.getAttribute("lat")&&(r=t.getAttribute("lat"),s=t.getAttribute("lon"),i.push({type:"node",id:e.nodes[n],lat:r,lon:s}))})}(p,e.getElementsByTagName("nd")):(n=e.getElementsByTagName("bounds")[0])&&c(p,n),o.push(p)}),s.each(e.getElementsByTagName("relation"),function(e,r){var h={},d=[];s.each(e.getElementsByTagName("tag"),function(e){h[e.getAttribute("k")]=e.getAttribute("v")});var p=!1;s.each(e.getElementsByTagName("member"),function(e,t){d[t]={},l(e,d[t],"ref"),l(e,d[t],"role"),l(e,d[t],"type"),(!p&&"node"==d[t].type&&e.getAttribute("lat")||"way"==d[t].type&&e.getElementsByTagName("nd").length>0)&&(p=!0)});var f={type:"relation"};l(e,f,"id"),l(e,f,"version"),l(e,f,"timestamp"),l(e,f,"changeset"),l(e,f,"uid"),l(e,f,"user"),d.length>0&&(f.members=d),s.isEmpty(h)||(f.tags=h),(t=e.getElementsByTagName("center")[0])&&u(f,t),p?function(e,t){s.each(t,function(t,n){var r,a;"node"==e.members[n].type?t.getAttribute("lat")&&(r=t.getAttribute("lat"),a=t.getAttribute("lon"),i.push({type:"node",id:e.members[n].ref,lat:r,lon:a})):"way"==e.members[n].type&&t.getElementsByTagName("nd").length>0&&(e.members[n].ref="_fullGeom"+e.members[n].ref,function(e,t){if(!o.some(function(e){return"way"==e.type&&e.id==t})){var n={type:"way",id:t,nodes:[]};s.each(e,function(e){var t,r,s;e.getAttribute("lat")?(t=e.getAttribute("lat"),r=e.getAttribute("lon"),n.nodes.push((s={type:"node",id:"_anonymous@"+t+"/"+r,lat:t,lon:r}).id),i.push(s)):n.nodes.push(void 0)}),o.push(n)}}(t.getElementsByTagName("nd"),e.members[n].ref))})}(f,e.getElementsByTagName("member")):(n=e.getElementsByTagName("bounds")[0])&&c(f,n),a.push(f)}),r(i,o,a)}(e):function(e){var t=new Array,n=new Array,i=new Array;function o(e){var n=s.clone(e);n.lat=e.center.lat,n.lon=e.center.lon,n.__is_center_placeholder=!0,t.push(n)}function a(e){var r=s.clone(e);function i(e,n,s){var i={type:"node",id:"_"+r.type+"/"+r.id+"bounds"+s,lat:e,lon:n};r.nodes.push(i.id),t.push(i)}r.nodes=[],i(r.bounds.minlat,r.bounds.minlon,1),i(r.bounds.maxlat,r.bounds.minlon,2),i(r.bounds.maxlat,r.bounds.maxlon,3),i(r.bounds.minlat,r.bounds.maxlon,4),r.nodes.push(r.nodes[0]),r.__is_bounds_placeholder=!0,n.push(r)}function l(e){s.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 u(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 s={type:"way",id:r,nodes:[]};e.forEach(function(e){var n,r,i;e?(s.nodes.push((i={type:"node",id:"_anonymous@"+(n=e.lat)+"/"+(r=e.lon),lat:n,lon:r}).id),t.push(i)):s.nodes.push(void 0)}),n.push(s)}}(e.geometry,e.ref))})}for(var c=0;c<e.elements.length;c++)switch(e.elements[c].type){case"node":t.push(e.elements[c]);break;case"way":var h=s.clone(e.elements[c]);h.nodes=s.clone(h.nodes),n.push(h),h.center&&o(h),h.geometry?l(h):h.bounds&&a(h);break;case"relation":var d=s.clone(e.elements[c]);d.members=s.clone(d.members),i.push(d);var p=d.members&&d.members.some(function(e){return"node"==e.type&&e.lat||"way"==e.type&&e.geometry&&e.geometry.length>0});d.center&&o(d),p?u(d):d.bounds&&a(d)}return r(t,n,i)}(e);function r(e,r,o){function a(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 c(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 h=new Object,d=new Object,p=0;p<e.length;p++)void 0!==h[(w=e[p]).id]&&(w=t.deduplicator(w,h[w.id])),h[w.id]=w,void 0!==w.tags&&a(w.tags)&&(d[w.id]=!0);for(p=0;p<o.length;p++)if(s.isArray(o[p].members))for(var f=0;f<o[p].members.length;f++)"node"==o[p].members[f].type&&(d[o[p].members[f].ref]=!0);var g=new Object,m=new Object;for(p=0;p<r.length;p++){var y=r[p];if(g[y.id]&&(y=t.deduplicator(y,g[y.id])),g[y.id]=y,s.isArray(y.nodes))for(f=0;f<y.nodes.length;f++)"object"!=typeof y.nodes[f]&&(m[y.nodes[f]]=!0,y.nodes[f]=h[y.nodes[f]])}var v=new Array;for(var b in h){var w=h[b];m[b]&&!d[b]||v.push(w)}var _=new Array;for(p=0;p<o.length;p++)_[(E=o[p]).id]&&(E=t.deduplicator(E,_[E.id])),_[E.id]=E;var C,S={node:{},way:{},relation:{}};for(var b in _){var E;if(s.isArray((E=_[b]).members))for(f=0;f<E.members.length;f++){var k=E.members[f].type,x=E.members[f].ref;"number"!=typeof x&&(x=x.replace("_fullGeom","")),S[k]?(void 0===S[k][x]&&(S[k][x]=[]),S[k][x].push({role:E.members[f].role,rel:E.id,reltags:E.tags})):t.verbose&&console.warn("Relation",E.type+"/"+E.id,"member",k+"/"+x,"ignored because it has an invalid type")}else t.verbose&&console.warn("Relation",E.type+"/"+E.id,"ignored because it has no members")}var T=[];for(p=0;p<v.length;p++)if(void 0!==v[p].lon&&void 0!==v[p].lat){var A={type:"Feature",id:v[p].type+"/"+v[p].id,properties:{type:v[p].type,id:v[p].id,tags:v[p].tags||{},relations:S.node[v[p].id]||[],meta:c(v[p])},geometry:{type:"Point",coordinates:[+v[p].lon,+v[p].lat]}};v[p].__is_center_placeholder&&(A.properties.geometry="center"),n?n(A):T.push(A)}else t.verbose&&console.warn("POI",v[p].type+"/"+v[p].id,"ignored because it lacks coordinates");var O=[],I=[];for(p=0;p<o.length;p++)if(_[o[p].id]===o[p]){if(void 0!==o[p].tags&&("route"==o[p].tags.type||"waterway"==o[p].tags.type)){if(!s.isArray(o[p].members)){t.verbose&&console.warn("Route",o[p].type+"/"+o[p].id,"ignored because it has no members");continue}if(o[p].members.forEach(function(e){g[e.ref]&&!a(g[e.ref].tags)&&(g[e.ref].is_skippablerelationmember=!0)}),!1===(A=P(o[p]))){t.verbose&&console.warn("Route relation",o[p].type+"/"+o[p].id,"ignored because it has invalid geometry");continue}function P(e){var n,r,i,o=!1;if(n=(n=e.members.filter(function(e){return"way"===e.type})).map(function(n){var r=g[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(o=!0)):{id:n.ref,role:n.role,way:r,nodes:r.nodes.filter(function(r){return void 0!==r||(o=!0,t.verbose&&console.warn("Route",e.type+"/"+e.id,"tainted by a way",n.type+"/"+n.ref,"with a missing node"),!1)})}}),r=l(n=s.compact(n)),0==(i=s.compact(r.map(function(e){return s.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 a={type:"Feature",id:e.type+"/"+e.id,properties:{type:e.type,id:e.id,tags:e.tags||{},relations:S[e.type][e.id]||[],meta:c(e)},geometry:{type:1===i.length?"LineString":"MultiLineString",coordinates:1===i.length?i[0]:i}};return o&&(t.verbose&&console.warn("Route",e.type+"/"+e.id,"is tainted"),a.properties.tainted=!0),a}n?n(i(A)):I.push(A)}if(void 0!==o[p].tags&&("multipolygon"==o[p].tags.type||"boundary"==o[p].tags.type)){if(!s.isArray(o[p].members)){t.verbose&&console.warn("Multipolygon",o[p].type+"/"+o[p].id,"ignored because it has no members");continue}var R=0;for(f=0;f<o[p].members.length;f++)"outer"==o[p].members[f].role?R++:t.verbose&&"inner"!=o[p].members[f].role&&console.warn("Multipolygon",o[p].type+"/"+o[p].id,"member",o[p].members[f].type+"/"+o[p].members[f].ref,'ignored because it has an invalid role: "'+o[p].members[f].role+'"');if(o[p].members.forEach(function(e){g[e.ref]&&("outer"!==e.role||a(g[e.ref].tags,o[p].tags)||(g[e.ref].is_skippablerelationmember=!0),"inner"!==e.role||a(g[e.ref].tags)||(g[e.ref].is_skippablerelationmember=!0))}),0==R){t.verbose&&console.warn("Multipolygon relation",o[p].type+"/"+o[p].id,"ignored because it has no outer ways");continue}var j=!1;if(1!=R||a(o[p].tags,{type:!0})||(j=!0),A=null,j){var D=o[p].members.filter(function(e){return"outer"===e.role})[0];if(void 0===(D=g[D.ref])){t.verbose&&console.warn("Multipolygon relation",o[p].type+"/"+o[p].id,"ignored because outer way",D.type+"/"+D.ref,"is missing");continue}D.is_skippablerelationmember=!0,A=N(D,o[p])}else A=N(o[p],o[p]);if(!1===A){t.verbose&&console.warn("Multipolygon relation",o[p].type+"/"+o[p].id,"ignored because it has invalid geometry");continue}function N(e,n){var r,i,o,a,u=!1,h=j?"way":"relation",d="number"==typeof e.id?e.id:+e.id.replace("_fullGeom","");function p(e){var t,n=function(e,t){for(var n=0;n<t.length;n++)if(s(t[n],e))return!0;return!1},r=function(e){return e.map(function(e){return[+e.lat,+e.lon]})},s=function(e,t){for(var n=e[0],r=e[1],s=!1,i=0,o=t.length-1;i<t.length;o=i++){var a=t[i][0],l=t[i][1],u=t[o][1];l>r!=u>r&&n<(t[o][0]-a)*(r-l)/(u-l)+a&&(s=!s)}return s};for(e=r(e),t=0;t<i.length;t++)if(n(r(i[t]),e))return t}r=(r=n.members.filter(function(e){return"way"===e.type})).map(function(e){var n=g[e.ref];return void 0===n||void 0===n.nodes?(t.verbose&&console.warn("Multipolygon",h+"/"+d,"tainted by a missing or incomplete way",e.type+"/"+e.ref),void(u=!0)):{id:e.ref,role:e.role||"outer",way:n,nodes:n.nodes.filter(function(n){return void 0!==n||(u=!0,t.verbose&&console.warn("Multipolygon",h+"/"+d,"tainted by a way",e.type+"/"+e.ref,"with a missing node"),!1)})}}),r=s.compact(r),i=l(r.filter(function(e){return"outer"===e.role})),o=l(r.filter(function(e){return"inner"===e.role})),a=i.map(function(e){return[e]});for(var f=0;f<o.length;f++){var m=p(o[f]);void 0!==m?a[m].push(o[f]):t.verbose&&console.warn("Multipolygon",h+"/"+d,"contains an inner ring with no containing outer")}var y=[];if(0==(y=s.compact(a.map(function(e){var n=s.compact(e.map(function(e){if(!(e.length<4))return s.compact(e.map(function(e){return[+e.lon,+e.lat]}));t.verbose&&console.warn("Multipolygon",h+"/"+d,"contains a ring with less than four nodes")}));if(0!=n.length)return n;t.verbose&&console.warn("Multipolygon",h+"/"+d,"contains an empty ring cluster")}))).length)return t.verbose&&console.warn("Multipolygon",h+"/"+d,"contains no coordinates"),!1;var v="MultiPolygon";1===y.length&&(v="Polygon",y=y[0]);var b={type:"Feature",id:e.type+"/"+d,properties:{type:e.type,id:d,tags:e.tags||{},relations:S[e.type][e.id]||[],meta:c(e)},geometry:{type:v,coordinates:y}};return u&&(t.verbose&&console.warn("Multipolygon",h+"/"+d,"is tainted"),b.properties.tainted=!0),b}n?n(i(A)):I.push(A)}}for(p=0;p<r.length;p++)if(g[r[p].id]===r[p])if(s.isArray(r[p].nodes)){if(!r[p].is_skippablerelationmember){"number"!=typeof r[p].id&&(r[p].id=+r[p].id.replace("_fullGeom","")),r[p].tainted=!1,r[p].hidden=!1;var L=new Array;for(f=0;f<r[p].nodes.length;f++)"object"==typeof r[p].nodes[f]?L.push([+r[p].nodes[f].lon,+r[p].nodes[f].lat]):(t.verbose&&console.warn("Way",r[p].type+"/"+r[p].id,"is tainted by an invalid node"),r[p].tainted=!0);if(L.length<=1)t.verbose&&console.warn("Way",r[p].type+"/"+r[p].id,"ignored because it contains too few nodes");else{var V="LineString";void 0!==r[p].nodes[0]&&void 0!==r[p].nodes[r[p].nodes.length-1]&&r[p].nodes[0].id===r[p].nodes[r[p].nodes.length-1].id&&(void 0!==r[p].tags&&u(r[p].tags)||r[p].__is_bounds_placeholder)&&(V="Polygon",L=[L]),A={type:"Feature",id:r[p].type+"/"+r[p].id,properties:{type:r[p].type,id:r[p].id,tags:r[p].tags||{},relations:S.way[r[p].id]||[],meta:c(r[p])},geometry:{type:V,coordinates:L}},r[p].tainted&&(t.verbose&&console.warn("Way",r[p].type+"/"+r[p].id,"is tainted"),A.properties.tainted=!0),r[p].__is_bounds_placeholder&&(A.properties.geometry="bounds"),n?n(i(A)):"LineString"==V?O.push(A):I.push(A)}}}else t.verbose&&console.warn("Way",r[p].type+"/"+r[p].id,"ignored because it has no nodes");return!!n||((C={type:"FeatureCollection",features:[]}).features=C.features.concat(I),C.features=C.features.concat(O),C.features=C.features.concat(T),t.flatProperties&&C.features.forEach(function(e){e.properties=s.merge(e.properties.meta,e.properties.tags,{id:e.properties.type+"/"+e.properties.id})}),i(C))}function u(e){var n=t.polygonFeatures;if("function"==typeof n)return n(e);if("no"===e.area)return!1;for(var r in e){var s=e[r],i=n[r];if(void 0!==i&&"no"!==s){if(!0===i)return!0;if(i.included_values&&!0===i.included_values[s])return!0;if(i.excluded_values&&!0!==i.excluded_values[s])return!0}}return!1}}).toGeojson=r,e.exports=r},EK0E:function(e,t,n){"use strict";var r,s=n("dyZX"),i=n("CkkT")(0),o=n("KroJ"),a=n("Z6vF"),l=n("czNK"),u=n("ZD67"),c=n("0/R4"),h=n("s5qY"),d=n("s5qY"),p=!s.ActiveXObject&&"ActiveXObject"in s,f=a.getWeak,g=Object.isExtensible,m=u.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(c(e)){var t=f(e);return!0===t?m(h(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(h(this,"WeakMap"),e,t)}},b=e.exports=n("4LiD")("WeakMap",y,v,u,!0,!0);d&&p&&(l((r=u.getConstructor(y,"WeakMap")).prototype,v),a.NEED=!0,i(["delete","has","get","set"],function(e){var t=b.prototype,n=t[e];o(t,e,function(t,s){if(c(t)&&!g(t)){this._f||(this._f=new r);var i=this._f[e](t,s);return"set"==e?this:i}return n.call(this,t,s)})}))},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"),s=n("RjD/"),i=n("aCFj"),o=n("apmT"),a=n("aagx"),l=n("xpql"),u=Object.getOwnPropertyDescriptor;t.f=n("nh4g")?u:function(e,t){if(e=i(e),t=o(t,!0),l)try{return u(e,t)}catch(n){}if(a(e,t))return s(!r.f.call(e,t),e[t])}},FJW5:function(e,t,n){var r=n("hswa"),s=n("y3w9"),i=n("DVgA");e.exports=n("nh4g")?Object.defineProperties:function(e,t){s(e);for(var n,o=i(t),a=o.length,l=0;a>l;)r.f(e,n=o[l++],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,s){try{return s?t(r(n)[0],n[1]):t(n)}catch(o){var i=e.return;throw void 0!==i&&r(i.call(e)),o}}},I5cv:function(e,t,n){var r=n("XKFU"),s=n("Kuth"),i=n("2OiF"),o=n("y3w9"),a=n("0/R4"),l=n("eeVq"),u=n("8MEG"),c=(n("dyZX").Reflect||{}).construct,h=l(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),d=!l(function(){c(function(){})});r(r.S+r.F*(h||d),"Reflect",{construct:function(e,t){i(e),o(t);var n=arguments.length<3?e:i(arguments[2]);if(d&&!h)return c(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(u.apply(e,r))}var l=n.prototype,p=s(a(l)?l:Object.prototype),f=Function.apply.call(e,p,t);return a(f)?f:p}})},"I8a+":function(e,t,n){var r=n("LZWt"),s=n("K0xU")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),s))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},IlFx:function(e,t,n){var r=n("XKFU"),s=n("y3w9"),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return s(e),!i||i(e)}})},Iw71:function(e,t,n){var r=n("0/R4"),s=n("dyZX").document,i=r(s)&&r(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"J+6e":function(e,t,n){var r=n("I8a+"),s=n("K0xU")("iterator"),i=n("hPIQ");e.exports=n("g3g5").getIteratorMethod=function(e){if(null!=e)return e[s]||e["@@iterator"]||i[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"),s=n("ylqs"),i=n("dyZX").Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:s)("Symbol."+e))}).store=r},KroJ:function(e,t,n){var r=n("dyZX"),s=n("Mukb"),i=n("aagx"),o=n("ylqs")("src"),a=n("+lvF"),l=(""+a).split("toString");n("g3g5").inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(i(n,"name")||s(n,"name",t)),e[t]!==n&&(u&&(i(n,o)||s(n,o,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:s(e,t,n):(delete e[t],s(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||a.call(this)})},Kuth:function(e,t,n){var r=n("y3w9"),s=n("FJW5"),i=n("4R4u"),o=n("YTvA")("IE_PROTO"),a=function(){},l=function(){var e,t=n("Iw71")("iframe"),r=i.length;for(t.style.display="none",n("+rLv").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[o]=e):n=l(),void 0===t?n:s(n,t)}},LQAc:function(e,t){e.exports=!1},LTTk:function(e,t,n){var r=n("XKFU"),s=n("OP3Y"),i=n("y3w9");r(r.S,"Reflect",{getPrototypeOf:function(e){return s(i(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"),s=n("K0xU")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[s]===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"),s=n("RjD/");e.exports=n("nh4g")?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},"N/DB":function(e,t){const n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,s="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i="undefined"!=typeof global&&global,o=function(e,...t){if(o.translate){const n=o.translate(e,t);e=n[0],t=n[1]}let n=a(e[0],e.raw[0]);for(let r=1;r<e.length;r++)n+=t[r-1]+a(e[r],e.raw[r]);return n};function a(e,t){return":"===t.charAt(0)?e.substring(function(e,t){for(let 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 "${t}".`)}(e,t)+1):e}(n||i||r||s).$localize=o},N6cJ:function(e,t,n){var r=n("9AAn"),s=n("XKFU"),i=n("VTer")("metadata"),o=i.store||(i.store=new(n("EK0E"))),a=function(e,t,n){var s=o.get(e);if(!s){if(!n)return;o.set(e,s=new r)}var i=s.get(t);if(!i){if(!n)return;s.set(t,i=new r)}return i};e.exports={store:o,map:a,has:function(e,t,n){var r=a(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=a(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){a(n,r,!0).set(e,t)},keys:function(e,t){var n=a(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){s(s.S,"Reflect",e)}}},OP3Y:function(e,t,n){var r=n("aagx"),s=n("S/j/"),i=n("YTvA")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=s(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},Opxb:function(e,t,n){var r=n("N6cJ"),s=n("y3w9"),i=n("2OiF"),o=r.key,a=r.set;r.exp({metadata:function(e,t){return function(n,r){a(e,t,(void 0!==r?s:i)(n),o(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"),s=n("RjD/"),i=n("fyDq"),o={};n("Mukb")(o,n("K0xU")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:s(1,n)}),i(e,t+" Iterator")}},RYi7:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"RjD/":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"S/j/":function(e,t,n){var r=n("vhPU");e.exports=function(e){return Object(r(e))}},SlkY:function(e,t,n){var r=n("m0Pp"),s=n("H6hf"),i=n("M6Qj"),o=n("y3w9"),a=n("ne8i"),l=n("J+6e"),u={},c={};(t=e.exports=function(e,t,n,h,d){var p,f,g,m,y=d?function(){return e}:l(e),v=r(n,h,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(p=a(e.length);p>b;b++)if((m=t?v(o(f=e[b])[0],f[1]):v(e[b]))===u||m===c)return m}else for(g=y.call(e);!(f=g.next()).done;)if((m=s(g,v,f.value,t))===u||m===c)return m}).BREAK=u,t.RETURN=c},T39b:function(e,t,n){"use strict";var r=n("wmvG"),s=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(s(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"),s=n("dyZX"),i=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("LQAc")?"pure":"global",copyright:"\xa9 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"),s=n("g3g5"),i=n("Mukb"),o=n("KroJ"),a=n("m0Pp"),l=function(e,t,n){var u,c,h,d,p=e&l.F,f=e&l.G,g=e&l.P,m=e&l.B,y=f?r:e&l.S?r[t]||(r[t]={}):(r[t]||{}).prototype,v=f?s:s[t]||(s[t]={}),b=v.prototype||(v.prototype={});for(u in f&&(n=t),n)h=((c=!p&&y&&void 0!==y[u])?y:n)[u],d=m&&c?a(h,r):g&&"function"==typeof h?a(Function.call,h):h,y&&o(y,u,h,e&l.U),v[u]!=h&&i(v,u,d),g&&b[u]!=h&&(b[u]=h)};r.core=s,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},XMVh:function(e,t,n){var r=n("K0xU")("iterator"),s=!1;try{var i=[7][r]();i.return=function(){s=!0},Array.from(i,function(){throw 2})}catch(o){}e.exports=function(e,t){if(!t&&!s)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(o){}return n}},Xbzi:function(e,t,n){var r=n("0/R4"),s=n("i5dc").set;e.exports=function(e,t,n){var i,o=t.constructor;return o!==n&&"function"==typeof o&&(i=o.prototype)!==n.prototype&&r(i)&&s&&s(e,i),e}},YTvA:function(e,t,n){var r=n("VTer")("keys"),s=n("ylqs");e.exports=function(e){return r[e]||(r[e]=s(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"),s=n("0/R4"),i=n("aagx"),o=n("hswa").f,a=0,l=Object.isExtensible||function(){return!0},u=!n("eeVq")(function(){return l(Object.preventExtensions({}))}),c=function(e){o(e,r,{value:{i:"O"+ ++a,w:{}}})},h=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&h.NEED&&l(e)&&!i(e,r)&&c(e),e}}},ZD67:function(e,t,n){"use strict";var r=n("3Lyj"),s=n("Z6vF").getWeak,i=n("y3w9"),o=n("0/R4"),a=n("9gX7"),l=n("SlkY"),u=n("CkkT"),c=n("aagx"),h=n("s5qY"),d=u(5),p=u(6),f=0,g=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},y=function(e,t){return d(e.a,function(e){return e[0]===t})};m.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=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var u=e(function(e,r){a(e,u,t,"_i"),e._t=t,e._i=f++,e._l=void 0,null!=r&&l(r,n,e[i],e)});return r(u.prototype,{delete:function(e){if(!o(e))return!1;var n=s(e);return!0===n?g(h(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=s(e);return!0===n?g(h(this,t)).has(e):n&&c(n,this._i)}}),u},def:function(e,t,n){var r=s(i(t),!0);return!0===r?g(e).set(t,n):r[e._i]=n,e},ufstore:g}},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"),s=n("vhPU");e.exports=function(e){return r(s(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,s;if(t&&"function"==typeof(n=e.toString)&&!r(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!r(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!r(s=n.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},czNK:function(e,t,n){"use strict";var r=n("nh4g"),s=n("DVgA"),i=n("JiEa"),o=n("UqcF"),a=n("S/j/"),l=n("Ymqv"),u=Object.assign;e.exports=!u||n("eeVq")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,c=1,h=i.f,d=o.f;u>c;)for(var p,f=l(arguments[c++]),g=h?s(f).concat(h(f)):s(f),m=g.length,y=0;m>y;)p=g[y++],r&&!d.call(f,p)||(n[p]=f[p]);return n}:u},"d/Gc":function(e,t,n){var r=n("RYi7"),s=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?s(e+t,0):i(e,t)}},dyZX:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},eeVq:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},elZq:function(e,t,n){"use strict";var r=n("dyZX"),s=n("hswa"),i=n("nh4g"),o=n("K0xU")("species");e.exports=function(e){var t=r[e];i&&t&&!t[o]&&s.f(t,o,{configurable:!0,get:function(){return this}})}},"f/aN":function(e,t,n){"use strict";var r=n("XKFU"),s=n("y3w9"),i=function(e){this._t=s(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n("QaDb")(i,"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 i(e)}})},"fN/3":function(e,t,n){var r=n("N6cJ"),s=n("y3w9"),i=r.keys,o=r.key;r.exp({getOwnMetadataKeys:function(e){return i(s(e),arguments.length<2?void 0:o(arguments[1]))}})},fyDq:function(e,t,n){var r=n("hswa").f,s=n("aagx"),i=n("K0xU")("toStringTag");e.exports=function(e,t,n){e&&!s(e=n?e:e.prototype,i)&&r(e,i,{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"),s=n("xpql"),i=n("apmT"),o=Object.defineProperty;t.f=n("nh4g")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),s)try{return o(e,t,n)}catch(a){}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"),s=n("y3w9"),i=function(e,t){if(s(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(s){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},iMoV:function(e,t,n){var r=n("hswa"),s=n("XKFU"),i=n("y3w9"),o=n("apmT");s(s.S+s.F*n("eeVq")(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){i(e),t=o(t,!0),i(n);try{return r.f(e,t,n),!0}catch(s){return!1}}})},"iW+S":function(e,t,n){var r=n("N6cJ"),s=n("y3w9"),i=n("OP3Y"),o=r.has,a=r.key,l=function(e,t,n){if(o(e,t,n))return!0;var r=i(t);return null!==r&&l(e,r,n)};r.exp({hasMetadata:function(e,t){return l(e,s(t),arguments.length<3?void 0:a(arguments[2]))}})},kJMx:function(e,t,n){var r=n("zhAb"),s=n("4R4u").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},klPD:function(e,t,n){var r=n("hswa"),s=n("EemH"),i=n("OP3Y"),o=n("aagx"),a=n("XKFU"),l=n("RjD/"),u=n("y3w9"),c=n("0/R4");a(a.S,"Reflect",{set:function e(t,n,a){var h,d,p=arguments.length<4?t:arguments[3],f=s.f(u(t),n);if(!f){if(c(d=i(t)))return e(d,n,a,p);f=l(0)}if(o(f,"value")){if(!1===f.writable||!c(p))return!1;if(h=s.f(p,n)){if(h.get||h.set||!1===h.writable)return!1;h.value=a,r.f(p,n,h)}else r.f(p,n,l(0,a));return!0}return void 0!==f.set&&(f.set.call(p,a),!0)}})},knU9:function(e,t,n){var r=n("XKFU"),s=n("i5dc");s&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){s.check(e,t);try{return s.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,s){return e.call(t,n,r,s)}}return function(){return e.apply(t,arguments)}}},mQtv:function(e,t,n){var r=n("kJMx"),s=n("JiEa"),i=n("y3w9"),o=n("dyZX").Reflect;e.exports=o&&o.ownKeys||function(e){var t=r.f(i(e)),n=s.f;return n?t.concat(n(e)):t}},mhV4:function(e,t,n){var r=n("ZK94");function s(e){var t=0;if(e&&e.length>0){t+=Math.abs(i(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(i(e[n]))}return t}function i(e){var t,n,s,i,a,l,u=0,c=e.length;if(c>2){for(l=0;l<c;l++)l===c-2?(s=c-2,i=c-1,a=0):l===c-1?(s=c-1,i=0,a=1):(s=l,i=l+1,a=l+2),t=e[s],n=e[i],u+=(o(e[a][0])-o(t[0]))*Math.sin(o(n[1]));u=u*r.RADIUS*r.RADIUS/2}return u}function o(e){return e*Math.PI/180}e.exports.geometry=function e(t){var n,r=0;switch(t.type){case"Polygon":return s(t.coordinates);case"MultiPolygon":for(n=0;n<t.coordinates.length;n++)r+=s(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=i},ne8i:function(e,t,n){var r=n("RYi7"),s=Math.min;e.exports=function(e){return e>0?s(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"),s=n("y3w9"),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){s(e);try{return i&&i(e),!0}catch(t){return!1}}})},pDpN:function(e,t,n){var r,s;void 0===(s="function"==typeof(r=function(){"use strict";!function(e){const 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");const s=e.__Zone_symbol_prefix||"__zone_symbol__";function i(e){return s+e}const o=!0===e[i("forceDuplicateZoneCheck")];if(e.Zone){if(o||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class a{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){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.)")}static get root(){let e=a.current;for(;e.parent;)e=e.parent;return e}static get current(){return P.zone}static get currentTask(){return R}static __load_patch(t,s){if(O.hasOwnProperty(t)){if(o)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const i="Zone:"+t;n(i),O[t]=s(e,a,I),r(i,i)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}}run(e,t,n,r){P={parent:P,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{P=P.parent}}runGuarded(e,t=null,n,r){P={parent:P,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{P=P.parent}}runTask(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===A||e.type===T))return;const r=e.state!=S;r&&e._transitionTo(S,C),e.runCount++;const s=R;R=e,P={parent:P,zone:this};try{e.type==T&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==w&&e.state!==k&&(e.type==A||e.data&&e.data.isPeriodic?r&&e._transitionTo(C,S):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(w,S,w))),P=P.parent,R=s}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(_,w);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(k,_,w),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(C,_),e}scheduleMicroTask(e,t,n,r){return this.scheduleTask(new c(x,e,t,n,r,void 0))}scheduleMacroTask(e,t,n,r,s){return this.scheduleTask(new c(T,e,t,n,r,s))}scheduleEventTask(e,t,n,r,s){return this.scheduleTask(new c(A,e,t,n,r,s))}cancelTask(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(E,C,S);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(k,E),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(w,E),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)}}a.__symbol__=i;const l={name:"",onHasTask:(e,t,n,r)=>e.hasTask(n,r),onScheduleTask:(e,t,n,r)=>e.scheduleTask(n,r),onInvokeTask:(e,t,n,r,s,i)=>e.invokeTask(n,r,s,i),onCancelTask:(e,t,n,r)=>e.cancelTask(n,r)};class u{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:l,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new a(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,r,s){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,s):t.apply(n,r)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=x)throw new Error("Task is missing scheduleFn.");y(t)}return n}invokeTask(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)}cancelTask(e,t){let 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}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,r=n[e],s=n[e]=r+t;if(s<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=s||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class c{constructor(t,n,r,s,i,o){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=s,this.scheduleFn=i,this.cancelFn=o,!r)throw new Error("callback is not defined");this.callback=r;const a=this;this.invoke=t===A&&s&&s.useG?c.invokeTask:function(){return c.invokeTask.call(e,a,this,arguments)}}static invokeTask(e,t,n){e||(e=this),j++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==j&&v(),j--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(w,_)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==w&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=i("setTimeout"),d=i("Promise"),p=i("then");let f,g=[],m=!1;function y(t){if(0===j&&0===g.length)if(f||e[d]&&(f=e[d].resolve(0)),f){let e=f[p];e||(e=f.then),e.call(f,v)}else e[h](v,0);t&&g.push(t)}function v(){if(!m){for(m=!0;g.length;){const t=g;g=[];for(let n=0;n<t.length;n++){const r=t[n];try{r.zone.runTask(r,null,null)}catch(e){I.onUnhandledError(e)}}}I.microtaskDrainDone(),m=!1}}const b={name:"NO ZONE"},w="notScheduled",_="scheduling",C="scheduled",S="running",E="canceling",k="unknown",x="microTask",T="macroTask",A="eventTask",O={},I={symbol:i,currentZoneFrame:()=>P,onUnhandledError:D,microtaskDrainDone:D,scheduleMicroTask:y,showUncaughtError:()=>!a[i("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:D,patchMethod:()=>D,bindArguments:()=>[],patchThen:()=>D,patchMacroTask:()=>D,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(f=e.resolve(0))},patchEventPrototype:()=>D,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>D,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>D,wrapWithCurrentZone:()=>D,filterProperties:()=>[],attachOriginToPatched:()=>D,_redefineProperty:()=>D,patchCallbacks:()=>D};let P={parent:null,zone:new a(null,null)},R=null,j=0;function D(){}r("Zone","Zone"),e.Zone=a}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const r=Object.getOwnPropertyDescriptor,s=Object.defineProperty,i=n.symbol,o=[],a=!0===e[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],l=i("Promise"),u=i("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const 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=()=>{for(;o.length;){const t=o.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}};const c=i("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[c];"function"==typeof n&&n.call(this,e)}catch(r){}}function d(e){return e&&e.then}function p(e){return e}function f(e){return T.reject(e)}const g=i("state"),m=i("value"),y=i("finally"),v=i("parentPromiseValue"),b=i("parentPromiseState");function w(e,t){return n=>{try{C(e,t,n)}catch(r){C(e,!1,r)}}}const _=i("currentTaskTrace");function C(e,r,i){const l=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===i)throw new TypeError("Promise resolved with itself");if(null===e[g]){let h=null;try{"object"!=typeof i&&"function"!=typeof i||(h=i&&i.then)}catch(c){return l(()=>{C(e,!1,c)})(),e}if(!1!==r&&i instanceof T&&i.hasOwnProperty(g)&&i.hasOwnProperty(m)&&null!==i[g])E(i),C(e,i[g],i[m]);else if(!1!==r&&"function"==typeof h)try{h.call(i,l(w(e,r)),l(w(e,!1)))}catch(c){l(()=>{C(e,!1,c)})()}else{e[g]=r;const l=e[m];if(e[m]=i,e[y]===y&&!0===r&&(e[g]=e[b],e[m]=e[v]),!1===r&&i instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&s(i,_,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<l.length;)k(e,l[t++],l[t++],l[t++],l[t++]);if(0==l.length&&0==r){e[g]=0;let r=i;if(!a)try{throw new Error("Uncaught (in promise): "+((u=i)&&u.toString===Object.prototype.toString?(u.constructor&&u.constructor.name||"")+": "+JSON.stringify(u):u?u.toString():Object.prototype.toString.call(u))+(i&&i.stack?"\n"+i.stack:""))}catch(c){r=c}r.rejection=i,r.promise=e,r.zone=t.current,r.task=t.currentTask,o.push(r),n.scheduleMicroTask()}}}var u;return e}const S=i("rejectionHandledHandler");function E(e){if(0===e[g]){try{const n=t[S];n&&"function"==typeof n&&n.call(this,{rejection:e[m],promise:e})}catch(n){}e[g]=!1;for(let t=0;t<o.length;t++)e===o[t].promise&&o.splice(t,1)}}function k(e,t,n,r,s){E(e);const i=e[g],o=i?"function"==typeof r?r:p:"function"==typeof s?s:f;t.scheduleMicroTask("Promise.then",()=>{try{const r=e[m],s=!!n&&y===n[y];s&&(n[v]=r,n[b]=i);const a=t.run(o,void 0,s&&o!==f&&o!==p?[]:[r]);C(n,!0,a)}catch(r){C(n,!1,r)}},n)}const x=function(){};class T{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return C(new this(null),!0,e)}static reject(e){return C(new this(null),!1,e)}static race(e){let t,n,r=new this((e,r)=>{t=e,n=r});function s(e){t(e)}function i(e){n(e)}for(let o of e)d(o)||(o=this.resolve(o)),o.then(s,i);return r}static all(e){return T.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof T?this:T).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,r,s=new this((e,t)=>{n=e,r=t}),i=2,o=0;const a=[];for(let u of e){d(u)||(u=this.resolve(u));const e=o;try{u.then(r=>{a[e]=t?t.thenCallback(r):r,i--,0===i&&n(a)},s=>{t?(a[e]=t.errorCallback(s),i--,0===i&&n(a)):r(s)})}catch(l){r(l)}i++,o++}return i-=2,0===i&&n(a),s}constructor(e){const t=this;if(!(t instanceof T))throw new Error("Must be an instanceof Promise.");t[g]=null,t[m]=[];try{e&&e(w(t,!0),w(t,!1))}catch(n){C(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return T}then(e,n){let r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=this.constructor||T);const s=new r(x),i=t.current;return null==this[g]?this[m].push(i,s,e,n):k(this,i,s,e,n),s}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=T);const r=new n(x);r[y]=y;const s=t.current;return null==this[g]?this[m].push(s,r,e,e):k(this,s,r,e,e),r}}T.resolve=T.resolve,T.reject=T.reject,T.race=T.race,T.all=T.all;const A=e[l]=e.Promise,O=t.__symbol__("ZoneAwarePromise");let I=r(e,"Promise");I&&!I.configurable||(I&&delete I.writable,I&&delete I.value,I||(I={configurable:!0,enumerable:!0}),I.get=function(){return e[O]?e[O]:e[l]},I.set=function(t){t===T?e[O]=t:(e[l]=t,t.prototype[u]||R(t),n.setNativePromise(t))},s(e,"Promise",I)),e.Promise=T;const P=i("thenPatched");function R(e){const t=e.prototype,n=r(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const s=t.then;t[u]=s,e.prototype.then=function(e,t){return new T((e,t)=>{s.call(this,e,t)}).then(e,t)},e[P]=!0}if(n.patchThen=R,A){R(A);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(j=t,function(){let e=j.apply(this,arguments);if(e instanceof T)return e;let t=e.constructor;return t[P]||R(t),e}))}var j;return Promise[t.__symbol__("uncaughtPromiseErrors")]=o,T});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,s=Array.prototype.slice,i=Zone.__symbol__("addEventListener"),o=Zone.__symbol__("removeEventListener"),a=Zone.__symbol__("");function l(e,t){return Zone.current.wrap(e,t)}function u(e,t,n,r,s){return Zone.current.scheduleMacroTask(e,t,n,r,s)}const c=Zone.__symbol__,h="undefined"!=typeof window,d=h?window:void 0,p=h&&d||"object"==typeof self&&self||global,f=[null];function g(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=l(e[n],t+"_"+n));return e}function m(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const y="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,v=!("nw"in p)&&void 0!==p.process&&"[object process]"==={}.toString.call(p.process),b=!v&&!y&&!(!h||!d.HTMLElement),w=void 0!==p.process&&"[object process]"==={}.toString.call(p.process)&&!y&&!(!h||!d.HTMLElement),_={},C=function(e){if(!(e=e||p.event))return;let t=_[e.type];t||(t=_[e.type]=c("ON_PROPERTY"+e.type));const n=this||e.target||p,r=n[t];let s;if(b&&n===d&&"error"===e.type){const t=e;s=r&&r.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===s&&e.preventDefault()}else s=r&&r.apply(this,arguments),null==s||s||e.preventDefault();return s};function S(n,r,s){let i=e(n,r);if(!i&&s&&e(s,r)&&(i={enumerable:!0,configurable:!0}),!i||!i.configurable)return;const o=c("on"+r+"patched");if(n.hasOwnProperty(o)&&n[o])return;delete i.writable,delete i.value;const a=i.get,l=i.set,u=r.substr(2);let h=_[u];h||(h=_[u]=c("ON_PROPERTY"+u)),i.set=function(e){let t=this;t||n!==p||(t=p),t&&(t[h]&&t.removeEventListener(u,C),l&&l.apply(t,f),"function"==typeof e?(t[h]=e,t.addEventListener(u,C,!1)):t[h]=null)},i.get=function(){let e=this;if(e||n!==p||(e=p),!e)return null;const t=e[h];if(t)return t;if(a){let t=a&&a.call(this);if(t)return i.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(r),t}return null},t(n,r,i),n[o]=!0}function E(e,t,n){if(t)for(let r=0;r<t.length;r++)S(e,"on"+t[r],n);else{const t=[];for(const n in e)"on"==n.substr(0,2)&&t.push(n);for(let r=0;r<t.length;r++)S(e,t[r],n)}}const k=c("originalInstance");function x(e){const n=p[e];if(!n)return;p[c(e)]=n,p[e]=function(){const t=g(arguments,e);switch(t.length){case 0:this[k]=new n;break;case 1:this[k]=new n(t[0]);break;case 2:this[k]=new n(t[0],t[1]);break;case 3:this[k]=new n(t[0],t[1],t[2]);break;case 4:this[k]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},O(p[e],n);const r=new n(function(){});let s;for(s in r)"XMLHttpRequest"===e&&"responseBlob"===s||function(n){"function"==typeof r[n]?p[e].prototype[n]=function(){return this[k][n].apply(this[k],arguments)}:t(p[e].prototype,n,{set:function(t){"function"==typeof t?(this[k][n]=l(t,e+"."+n),O(this[k][n],t)):this[k][n]=t},get:function(){return this[k][n]}})}(s);for(s in n)"prototype"!==s&&n.hasOwnProperty(s)&&(p[e][s]=n[s])}function T(t,r,s){let i=t;for(;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);const o=c(r);let a=null;if(i&&!(a=i[o])&&(a=i[o]=i[r],m(i&&e(i,r)))){const e=s(a,o,r);i[r]=function(){return e(this,arguments)},O(i[r],a)}return a}function A(e,t,n){let r=null;function s(e){const t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=T(e,t,e=>function(t,r){const i=n(t,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?u(i.name,r[i.cbIdx],i,s):e.apply(t,r)})}function O(e,t){e[c("OriginalDelegate")]=t}let I=!1,P=!1;function R(){try{const e=d.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function j(){if(I)return P;I=!0;try{const e=d.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(P=!0)}catch(e){}return P}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=c("OriginalDelegate"),r=c("Promise"),s=c("Error"),i=function(){if("function"==typeof this){const i=this[n];if(i)return"function"==typeof i?t.call(i):Object.prototype.toString.call(i);if(this===Promise){const n=e[r];if(n)return t.call(n)}if(this===Error){const n=e[s];if(n)return t.call(n)}}return t.call(this)};i[n]=t,Function.prototype.toString=i;const o=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":o.call(this)}});let D=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){D=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ae){D=!1}const N={useG:!0},L={},V={},F=new RegExp("^"+a+"(\\w+)(true|false)$"),U=c("propagationStopped");function M(e,t){const n=(t?t(e):e)+"false",r=(t?t(e):e)+"true",s=a+n,i=a+r;L[e]={},L[e].false=s,L[e].true=i}function H(e,t,r){const s=r&&r.add||"addEventListener",i=r&&r.rm||"removeEventListener",o=r&&r.listeners||"eventListeners",l=r&&r.rmAll||"removeAllListeners",u=c(s),h="."+s+":",d=function(e,t,n){if(e.isRemoved)return;const r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=e=>r.handleEvent(e),e.originalDelegate=r),e.invoke(e,t,[n]);const s=e.options;s&&"object"==typeof s&&s.once&&t[i].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,s)},p=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,r=n[L[t.type].false];if(r)if(1===r.length)d(r[0],n,t);else{const e=r.slice();for(let r=0;r<e.length&&(!t||!0!==t[U]);r++)d(e[r],n,t)}},f=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,r=n[L[t.type].true];if(r)if(1===r.length)d(r[0],n,t);else{const e=r.slice();for(let r=0;r<e.length&&(!t||!0!==t[U]);r++)d(e[r],n,t)}};function g(t,r){if(!t)return!1;let d=!0;r&&void 0!==r.useG&&(d=r.useG);const g=r&&r.vh;let m=!0;r&&void 0!==r.chkDup&&(m=r.chkDup);let y=!1;r&&void 0!==r.rt&&(y=r.rt);let b=t;for(;b&&!b.hasOwnProperty(s);)b=n(b);if(!b&&t[s]&&(b=t),!b)return!1;if(b[u])return!1;const w=r&&r.eventNameToString,_={},C=b[u]=b[s],S=b[c(i)]=b[i],E=b[c(o)]=b[o],k=b[c(l)]=b[l];let x;function T(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&&(x=b[c(r.prepend)]=b[r.prepend]);const A=d?function(e){if(!_.isExisting)return C.call(_.target,_.eventName,_.capture?f:p,_.options)}:function(e){return C.call(_.target,_.eventName,e.invoke,_.options)},I=d?function(e){if(!e.isRemoved){const t=L[e.eventName];let n;t&&(n=t[e.capture?"true":"false"]);const r=n&&e.target[n];if(r)for(let s=0;s<r.length;s++)if(r[s]===e){r.splice(s,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return S.call(e.target,e.eventName,e.capture?f:p,e.options)}:function(e){return S.call(e.target,e.eventName,e.invoke,e.options)},P=r&&r.diff?r.diff:function(e,t){const n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},R=Zone[c("BLACK_LISTED_EVENTS")],j=e[c("PASSIVE_EVENTS")],U=function(t,n,s,i,o=!1,a=!1){return function(){const l=this||e;let u=arguments[0];r&&r.transferEventName&&(u=r.transferEventName(u));let c=arguments[1];if(!c)return t.apply(this,arguments);if(v&&"uncaughtException"===u)return t.apply(this,arguments);let h=!1;if("function"!=typeof c){if(!c.handleEvent)return t.apply(this,arguments);h=!0}if(g&&!g(t,c,l,arguments))return;const p=D&&!!j&&-1!==j.indexOf(u),f=T(arguments[2],p);if(R)for(let e=0;e<R.length;e++)if(u===R[e])return p?t.call(l,u,c,f):t.apply(this,arguments);const y=!!f&&("boolean"==typeof f||f.capture),b=!(!f||"object"!=typeof f)&&f.once,C=Zone.current;let S=L[u];S||(M(u,w),S=L[u]);const E=S[y?"true":"false"];let k,x=l[E],A=!1;if(x){if(A=!0,m)for(let e=0;e<x.length;e++)if(P(x[e],c))return}else x=l[E]=[];const O=l.constructor.name,I=V[O];I&&(k=I[u]),k||(k=O+n+(w?w(u):u)),_.options=f,b&&(_.options.once=!1),_.target=l,_.capture=y,_.eventName=u,_.isExisting=A;const F=d?N:void 0;F&&(F.taskData=_);const U=C.scheduleEventTask(k,c,F,s,i);return _.target=null,F&&(F.taskData=null),b&&(f.once=!0),(D||"boolean"!=typeof U.options)&&(U.options=f),U.target=l,U.capture=y,U.eventName=u,h&&(U.originalDelegate=c),a?x.unshift(U):x.push(U),o?l:void 0}};return b[s]=U(C,h,A,I,y),x&&(b.prependListener=U(x,".prependListener:",function(e){return x.call(_.target,_.eventName,e.invoke,_.options)},I,y,!0)),b[i]=function(){const t=this||e;let n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));const s=arguments[2],i=!!s&&("boolean"==typeof s||s.capture),o=arguments[1];if(!o)return S.apply(this,arguments);if(g&&!g(S,o,t,arguments))return;const l=L[n];let u;l&&(u=l[i?"true":"false"]);const c=u&&t[u];if(c)for(let e=0;e<c.length;e++){const r=c[e];if(P(r,o))return c.splice(e,1),r.isRemoved=!0,0===c.length&&(r.allRemoved=!0,t[u]=null,"string"==typeof n)&&(t[a+"ON_PROPERTY"+n]=null),r.zone.cancelTask(r),y?t:void 0}return S.apply(this,arguments)},b[o]=function(){const t=this||e;let n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));const s=[],i=z(t,w?w(n):n);for(let e=0;e<i.length;e++){const t=i[e];s.push(t.originalDelegate?t.originalDelegate:t.callback)}return s},b[l]=function(){const t=this||e;let n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));const e=L[n];if(e){const r=t[e.false],s=t[e.true];if(r){const e=r.slice();for(let t=0;t<e.length;t++){const r=e[t];this[i].call(this,n,r.originalDelegate?r.originalDelegate:r.callback,r.options)}}if(s){const e=s.slice();for(let t=0;t<e.length;t++){const r=e[t];this[i].call(this,n,r.originalDelegate?r.originalDelegate:r.callback,r.options)}}}}else{const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=F.exec(e[t]);let r=n&&n[1];r&&"removeListener"!==r&&this[l].call(this,r)}this[l].call(this,"removeListener")}if(y)return this},O(b[s],C),O(b[i],S),k&&O(b[l],k),E&&O(b[o],E),!0}let m=[];for(let n=0;n<t.length;n++)m[n]=g(t[n],r);return m}function z(e,t){if(!t){const n=[];for(let r in e){const s=F.exec(r);let i=s&&s[1];if(i&&(!t||i===t)){const t=e[r];if(t)for(let e=0;e<t.length;e++)n.push(t[e])}}return n}let n=L[t];n||(M(t),n=L[t]);const r=e[n.false],s=e[n.true];return r?s?r.concat(s):r.slice():s?s.slice():[]}function $(e,t){const n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",e=>function(t,n){t[U]=!0,e&&e.apply(t,n)})}function q(e,t,n,r,s){const i=Zone.__symbol__(r);if(t[i])return;const o=t[i]=t[r];t[r]=function(i,a,l){return a&&a.prototype&&s.forEach(function(t){const s=`${n}.${r}::`+t,i=a.prototype;if(i.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(i,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,s),e._redefineProperty(a.prototype,t,n)):i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],s))}else i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],s))}),o.call(t,i,a,l)},e.attachOriginToPatched(t[r],o)}const B=["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"],G=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],W=["load"],Z=["blur","error","focus","load","resize","scroll","messageerror"],K=["bounce","finish","start"],X=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Y=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Q=["close","error","open","message"],J=["error","message"],ee=["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"],B,["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 te(e,t,n){if(!n||0===n.length)return t;const r=n.filter(t=>t.target===e);if(!r||0===r.length)return t;const s=r[0].ignoreProperties;return t.filter(e=>-1===s.indexOf(e))}function ne(e,t,n,r){e&&E(e,te(e,t,n),r)}function re(e,t){if(v&&!w)return;if(Zone[e.symbol("patchEvents")])return;const r="undefined"!=typeof WebSocket,s=t.__Zone_ignore_on_properties;if(b){const e=window,t=R?[{target:e,ignoreProperties:["error"]}]:[];ne(e,ee.concat(["messageerror"]),s?s.concat(t):s,n(e)),ne(Document.prototype,ee,s),void 0!==e.SVGElement&&ne(e.SVGElement.prototype,ee,s),ne(Element.prototype,ee,s),ne(HTMLElement.prototype,ee,s),ne(HTMLMediaElement.prototype,G,s),ne(HTMLFrameSetElement.prototype,B.concat(Z),s),ne(HTMLBodyElement.prototype,B.concat(Z),s),ne(HTMLFrameElement.prototype,W,s),ne(HTMLIFrameElement.prototype,W,s);const r=e.HTMLMarqueeElement;r&&ne(r.prototype,K,s);const i=e.Worker;i&&ne(i.prototype,J,s)}const i=t.XMLHttpRequest;i&&ne(i.prototype,X,s);const o=t.XMLHttpRequestEventTarget;o&&ne(o&&o.prototype,X,s),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,Y,s),ne(IDBRequest.prototype,Y,s),ne(IDBOpenDBRequest.prototype,Y,s),ne(IDBDatabase.prototype,Y,s),ne(IDBTransaction.prototype,Y,s),ne(IDBCursor.prototype,Y,s)),r&&ne(WebSocket.prototype,Q,s)}Zone.__load_patch("util",(n,i,o)=>{o.patchOnProperties=E,o.patchMethod=T,o.bindArguments=g,o.patchMacroTask=A;const u=i.__symbol__("BLACK_LISTED_EVENTS"),c=i.__symbol__("UNPATCHED_EVENTS");n[c]&&(n[u]=n[c]),n[u]&&(i[u]=i[c]=n[u]),o.patchEventPrototype=$,o.patchEventTarget=H,o.isIEOrEdge=j,o.ObjectDefineProperty=t,o.ObjectGetOwnPropertyDescriptor=e,o.ObjectCreate=r,o.ArraySlice=s,o.patchClass=x,o.wrapWithCurrentZone=l,o.filterProperties=te,o.attachOriginToPatched=O,o._redefineProperty=Object.defineProperty,o.patchCallbacks=q,o.getGlobalObjects=()=>({globalSources:V,zoneSymbolEventNames:L,eventNames:ee,isBrowser:b,isMix:w,isNode:v,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:a,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const se=c("zoneTask");function ie(e,t,n,r){let s=null,i=null;n+=r;const o={};function a(t){const 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 o[n.handleId]:n.handleId&&(n.handleId[se]=null))}},n.handleId=s.apply(e,n.args),t}function l(e){return i(e.data.handleId)}s=T(e,t+=r,n=>function(s,i){if("function"==typeof i[0]){const e=u(t,i[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},a,l);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?o[n]=e:n&&(n[se]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,i)}),i=T(e,n,t=>function(n,r){const s=r[0];let i;"number"==typeof s?i=o[s]:(i=s&&s[se],i||(i=s)),i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&("number"==typeof s?delete o[s]:s&&(s[se]=null),i.zone.cancelTask(i)):t.apply(e,r)})}function oe(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:s,FALSE_STR:i,ZONE_SYMBOL_PREFIX:o}=t.getGlobalObjects();for(let l=0;l<n.length;l++){const e=n[l],t=o+(e+i),a=o+(e+s);r[e]={},r[e][i]=t,r[e][s]=a}const a=e.EventTarget;return a&&a.prototype?(t.patchEventTarget(e,[a&&a.prototype]),!0):void 0}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{ie(e,"set","clear","Timeout"),ie(e,"set","clear","Interval"),ie(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ie(e,"request","cancel","AnimationFrame"),ie(e,"mozRequest","mozCancel","AnimationFrame"),ie(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let r=0;r<n.length;r++)T(e,n[r],(n,r,s)=>function(r,i){return t.current.run(n,e,i,s)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{(function(e,t){t.patchEventPrototype(e,t)})(e,n),oe(e,n);const r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype]),x("MutationObserver"),x("WebKitMutationObserver"),x("IntersectionObserver"),x("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{re(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:r}=t.getGlobalObjects();(n||r)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const d=e.XMLHttpRequest;if(!d)return;const p=d.prototype;let f=p[i],g=p[o];if(!f){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;f=e[i],g=e[o]}}function m(e){const r=e.data,l=r.target;l[a]=!1,l[h]=!1;const u=l[s];f||(f=l[i],g=l[o]),u&&g.call(l,"readystatechange",u);const c=l[s]=()=>{if(l.readyState===l.DONE)if(!r.aborted&&l[a]&&"scheduled"===e.state){const n=l[t.__symbol__("loadfalse")];if(n&&n.length>0){const s=e.invoke;e.invoke=function(){const n=l[t.__symbol__("loadfalse")];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1);r.aborted||"scheduled"!==e.state||s.call(e)},n.push(e)}else e.invoke()}else r.aborted||!1!==l[a]||(l[h]=!0)};return f.call(l,"readystatechange",c),l[n]||(l[n]=e),C.apply(l,r.args),l[a]=!0,e}function y(){}function v(e){const t=e.data;return t.aborted=!0,S.apply(t.target,t.args)}const b=T(p,"open",()=>function(e,t){return e[r]=0==t[2],e[l]=t[1],b.apply(e,t)}),w=c("fetchTaskAborting"),_=c("fetchTaskScheduling"),C=T(p,"send",()=>function(e,n){if(!0===t.current[_])return C.apply(e,n);if(e[r])return C.apply(e,n);{const t={target:e,url:e[l],isPeriodic:!1,args:n,aborted:!1},r=u("XMLHttpRequest.send",y,t,m,v);e&&!0===e[h]&&!t.aborted&&"scheduled"===r.state&&r.invoke()}}),S=T(p,"abort",()=>function(e,r){const s=e[n];if(s&&"string"==typeof s.type){if(null==s.cancelFn||s.data&&s.data.aborted)return;s.zone.cancelTask(s)}else if(!0===t.current[w])return S.apply(e,r)})}(e);const n=c("xhrTask"),r=c("xhrSync"),s=c("xhrListener"),a=c("xhrScheduled"),l=c("xhrURL"),h=c("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const r=t.constructor.name;for(let s=0;s<n.length;s++){const i=n[s],o=t[i];if(o){if(!m(e(t,i)))continue;t[i]=(e=>{const t=function(){return e.apply(this,g(arguments,r+"."+i))};return O(t,e),t})(o)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){z(e,t).forEach(r=>{const s=e.PromiseRejectionEvent;if(s){const e=new s(t,{promise:n.promise,reason:n.rejection});r.invoke(e)}})}}e.PromiseRejectionEvent&&(t[c("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[c("rejectionHandledHandler")]=n("rejectionhandled"))})})?r.call(t,n,t,e):r)||(e.exports=s)},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"),s=n("Q3ne"),i=n("N6cJ"),o=n("y3w9"),a=n("OP3Y"),l=i.keys,u=i.key,c=function(e,t){var n=l(e,t),i=a(e);if(null===i)return n;var o=c(i,t);return o.length?n.length?s(new r(n.concat(o))):o:n};i.exp({getMetadataKeys:function(e){return c(o(e),arguments.length<2?void 0:u(arguments[1]))}})},uhZd:function(e,t,n){var r=n("XKFU"),s=n("EemH").f,i=n("y3w9");r(r.S,"Reflect",{deleteProperty:function(e,t){var n=s(i(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"),s=n("ne8i"),i=n("d/Gc");e.exports=function(e){return function(t,n,o){var a,l=r(t),u=s(l.length),c=i(o,u);if(e&&n!=n){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},wmvG:function(e,t,n){"use strict";var r=n("hswa").f,s=n("Kuth"),i=n("3Lyj"),o=n("m0Pp"),a=n("9gX7"),l=n("SlkY"),u=n("Afnz"),c=n("1TsA"),h=n("elZq"),d=n("nh4g"),p=n("Z6vF").fastKey,f=n("s5qY"),g=d?"_s":"size",m=function(e,t){var n,r=p(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,u){var c=e(function(e,r){a(e,c,t,"_i"),e._t=t,e._i=s(null),e._f=void 0,e._l=void 0,e[g]=0,null!=r&&l(r,n,e[u],e)});return i(c.prototype,{clear:function(){for(var e=f(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[g]=0},delete:function(e){var n=f(this,t),r=m(n,e);if(r){var s=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=s),s&&(s.p=i),n._f==r&&(n._f=s),n._l==r&&(n._l=i),n[g]--}return!!r},forEach:function(e){f(this,t);for(var n,r=o(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!!m(f(this,t),e)}}),d&&r(c.prototype,"size",{get:function(){return f(this,t)[g]}}),c},def:function(e,t,n){var r,s,i=m(e,t);return i?i.v=n:(e._l=i={i:s=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[g]++,"F"!==s&&(e._i[s]=i)),e},getEntry:m,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=f(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)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),h(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(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function u(e){return null!==e&&"object"==typeof e}const c=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:s,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(r(i)){s&&(this._unsubscribe=void 0);try{i.call(this)}catch(a){t=a instanceof c?d(a.errors):[a]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(u(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof c?t=t.concat(d(a.errors)):t.push(a)}}}if(t)throw new c(t)}add(t){let 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)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof c?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[p](){return this}static create(e,t,n){const r=new f(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class g extends f{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==a&&(o=Object.create(t),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=i;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):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(e){return e}let v=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,s=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=b(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[m](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=b(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function b(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const w=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class _ extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends f{constructor(e){super(e),this.destination=e}}let S=(()=>{class e extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(e){const t=new E(this,this);return t.operator=e,t}next(e){if(this.closed)throw new w;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].next(e)}}error(e){if(this.closed)throw new w;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let s=0;s<n;s++)r[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new w;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new w;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new _(this,e))}asObservable(){const e=new v;return e.source=this,e}}return e.create=(e,t)=>new E(e,t),e})();class E extends S{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function k(e){return e&&"function"==typeof e.schedule}function x(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 T(e,t))}}class T{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new A(e,this.project,this.thisArg))}}class A extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const O=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const P=I(),R=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function j(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const D=e=>{if(e&&"function"==typeof e[m])return r=e,e=>{const t=r[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(R(e))return O(e);if(j(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[P])return t=e,e=>{const n=t[P]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,r};function N(e,t){return new v(n=>{const r=new h;let s=0;return r.add(t.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function V(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[m]}(e))return function(e,t){return new v(n=>{const r=new h;return r.add(t.schedule(()=>{const s=e[m]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(j(e))return function(e,t){return new v(n=>{const r=new h;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(R(e))return N(e,t);if(function(e){return e&&"function"==typeof e[P]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new v(n=>{const r=new h;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[P](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof v?e:new v(D(e))}class F extends f{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class U extends f{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function M(e,t){if(!t.closed)return e instanceof v?e.subscribe(t):D(e)(t)}function H(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(H((n,r)=>V(e(n,r)).pipe(x((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new z(e,n)))}class z{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new $(e,this.project,this.concurrent))}}class $ extends U{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new F(this),n=this.destination;n.add(t);const r=M(e,t);r!==t&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(e=Number.POSITIVE_INFINITY){return H(y,e)}function B(e,t){return t?N(e,t):new v(O(e))}function G(){return function(e){return e.lift(new W(e))}}class W{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new Z(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class Z extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class K extends v{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new Y(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return G()(this)}}const X=(()=>{const e=K.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class Y extends C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function Q(){return new S}function J(e){for(let t in e)if(e[t]===J)return t;throw Error("Could not find renamed property on target object.")}function ee(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function te(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(te).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ne(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const re=J({__forward_ref__:J});function se(e){return e.__forward_ref__=se,e.toString=function(){return te(this())},e}function ie(e){return oe(e)?e():e}function oe(e){return"function"==typeof e&&e.hasOwnProperty(re)&&e.__forward_ref__===se}function ae(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function le(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ue(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ce(e){return he(e,pe)||he(e,ge)}function he(e,t){return e.hasOwnProperty(t)?e[t]:null}function de(e){return e&&(e.hasOwnProperty(fe)||e.hasOwnProperty(me))?e[fe]:null}const pe=J({"\u0275prov":J}),fe=J({"\u0275inj":J}),ge=J({ngInjectableDef:J}),me=J({ngInjectorDef:J});var ye=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}({});let ve;function be(e){const t=ve;return ve=e,t}function we(e,t,n){const r=ce(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ye.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${te(e)}]`)}function _e(e){return{toString:e}.toString()}var Ce=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Se=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const Ee="undefined"!=typeof globalThis&&globalThis,ke="undefined"!=typeof window&&window,xe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Te="undefined"!=typeof global&&global,Ae=Ee||Te||ke||xe,Oe={},Ie=[],Pe=J({"\u0275cmp":J}),Re=J({"\u0275dir":J}),je=J({"\u0275pipe":J}),De=J({"\u0275mod":J}),Ne=J({"\u0275loc":J}),Le=J({"\u0275fac":J}),Ve=J({__NG_ELEMENT_ID__:J});let Fe=0;function Ue(e){return _e(()=>{const 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===Ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ie,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Se.Emulated,id:"c",styles:e.styles||Ie,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,i=e.pipes;return n.id+=Fe++,n.inputs=qe(e.inputs,t),n.outputs=qe(e.outputs),s&&s.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Me):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(He):null,n})}function Me(e){return Ge(e)||function(e){return e[Re]||null}(e)}function He(e){return function(e){return e[je]||null}(e)}const ze={};function $e(e){const t={type:e.type,bootstrap:e.bootstrap||Ie,declarations:e.declarations||Ie,imports:e.imports||Ie,exports:e.exports||Ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&_e(()=>{ze[e.id]=e.type}),t}function qe(e,t){if(null==e)return Oe;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,t&&(t[s]=i)}return n}const Be=Ue;function Ge(e){return e[Pe]||null}function We(e,t){const n=e[De]||null;if(!n&&!0===t)throw new Error(`Type ${te(e)} does not have '\u0275mod' property.`);return n}function Ze(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ke(e){return Array.isArray(e)&&!0===e[1]}function Xe(e){return 0!=(8&e.flags)}function Ye(e){return 2==(2&e.flags)}function Qe(e){return 1==(1&e.flags)}function Je(e){return null!==e.template}function et(e,t){return e.hasOwnProperty(Le)?e[Le]:null}class tt extends Error{constructor(e,t){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(e,t)),this.code=e}}function nt(e){return"string"==typeof e?e:null==e?"":String(e)}function rt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():nt(e)}function st(e,t){const n=t?` in ${t}`:"";throw new tt("201",`No provider for ${rt(e)} found${n}`)}class it{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function ot(){return at}function at(e){return e.type.prototype.ngOnChanges&&(e.setInput=ut),lt}function lt(){const e=ct(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Oe)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function ut(e,t,n,r){const s=ct(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:Oe,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];i[a]=new it(l&&l.currentValue,t,o===Oe),e[r]=t}function ct(e){return e.__ngSimpleChanges__||null}let ht;function dt(){return void 0!==ht?ht:"undefined"!=typeof document?document:void 0}function pt(e){return!!e.listen}ot.ngInherit=!0;const ft={createRenderer:(e,t)=>dt()};function gt(e){for(;Array.isArray(e);)e=e[0];return e}function mt(e,t){return gt(t[e])}function yt(e,t){return gt(t[e.index])}function vt(e,t){return e.data[t]}function bt(e,t){const n=t[e];return Ze(n)?n:n[0]}function wt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function _t(e){return 4==(4&e[2])}function Ct(e){return 128==(128&e[2])}function St(e,t){return null==t?null:e[t]}function Et(e){e[18]=0}function kt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const xt={lFrame:Xt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Tt(){return xt.bindingsEnabled}function At(){return xt.lFrame.lView}function Ot(){return xt.lFrame.tView}function It(e){xt.lFrame.contextLView=e}function Pt(){let e=Rt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Rt(){return xt.lFrame.currentTNode}function jt(){const e=xt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Dt(e,t){const n=xt.lFrame;n.currentTNode=e,n.isParent=t}function Nt(){return xt.lFrame.isParent}function Lt(){xt.lFrame.isParent=!1}function Vt(){return xt.isInCheckNoChangesMode}function Ft(e){xt.isInCheckNoChangesMode=e}function Ut(){const e=xt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Mt(){return xt.lFrame.bindingIndex++}function Ht(e){xt.lFrame.inI18n=e}function zt(e,t){const n=xt.lFrame;n.bindingIndex=n.bindingRootIndex=e,$t(t)}function $t(e){xt.lFrame.currentDirectiveIndex=e}function qt(){return xt.lFrame.currentQueryIndex}function Bt(e){xt.lFrame.currentQueryIndex=e}function Gt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wt(e,t,n){if(n&ye.SkipSelf){let r=t,s=e;for(;r=r.parent,!(null!==r||n&ye.Host||(r=Gt(s),null===r)||(s=s[15],10&r.type)););if(null===r)return!1;t=r,e=s}const r=xt.lFrame=Kt();return r.currentTNode=t,r.lView=e,!0}function Zt(e){const t=Kt(),n=e[1];xt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kt(){const e=xt.lFrame,t=null===e?null:e.child;return null===t?Xt(e):t}function Xt(e){const 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 Yt(){const e=xt.lFrame;return xt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Qt=Yt;function Jt(){const e=Yt();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 en(){return xt.lFrame.selectedIndex}function tn(e){xt.lFrame.selectedIndex=e}function nn(){const e=xt.lFrame;return vt(e.tView,e.selectedIndex)}function rn(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:s,ngAfterViewInit:i,ngAfterViewChecked:o,ngOnDestroy:a}=t;r&&(e.contentHooks||(e.contentHooks=[])).push(-n,r),s&&((e.contentHooks||(e.contentHooks=[])).push(n,s),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,s)),i&&(e.viewHooks||(e.viewHooks=[])).push(-n,i),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function sn(e,t,n){ln(e,t,3,n)}function on(e,t,n,r){(3&e[2])===n&&ln(e,t,n,r)}function an(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ln(e,t,n,r){const s=null!=r?r:-1,i=t.length-1;let o=0;for(let a=void 0!==r?65535&e[18]:0;a<i;a++)if("number"==typeof t[a+1]){if(o=t[a],null!=r&&o>=r)break}else t[a]<0&&(e[18]+=65536),(o<s||-1==s)&&(un(e,n,t,a),e[18]=(4294901760&e[18])+a+2),a++}function un(e,t,n,r){const s=n[r]<0,i=n[r+1],o=e[s?-n[r]:n[r]];s?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,i.call(o)):i.call(o)}class cn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function hn(e,t,n){const r=pt(e);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],a=n[s++],l=n[s++];r?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=i,a=n[++s];pn(o)?r&&e.setProperty(t,o,a):r?e.setAttribute(t,o,a):t.setAttribute(o,a),s++}}return s}function dn(e){return 3===e||4===e||6===e}function pn(e){return 64===e.charCodeAt(0)}function fn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?n=s:0===n||gn(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function gn(e,t,n,r,s){let i=0,o=e.length;if(-1===t)o=-1;else for(;i<e.length;){const n=e[i++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=i-1;break}}}for(;i<e.length;){const t=e[i];if("number"==typeof t)break;if(t===n){if(null===r)return void(null!==s&&(e[i+1]=s));if(r===e[i+1])return void(e[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(e.splice(o,0,t),i=o+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==s&&e.splice(i++,0,s)}function mn(e){return-1!==e}function yn(e){return 32767&e}function vn(e,t){let n=e>>16,r=t;for(;n>0;)r=r[15],n--;return r}let bn=!0;function wn(e){const t=bn;return bn=e,t}let _n=0;function Cn(e,t){const n=En(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Sn(r.data,e),Sn(t,null),Sn(r.blueprint,null));const s=kn(e,t),i=e.injectorIndex;if(mn(s)){const e=yn(s),n=vn(s,t),r=n[1].data;for(let s=0;s<8;s++)t[i+s]=n[e+s]|r[e+s]}return t[i+8]=s,i}function Sn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function En(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function kn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){const e=s[1],t=e.type;if(r=2===t?e.declTNode:1===t?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function xn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ve)&&(r=n[Ve]),null==r&&(r=n[Ve]=_n++);const s=255&r;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function Tn(e,t,n){if(n&ye.Optional)return e;st(t,"NodeInjector")}function An(e,t,n,r){if(n&ye.Optional&&void 0===r&&(r=null),0==(n&(ye.Self|ye.Host))){const s=e[9],i=be(void 0);try{return s?s.get(t,r,n&ye.Optional):we(t,r,n&ye.Optional)}finally{be(i)}}return Tn(r,t,n)}function On(e,t,n,r=ye.Default,s){if(null!==e){const i=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ve)?e[Ve]:void 0;return"number"==typeof t?t>=0?255&t:Pn:t}(n);if("function"==typeof i){if(!Wt(t,e,r))return r&ye.Host?Tn(s,n,r):An(t,n,r,s);try{const e=i();if(null!=e||r&ye.Optional)return e;st(n)}finally{Qt()}}else if("number"==typeof i){let s=null,o=En(e,t),a=-1,l=r&ye.Host?t[16][6]:null;for((-1===o||r&ye.SkipSelf)&&(a=-1===o?kn(e,t):t[o+8],-1!==a&&Ln(r,!1)?(s=t[1],o=yn(a),t=vn(a,t)):o=-1);-1!==o;){const e=t[1];if(Nn(i,o,e.data)){const e=Rn(o,t,n,s,r,l);if(e!==In)return e}a=t[o+8],-1!==a&&Ln(r,t[1].data[o+8]===l)&&Nn(i,o,t)?(s=e,o=yn(a),t=vn(a,t)):o=-1}}}return An(t,n,r,s)}const In={};function Pn(){return new Vn(Pt(),At())}function Rn(e,t,n,r,s,i){const o=t[1],a=o.data[e+8],l=jn(a,o,n,null==r?Ye(a)&&bn:r!=o&&0!=(3&a.type),s&ye.Host&&i===a);return null!==l?Dn(t,o,l,a):In}function jn(e,t,n,r,s){const i=e.providerIndexes,o=t.data,a=1048575&i,l=e.directiveStart,u=i>>20,c=s?a+u:e.directiveEnd;for(let h=r?a:a+u;h<c;h++){const e=o[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(s){const e=o[l];if(e&&Je(e)&&e.type===n)return l}return null}function Dn(e,t,n,r){let s=e[n];const i=t.data;if(s instanceof cn){const o=s;o.resolving&&function(e,t){throw new tt("200",`Circular dependency in DI detected for ${e}`)}(rt(i[n]));const a=wn(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?be(o.injectImpl):null;Wt(e,r,ye.Default);try{s=e[n]=o.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=t.type.prototype;if(r){const r=at(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==l&&be(l),wn(a),o.resolving=!1,Qt()}}return s}function Nn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Ln(e,t){return!(e&ye.Self||e&ye.Host&&t)}class Vn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return On(this._tNode,this._lView,e,void 0,t)}}function Fn(e){const t=e;if(oe(e))return()=>{const e=Fn(ie(t));return e?e():null};let n=et(t);if(null===n){const e=de(t);n=e&&e.factory}return n||null}function Un(e){return _e(()=>{const t=e.prototype.constructor,n=t[Le]||Fn(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const e=s[Le]||Fn(s);if(e&&e!==n)return e;s=Object.getPrototypeOf(s)}return e=>new e})}function Mn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let r=0;for(;r<e;){const s=n[r];if(dn(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<e&&"string"==typeof n[r];)r++;else{if(s===t)return n[r+1];r+=2}}}return null}(Pt(),e)}function Hn(e,t,n){return _e(()=>{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class zn{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=le({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const $n=new zn("AnalyzeForEntryComponents"),qn=Function;function Bn(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),Bn(r,t)):t!==e&&t.push(r)}return t}function Gn(e,t){e.forEach(e=>Array.isArray(e)?Gn(e,t):t(e))}function Wn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Zn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Kn(e,t,n){let r=Yn(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Xn(e,t){const n=Yn(e,t);if(n>=0)return e[1|n]}function Yn(e,t){return function(e,t,n){let r=0,s=e.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=e[n<<1];if(t===i)return n<<1;i>t?s=n:r=n+1}return~(s<<1)}(e,t)}const Qn={},Jn=/\n/gm,er=J({provide:String,useValue:J});let tr;function nr(e){const t=tr;return tr=e,t}function rr(e,t=ye.Default){if(void 0===tr)throw new Error("inject() must be called from an injection context");return null===tr?we(e,void 0,t):tr.get(e,t&ye.Optional?null:void 0,t)}function sr(e,t=ye.Default){return(ve||rr)(ie(e),t)}function ir(e){const t=[];for(let n=0;n<e.length;n++){const r=ie(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let e,n=ye.Default;for(let t=0;t<r.length;t++){const s=r[t],i=s.__NG_DI_FLAG__;"number"==typeof i?-1===i?e=s.token:n|=i:e=s}t.push(sr(e,n))}else t.push(sr(r))}return t}function or(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}const ar=or(Hn("Inject",e=>({token:e})),-1),lr=or(Hn("Optional"),8),ur=or(Hn("SkipSelf"),4);let cr;function hr(){if(void 0===cr&&(cr=null,Ae.trustedTypes))try{cr=Ae.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return cr}function dr(e){var t;return(null===(t=hr())||void 0===t?void 0:t.createHTML(e))||e}class pr{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function fr(e){return e instanceof pr?e.changingThisBreaksApplicationSecurity:e}class gr{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(dr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class mr{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=dr(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=dr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const yr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,vr=/^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 br(e){return(e=String(e)).match(yr)||e.match(vr)?e:"unsafe:"+e}function wr(e){return(e=String(e)).split(",").map(e=>br(e.trim())).join(", ")}function _r(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Cr(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Sr=_r("area,br,col,hr,img,wbr"),Er=_r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),kr=_r("rp,rt"),xr=Cr(kr,Er),Tr=Cr(Sr,Cr(Er,_r("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Cr(kr,_r("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),xr),Ar=_r("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Or=_r("srcset"),Ir=Cr(Ar,Or,_r("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),_r("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"));var Pr=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 Rr(e){const t=function(){const e=At();return e&&e[12]}();return t?t.sanitize(Pr.URL,e)||"":function(e,t){const n=function(e){return e instanceof pr&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}(e,"URL")?fr(e):br(nt(e))}function jr(e){return function(e){var t;return(null===(t=hr())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Dr(e){return e.ngDebugContext}function Nr(e){return e.ngOriginalError}function Lr(e,...t){e.error(...t)}class Vr{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Lr}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Dr(e)?Dr(e):this._findContext(Nr(e)):null}_findOriginalError(e){let t=Nr(e);for(;t&&Nr(t);)t=Nr(t);return t}}const Fr=/^>|^->|<!--|-->|--!>|<!-$/g,Ur=/(<|>)/;function Mr(e,t){e.__ngContext__=t}const Hr=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ae))();function zr(e){return e instanceof Function?e():e}var $r=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let qr;function Br(e,t){return qr(e,t)}function Gr(e){const t=e[3];return Ke(t)?t[3]:t}function Wr(e){return Kr(e[13])}function Zr(e){return Kr(e[4])}function Kr(e){for(;null!==e&&!Ke(e);)e=e[4];return e}function Xr(e,t,n,r,s){if(null!=r){let i,o=!1;Ke(r)?i=r:Ze(r)&&(o=!0,r=r[0]);const a=gt(r);0===e&&null!==n?null==s?as(t,n,a):os(t,n,a,s||null,!0):1===e&&null!==n?os(t,n,a,s||null,!0):2===e?ys(t,a,o):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,r,s){const i=n[7];i!==gt(n)&&Xr(t,e,r,i,s);for(let o=10;o<n.length;o++){const s=n[o];bs(s[1],s,e,t,r,i)}}(t,e,i,n,s)}}function Yr(e,t){return pt(e)?e.createText(t):e.createTextNode(t)}function Qr(e,t,n){pt(e)?e.setValue(t,n):t.textContent=n}function Jr(e,t){return e.createComment(function(e){return e.replace(Fr,e=>e.replace(Ur,"\u200b$1\u200b"))}(t))}function es(e,t,n){return pt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function ts(e,t){const n=e[9],r=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,kt(s,-1)),n.splice(r,1)}function ns(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&ts(i,r),t>0&&(e[n-1][4]=r[4]);const o=Zn(e,10+t);bs(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function rs(e,t){if(!(256&t[2])){const n=t[11];pt(n)&&n.destroyNode&&bs(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return ss(e[1],e);for(;t;){let n=null;if(Ze(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Ze(t)&&ss(t[1],t),t=t[3];null===t&&(t=e),Ze(t)&&ss(t[1],t),n=t&&t[4]}t=n}}(t)}}function ss(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const e=t[n[r]];if(!(e instanceof cn)){const t=n[r+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup,r=t[7];let s=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const e=n[i+1],o="function"==typeof e?e(t):gt(t[e]),a=r[s=n[i+2]],l=n[i+3];"boolean"==typeof l?o.removeEventListener(n[i],a,l):l>=0?r[s=l]():r[s=-l].unsubscribe(),i+=2}else{const e=r[s=n[i+1]];n[i].call(e)}if(null!==r){for(let e=s+1;e<r.length;e++)(0,r[e])();t[7]=null}}(e,t),1===t[1].type&&pt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Ke(t[3])){n!==t[3]&&ts(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function is(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const t=e.data[r.directiveStart].encapsulation;if(t===Se.None||t===Se.Emulated)return null}return yt(r,n)}function os(e,t,n,r,s){pt(e)?e.insertBefore(t,n,r,s):t.insertBefore(n,r,s)}function as(e,t,n){pt(e)?e.appendChild(t,n):t.appendChild(n)}function ls(e,t,n,r,s){null!==r?os(e,t,n,r,s):as(e,t,n)}function us(e,t){return pt(e)?e.parentNode(t):t.parentNode}function cs(e,t,n){return 40&e.type?yt(e,n):null}let hs,ds=cs;function ps(e,t){ds=e,hs=t}function fs(e,t,n,r){const s=function(e,t,n){return is(e,t.parent,n)}(e,r,t),i=t[11],o=function(e,t,n){return ds(e,t,n)}(r.parent||t[6],r,t);if(null!=s)if(Array.isArray(n))for(let a=0;a<n.length;a++)ls(i,s,n[a],o,!1);else ls(i,s,n,o,!1);void 0!==hs&&hs(i,r,t,n,s)}function gs(e,t){if(null!==t){const n=t.type;if(3&n)return yt(t,e);if(4&n)return ms(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return gs(e,n);{const n=e[t.index];return Ke(n)?ms(-1,n):gt(n)}}if(32&n)return Br(t,e)()||gt(e[t.index]);{const n=e[16],r=n[6],s=Gr(n),i=r.projection[t.projection];return null!=i?gs(s,i):gs(e,t.next)}}return null}function ms(e,t){const n=10+e+1;if(n<t.length){const e=t[n],r=e[1].firstChild;if(null!==r)return gs(e,r)}return t[7]}function ys(e,t,n){const r=us(e,t);r&&function(e,t,n,r){pt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function vs(e,t,n,r,s,i,o){for(;null!=n;){const a=r[n.index],l=n.type;if(o&&0===t&&(a&&Mr(gt(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)vs(e,t,n.child,r,s,i,!1),Xr(t,e,s,a,i);else if(32&l){const o=Br(n,r);let l;for(;l=o();)Xr(t,e,s,l,i);Xr(t,e,s,a,i)}else 16&l?ws(e,t,r,n,s,i):Xr(t,e,s,a,i);n=o?n.projectionNext:n.next}}function bs(e,t,n,r,s,i){vs(n,r,e.firstChild,t,s,i,!1)}function ws(e,t,n,r,s,i){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Xr(t,e,s,a[l],i);else vs(e,t,a,o[3],s,i,!0)}function _s(e,t,n){pt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Cs(e,t,n){pt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Ss(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const n=t.length;if(s+n===r||e.charCodeAt(s+n)<=32)return s}n=s+1}}function Es(e,t,n){let r=0;for(;r<e.length;){let s=e[r++];if(n&&"class"===s){if(s=e[r],-1!==Ss(s.toLowerCase(),t,0))return!0}else if(1===s){for(;r<e.length&&"string"==typeof(s=e[r++]);)if(s.toLowerCase()===t)return!0;return!1}}return!1}function ks(e){return 4===e.type&&"ng-template"!==e.value}function xs(e,t,n){return t===(4!==e.type||n?e.value:"ng-template")}function Ts(e,t,n){let r=4;const s=e.attrs||[],i=function(e){for(let t=0;t<e.length;t++)if(dn(e[t]))return t;return e.length}(s);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!xs(e,l,n)||""===l&&1===t.length){if(As(r))return!1;o=!0}}else{const u=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!Es(e.attrs,u,n)){if(As(r))return!1;o=!0}continue}const c=Os(8&r?"class":l,s,ks(e),n);if(-1===c){if(As(r))return!1;o=!0;continue}if(""!==u){let e;e=c>i?"":s[c+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Ss(t,u,0)||2&r&&u!==e){if(As(r))return!1;o=!0}}}}else{if(!o&&!As(r)&&!As(l))return!1;if(o&&As(l))continue;o=!1,r=l|1&r}}return As(r)||o}function As(e){return 0==(1&e)}function Os(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let n=!1;for(;s<t.length;){const r=t[s];if(r===e)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let e=t[++s];for(;"string"==typeof e;)e=t[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Is(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ts(e,t[r],n))return!0;return!1}function Ps(e,t){return e?":not("+t.trim()+")":t}function Rs(e){let t=e[0],n=1,r=2,s="",i=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&r){const t=e[++n];s+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||As(o)||(t+=Ps(i,s),s=""),r=o,i=i||!As(r);n++}return""!==s&&(t+=Ps(i,s)),t}const js={};function Ds(e){Ns(Ot(),At(),en()+e,Vt())}function Ns(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&sn(t,r,n)}else{const r=e.preOrderHooks;null!==r&&on(t,r,0,n)}tn(n)}function Ls(e,t){return e<<17|t<<2}function Vs(e){return e>>17&32767}function Fs(e){return 2|e}function Us(e){return(131068&e)>>2}function Ms(e,t){return-131069&e|t<<2}function Hs(e){return 1|e}function zs(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],i=n[r+1];if(-1!==i){const n=e.data[i];Bt(s),n.contentQueries(2,t[i],i)}}}function $s(e,t,n,r,s,i,o,a,l,u){const c=t.blueprint.slice();return c[0]=s,c[2]=140|r,Et(c),c[3]=c[15]=e,c[8]=n,c[10]=o||e&&e[10],c[11]=a||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=i,c[16]=2==t.type?e[16]:c,c}function qs(e,t,n,r,s){let i=e.data[t];if(null===i)i=Bs(e,t,n,r,s),xt.lFrame.inI18n&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=s;const e=jt();i.injectorIndex=null===e?-1:e.injectorIndex}return Dt(i,!0),i}function Bs(e,t,n,r,s){const i=Rt(),o=Nt(),a=e.data[t]=function(e,t,n,r,s,i){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:s,attrs:i,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,o?i:i&&i.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=a),null!==i&&(o?null==i.child&&null!==a.parent&&(i.child=a):null===i.next&&(i.next=a)),a}function Gs(e,t,n,r){if(0===n)return-1;const s=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function Ws(e,t,n){Zt(t);try{const r=e.viewQuery;null!==r&&Ei(1,r,n);const s=e.template;null!==s&&Xs(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&zs(e,t),e.staticViewQueries&&Ei(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)bi(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),r}finally{t[2]&=-5,Jt()}}function Zs(e,t,n,r){const s=t[2];if(256==(256&s))return;Zt(t);const i=Vt();try{Et(t),xt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Xs(e,t,n,2,r);const o=3==(3&s);if(!i)if(o){const n=e.preOrderCheckHooks;null!==n&&sn(t,n,null)}else{const n=e.preOrderHooks;null!==n&&on(t,n,0,null),an(t,0)}if(function(e){for(let t=Wr(e);null!==t;t=Zr(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],r=n[3];0==(1024&n[2])&&kt(r,1),n[2]|=1024}}}(t),function(e){for(let t=Wr(e);null!==t;t=Zr(t))for(let e=10;e<t.length;e++){const n=t[e],r=n[1];Ct(n)&&Zs(r,n,r.template,n[8])}}(t),null!==e.contentQueries&&zs(e,t),!i)if(o){const n=e.contentCheckHooks;null!==n&&sn(t,n)}else{const n=e.contentHooks;null!==n&&on(t,n,1),an(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const r=n[e];if(r<0)tn(~r);else{const s=r,i=n[++e],o=n[++e];zt(i,s),o(2,t[s])}}}finally{tn(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)yi(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Ei(2,l,r),!i)if(o){const n=e.viewCheckHooks;null!==n&&sn(t,n)}else{const n=e.viewHooks;null!==n&&on(t,n,2),an(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,kt(t[3],-1))}finally{Jt()}}function Ks(e,t,n,r){const s=t[10],i=!Vt(),o=_t(t);try{i&&!o&&s.begin&&s.begin(),o&&Ws(e,t,r),Zs(e,t,n,r)}finally{i&&!o&&s.end&&s.end()}}function Xs(e,t,n,r,s){const i=en();try{tn(-1),2&r&&t.length>20&&Ns(e,t,20,Vt()),n(r,s)}finally{tn(i)}}function Ys(e,t,n){if(Xe(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const t=e.data[s];t.contentQueries&&t.contentQueries(1,n[s],s)}}}function Qs(e,t,n){Tt()&&(function(e,t,n,r){const s=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||Cn(n,t),Mr(r,t);const o=n.initialInputs;for(let a=s;a<i;a++){const r=e.data[a],i=Je(r);i&&di(t,n,r);const l=Dn(t,e,a,n);Mr(l,t),null!==o&&fi(0,a-s,l,r,0,o),i&&(bt(n.index,t)[8]=l)}}(e,t,n,yt(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,s=n.directiveEnd,i=n.index,o=xt.lFrame.currentDirectiveIndex;try{tn(i);for(let n=r;n<s;n++){const r=e.data[n],s=t[n];$t(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||ai(r,s)}}finally{tn(-1),$t(o)}}(e,t,n))}function Js(e,t,n=yt){const r=t.localNames;if(null!==r){let s=t.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],a=-1===o?n(t,e):e[o];e[s++]=a}}}function ei(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=ti(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function ti(e,t,n,r,s,i,o,a,l,u){const c=20+r,h=c+s,d=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:js);return n}(c,h),p="function"==typeof u?u():u;return d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,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 i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function ni(e,t,n,r){const s=xi(t);null===n?s.push(r):(s.push(n),e.firstCreatePass&&Ti(e).push(r,s.length-1))}function ri(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const s=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,s):n[r]=[t,s]}return n}function si(e,t,n,r,s,i,o,a){const l=yt(t,n);let u,c=t.inputs;var h;!a&&null!=c&&(u=c[r])?(Oi(e,n,u,r,s),Ye(t)&&function(e,t){const n=bt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,t.value||"",r):s,pt(i)?i.setProperty(l,r,s):pn(r)||(l.setProperty?l.setProperty(r,s):l[r]=s))}function ii(e,t,n,r){let s=!1;if(Tt()){const i=function(e,t,n){const r=e.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];Is(n,o.selectors,!1)&&(s||(s=[]),xn(Cn(n,t),e,o.type),Je(o)?(li(e,n),s.unshift(o)):s.push(o))}return s}(e,t,n),o=null===r?null:{"":-1};if(null!==i){s=!0,ci(n,e.data.length,i.length);for(let e=0;e<i.length;e++){const t=i[e];t.providersResolver&&t.providersResolver(t)}let r=!1,a=!1,l=Gs(e,t,i.length,null);for(let s=0;s<i.length;s++){const u=i[s];n.mergedAttrs=fn(n.mergedAttrs,u.hostAttrs),hi(e,n,t,l,u),ui(l,u,o),null!==u.contentQueries&&(n.flags|=8),null===u.hostBindings&&null===u.hostAttrs&&0===u.hostVars||(n.flags|=128);const c=u.type.prototype;!r&&(c.ngOnChanges||c.ngOnInit||c.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),r=!0),a||!c.ngOnChanges&&!c.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(e,t){const n=t.directiveEnd,r=e.data,s=t.attrs,i=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=r[l],n=e.inputs,u=null===s||ks(t)?null:gi(n,s);i.push(u),o=ri(n,l,o),a=ri(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=i,t.inputs=o,t.outputs=a}(e,n)}o&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const s=n[t[e+1]];if(null==s)throw new tt("301",`Export of name '${t[e+1]}' not found!`);r.push(t[e],s)}}}(n,r,o)}return n.mergedAttrs=fn(n.mergedAttrs,n.attrs),s}function oi(e,t,n,r,s,i){const o=i.hostBindings;if(o){let n=e.hostBindingOpCodes;null===n&&(n=e.hostBindingOpCodes=[]);const i=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=i&&n.push(i),n.push(r,s,o)}}function ai(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function li(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ui(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Je(t)&&(n[""]=e)}}function ci(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function hi(e,t,n,r,s){e.data[r]=s;const i=s.factory||(s.factory=et(s.type)),o=new cn(i,Je(s),null);e.blueprint[r]=o,n[r]=o,oi(e,t,0,r,Gs(e,n,s.hostVars,js),s)}function di(e,t,n){const r=yt(t,e),s=ei(n),i=e[10],o=wi(e,$s(e,s,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=o}function pi(e,t,n,r,s,i,o){if(null==i)pt(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const a=null==o?nt(i):o(i,r||"",s);pt(e)?e.setAttribute(t,s,a,n):n?t.setAttributeNS(n,s,a):t.setAttribute(s,a)}}function fi(e,t,n,r,s,i){const o=i[t];if(null!==o){const e=r.setInput;for(let t=0;t<o.length;){const s=o[t++],i=o[t++],a=o[t++];null!==e?r.setInput(n,a,s,i):n[i]=a}}}function gi(e,t){let n=null,r=0;for(;r<t.length;){const s=t[r];if(0!==s)if(5!==s){if("number"==typeof s)break;e.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,e[s],t[r+1])),r+=2}else r+=2;else r+=4}return n}function mi(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function yi(e,t){const n=bt(t,e);if(Ct(n)){const e=n[1];80&n[2]?Zs(e,n,e.template,n[8]):n[5]>0&&vi(n)}}function vi(e){for(let n=Wr(e);null!==n;n=Zr(n))for(let e=10;e<n.length;e++){const t=n[e];if(1024&t[2]){const e=t[1];Zs(e,t,e.template,t[8])}else t[5]>0&&vi(t)}const t=e[1].components;if(null!==t)for(let n=0;n<t.length;n++){const r=bt(t[n],e);Ct(r)&&r[5]>0&&vi(r)}}function bi(e,t){const n=bt(t,e),r=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),Ws(r,n,n[8])}function wi(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function _i(e){for(;e;){e[2]|=64;const t=Gr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function Ci(e,t,n){const r=t[10];r.begin&&r.begin();try{Zs(e,t,e.template,n)}catch(s){throw Ai(t,s),s}finally{r.end&&r.end()}}function Si(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=wt(n),s=r[1];Ks(s,r,s.template,n)}}(e[8])}function Ei(e,t,n){Bt(0),t(e,n)}const ki=(()=>Promise.resolve(null))();function xi(e){return e[7]||(e[7]=[])}function Ti(e){return e.cleanup||(e.cleanup=[])}function Ai(e,t){const n=e[9],r=n?n.get(Vr,null):null;r&&r.handleError(t)}function Oi(e,t,n,r,s){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],l=t[o],u=e.data[o];null!==u.setInput?u.setInput(l,s,r,a):l[a]=s}}function Ii(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,i=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?i=e:1==i?s=ne(s,e):2==i&&(r=ne(r,e+": "+t[++o]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}const Pi=new zn("INJECTOR",-1);class Ri{get(e,t=Qn){if(t===Qn){const t=new Error(`NullInjectorError: No provider for ${te(e)}!`);throw t.name="NullInjectorError",t}return t}}const ji=new zn("Set Injector scope."),Di={},Ni={},Li=[];let Vi;function Fi(){return void 0===Vi&&(Vi=new Ri),Vi}function Ui(e,t=null,n=null,r){return new Mi(e,n,t||Fi(),r)}class Mi{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&Gn(t,n=>this.processProvider(n,e,t)),Gn([e],e=>this.processInjectorType(e,[],s)),this.records.set(Pi,$i(void 0,this));const i=this.records.get(ji);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof e?null:te(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Qn,n=ye.Default){this.assertNotDestroyed();const r=nr(this);try{if(!(n&ye.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof zn)&&ce(e);t=n&&this.injectableDefInScope(n)?$i(Hi(e),Di):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&ye.Self?Fi():this.parent).get(e,t=n&ye.Optional&&t===Qn?null:t)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(te(e)),r)throw i;return function(e,t,n,r){const s=e.ngTempTokenPath;throw t.__source&&s.unshift(t.__source),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=te(t);if(Array.isArray(t))s=t.map(te).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):te(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Jn,"\n  ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e.ngTempTokenPath=null,e}(i,e,"R3InjectorError",this.source)}throw i}finally{nr(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(te(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ie(e)))return!1;let r=de(e);const s=null==r&&e.ngModule||void 0,i=void 0===s?e:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=de(s)),null==r)return!1;if(null!=r.imports&&!o){let e;n.push(i);try{Gn(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:r}=e[t];Gn(r,e=>this.processProvider(e,n,r||Li))}}this.injectorDefTypes.add(i),this.records.set(i,$i(r.factory,Di));const a=r.providers;if(null!=a&&!o){const t=e;Gn(a,e=>this.processProvider(e,t,a))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,n){let r=Bi(e=ie(e))?e:ie(e&&e.provide);const s=function(e,t,n){return qi(e)?$i(void 0,e.useValue):$i(zi(e),Di)}(e);if(Bi(e)||!0!==e.multi)this.records.get(r);else{let t=this.records.get(r);t||(t=$i(void 0,Di,!0),t.factory=()=>ir(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,s)}hydrate(e,t){var n;return t.value===Di&&(t.value=Ni,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}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Hi(e){const t=ce(e),n=null!==t?t.factory:et(e);if(null!==n)return n;const r=de(e);if(null!==r)return r.factory;if(e instanceof zn)throw new Error(`Token ${te(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=function(e,t){const n=[];for(let r=0;r<e;r++)n.push("?");return n}(t);throw new Error(`Can't resolve all parameters for ${te(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[pe]||e[ge]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function zi(e,t,n){let r;if(Bi(e)){const t=ie(e);return et(t)||Hi(t)}if(qi(e))r=()=>ie(e.useValue);else if((s=e)&&s.useFactory)r=()=>e.useFactory(...ir(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>sr(ie(e.useExisting));else{const t=ie(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return et(t)||Hi(t);r=()=>new t(...ir(e.deps))}var s;return r}function $i(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function qi(e){return null!==e&&"object"==typeof e&&er in e}function Bi(e){return"function"==typeof e}const Gi=function(e,t,n){return function(e,t=null,n=null,r){const s=Ui(e,t,n,r);return s._resolveInjectorDefTypes(),s}({name:n},t,e,n)};let Wi=(()=>{class e{static create(e,t){return Array.isArray(e)?Gi(e,t,""):Gi(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Qn,e.NULL=new Ri,e.\u0275prov=le({token:e,providedIn:"any",factory:()=>sr(Pi)}),e.__NG_ELEMENT_ID__=-1,e})();function Zi(e,t){rn(wt(e)[1],Pt())}function Ki(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const r=[e];for(;t;){let s;if(Je(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");s=t.\u0275dir}if(s){if(n){r.push(s);const t=e;t.inputs=Xi(e.inputs),t.declaredInputs=Xi(e.declaredInputs),t.outputs=Xi(e.outputs);const n=s.hostBindings;n&&Ji(e,n);const i=s.viewQuery,o=s.contentQueries;if(i&&Yi(e,i),o&&Qi(e,o),ee(e.inputs,s.inputs),ee(e.declaredInputs,s.declaredInputs),ee(e.outputs,s.outputs),Je(s)&&s.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(s.data.animation)}}const t=s.features;if(t)for(let r=0;r<t.length;r++){const s=t[r];s&&s.ngInherit&&s(e),s===Ki&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=fn(s.hostAttrs,n=fn(n,s.hostAttrs))}}(r)}function Xi(e){return e===Oe?{}:e===Ie?[]:e}function Yi(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Qi(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,s)=>{t(e,r,s),n(e,r,s)}:t}function Ji(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}let eo=null;function to(){if(!eo){const e=Ae.Symbol;if(e&&e.iterator)eo=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(eo=n)}}}return eo}function no(e){return!!ro(e)&&(Array.isArray(e)||!(e instanceof Map)&&to()in e)}function ro(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function so(e,t,n){return e[t]=n}function io(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function oo(e,t,n,r){const s=At();return io(s,Mt(),t)&&(Ot(),function(e,t,n,r,s,i){const o=yt(e,t);pi(t[11],o,i,e.value,n,r,s)}(nn(),s,e,t,n,r)),oo}function ao(e,t,n,r){return io(e,Mt(),n)?t+nt(n)+r:js}function lo(e,t,n,r,s,i,o,a){const l=At(),u=Ot(),c=e+20,h=u.firstCreatePass?function(e,t,n,r,s,i,o,a,l){const u=t.consts,c=qs(t,e,4,o||null,St(u,a));ii(t,n,c,St(u,l)),rn(t,c);const h=c.tViews=ti(2,c,r,s,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),h.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,s,i,o):u.data[c];Dt(h,!1);const d=l[11].createComment("");fs(u,l,d,h),Mr(d,l),wi(l,l[c]=mi(d,l,d,h)),Qe(h)&&Qs(u,l,h),null!=o&&Js(l,h,a)}function uo(e){return function(e,t){return e[t]}(xt.lFrame.contextLView,20+e)}function co(e,t=ye.Default){const n=At();return null===n?sr(e,t):On(Pt(),n,ie(e),t)}function ho(e,t,n){const r=At();return io(r,Mt(),t)&&si(Ot(),nn(),r,e,t,r[11],n,!1),ho}function po(e,t,n,r,s){const i=s?"class":"style";Oi(e,n,t.inputs[i],i,r)}function fo(e,t,n,r){const s=At(),i=Ot(),o=20+e,a=s[11],l=s[o]=es(a,t,xt.lFrame.currentNamespace),u=i.firstCreatePass?function(e,t,n,r,s,i,o){const a=t.consts,l=qs(t,e,2,s,St(a,i));return ii(t,n,l,St(a,o)),null!==l.attrs&&Ii(l,l.attrs,!1),null!==l.mergedAttrs&&Ii(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,i,s,0,t,n,r):i.data[o];Dt(u,!0);const c=u.mergedAttrs;null!==c&&hn(a,l,c);const h=u.classes;null!==h&&Cs(a,l,h);const d=u.styles;null!==d&&_s(a,l,d),64!=(64&u.flags)&&fs(i,s,l,u),0===xt.lFrame.elementDepthCount&&Mr(l,s),xt.lFrame.elementDepthCount++,Qe(u)&&(Qs(i,s,u),Ys(i,u,s)),null!==r&&Js(s,u)}function go(){let e=Pt();Nt()?Lt():(e=e.parent,Dt(e,!1));const t=e;xt.lFrame.elementDepthCount--;const n=Ot();n.firstCreatePass&&(rn(n,e),Xe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&po(n,t,At(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&po(n,t,At(),t.stylesWithoutHost,!1)}function mo(e,t,n,r){fo(e,t,n,r),go()}function yo(e,t,n){const r=At(),s=Ot(),i=e+20,o=s.firstCreatePass?function(e,t,n,r,s){const i=t.consts,o=St(i,r),a=qs(t,e,8,"ng-container",o);return null!==o&&Ii(a,o,!0),ii(t,n,a,St(i,s)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,s,r,t,n):s.data[i];Dt(o,!0);const a=r[i]=r[11].createComment("");fs(s,r,a,o),Mr(a,r),Qe(o)&&(Qs(s,r,o),Ys(s,o,r)),null!=n&&Js(r,o)}function vo(){let e=Pt();const t=Ot();Nt()?Lt():(e=e.parent,Dt(e,!1)),t.firstCreatePass&&(rn(t,e),Xe(e)&&t.queries.elementEnd(e))}function bo(){return At()}function wo(e){return!!e&&"function"==typeof e.then}const _o=function(e){return!!e&&"function"==typeof e.subscribe};function Co(e,t,n=!1,r){const s=At(),i=Ot(),o=Pt();return function(e,t,n,r,s,i,o=!1,a){const l=Qe(r),u=e.firstCreatePass&&Ti(e),c=xi(t);let h=!0;if(3&r.type){const d=yt(r,t),p=a?a(d):Oe,f=p.target||d,g=c.length,m=a?e=>a(gt(e[r.index])).target:r.index;if(pt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,r){const s=e.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const e=s[i];if(e===n&&s[i+1]===r){const e=t[7],n=s[i+2];return e.length>n?e[n]:null}"string"==typeof e&&(i+=2)}return null}(e,t,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=Eo(r,t,i,!1);const e=n.listen(p.name||f,s,i);c.push(i,e),u&&u.push(s,m,g,g+1)}}else i=Eo(r,t,i,!0),f.addEventListener(s,i,o),c.push(i),u&&u.push(s,m,g,o)}else i=Eo(r,t,i,!1);const d=r.outputs;let p;if(h&&null!==d&&(p=d[s])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=t[p[n]][p[n+1]].subscribe(i),o=c.length;c.push(i,e),u&&u.push(s,r.index,o,-(o+1))}}}(i,s,s[11],o,e,t,n,r),Co}function So(e,t,n){try{return!1!==t(n)}catch(r){return Ai(e,r),!1}}function Eo(e,t,n,r){return function s(i){if(i===Function)return n;const o=2&e.flags?bt(e.index,t):t;0==(32&t[2])&&_i(o);let a=So(t,n,i),l=s.__ngNextListenerFn__;for(;l;)a=So(t,l,i)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function ko(e=1){return function(e){return(xt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,xt.lFrame.contextLView))[8]}(e)}function xo(e,t,n,r,s){const i=At(),o=ao(i,t,n,r);return o!==js&&si(Ot(),nn(),i,e,o,i[11],s,!1),xo}const To=[];function Ao(e,t,n,r,s){const i=e[n+1],o=null===t;let a=r?Vs(i):Us(i),l=!1;for(;0!==a&&(!1===l||o);){const n=e[a+1];Oo(e[a],t)&&(l=!0,e[a+1]=r?Hs(n):Fs(n)),a=r?Vs(n):Us(n)}l&&(e[n+1]=r?Fs(i):Hs(i))}function Oo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Yn(e,t)>=0}function Io(e,t){return function(e,t,n,r){const s=At(),i=Ot(),o=function(e){const t=xt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+2,n}();i.firstUpdatePass&&function(e,t,n,r){const s=e.data;if(null===s[n+1]){const r=s[en()],i=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(16&e.flags)})(r)&&null===t&&!i&&(t=!1),t=function(e,t,n,r){const s=function(e){const t=xt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=t.residualClasses;if(null===s)0===t.classBindings&&(n=Ro(n=Po(null,e,t,n,true),t.attrs,true),i=null);else{const r=t.directiveStylingLast;if(-1===r||e[r]!==s)if(n=Po(s,e,t,n,true),null===i){let n=function(e,t,n){const r=t.classBindings;if(0!==Us(r))return e[Vs(r)]}(e,t);void 0!==n&&Array.isArray(n)&&(n=Po(null,e,t,n[1],true),n=Ro(n,t.attrs,true),function(e,t,n,r){e[Vs(t.classBindings)]=r}(e,t,0,n))}else i=function(e,t,n){let r;const s=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<s;i++)r=Ro(r,e[i].hostAttrs,true);return Ro(r,t.attrs,true)}(e,t)}return void 0!==i&&(t.residualClasses=i),n}(s,r,t),function(e,t,n,r,s,i){let o=t.classBindings,a=Vs(o),l=Us(o);e[r]=n;let u,c=!1;if(Array.isArray(n)){const e=n;u=e[1],(null===u||Yn(e,u)>0)&&(c=!0)}else u=n;if(s)if(0!==l){const t=Vs(e[a+1]);e[r+1]=Ls(t,a),0!==t&&(e[t+1]=Ms(e[t+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=Ls(a,0),0!==a&&(e[a+1]=Ms(e[a+1],r)),a=r;else e[r+1]=Ls(l,0),0===a?a=r:e[l+1]=Ms(e[l+1],r),l=r;c&&(e[r+1]=Fs(e[r+1])),Ao(e,u,r,!0),Ao(e,u,r,!1),function(e,t,n,r,s){const i=e.residualClasses;null!=i&&"string"==typeof t&&Yn(i,t)>=0&&(n[r+1]=Hs(n[r+1]))}(t,u,e,r),o=Ls(a,l),t.classBindings=o}(s,r,t,n,i)}}(i,e,o),t!==js&&io(s,o,t)&&function(e,t,n,r,s,i,o,a){if(!(3&t.type))return;const l=e.data,u=l[a+1];Do(1==(1&u)?jo(l,t,n,s,Us(u),true):void 0)||(Do(i)||function(e){return 2==(2&e)}(u)&&(i=jo(l,null,n,s,a,true)),function(e,t,n,r,s){const i=pt(e);s?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r)}(r,0,mt(en(),n),s,i))}(i,i.data[en()],s,s[11],e,s[o+1]=function(e,t){return null==e||"object"==typeof e&&(e=te(fr(e))),e}(t),0,o)}(e,t),Io}function Po(e,t,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=t[a],r=Ro(r,i.hostAttrs,s),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function Ro(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?s=o:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Kn(e,o,!!n||t[++i]))}return void 0===e?null:e}function jo(e,t,n,r,s,i){const o=null===t;let a;for(;s>0;){const t=e[s],i=Array.isArray(t),l=i?t[1]:t,u=null===l;let c=n[s+1];c===js&&(c=u?To:void 0);let h=u?Xn(c,r):l===r?c:void 0;if(i&&!Do(h)&&(h=Xn(t,r)),Do(h)&&(a=h,o))return a;const d=e[s+1];s=o?Vs(d):Us(d)}if(null!==t){let e=i?t.residualClasses:t.residualStyles;null!=e&&(a=Xn(e,r))}return a}function Do(e){return void 0!==e}function No(e,t=""){const n=At(),r=Ot(),s=e+20,i=r.firstCreatePass?qs(r,s,1,t,null):r.data[s],o=n[s]=Yr(n[11],t);fs(r,n,o,i),Dt(i,!1)}function Lo(e){return Vo("",e,""),Lo}function Vo(e,t,n){const r=At(),s=ao(r,e,t,n);return s!==js&&function(e,t,n){const r=mt(t,e);Qr(e[11],r,n)}(r,en(),s),Vo}function Fo(e,t,n){const r=At();return io(r,Mt(),t)&&si(Ot(),nn(),r,e,t,r[11],n,!0),Fo}const Uo=void 0;var Mo=["en",[["a","p"],["AM","PM"],Uo],[["AM","PM"],Uo,Uo],[["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"]],Uo,[["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"]],Uo,[["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}",Uo,"{1} 'at' {0}",Uo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Ho={};function zo(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=$o(t);if(n)return n;const r=t.split("-")[0];if(n=$o(r),n)return n;if("en"===r)return Mo;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[qo.PluralCase]}function $o(e){return e in Ho||(Ho[e]=Ae.ng&&Ae.ng.common&&Ae.ng.common.locales&&Ae.ng.common.locales[e]),Ho[e]}var qo=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}({});const Bo=["zero","one","two","few","many"],Go={marker:"element"},Wo={marker:"ICU"};var Zo=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({});let Ko="en-US";function Xo(e){var t;null==(t=e)&&ae("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(Ko=e.toLowerCase().replace(/_/g,"-"))}function Yo(e,t,n){const r=t.insertBeforeIndex,s=Array.isArray(r)?r[0]:r;return null===s?cs(e,0,n):gt(n[s])}function Qo(e,t,n,r,s){const i=t.insertBeforeIndex;if(Array.isArray(i)){let o=r,a=null;if(3&t.type||(a=o,o=s),null!==o&&0==(2&t.flags))for(let t=1;t<i.length;t++)os(e,o,n[i[t]],a,!1)}}function Jo(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];ea(r)||ta(r,t)&&null===na(r)&&ra(r,t.index)}}function ea(e){return!(64&e.type)}function ta(e,t){return ea(t)||e.index>t.index}function na(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function ra(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(ps(Yo,Qo),e.insertBeforeIndex=t)}function sa(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function ia(e,t,n){const r=Bs(e,n,64,null,null);return Jo(t,r),r}function oa(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}let aa=0,la=0;function ua(e,t,n,r){const s=n[11];let i,o=null;for(let a=0;a<t.length;a++){const l=t[a];if("string"==typeof l){const e=t[++a];null===n[e]&&(n[e]=Yr(s,l))}else if("number"==typeof l)switch(1&l){case 0:const u=l>>>17;let c,h;if(null===o&&(o=u,i=us(s,r)),u===o?(c=r,h=i):(c=null,h=gt(n[u])),null!==h){const t=(131070&l)>>>1;os(s,h,n[t],c,!1);const r=sa(e,t);if(null!==r&&"object"==typeof r){const t=oa(r,n);null!==t&&ua(e,r.create[t],n,n[r.anchorIdx])}}break;case 1:const d=t[++a],p=t[++a];pi(s,mt(l>>>1,n),null,null,d,p,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case Wo:const e=t[++a],r=t[++a];null===n[r]&&Mr(n[r]=Jr(s,e),n);break;case Go:const i=t[++a],o=t[++a];null===n[o]&&Mr(n[o]=es(s,i,null),n)}}}function ca(e,t,n,r,s){for(let i=0;i<n.length;i++){const o=n[i],a=n[++i];if(o&s){let s="";for(let o=i+1;o<=i+a;o++){const i=n[o];if("string"==typeof i)s+=i;else if("number"==typeof i)if(i<0)s+=nt(t[r-i]);else{const a=i>>>2;switch(3&i){case 1:const i=n[++o],l=n[++o],u=e.data[a];"string"==typeof u?pi(t[11],t[a],null,u,i,s,l):si(e,u,t,i,s,t[11],l,!1);break;case 0:const c=t[a];null!==c&&Qr(t[11],c,s);break;case 2:da(e,sa(e,a),t,s);break;case 3:ha(e,sa(e,a),r,t)}}}}else{const s=n[i+1];if(s>0&&3==(3&s)){const n=sa(e,s>>>2);t[n.currentCaseLViewIndex]<0&&ha(e,n,r,t)}}i+=a}}function ha(e,t,n,r){let s=r[t.currentCaseLViewIndex];if(null!==s){let i=aa;s<0&&(s=r[t.currentCaseLViewIndex]=~s,i=-1),ca(e,r,t.update[s],n,i)}}function da(e,t,n,r){const s=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=zo(t)(parseInt(e,10)),r=Bo[n];return void 0!==r?r:"other"}(t,Ko);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(oa(t,n)!==s&&(pa(e,t,n),n[t.currentCaseLViewIndex]=null===s?null:~s,null!==s)){const r=n[t.anchorIdx];r&&ua(e,t.create[s],n,r)}}function pa(e,t,n){let r=oa(t,n);if(null!==r){const s=t.remove[r];for(let t=0;t<s.length;t++){const r=s[t];if(r>0){const e=mt(r,n);null!==e&&ys(n[11],e)}else pa(e,sa(e,~r),n)}}}const fa=/\ufffd(\d+):?\d*\ufffd/gi,ga=/\ufffd(\d+)\ufffd/,ma=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,ya=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,va=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,ba=/\uE500/g;function wa(e,t,n,r,s,i,o){const a=Gs(e,r,1,null);let l=a<<Zo.SHIFT,u=jt();t===u&&(u=null),null===u&&(l|=Zo.APPEND_EAGERLY),o&&(l|=Zo.COMMENT,void 0===qr&&(qr=function(){const e=[];let t,n,r=-1;function s(e,t){r=0;const s=oa(e,t);n=null!==s?e.remove[s]:Ie}function i(){if(r<n.length){const o=n[r++];return o>0?t[o]:(e.push(r,n),s(t[1].data[~o],t),i())}return 0===e.length?null:(n=e.pop(),r=e.pop(),i())}return function(n,r){for(t=r;e.length;)e.pop();return s(n.value,r),i}}())),s.push(l,null===i?"":i);const c=Bs(e,a,o?32:1,null===i?"":i,null);Jo(n,c);const h=c.index;return Dt(c,!1),null!==u&&t!==u&&function(e,t){let n=e.insertBeforeIndex;var r;null===n?(ps(Yo,Qo),n=e.insertBeforeIndex=[null,t]):("Expecting array here",(r=Array.isArray(n))!=!0&&ae("Expecting array here",r,true,"=="),n.push(t))}(u,h),c}function _a(e,t,n,r,s,i,o){const a=o.match(fa),l=wa(e,t,n,i,r,a?null:o,!1);a&&Ca(s,o,l.index)}function Ca(e,t,n,r,s=null){const i=e.length,o=i+1;e.push(null,null);const a=i+2,l=t.split(fa);let u=0;for(let c=0;c<l.length;c++){const t=l[c];if(1&c){const n=parseInt(t,10);e.push(-1-n),u|=Sa(n)}else""!==t&&e.push(t)}return e.push(n<<2|(r?1:0)),r&&e.push(r,s),e[i]=u,e[o]=e.length-a,u}function Sa(e){return 1<<Math.min(e,31)}function Ea(e){let t,n,r="",s=0,i=!1;for(;null!==(t=ya.exec(e));)i?t[0]===`\ufffd/*${n}\ufffd`&&(s=t.index,i=!1):(r+=e.substring(s,t.index+t[0].length),n=t[1],i=!0);return r+=e.substr(s),r}function ka(e,t,n,r,s,i){let o=0;const a={type:s.type,currentCaseLViewIndex:Gs(e,t,1,null),anchorIdx:i,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(Sa(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,s,i),function(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,i,a);const l=s.values;for(let u=0;u<l.length;u++){const i=l[u],c=[];for(let e=0;e<i.length;e++){const t=i[e];if("string"!=typeof t){const n=c.push(t)-1;i[e]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}o=Aa(e,a,t,n,r,s.cases[u],i.join(""),c)|o}o&&function(e,t,n){e.push(t,1,n<<2|3)}(n,o,i)}function xa(e){const t=[],n=[];let r=1,s=0;const i=Ta(e=e.replace(ma,function(e,t,n){return r="select"===n?0:1,s=parseInt(t.substr(1),10),""}));for(let o=0;o<i.length;){let e=i[o++].trim();1===r&&(e=e.replace(/\s*(?:=)?(\w+)\s*/,"$1")),e.length&&t.push(e);const s=Ta(i[o++]);t.length>n.length&&n.push(s)}return{type:r,mainBinding:s,cases:t,values:n}}function Ta(e){if(!e)return[];let t=0;const n=[],r=[],s=/[{}]/g;let i;for(s.lastIndex=0;i=s.exec(e);){const s=i.index;if("}"==i[0]){if(n.pop(),0==n.length){const n=e.substring(t,s);ma.test(n)?r.push(xa(n)):r.push(n),t=s+1}}else{if(0==n.length){const n=e.substring(t,s);r.push(n),t=s+1}n.push("{")}}const o=e.substring(t);return r.push(o),r}function Aa(e,t,n,r,s,i,o,a){const l=[],u=[],c=[];t.cases.push(i),t.create.push(l),t.remove.push(u),t.update.push(c);const h=function(e){const t=new mr(e);return function(){try{return!!(new window.DOMParser).parseFromString(dr(""),"text/html")}catch(e){return!1}}()?new gr(t):t}(dt()).getInertBodyElement(o),d=("content"in(p=h)&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(p)?p.content:null)||h;var p;return d?Oa(e,t,n,r,l,u,c,d,s,a,0):0}function Oa(e,t,n,r,s,i,o,a,l,u,c){let h=0,d=a.firstChild;for(;d;){const a=Gs(e,n,1,null);switch(d.nodeType){case Node.ELEMENT_NODE:const p=d,f=p.tagName.toLowerCase();if(Tr.hasOwnProperty(f)){Ra(s,Go,f,l,a),e.data[a]=f;const g=p.attributes;for(let e=0;e<g.length;e++){const t=g.item(e),n=t.name.toLowerCase();t.value.match(fa)?Ir.hasOwnProperty(n)&&(Ar[n]?Ca(o,t.value,a,t.name,br):Or[n]?Ca(o,t.value,a,t.name,wr):Ca(o,t.value,a,t.name)):ja(s,a,t)}h=Oa(e,t,n,r,s,i,o,d,a,u,c+1)|h,Ia(i,a,c)}break;case Node.TEXT_NODE:const g=d.textContent||"",m=g.match(fa);Ra(s,null,m?"":g,l,a),Ia(i,a,c),m&&(h=Ca(o,g,a)|h);break;case Node.COMMENT_NODE:const y=ga.exec(d.textContent||"");if(y){const t=u[parseInt(y[1],10)];Ra(s,Wo,"",l,a),ka(e,n,r,l,t,a),Pa(i,a,c)}}d=d.nextSibling}return h}function Ia(e,t,n){0===n&&e.push(t)}function Pa(e,t,n){0===n&&(e.push(~t),e.push(t))}function Ra(e,t,n,r,s){null!==t&&e.push(t),e.push(n,s,0|r<<17|s<<1)}function ja(e,t,n){e.push(t<<1|1,n.name,n.value)}function Da(e,t,n=-1){const r=Ot(),s=At(),i=20+e,o=St(r.consts,t),a=jt();r.firstCreatePass&&function(e,t,n,r,s,i){const o=jt(),a=[],l=[],u=[[]],c=(h=s=function(e,t){if(function(e){return-1===e}(t))return Ea(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Ea(e.substring(n,r))}}(s,i),h.replace(ba," ")).split(va);var h;for(let d=0;d<c.length;d++){let r=c[d];if(0==(1&d)){const i=Ta(r);for(let r=0;r<i.length;r++){let c=i[r];if(0==(1&r)){const t=c;""!==t&&_a(e,o,u[0],a,l,n,t)}else{const r=c;if("object"!=typeof r)throw new Error(`Unable to parse ICU expression in "${s}" message.`);ka(e,n,l,t,r,wa(e,o,u[0],n,a,"",!0).index)}}}else{const t=47===r.charCodeAt(0),n=(r.charCodeAt(t?1:0),20+Number.parseInt(r.substring(t?2:1)));if(t)u.shift(),Dt(jt(),!1);else{const t=ia(e,u[0],n);u.unshift([]),Dt(t,!0)}}}e.data[r]={create:a,update:l}}(r,null===a?0:a.index,s,i,o,n);const l=r.data[i],u=is(r,a===s[6]?null:a,s);!function(e,t,n,r){const s=e[11];for(let i=0;i<t.length;i++){const o=t[i++],a=t[i],l=(o&Zo.COMMENT)===Zo.COMMENT,u=(o&Zo.APPEND_EAGERLY)===Zo.APPEND_EAGERLY,c=o>>>Zo.SHIFT;let h=e[c];null===h&&(h=e[c]=l?s.createComment(a):Yr(s,a)),u&&null!==n&&os(s,n,h,r,!1)}}(s,l.create,u,a&&8&a.type?s[a.index]:null),Ht(!0)}function Na(){Ht(!1)}function La(e,t,n){Da(e,t,n),Na()}function Va(e){return io(At(),Mt(),e)&&(aa|=1<<Math.min(la,31)),la++,Va}function Fa(e,t,n,r,s){if(e=ie(e),Array.isArray(e))for(let i=0;i<e.length;i++)Fa(e[i],t,n,r,s);else{const i=Ot(),o=At();let a=Bi(e)?e:ie(e.provide),l=zi(e);const u=Pt(),c=1048575&u.providerIndexes,h=u.directiveStart,d=u.providerIndexes>>20;if(Bi(e)||!e.multi){const r=new cn(l,s,co),p=Ha(a,t,s?c:c+d,h);-1===p?(xn(Cn(u,o),i,a),Ua(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(r),o.push(r)):(n[p]=r,o[p]=r)}else{const p=Ha(a,t,c+d,h),f=Ha(a,t,c,c+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){xn(Cn(u,o),i,a);const c=function(e,t,n,r,s){const i=new cn(e,n,co);return i.multi=[],i.index=t,i.componentProviders=0,Ma(i,s,r&&!n),i}(s?$a:za,n.length,s,r,l);!s&&m&&(n[f].providerFactory=c),Ua(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,s&&(u.providerIndexes+=1048576),n.push(c),o.push(c)}else Ua(i,e,p>-1?p:f,Ma(n[s?f:p],l,!s&&r));!s&&r&&m&&n[f].componentProviders++}}}function Ua(e,t,n,r){const s=Bi(t);if(s||t.useClass){const i=(t.useClass||t).prototype.ngOnDestroy;if(i){const o=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const e=o.indexOf(n);-1===e?o.push(n,[r,i]):o[e+1].push(r,i)}else o.push(n,i)}}}function Ma(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ha(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function za(e,t,n,r){return qa(this.multi,[])}function $a(e,t,n,r){const s=this.multi;let i;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Dn(n,n[1],this.providerFactory.index,r);i=t.slice(0,e),qa(s,i);for(let n=e;n<t.length;n++)i.push(t[n])}else i=[],qa(s,i);return i}function qa(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Ba(e,t=[]){return n=>{n.providersResolver=(n,r)=>function(e,t,n){const r=Ot();if(r.firstCreatePass){const s=Je(e);Fa(n,r.data,r.blueprint,s,!0),Fa(t,r.data,r.blueprint,s,!1)}}(n,r?r(e):e,t)}}class Ga{}class Wa{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${te(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let Za=(()=>{class e{}return e.NULL=new Wa,e})();function Ka(...e){}function Xa(e,t){return new Qa(yt(e,t))}const Ya=function(){return Xa(Pt(),At())};let Qa=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=Ya,e})();function Ja(e){return e instanceof Qa?e.nativeElement:e}class el{}let tl=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>nl(),e})();const nl=function(){const e=At(),t=bt(Pt().index,e);return function(e){return e[11]}(Ze(t)?t:e)};let rl=(()=>{class e{}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>null}),e})();class sl{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const il=new sl("11.1.2");class ol{constructor(){}supports(e){return no(e)}create(e){return new ll(e)}}const al=(e,t)=>t;class ll{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||al}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex<dl(n,r,s)?t:n,o=dl(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{s||(s=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;t<=i&&i<e&&(s[n]=r+1)}s[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!no(e))throw new Error(`Error trying to diff '${te(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,t)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),i=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[to()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),Object.is(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let 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}}_mismatch(e,t,n,r){let s;return null===e?s=this._itTail:(s=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,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new ul(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const 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)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const 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 hl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new hl),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}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class ul{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class cl{constructor(){this._head=null,this._tail=null}add(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)}get(e,t){let 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}remove(e){const 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}}class hl{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new cl,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dl(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class pl{constructor(){}supports(e){return e instanceof Map||ro(e)}create(){return new fl}}class fl{constructor(){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}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||ro(e)))throw new Error(`Error trying to diff '${te(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const 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}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new gl(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let 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}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class gl{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ml(){return new yl([new ol])}let yl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||ml()),deps:[[e,new ur,new lr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=le({token:e,providedIn:"root",factory:ml}),e})();function vl(){return new bl([new pl])}let bl=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>e.create(t,n||vl()),deps:[[e,new ur,new lr]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=le({token:e,providedIn:"root",factory:vl}),e})();function wl(e,t,n,r,s=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(gt(i)),Ke(i))for(let e=10;e<i.length;e++){const t=i[e],n=t[1].firstChild;null!==n&&wl(t[1],t,n,r)}const o=n.type;if(8&o)wl(e,t,n.child,r);else if(32&o){const e=Br(n,t);let s;for(;s=e();)r.push(s)}else if(16&o){const e=t[16],s=e[6].projection[n.projection];if(Array.isArray(s))r.push(...s);else{const t=Gr(e);wl(t[1],t,s,r,!0)}}n=s?n.projectionNext:n.next}return r}class _l{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return wl(t,e,t.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Ke(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(ns(e,n),Zn(t,n))}this._attachedToViewContainer=!1}rs(this._lView[1],this._lView)}onDestroy(e){ni(this._lView[1],this._lView,null,e)}markForCheck(){_i(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ci(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Ft(!0);try{Ci(e,t,n)}finally{Ft(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,bs(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Cl extends _l{constructor(e){super(e),this._view=e}detectChanges(){Si(this._view)}checkNoChanges(){!function(e){Ft(!0);try{Si(e)}finally{Ft(!1)}}(this._view)}get context(){return null}}const Sl=function(e=!1){return function(e,t,n){if(!n&&Ye(e)){const n=bt(e.index,t);return new _l(n,n)}return 47&e.type?new _l(t[16],t):null}(Pt(),At(),e)};let El=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sl,e.__ChangeDetectorRef__=!0,e})();const kl=[new pl],xl=new yl([new ol]),Tl=new bl(kl),Al=function(){return Rl(Pt(),At())};let Ol=(()=>{class e{}return e.__NG_ELEMENT_ID__=Al,e})();const Il=Ol,Pl=class extends Il{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=$s(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),Ws(t,n,e),new _l(n)}};function Rl(e,t){return 4&e.type?new Pl(t,e,Xa(e,t)):null}class jl{}class Dl{}const Nl=function(){return Hl(Pt(),At())};let Ll=(()=>{class e{}return e.__NG_ELEMENT_ID__=Nl,e})();const Vl=Ll,Fl=class extends Vl{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return Xa(this._hostTNode,this._hostLView)}get injector(){return new Vn(this._hostTNode,this._hostLView)}get parentInjector(){const e=kn(this._hostTNode,this._hostLView);if(mn(e)){const t=vn(e,this._hostLView),n=yn(e);return new Vn(t[1].data[n+8],t)}return new Vn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Ul(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;if(!s&&null==e.ngModule&&i){const e=i.get(jl,null);e&&(s=e)}const o=e.create(i,r,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,r=n[1];if(Ke(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Fl(t,t[6],t[3]);r.detach(r.indexOf(e))}}const s=this._adjustIndex(t),i=this._lContainer;!function(e,t,n,r){const s=10+r,i=n.length;r>0&&(n[s-1][4]=t),r<i-10?(t[4]=n[s],Wn(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(r,n,i,s);const o=ms(s,i),a=n[11],l=us(a,i[7]);return null!==l&&function(e,t,n,r,s,i){r[0]=s,r[6]=t,bs(e,r,n,1,s,i)}(r,i[6],a,n,l,o),e.attachToViewContainerRef(),Wn(Ml(i),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=Ul(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=ns(this._lContainer,t);n&&(Zn(Ml(this._lContainer),t),rs(n[1],n))}detach(e){const t=this._adjustIndex(e,-1),n=ns(this._lContainer,t);return n&&null!=Zn(Ml(this._lContainer),t)?new _l(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function Ul(e){return e[8]}function Ml(e){return e[8]||(e[8]=[])}function Hl(e,t){let n;const r=t[e.index];if(Ke(r))n=r;else{let s;if(8&e.type)s=gt(r);else{const n=t[11];s=n.createComment("");const r=yt(e,t);os(n,us(n,r),s,function(e,t){return pt(e)?e.nextSibling(t):t.nextSibling}(n,r),!1)}t[e.index]=n=mi(r,t,s,e),wi(t,n)}return new Fl(n,e,t)}const zl={};class $l extends Za{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Ge(e);return new Gl(t,this.ngModule)}}function ql(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Bl=new zn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Hr});class Gl extends Ga{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(Rs).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ql(this.componentDef.inputs)}get outputs(){return ql(this.componentDef.outputs)}create(e,t,n,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,r,s)=>{const i=e.get(n,zl,s);return i!==zl||r===zl?i:t.get(n,r,s)}}}(e,r.injector):e,i=s.get(el,ft),o=s.get(rl,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(e,t,n){if(pt(e))return e.selectRootElement(t,n===Se.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(a,n,this.componentDef.encapsulation):es(i.createRenderer(null,this.componentDef),l,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:Hr,clean:ki,playerHandler:null,flags:0},d=ti(0,null,null,1,0,null,null,null,null,null),p=$s(null,d,h,c,null,null,i,a,o,s);let f,g;Zt(p);try{const e=function(e,t,n,r,s,i){const o=n[1];n[20]=e;const a=qs(o,20,2,"#host",null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Ii(a,l,!0),null!==e&&(hn(s,e,l),null!==a.classes&&Cs(s,e,a.classes),null!==a.styles&&_s(s,e,a.styles)));const u=r.createRenderer(e,t),c=$s(n,ei(t),null,t.onPush?64:16,n[20],a,r,u,null,null);return o.firstCreatePass&&(xn(Cn(a,n),o,t.type),li(o,a),ci(a,n.length,1)),wi(n,c),n[20]=c}(u,this.componentDef,p,i,a);if(u)if(n)hn(a,u,["ng-version",il.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===s?""!==i&&t.push(i,e[++r]):8===s&&n.push(i);else{if(!As(s))break;s=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&hn(a,u,e),t&&t.length>0&&Cs(a,u,t.join(" "))}if(g=vt(d,20),void 0!==t){const e=g.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=t[n];e.push(null!=r?Array.from(r):null)}}f=function(e,t,n,r,s){const i=n[1],o=function(e,t,n){const r=Pt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),hi(e,r,t,Gs(e,t,1,null),n));const s=Dn(t,e,r.directiveStart,r);Mr(s,t);const i=yt(r,t);return i&&Mr(i,t),s}(i,n,t);if(r.components.push(o),e[8]=o,s&&s.forEach(e=>e(o,t)),t.contentQueries){const e=Pt();t.contentQueries(1,o,e.directiveStart)}const a=Pt();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(tn(a.index),oi(n[1],a,0,a.directiveStart,a.directiveEnd,t),ai(t,o)),o}(e,this.componentDef,p,h,[Zi]),Ws(d,p,null)}finally{Jt()}return new Wl(this.componentType,f,Xa(g,p),p,g)}}class Wl extends class{}{constructor(e,t,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new Cl(r),this.componentType=e}get injector(){return new Vn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const Zl=new Map;class Kl extends jl{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new $l(this);const n=We(e),r=e[Ne]||null;r&&Xo(r),this._bootstrapComponents=zr(n.bootstrap),this._r3Injector=Ui(e,t,[{provide:jl,useValue:this},{provide:Za,useValue:this.componentFactoryResolver}],te(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Wi.THROW_IF_NOT_FOUND,n=ye.Default){return e===Wi||e===jl||e===Pi?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Xl extends Dl{constructor(e){super(),this.moduleType=e,null!==We(e)&&function(e){const t=new Set;!function e(n){const r=We(n,!0),s=r.id;null!==s&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${te(t)} vs ${te(t.name)}`)}(s,Zl.get(s),n),Zl.set(s,n));const i=zr(r.imports);for(const o of i)t.has(o)||(t.add(o),e(o))}(e)}(e)}create(e){return new Kl(this.moduleType,e)}}function Yl(e,t,n){const r=Ut()+e,s=At();return s[r]===js?so(s,r,n?t.call(n):t()):function(e,t){return e[t]}(s,r)}function Ql(e,t,n,r){return function(e,t,n,r,s,i){const o=t+n;return io(e,o,s)?so(e,o+1,i?r.call(i,s):r(s)):eu(e,o+1)}(At(),Ut(),e,t,n,r)}function Jl(e,t,n,r,s,i){return function(e,t,n,r,s,i,o,a){const l=t+n;return function(e,t,n,r,s){const i=function(e,t,n,r){const s=io(e,t,n);return io(e,t+1,r)||s}(e,t,n,r);return io(e,t+2,s)||i}(e,l,s,i,o)?so(e,l+3,a?r.call(a,s,i,o):r(s,i,o)):eu(e,l+3)}(At(),Ut(),e,t,n,r,s,i)}function eu(e,t){const n=e[t];return n===js?void 0:n}const tu=class extends S{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof h&&e.add(o),o}};function nu(){return this._results[to()]()}class ru{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=to(),n=ru.prototype;n[t]||(n[t]=nu)}get changes(){return this._changes||(this._changes=new tu)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=Bn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],i=t[r];if(n&&(s=n(s),i=n(i)),i!==s)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])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class su{constructor(e){this.queryList=e,this.matches=null}clone(){return new su(this.queryList)}setDirty(){this.queryList.setDirty()}}class iu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);r.push(this.queries[n.indexInDeclarationView].clone())}return new iu(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==mu(e,t).matches&&this.queries[t].setDirty()}}class ou{constructor(e,t,n=null){this.predicate=e,this.flags=t,this.read=n}}class au{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const r=null!==t?t.length:0,s=this.getByIndex(n).embeddedTView(e,r);s&&(s.indexInDeclarationView=n,null!==t?t.push(s):t=[s])}return null!==t?new au(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class lu{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new lu(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const s=n[r];this.matchTNodeWithReadOption(e,t,uu(t,s)),this.matchTNodeWithReadOption(e,t,jn(t,e,s,!1,!1))}else n===Ol?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,jn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Qa||r===Ll||r===Ol&&4&t.type)this.addMatch(t.index,-2);else{const n=jn(t,e,r,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function uu(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function cu(e,t,n,r){return-1===n?function(e,t){return 11&e.type?Xa(e,t):4&e.type?Rl(e,t):null}(t,e):-2===n?function(e,t,n){return n===Qa?Xa(t,e):n===Ol?Rl(t,e):n===Ll?Hl(t,e):void 0}(e,t,r):Dn(e,e[1],n,t)}function hu(e,t,n,r){const s=t[19].queries[r];if(null===s.matches){const r=e.data,i=n.matches,o=[];for(let e=0;e<i.length;e+=2){const s=i[e];o.push(s<0?null:cu(t,r[s],i[e+1],n.metadata.read))}s.matches=o}return s.matches}function du(e,t,n,r){const s=e.queries.getByIndex(n),i=s.matches;if(null!==i){const o=hu(e,t,s,n);for(let e=0;e<i.length;e+=2){const n=i[e];if(n>0)r.push(o[e/2]);else{const s=i[e+1],o=t[-n];for(let e=10;e<o.length;e++){const t=o[e];t[17]===t[3]&&du(t[1],t,s,r)}if(null!==o[9]){const e=o[9];for(let t=0;t<e.length;t++){const n=e[t];du(n[1],n,s,r)}}}}}return r}function pu(e){const t=At(),n=Ot(),r=qt();Bt(r+1);const s=mu(n,r);if(e.dirty&&_t(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const i=s.crossesNgTemplate?du(n,t,r,[]):hu(n,t,s,r);e.reset(i,Ja),e.notifyOnChanges()}return!0}return!1}function fu(e,t,n){const r=Ot();r.firstCreatePass&&(function(e,t,n){null===e.queries&&(e.queries=new au),e.queries.track(new lu(t,-1))}(r,new ou(e,t,n)),2==(2&t)&&(r.staticViewQueries=!0)),function(e,t,n){const r=new ru(4==(4&n));ni(e,t,r,r.destroy),null===t[19]&&(t[19]=new iu),t[19].queries.push(new su(r))}(r,At(),t)}function gu(){return e=At(),t=qt(),e[19].queries[t].queryList;var e,t}function mu(e,t){return e.queries.getByIndex(t)}function yu(e,t){return Rl(e,t)}const vu=new zn("Application Initializer");let bu=(()=>{class e{constructor(e){this.appInits=e,this.resolve=Ka,this.reject=Ka,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();wo(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(sr(vu,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const wu=new zn("AppId"),_u={provide:wu,useFactory:function(){return`${Cu()}${Cu()}${Cu()}`},deps:[]};function Cu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Su=new zn("Platform Initializer"),Eu=new zn("Platform ID"),ku=new zn("appBootstrapListener");let xu=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Tu=new zn("LocaleId"),Au=new zn("DefaultCurrencyCode");class Ou{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Iu=function(e){return new Xl(e)},Pu=Iu,Ru=function(e){return Promise.resolve(Iu(e))},ju=function(e){const t=Iu(e),n=zr(We(e).declarations).reduce((e,t)=>{const n=Ge(t);return n&&e.push(new Gl(n)),e},[]);return new Ou(t,n)},Du=ju,Nu=function(e){return Promise.resolve(ju(e))};let Lu=(()=>{class e{constructor(){this.compileModuleSync=Pu,this.compileModuleAsync=Ru,this.compileModuleAndAllComponentsSync=Du,this.compileModuleAndAllComponentsAsync=Nu}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Vu=(()=>Promise.resolve(0))();function Fu(e){"undefined"==typeof Zone?Vu.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Uu{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tu(!1),this.onMicrotaskEmpty=new tu(!1),this.onStable=new tu(!1),this.onError=new tu(!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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&t,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=Ae.requestAnimationFrame,t=Ae.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ae,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,zu(e),Hu(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),zu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,a)=>{try{return $u(e),n.invokeTask(s,i,o,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),qu(e)}},onInvoke:(n,r,s,i,o,a,l)=>{try{return $u(e),n.invoke(s,i,o,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),qu(e)}},onHasTask:(t,n,r,s)=>{t.hasTask(r,s),n===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,zu(e),Hu(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,n,r,s)=>(t.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Uu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Uu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,Mu,Ka,Ka);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const Mu={};function Hu(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(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function zu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function $u(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function qu(e){e._nesting--,Hu(e)}class Bu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tu,this.onMicrotaskEmpty=new tu,this.onStable=new tu,this.onError=new tu}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}let Gu=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Uu.assertNotInAngularZone(),Fu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Fu(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(sr(Uu))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Wu=(()=>{class e{constructor(){this._applications=new Map,Xu.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Xu.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class Zu{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Ku,Xu=new Zu,Yu=!0,Qu=!1;function Ju(){return Qu=!0,Yu}const ec=new zn("AllowMultipleToken");class tc{constructor(e,t){this.name=e,this.token=t}}function nc(e,t,n=[]){const r=`Platform: ${t}`,s=new zn(r);return(t=[])=>{let i=rc();if(!i||i.injector.get(ec,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0},{provide:ji,useValue:"platform"});!function(e){if(Ku&&!Ku.destroyed&&!Ku.injector.get(ec,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ku=e.get(sc);const t=e.get(Su,null);t&&t.forEach(e=>e())}(Wi.create({providers:e,name:r}))}return function(e){const t=rc();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}(s)}}function rc(){return Ku&&!Ku.destroyed?Ku:null}let sc=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Bu:("zone.js"===e?void 0:e)||new Uu({enableLongStackTrace:Ju(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:Uu,useValue:n}];return n.run(()=>{const t=Wi.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Vr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{i.handleError(e)}});s.onDestroy(()=>{ac(this._modules,s),e.unsubscribe()})}),function(e,t,n){try{const r=n();return wo(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(bu);return e.runInitializers(),e.donePromise.then(()=>(Xo(s.injector.get(Tu,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=ic({},t);return function(e,t,n){const r=new Xl(n);return Promise.resolve(r)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(oc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${te(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)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(sr(Wi))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function ic(e,t){return Array.isArray(t)?t.reduce(ic,e):Object.assign(Object.assign({},e),t)}let oc=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new v(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new v(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Uu.assertNotInAngularZone(),Fu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Uu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return k(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof v?e[0]:q(t)(B(e,n))}(o,a.pipe(e=>{return G()((t=Q,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,X);return r.source=e,r.subjectFactory=n,r})(e));var t}))}bootstrap(e,t){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.");let n;n=e instanceof Ga?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(jl),s=n.create(Wi.NULL,[],t||n.selector,r),i=s.location.nativeElement,o=s.injector.get(Gu,null),a=o&&s.injector.get(Wu);return o&&a&&a.registerApplication(i,o),s.onDestroy(()=>{this.detachView(s.hostView),ac(this.components,s),a&&a.unregisterApplication(i)}),this._loadComponent(s),Ju()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;ac(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ku,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(sr(Uu),sr(xu),sr(Wi),sr(Vr),sr(Za),sr(bu))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function ac(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class lc{}class uc{}const cc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let hc=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||cc}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>dc(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>dc(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(sr(Lu),sr(uc,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function dc(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const pc=nc(null,"core",[{provide:Eu,useValue:"unknown"},{provide:sc,deps:[Wi]},{provide:Wu,deps:[]},{provide:xu,deps:[]}]),fc=[{provide:oc,useClass:oc,deps:[Uu,xu,Wi,Vr,Za,bu]},{provide:Bl,deps:[Uu],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:bu,useClass:bu,deps:[[new lr,vu]]},{provide:Lu,useClass:Lu,deps:[]},_u,{provide:yl,useFactory:function(){return xl},deps:[]},{provide:bl,useFactory:function(){return Tl},deps:[]},{provide:Tu,useFactory:function(e){return Xo(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ar(Tu),new lr,new ur]]},{provide:Au,useValue:"USD"}];let gc=(()=>{class e{constructor(e){}}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)(sr(oc))},providers:fc}),e})(),mc=null;function yc(){return mc}const vc=new zn("DocumentToken");let bc=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({factory:wc,token:e,providedIn:"platform"}),e})();function wc(){return sr(Cc)}const _c=new zn("Location Initialized");let Cc=(()=>{class e extends bc{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=yc().getLocation(),this._history=yc().getHistory()}getBaseHrefFromDOM(){return yc().getBaseHref(this._doc)}onPopState(e){yc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){yc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){Sc()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Sc()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(sr(vc))},e.\u0275prov=le({factory:Ec,token:e,providedIn:"platform"}),e})();function Sc(){return!!window.history.pushState}function Ec(){return new Cc(sr(vc))}function kc(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function xc(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Tc(e){return e&&"?"!==e[0]?"?"+e:e}let Ac=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({factory:Oc,token:e,providedIn:"root"}),e})();function Oc(e){const t=sr(vc).location;return new Pc(sr(bc),t&&t.origin||"")}const Ic=new zn("appBaseHref");let Pc=(()=>{class e extends Ac{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return kc(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Tc(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+Tc(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+Tc(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(sr(bc),sr(Ic,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Rc=(()=>{class e extends Ac{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=kc(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+Tc(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+Tc(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(sr(bc),sr(Ic,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),jc=(()=>{class e{constructor(e,t){this._subject=new tu,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=xc(Nc(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+Tc(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Nc(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Tc(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Tc(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(sr(Ac),sr(bc))},e.normalizeQueryParams=Tc,e.joinWithSlash=kc,e.stripTrailingSlash=xc,e.\u0275prov=le({factory:Dc,token:e,providedIn:"root"}),e})();function Dc(){return new jc(sr(Ac),sr(bc))}function Nc(e){return e.replace(/\/index.html$/,"")}var Lc=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}({});const Vc=zo;class Fc{}let Uc=(()=>{class e extends Fc{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(Vc(t||this.locale)(e)){case Lc.Zero:return"zero";case Lc.One:return"one";case Lc.Two:return"two";case Lc.Few:return"few";case Lc.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(sr(Tu))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function Mc(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let Hc=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(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&&(no(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${te(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(co(yl),co(bl),co(Qa),co(tl))},e.\u0275dir=Be({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class zc{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let $c=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new zc(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new qc(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new qc(e,s);t.push(i)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(co(Ll),co(Ol),co(yl))},e.\u0275dir=Be({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class qc{constructor(e,t){this.record=e,this.view=t}}let Bc=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new Gc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Wc("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Wc("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){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)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(co(Ll),co(Ol))},e.\u0275dir=Be({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class Gc{constructor(){this.$implicit=null,this.ngIf=null}}function Wc(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${te(t)}'.`)}class Zc{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Kc=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const 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}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Be({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e})(),Xc=(()=>{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new Zc(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(co(Ll),co(Ol),co(Kc,1))},e.\u0275dir=Be({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),Yc=(()=>{class e{constructor(e,t,n){n._addDefault(new Zc(e,t))}}return e.\u0275fac=function(t){return new(t||e)(co(Ll),co(Ol),co(Kc,1))},e.\u0275dir=Be({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Qc=(()=>{class e{}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)},providers:[{provide:Fc,useClass:Uc}]}),e})(),Jc=(()=>{class e{}return e.\u0275prov=le({token:e,providedIn:"root",factory:()=>new eh(sr(vc),window)}),e})();class eh{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){var t;if(!this.supportsScrolling())return;const 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))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=th(this.window.history)||th(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function th(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class nh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new nh,mc||(mc=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=sh||(sh=document.querySelector("base"),sh)?sh.getAttribute("href"):null;return null==t?null:(n=t,rh||(rh=document.createElement("a")),rh.setAttribute("href",n),"/"===rh.pathname.charAt(0)?rh.pathname:"/"+rh.pathname);var n}resetBaseElement(){sh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Mc(document.cookie,e)}}let rh,sh=null;const ih=new zn("TRANSITION_ID"),oh=[{provide:vu,useFactory:function(e,t,n){return()=>{n.get(bu).donePromise.then(()=>{const n=yc();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[ih,vc,Wi],multi:!0}];class ah{static init(){var e;e=new ah,Xu=e}addToWindow(e){Ae.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ae.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ae.getAllAngularRootElements=()=>e.getAllRootElements(),Ae.frameworkStabilizers||(Ae.frameworkStabilizers=[]),Ae.frameworkStabilizers.push(e=>{const t=Ae.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach(function(e){e.whenStable(s)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?yc().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const lh=new zn("EventManagerPlugins");let uh=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}return e.\u0275fac=function(t){return new(t||e)(sr(lh),sr(Uu))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class ch{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=yc().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let hh=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),dh=(()=>{class e extends hh{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>yc().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(sr(vc))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const ph={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/"},fh=/%COMP%/g;function gh(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?gh(e,s,n):(s=s.replace(fh,e),n.push(s))}return n}function mh(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let yh=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new vh(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Se.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new bh(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case Se.ShadowDom:return new wh(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=gh(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(sr(uh),sr(dh),sr(wu))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class vh{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(ph[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const s=ph[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=ph[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&($r.DashCase|$r.Important)?e.style.setProperty(t,n,r&$r.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&$r.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,mh(n)):this.eventManager.addEventListener(e,t,mh(n))}}class bh extends vh{constructor(e,t,n,r){super(e),this.component=n;const s=gh(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(fh,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(fh,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class wh extends vh{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=gh(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let _h=(()=>{class e extends ch{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(sr(vc))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Ch=["alt","control","meta","shift"],Sh={"\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"},Eh={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"},kh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let xh=(()=>{class e extends ch{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yc().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let i="";if(Ch.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Eh.hasOwnProperty(t)&&(t=Eh[t]))}return Sh[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Ch.forEach(r=>{r!=n&&(0,kh[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(sr(vc))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Th=nc(pc,"browser",[{provide:Eu,useValue:"browser"},{provide:Su,useValue:function(){nh.makeCurrent(),ah.init()},multi:!0},{provide:vc,useFactory:function(){return function(e){ht=e}(document),document},deps:[]}]),Ah=[[],{provide:ji,useValue:"root"},{provide:Vr,useFactory:function(){return new Vr},deps:[]},{provide:lh,useClass:_h,multi:!0,deps:[vc,Uu,Eu]},{provide:lh,useClass:xh,multi:!0,deps:[vc]},[],{provide:yh,useClass:yh,deps:[uh,dh,wu]},{provide:el,useExisting:yh},{provide:hh,useExisting:dh},{provide:dh,useClass:dh,deps:[vc]},{provide:Gu,useClass:Gu,deps:[Uu]},{provide:uh,useClass:uh,deps:[lh,Uu]},[]];let Oh=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:wu,useValue:t.appId},{provide:ih,useExisting:wu},oh]}}}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)(sr(e,12))},providers:Ah,imports:[Qc,gc]}),e})();function Ih(e,t){return new v(n=>{const r=e.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a<r;a++){const l=V(e[a]);let u=!1;n.add(l.subscribe({next:e=>{u||(u=!0,o++),s[a]=e},error:e=>n.error(e),complete:()=>{i++,i!==r&&u||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=s[n],e),{}):s),n.complete())}}))}})}"undefined"!=typeof window&&window,n("hN/g");const Ph=new zn("NgValueAccessor"),Rh={provide:Ph,useExisting:se(()=>jh),multi:!0};let jh=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(co(tl),co(Qa))},e.\u0275dir=Be({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Co("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[Ba([Rh])]}),e})();const Dh={provide:Ph,useExisting:se(()=>Lh),multi:!0},Nh=new zn("CompositionEventMode");let Lh=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=yc()?yc().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(co(tl),co(Qa),co(Nh,8))},e.\u0275dir=Be({type:e,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&&Co("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:[Ba([Dh])]}),e})();function Vh(e){return null==e||0===e.length}function Fh(e){return null!=e&&"number"==typeof e.length}const Uh=new zn("NgValidators"),Mh=new zn("NgAsyncValidators"),Hh=/^(?=.{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])?)*$/;class zh{static min(e){return t=>{if(Vh(t.value)||Vh(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(Vh(t.value)||Vh(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return Vh(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return Vh(e.value)||Hh.test(e.value)?null:{email:!0}}static minLength(e){return t=>Vh(t.value)||!Fh(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}static maxLength(e){return t=>Fh(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return zh.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(Vh(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter($h);return 0==t.length?null:function(e){return Bh(Gh(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter($h);return 0==t.length?null:function(e){return function(...e){if(1===e.length){const t=e[0];if(l(t))return Ih(t,null);if(u(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return Ih(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Ih(e=1===e.length&&l(e[0])?e[0]:e,null).pipe(x(e=>t(...e)))}return Ih(e,null)}(Gh(e,t).map(qh)).pipe(x(Bh))}}}function $h(e){return null!=e}function qh(e){const t=wo(e)?V(e):e;return _o(t),t}function Bh(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Gh(e,t){return t.map(t=>t(e))}function Wh(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function Zh(e){return null!=e?zh.compose(Wh(e)):null}function Kh(e){return null!=e?zh.composeAsync(Wh(e)):null}function Xh(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Yh(e){return e._rawValidators}function Qh(e){return e._rawAsyncValidators}let Jh=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Zh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Kh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Be({type:e}),e})(),ed=(()=>{class e extends Jh{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return td(t||e)},e.\u0275dir=Be({type:e,features:[Ki]}),e})();const td=Un(ed);class nd extends Jh{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class rd{constructor(e){this._cd=e}is(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])}}let sd=(()=>{class e extends rd{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(co(nd,2))},e.\u0275dir=Be({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Io("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:[Ki]}),e})(),id=(()=>{class e extends rd{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(co(ed,10))},e.\u0275dir=Be({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Io("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:[Ki]}),e})();const od={provide:Ph,useExisting:se(()=>ad),multi:!0};let ad=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(co(tl),co(Qa))},e.\u0275dir=Be({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Co("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Ba([od])]}),e})();const ld={provide:Ph,useExisting:se(()=>cd),multi:!0};let ud=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),cd=(()=>{class e{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(nd),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(co(tl),co(Qa),co(ud),co(Wi))},e.\u0275dir=Be({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Co("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ba([ld])]}),e})();const hd={provide:Ph,useExisting:se(()=>dd),multi:!0};let dd=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(co(tl),co(Qa))},e.\u0275dir=Be({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Co("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[Ba([hd])]}),e})();const pd={provide:Ph,useExisting:se(()=>fd),multi:!0};let fd=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(co(tl),co(Qa))},e.\u0275dir=Be({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Co("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ba([pd])]}),e})();const gd={provide:Ph,useExisting:se(()=>md),multi:!0};let md=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),s=this._getOptionValue(r.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}return e.\u0275fac=function(t){return new(t||e)(co(tl),co(Qa))},e.\u0275dir=Be({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Co("change",function(e){return t.onChange(e.target)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ba([gd])]}),e})();function yd(e,t){wd(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Cd(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Cd(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function vd(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),_d(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function bd(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function wd(e,t,n){const r=Yh(e);null!==t.validator?e.setValidators(Xh(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const s=Qh(e);if(null!==t.asyncValidator?e.setAsyncValidators(Xh(s,t.asyncValidator)):"function"==typeof s&&e.setAsyncValidators([s]),n){const n=()=>e.updateValueAndValidity();bd(t._rawValidators,n),bd(t._rawAsyncValidators,n)}}function _d(e,t,n){let r=!1;if(null!==e){if(null!==t.validator){const n=Yh(e);if(Array.isArray(n)&&n.length>0){const s=n.filter(e=>e!==t.validator);s.length!==n.length&&(r=!0,e.setValidators(s))}}if(null!==t.asyncValidator){const n=Qh(e);if(Array.isArray(n)&&n.length>0){const s=n.filter(e=>e!==t.asyncValidator);s.length!==n.length&&(r=!0,e.setAsyncValidators(s))}}}if(n){const e=()=>{};bd(t._rawValidators,e),bd(t._rawAsyncValidators,e)}return r}function Cd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const Sd=[jh,dd,ad,fd,md,cd];function Ed(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function kd(e){return(Od(e)?e.validators:e)||null}function xd(e){return Array.isArray(e)?Zh(e):e||null}function Td(e,t){return(Od(t)?t.asyncValidators:e)||null}function Ad(e){return Array.isArray(e)?Kh(e):e||null}function Od(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Id{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=xd(this._rawValidators),this._composedAsyncValidatorFn=Ad(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=xd(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Ad(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(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(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(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(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=qh(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(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;let r=e;return t.forEach(e=>{r=r instanceof Rd?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof jd&&r.at(e)||null}),r}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new tu,this.statusChanges=new tu}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Od(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Pd extends Id{constructor(e=null,t,n){super(kd(t),Td(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ed(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ed(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(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}}class Rd extends Id{constructor(e,t,n){super(kd(t),Td(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Pd?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class jd extends Id{constructor(e,t,n){super(kd(t),Td(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Pd?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}let Dd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Be({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const Nd=new zn("NgModelWithFormControlWarning"),Ld={provide:ed,useExisting:se(()=>Vd)};let Vd=(()=>{class e extends ed{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new tu,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(_d(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return yd(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){vd(e.control||null,e,!1),Ed(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,t=this.directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(vd(e.control||null,e),t&&yd(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);(function(e,t){wd(e,t,!1)})(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return _d(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){wd(this.form,this,!1),this._oldForm&&_d(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(co(Uh,10),co(Mh,10))},e.\u0275dir=Be({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&Co("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ba([Ld]),Ki,ot]}),e})();const Fd={provide:nd,useExisting:se(()=>Ud)};let Ud=(()=>{class e extends nd{constructor(e,t,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new tu,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=function(e,t){if(!t)return null;let n,r,s;return Array.isArray(t),t.forEach(e=>{var t;e.constructor===Lh?n=e:(t=e,Sd.some(e=>t.constructor===e)?r=e:s=e)}),s||r||n||null}(0,r)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return e=null==this.name?this.name:this.name.toString(),[...this._parent.path,e];var e}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(co(ed,13),co(Uh,10),co(Mh,10),co(Ph,10),co(Nd,8))},e.\u0275dir=Be({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ba([Fd]),Ki,ot]}),e._ngModelWarningSentOnce=!1,e})();const Md={provide:Uh,useExisting:se(()=>Hd),multi:!0};let Hd=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?zh.required(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=Be({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&oo("required",t.required?"":null)},inputs:{required:"required"},features:[Ba([Md])]}),e})(),zd=(()=>{class e{}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)}}),e})(),$d=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let r,s=null,i=null;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(s=null!=t.validators?t.validators:null,i=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0):(s=null!=t.validator?t.validator:null,i=null!=t.asyncValidator?t.asyncValidator:null)),new Rd(n,{asyncValidators:i,updateOn:r,validators:s})}control(e,t,n){return new Pd(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new jd(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Pd||e instanceof Rd||e instanceof jd?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),qd=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Nd,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)},providers:[$d,ud],imports:[zd]}),e})();function Bd(...e){let t=e[e.length-1];return k(t)?(e.pop(),N(e,t)):B(e)}function Gd(e,t){return H(e,t,1)}function Wd(e,t){return function(n){return n.lift(new Zd(e,t))}}class Zd{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Kd(e,this.predicate,this.thisArg))}}class Kd extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}class Xd{}class Yd{}class Qd{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Qd?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Qd;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Qd?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===s.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Jd{encodeKey(e){return ep(e)}encodeValue(e){return ep(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function ep(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,"/")}class tp{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Jd,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[s,i]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new tp({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function np(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function rp(e){return"undefined"!=typeof Blob&&e instanceof Blob}function sp(e){return"undefined"!=typeof FormData&&e instanceof FormData}class ip{constructor(e,t,n,r){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new Qd),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new tp,this.urlWithParams=t}serializeBody(){return null===this.body?null:np(this.body)||rp(this.body)||sp(this.body)||"string"==typeof this.body?this.body:this.body instanceof tp?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||sp(this.body)?null:rp(this.body)?this.body.type||null:np(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof tp?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,i=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new ip(t,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}var op=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}({});class ap{constructor(e,t=200,n="OK"){this.headers=e.headers||new Qd,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class lp extends ap{constructor(e={}){super(e),this.type=op.ResponseHeader}clone(e={}){return new lp({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})}}class up extends ap{constructor(e={}){super(e),this.type=op.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new up({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})}}class cp extends ap{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function hp(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let dp=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof ip)r=e;else{let s,i;s=n.headers instanceof Qd?n.headers:new Qd(n.headers),n.params&&(i=n.params instanceof tp?n.params:new tp({fromObject:n.params})),r=new ip(e,t,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Bd(r).pipe(Gd(e=>this.handler.handle(e)));if(e instanceof ip||"events"===n.observe)return s;const i=s.pipe(Wd(e=>e instanceof up));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(x(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return i.pipe(x(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return i.pipe(x(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return i.pipe(x(e=>e.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new tp).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,hp(n,t))}post(e,t,n={}){return this.request("POST",e,hp(n,t))}put(e,t,n={}){return this.request("PUT",e,hp(n,t))}}return e.\u0275fac=function(t){return new(t||e)(sr(Xd))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();class pp{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const fp=new zn("HTTP_INTERCEPTORS");let gp=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const mp=/^\)\]\}',?\n/;class yp{}let vp=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),bp=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,r=n.statusText||"OK",i=new Qd(n.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}(n)||e.url;return s=new lp({headers:i,status:t,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let u=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(mp,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=e,u&&(u=!1,l={error:c,text:l})}}u?(t.next(new up({body:l,headers:r,status:s,statusText:o,url:a||void 0})),t.complete()):t.error(new cp({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=i(),s=new cp({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(s)};let l=!1;const u=r=>{l||(t.next(i()),l=!0);let s={type:op.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},c=e=>{let n={type:op.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:op.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(sr(yp))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const wp=new zn("XSRF_COOKIE_NAME"),_p=new zn("XSRF_HEADER_NAME");class Cp{}let Sp=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mc(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(sr(vc),sr(Eu),sr(wp))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Ep=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const 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)}}return e.\u0275fac=function(t){return new(t||e)(sr(Cp),sr(_p))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),kp=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(fp,[]);this.chain=e.reduceRight((e,t)=>new pp(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(sr(Yd),sr(Wi))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),xp=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Ep,useClass:gp}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:wp,useValue:t.cookieName}:[],t.headerName?{provide:_p,useValue:t.headerName}:[]]}}}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)},providers:[Ep,{provide:fp,useExisting:Ep,multi:!0},{provide:Cp,useClass:Sp},{provide:wp,useValue:"XSRF-TOKEN"},{provide:_p,useValue:"X-XSRF-TOKEN"}]}),e})(),Tp=(()=>{class e{}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)},providers:[dp,{provide:Xd,useClass:kp},bp,{provide:Yd,useExisting:bp},vp,{provide:yp,useExisting:vp}],imports:[[xp.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})();class Ap extends S{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}next(e){super.next(this._value=e)}}class Op extends f{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Ip extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function Pp(e,t,n,r,s=new Ip(e,n,r)){if(!s.closed)return t instanceof v?t.subscribe(s):D(t)(s)}const Rp={};class jp{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Dp(e,this.resultSelector))}}class Dp extends Op{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Rp),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(Pp(this,e[n],void 0,n))}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n){const r=this.values,s=this.toRespond?r[n]===Rp?--this.toRespond:this.toRespond:0;r[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const Np=(()=>{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 Lp(...e){return q(1)(Bd(...e))}const Vp=new v(e=>e.complete());function Fp(e){return e?function(e){return new v(t=>e.schedule(()=>t.complete()))}(e):Vp}function Up(e){return new v(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?V(n):Fp()).subscribe(t)})}function Mp(e,t){return"function"==typeof t?n=>n.pipe(Mp((n,r)=>V(e(n,r)).pipe(x((e,s)=>t(n,e,r,s))))):t=>t.lift(new Hp(e))}class Hp{constructor(e){this.project=e}call(e,t){return t.subscribe(new zp(e,this.project))}}class zp extends U{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new F(this),r=this.destination;r.add(n),this.innerSubscription=M(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const $p=(()=>{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 qp(e){return t=>0===e?Fp():t.lift(new Bp(e))}class Bp{constructor(e){if(this.total=e,this.total<0)throw new $p}call(e,t){return t.subscribe(new Gp(e,this.total))}}class Gp extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Wp(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Zp(e,t,n))}}class Zp{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Kp(e,this.accumulator,this.seed,this.hasSeed))}}class Kp extends f{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Xp(e){return function(t){const n=new Yp(e),r=t.lift(n);return n.caught=r}}class Yp{constructor(e){this.selector=e}call(e,t){return t.subscribe(new Qp(e,this.selector,this.caught))}}class Qp extends U{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new F(this);this.add(r);const s=M(n,r);s!==r&&this.add(s)}}}function Jp(e){return function(t){return 0===e?Fp():t.lift(new ef(e))}}class ef{constructor(e){if(this.total=e,this.total<0)throw new $p}call(e,t){return t.subscribe(new tf(e,this.total))}}class tf extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(r[s])}}e.complete()}}function nf(e=of){return t=>t.lift(new rf(e))}class rf{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new sf(e,this.errorFactory))}}class sf extends f{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function of(){return new Np}function af(e=null){return t=>t.lift(new lf(e))}class lf{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new uf(e,this.defaultValue))}}class uf extends f{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function cf(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Wd((t,n)=>e(t,n,r)):y,qp(1),n?af(t):nf(()=>new Np))}function hf(){}function df(e,t,n){return function(r){return r.lift(new pf(e,t,n))}}class pf{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new ff(e,this.nextOrObserver,this.error,this.complete))}}class ff extends f{constructor(e,t,n,s){super(e),this._tapNext=hf,this._tapError=hf,this._tapComplete=hf,this._tapError=n||hf,this._tapComplete=s||hf,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||hf,this._tapError=t.error||hf,this._tapComplete=t.complete||hf)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function gf(e){return t=>t.lift(new mf(e))}class mf{constructor(e){this.callback=e}call(e,t){return t.subscribe(new yf(e,this.callback))}}class yf extends f{constructor(e,t){super(e),this.add(new h(t))}}class vf{constructor(e,t){this.id=e,this.url=t}}class bf extends vf{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wf extends vf{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class _f extends vf{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Cf extends vf{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sf extends vf{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ef extends vf{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kf extends vf{constructor(e,t,n,r,s){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xf extends vf{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Tf extends vf{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Af{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Of{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class If{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pf{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rf{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jf{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Df{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Nf{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Lf(e){return new Nf(e)}function Vf(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Ff(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const s={};for(let i=0;i<r.length;i++){const t=r[i],n=e[i];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:s}}function Uf(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],!Mf(e[s],t[s]))return!1;return!0}function Mf(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>r[t]===e)}return e===t}function Hf(e){return Array.prototype.concat.apply([],e)}function zf(e){return e.length>0?e[e.length-1]:null}function $f(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function qf(e){return _o(e)?e:wo(e)?V(Promise.resolve(e)):Bd(e)}function Bf(e,t,n){return n?function(e,t){return Uf(e,t)}(e.queryParams,t.queryParams)&&Gf(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Mf(e[n],t[n]))}(e.queryParams,t.queryParams)&&Wf(e.root,t.root)}function Gf(e,t){if(!Qf(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!Gf(e.children[n],t.children[n]))return!1}return!0}function Wf(e,t){return Zf(e,t,t.segments)}function Zf(e,t,n){if(e.segments.length>n.length)return!!Qf(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!Qf(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!Wf(e.children[n],t.children[n]))return!1}return!0}{const r=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!Qf(e.segments,r)&&!!e.children.primary&&Zf(e.children.primary,t,s)}}class Kf{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lf(this.queryParams)),this._queryParamMap}toString(){return tg.serialize(this)}}class Xf{constructor(e,t){this.segments=e,this.children=t,this.parent=null,$f(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ng(this)}}class Yf{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Lf(this.parameters)),this._parameterMap}toString(){return ug(this)}}function Qf(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class Jf{}class eg{parse(e){const t=new fg(e);return new Kf(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${rg(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${ig(t)}=${ig(e)}`).join("&"):`${ig(t)}=${ig(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const tg=new eg;function ng(e){return e.segments.map(e=>ug(e)).join("/")}function rg(e,t){if(!e.hasChildren())return ng(e);if(t){const t=e.children.primary?rg(e.children.primary,!1):"",n=[];return $f(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${rg(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return $f(e.children,(e,r)=>{"primary"===r&&(n=n.concat(t(e,r)))}),$f(e.children,(e,r)=>{"primary"!==r&&(n=n.concat(t(e,r)))}),n}(e,(t,n)=>"primary"===n?[rg(e.children.primary,!1)]:[`${n}:${rg(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${ng(e)}/${t[0]}`:`${ng(e)}/(${t.join("//")})`}}function sg(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ig(e){return sg(e).replace(/%3B/gi,";")}function og(e){return sg(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ag(e){return decodeURIComponent(e)}function lg(e){return ag(e.replace(/\+/g,"%20"))}function ug(e){return`${og(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${og(e)}=${og(t[e])}`).join("")}`;var t}const cg=/^[^\/()?;=#]+/;function hg(e){const t=e.match(cg);return t?t[0]:""}const dg=/^[^=?&#]+/,pg=/^[^?&#]+/;class fg{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xf([],{}):new Xf([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new Xf(e,t)),n}parseSegment(){const e=hg(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Yf(ag(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=hg(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=hg(this.remaining);e&&(n=e,this.capture(n))}e[ag(t)]=ag(n)}parseQueryParam(e){const t=function(e){const t=e.match(dg);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(pg);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=lg(t),s=lg(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=hg(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s="primary");const i=this.parseChildren();t[s]=1===Object.keys(i).length?i.primary:new Xf([],i),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class gg{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=mg(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=mg(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=yg(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return yg(e,this._root).map(e=>e.value)}}function mg(e,t){if(e===t.value)return t;for(const n of t.children){const t=mg(e,n);if(t)return t}return null}function yg(e,t){if(e===t.value)return[t];for(const n of t.children){const r=yg(e,n);if(r.length)return r.unshift(t),r}return[]}class vg{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function bg(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class wg extends gg{constructor(e,t){super(e),this.snapshot=t,xg(this,e)}toString(){return this.snapshot.toString()}}function _g(e,t){const n=function(e,t){const n=new Eg([],{},{},"",{},"primary",t,null,e.root,-1,{});return new kg("",new vg(n,[]))}(e,t),r=new Ap([new Yf("",{})]),s=new Ap({}),i=new Ap({}),o=new Ap({}),a=new Ap(""),l=new Cg(r,s,o,a,i,"primary",t,n.root);return l.snapshot=n.root,new wg(new vg(l,[]),n)}class Cg{constructor(e,t,n,r,s,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(x(e=>Lf(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(x(e=>Lf(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Sg(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({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))}class Eg{constructor(e,t,n,r,s,i,o,a,l,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lf(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lf(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class kg extends gg{constructor(e,t){super(t),this.url=e,xg(this,t)}toString(){return Tg(this._root)}}function xg(e,t){t.value._routerState=e,t.children.forEach(t=>xg(e,t))}function Tg(e){const t=e.children.length>0?` { ${e.children.map(Tg).join(", ")} } `:"";return`${e.value}${t}`}function Ag(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Uf(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Uf(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Uf(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Uf(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Og(e,t){var n,r;return Uf(e.params,t.params)&&Qf(n=e.url,r=t.url)&&n.every((e,t)=>Uf(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Og(e.parent,t.parent))}function Ig(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const s=function(e,t,n){return t.children.map(t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return Ig(e,t,r);return Ig(e,t)})}(e,t,n);return new vg(r,s)}{const n=e.retrieve(t.value);if(n){const e=n.route;return Pg(t,e),e}{const n=new Cg(new Ap((r=t.value).url),new Ap(r.params),new Ap(r.queryParams),new Ap(r.fragment),new Ap(r.data),r.outlet,r.component,r),s=t.children.map(t=>Ig(e,t));return new vg(n,s)}}var r}function Pg(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(let n=0;n<e.children.length;++n)Pg(e.children[n],t.children[n])}function Rg(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function jg(e){return"object"==typeof e&&null!=e&&e.outlets}function Dg(e,t,n,r,s){let i={};return r&&$f(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new Kf(n.root===e?t:Ng(n.root,e,t),i,s)}function Ng(e,t,n){const r={};return $f(e.children,(e,s)=>{r[s]=e===t?n:Ng(e,t,n)}),new Xf(e.segments,r)}class Lg{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Rg(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(jg);if(r&&r!==zf(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Vg{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Fg(e,t,n){if(e||(e=new Xf([],{})),0===e.segments.length&&e.hasChildren())return Ug(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(r>=n.length)return i;const t=e.segments[s],o=n[r];if(jg(o))break;const a=`${o}`,l=r<n.length-1?n[r+1]:null;if(s>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!$g(a,l,t))return i;r+=2}else{if(!$g(a,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Xf(e.segments.slice(0,r.pathIndex),{});return t.children.primary=new Xf(e.segments.slice(r.pathIndex),e.children),Ug(t,0,s)}return r.match&&0===s.length?new Xf(e.segments,{}):r.match&&!e.hasChildren()?Mg(e,t,n):r.match?Ug(e,0,s):Mg(e,t,n)}function Ug(e,t,n){if(0===n.length)return new Xf(e.segments,{});{const r=function(e){return jg(e[0])?e[0].outlets:{primary:e}}(n),s={};return $f(r,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[r]=Fg(e.children[r],t,n))}),$f(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new Xf(e.segments,s)}}function Mg(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s<n.length;){const i=n[s];if(jg(i)){const e=Hg(i.outlets);return new Xf(r,e)}if(0===s&&Rg(n[0])){r.push(new Yf(e.segments[t].path,zg(n[0]))),s++;continue}const o=jg(i)?i.outlets.primary:`${i}`,a=s<n.length-1?n[s+1]:null;o&&a&&Rg(a)?(r.push(new Yf(o,zg(a))),s+=2):(r.push(new Yf(o,{})),s++)}return new Xf(r,{})}function Hg(e){const t={};return $f(e,(e,n)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=Mg(new Xf([],{}),0,e))}),t}function zg(e){const t={};return $f(e,(e,n)=>t[n]=`${e}`),t}function $g(e,t,n){return e==n.path&&Uf(t,n.parameters)}class qg{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Ag(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=bg(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),$f(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,s=bg(e);for(const i of Object.keys(s))this.deactivateRouteAndItsChildren(s[i],r);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(e,t,n){const r=bg(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new jf(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Pf(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(Ag(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Bg(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Bg(e){Ag(e.value),e.children.forEach(Bg)}class Gg{constructor(e,t){this.routes=e,this.module=t}}function Wg(e){return"function"==typeof e}function Zg(e){return e instanceof Kf}const Kg=Symbol("INITIAL_VALUE");function Xg(){return Mp(e=>function(...e){let t,n;return k(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),B(e,n).lift(new jp(t))}(e.map(e=>e.pipe(qp(1),function(...e){const t=e[e.length-1];return k(t)?(e.pop(),n=>Lp(e,n,t)):t=>Lp(e,t)}(Kg)))).pipe(Wp((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==Kg)return e;if(r===Kg&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||Zg(r))return r}return e},e)},Kg),Wd(e=>e!==Kg),x(e=>Zg(e)?e:!0===e),qp(1)))}let Yg=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ue({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&mo(0,"router-outlet")},directives:function(){return[Bm]},encapsulation:2}),e})();function Qg(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];Jg(r,em(t,r))}}function Jg(e,t){e.children&&Qg(e.children,t)}function em(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function tm(e){const t=e.children&&e.children.map(tm),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=Yg),n}function nm(e){return e.outlet||"primary"}function rm(e,t){const n=e.filter(e=>nm(e)===t);return n.push(...e.filter(e=>nm(e)!==t)),n}const sm={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function im(e,t,n){var r;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},sm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||Ff)(n,e,t);if(!s)return Object.assign({},sm);const i={};$f(s.posParams,(e,t)=>{i[t]=e.path});const o=s.consumed.length>0?Object.assign(Object.assign({},i),s.consumed[s.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(r=s.posParams)&&void 0!==r?r:{}}}function om(e,t,n,r,s="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>am(e,t,n)&&"primary"!==nm(n))}(e,n,r)){const s=new Xf(t,function(e,t,n,r){const s={};s.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&"primary"!==nm(i)){const n=new Xf([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[nm(i)]=n}return s}(e,t,r,new Xf(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>am(e,t,n))}(e,n,r)){const i=new Xf(e.segments,function(e,t,n,r,s,i){const o={};for(const a of r)if(am(e,n,a)&&!s[nm(a)]){const n=new Xf([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[nm(a)]=n}return Object.assign(Object.assign({},s),o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new Xf(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function am(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function lm(e,t,n,r){return!!(nm(e)===r||"primary"!==r&&am(t,n,e))&&("**"===e.path||im(t,e,n).matched)}function um(e,t,n){return 0===t.length&&!e.children[n]}class cm{constructor(e){this.segmentGroup=e||null}}class hm{constructor(e){this.urlTree=e}}function dm(e){return new v(t=>t.error(new cm(e)))}function pm(e){return new v(t=>t.error(new hm(e)))}function fm(e){return new v(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class gm{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(jl)}apply(){const e=om(this.urlTree.root,[],[],this.config).segmentGroup,t=new Xf(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(x(e=>this.createUrlTree(mm(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Xp(e=>{if(e instanceof hm)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof cm)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(x(t=>this.createUrlTree(mm(t),e.queryParams,e.fragment))).pipe(Xp(e=>{if(e instanceof cm)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Xf([],{primary:e}):e;return new Kf(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(x(e=>new Xf([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){const r=[];for(const s of Object.keys(n.children))"primary"===s?r.unshift(s):r.push(s);return V(r).pipe(Gd(r=>{const s=n.children[r],i=rm(t,r);return this.expandSegmentGroup(e,i,s,r).pipe(x(e=>({segment:e,outlet:r})))}),Wp((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Wd((t,n)=>e(t,n,r)):y,Jp(1),n?af(t):nf(()=>new Np))}())}expandSegment(e,t,n,r,s,i){return V(n).pipe(Gd(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(Xp(e=>{if(e instanceof cm)return Bd(null);throw e}))),cf(e=>!!e),Xp((e,n)=>{if(e instanceof Np||"EmptyError"===e.name){if(um(t,r,s))return Bd(new Xf([],{}));throw new cm(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return lm(r,t,s,i)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):dm(t):dm(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?pm(s):this.lineralizeSegments(n,s).pipe(H(n=>{const s=new Xf(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=im(t,r,s);if(!o)return dm(t);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?pm(c):this.lineralizeSegments(r,c).pipe(H(r=>this.expandSegment(e,t,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r,s){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(x(e=>(n._loadedConfig=e,new Xf(r,{})))):Bd(new Xf(r,{}));const{matched:i,consumedSegments:o,lastChild:a}=im(t,n,r);if(!i)return dm(t);const l=r.slice(a);return this.getChildConfig(e,n,r).pipe(H(e=>{const r=e.module,i=e.routes,{segmentGroup:a,slicedSegments:u}=om(t,o,l,i),c=new Xf(a.segments,a.children);if(0===u.length&&c.hasChildren())return this.expandChildren(r,i,c).pipe(x(e=>new Xf(o,e)));if(0===i.length&&0===u.length)return Bd(new Xf(o,{}));const h=nm(n)===s;return this.expandSegment(r,c,i,u,h?"primary":s,!0).pipe(x(e=>new Xf(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Bd(new Gg(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Bd(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(H(n=>n?this.configLoader.load(e.injector,t).pipe(x(e=>(t._loadedConfig=e,e))):function(e){return new v(t=>t.error(Vf(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Bd(new Gg([],e))}runCanLoadGuards(e,t,n){const r=t.canLoad;return r&&0!==r.length?Bd(r.map(r=>{const s=e.get(r);let i;if(function(e){return e&&Wg(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!Wg(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return qf(i)})).pipe(Xg(),df(e=>{if(!Zg(e))return;const t=Vf(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),x(e=>!0===e)):Bd(!0)}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Bd(n);if(r.numberOfChildren>1||!r.children.primary)return fm(e.redirectTo);r=r.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new Kf(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return $f(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return $f(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new Xf(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function mm(e){const t={};for(const n of Object.keys(e.children)){const r=mm(e.children[n]);(r.segments.length>0||r.hasChildren())&&(t[n]=r)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new Xf(e.segments.concat(t.segments),t.children)}return e}(new Xf(e.segments,t))}class ym{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class vm{constructor(e,t){this.component=e,this.route=t}}function bm(e,t,n){const r=e._root;return _m(r,t?t._root:null,n,[r.value])}function wm(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function _m(e,t,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=bg(t);return e.children.forEach(e=>{!function(e,t,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,o=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Qf(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Qf(e.url,t.url)||!Uf(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Og(e,t)||!Uf(e.queryParams,t.queryParams);case"paramsChange":default:return!Og(e,t)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new ym(r)):(i.data=o.data,i._resolvedData=o._resolvedData),_m(e,t,i.component?a?a.children:null:n,r,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new vm(a.outlet.component,o))}else o&&Cm(t,a,s),s.canActivateChecks.push(new ym(r)),_m(e,null,i.component?a?a.children:null:n,r,s)}(e,i[e.value.outlet],n,r.concat([e.value]),s),delete i[e.value.outlet]}),$f(i,(e,t)=>Cm(e,n.getContext(t),s)),s}function Cm(e,t,n){const r=bg(e),s=e.value;$f(r,(e,r)=>{Cm(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new vm(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}class Sm{}function Em(e){return new v(t=>t.error(e))}class km{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){const e=om(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const n=new Eg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new vg(n,t),s=new kg(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const t=e.value,n=Sg(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const s of Object.keys(t.children)){const r=t.children[s],i=rm(e,s),o=this.processSegmentGroup(i,r,s);if(null===o)return null;n.push(...o)}const r=function(e){const t=[];for(const n of e){if(!xm(n)){t.push(n);continue}const e=t.find(e=>n.value.routeConfig===e.value.routeConfig);void 0!==e?e.children.push(...n.children):t.push(n)}return t}(n);return r.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),r}processSegment(e,t,n,r){for(const s of e){const e=this.processSegmentAgainstRoute(s,t,n,r);if(null!==e)return e}return um(t,n,r)?[]:null}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo||!lm(e,t,n,r))return null;let s,i=[],o=[];if("**"===e.path){const r=n.length>0?zf(n).parameters:{};s=new Eg(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Om(e),nm(e),e.component,e,Tm(t),Am(t)+n.length,Im(e))}else{const r=im(t,e,n);if(!r.matched)return null;i=r.consumedSegments,o=n.slice(r.lastChild),s=new Eg(i,r.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Om(e),nm(e),e.component,e,Tm(t),Am(t)+i.length,Im(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:u}=om(t,i,o,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const e=this.processChildren(a,l);return null===e?null:[new vg(s,e)]}if(0===a.length&&0===u.length)return[new vg(s,[])];const c=nm(e)===r,h=this.processSegment(a,l,u,c?"primary":r);return null===h?null:[new vg(s,h)]}}function xm(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function Tm(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Am(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Om(e){return e.data||{}}function Im(e){return e.resolve||{}}function Pm(e){return Mp(t=>{const n=e(t);return n?V(n).pipe(x(()=>t)):Bd(t)})}class Rm extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const jm=new zn("ROUTES");class Dm{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(x(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new Gg(Hf(r.injector.get(jm,void 0,ye.Self|ye.Optional)).map(tm),r)}))}loadModuleFactory(e){return"string"==typeof e?V(this.loader.load(e)):qf(e()).pipe(H(e=>e instanceof Dl?Bd(e):V(this.compiler.compileModuleAsync(e))))}}class Nm{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Lm,this.attachRef=null}}class Lm{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Nm,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class Vm{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function Fm(e){throw e}function Um(e,t,n){return t.parse("/")}function Mm(e,t){return Bd(null)}let Hm=(()=>{class e{constructor(e,t,n,r,s,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=Fm,this.malformedUriErrorHandler=Um,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mm,afterPreactivation:Mm},this.urlHandlingStrategy=new Vm,this.routeReuseStrategy=new Rm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(jl),this.console=s.get(xu);const l=s.get(Uu);this.isNgZoneEnabled=l instanceof Uu&&Uu.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=new Kf(new Xf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Dm(i,o,e=>this.triggerEvent(new Af(e)),e=>this.triggerEvent(new Of(e))),this.routerState=_g(this.currentUrlTree,this.rootComponentType),this.transitions=new Ap({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()}setupNavigations(e){const t=this.events;return e.pipe(Wd(e=>0!==e.id),x(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Mp(e=>{let n=!1,r=!1;return Bd(e).pipe(df(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Mp(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Bd(e).pipe(Mp(e=>{const n=this.transitions.getValue();return t.next(new bf(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Vp:Promise.resolve(e)}),(r=this.ngModule.injector,s=this.configLoader,i=this.urlSerializer,o=this.config,Mp(e=>function(e,t,n,r,s){return new gm(e,t,n,r,s).apply()}(r,s,i,e.extractedUrl,o).pipe(x(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),df(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return H(i=>function(e,t,n,r,s="emptyOnly",i="legacy"){try{const o=new km(e,t,n,r,s,i).recognize();return null===o?Em(new Sm):Bd(o)}catch(o){return Em(o)}}(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(x(e=>Object.assign(Object.assign({},i),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),df(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new Sf(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,s,i,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:i,extras:o}=e,a=new bf(n,this.serializeUrl(r),s,i);t.next(a);const l=_g(r,this.rootComponentType).snapshot;return Bd(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Vp}),Pm(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),df(e=>{const t=new Ef(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),x(e=>Object.assign(Object.assign({},e),{guards:bm(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return H(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?Bd(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return V(e).pipe(H(e=>function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?Bd(i.map(i=>{const o=wm(i,t,s);let a;if(function(e){return e&&Wg(e.canDeactivate)}(o))a=qf(o.canDeactivate(e,t,n,r));else{if(!Wg(o))throw new Error("Invalid CanDeactivate guard");a=qf(o(e,t,n,r))}return a.pipe(cf())})).pipe(Xg()):Bd(!0)}(e.component,e.route,n,t,r)),cf(e=>!0!==e,!0))}(o,r,s,e).pipe(H(n=>n&&"boolean"==typeof n?function(e,t,n,r){return V(t).pipe(Gd(t=>Lp(function(e,t){return null!==e&&t&&t(new If(e)),Bd(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new Rf(e)),Bd(!0)}(t.route,r),function(e,t,n){const r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>Up(()=>Bd(t.guards.map(s=>{const i=wm(s,t.node,n);let o;if(function(e){return e&&Wg(e.canActivateChild)}(i))o=qf(i.canActivateChild(r,e));else{if(!Wg(i))throw new Error("Invalid CanActivateChild guard");o=qf(i(r,e))}return o.pipe(cf())})).pipe(Xg())));return Bd(s).pipe(Xg())}(e,t.path,n),function(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?Bd(r.map(r=>Up(()=>{const s=wm(r,t,n);let i;if(function(e){return e&&Wg(e.canActivate)}(s))i=qf(s.canActivate(t,e));else{if(!Wg(s))throw new Error("Invalid CanActivate guard");i=qf(s(t,e))}return i.pipe(cf())}))).pipe(Xg()):Bd(!0)}(e,t.route,n))),cf(e=>!0!==e,!0))}(r,i,e,t):Bd(n)),x(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),df(e=>{if(Zg(e.guardsResult)){const t=Vf(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new kf(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Wd(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new _f(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Pm(e=>{if(e.guards.canActivateChecks.length)return Bd(e).pipe(df(e=>{const t=new xf(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Mp(e=>{let n=!1;return Bd(e).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,H(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Bd(e);let i=0;return V(n).pipe(Gd(e=>function(e,t,n,r){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return Bd({});const i={};return V(s).pipe(H(s=>function(e,t,n,r){const s=wm(e,t,r);return qf(s.resolve?s.resolve(t,n):s(t,n))}(e[s],t,n,r).pipe(df(e=>{i[s]=e}))),Jp(1),H(()=>Object.keys(i).length===s.length?Bd(i):Vp))}(e._resolve,e,t,r).pipe(x(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Sg(e,n).resolve),null)))}(e.route,t,r,s)),df(()=>i++),Jp(1),H(t=>i===n.length?Bd(e):Vp))})),df({next:()=>n=!0,complete:()=>{if(!n){const n=new _f(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var r,s}),df(e=>{const t=new Tf(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Pm(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),x(e=>{const t=function(e,t,n){const r=Ig(e,t._root,n?n._root:void 0);return new wg(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),df(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(s=this.rootContexts,i=this.routeReuseStrategy,o=e=>this.triggerEvent(e),x(e=>(new qg(i,e.targetRouterState,e.currentRouterState,o).activate(s),e))),df({next(){n=!0},complete(){n=!0}}),gf(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new _f(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Xp(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Zg(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new _f(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),r?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new Cf(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(i){e.reject(i)}}var s;return Vp}));var s,i,o}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:r}=t,s={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(s.state=e)}this.scheduleNavigation(r,e,n,s)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(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}}shouldScheduleNavigation(e,t){if(!e)return!0;const 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))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Qg(e),this.config=e.map(tm),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,queryParamsHandling:i,preserveFragment:o}=t,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let u=null;switch(i){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),function(e,t,n,r,s){if(0===n.length)return Dg(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Lg(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return $f(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new Lg(n,t,r)}(n);if(i.toRoot())return Dg(t.root,new Xf([],{}),t,r,s);const o=function(e,t,n){if(e.isAbsolute)return new Vg(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new Vg(e,e===t.root,0)}const r=Rg(e.commands[0])?0:1;return function(e,t,n){let r=e,s=t,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new Vg(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(i,t,e),a=o.processChildren?Ug(o.segmentGroup,o.index,i.commands):Fg(o.segmentGroup,o.index,i.commands);return Dg(o.segmentGroup,a,t,r,s)}(a,this.currentUrlTree,e,u,l)}navigateByUrl(e,t={skipLocationChange:!1}){const n=Zg(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(Zg(e))return Bf(this.currentUrlTree,e,t);const n=this.parseUrl(e);return Bf(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new wf(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r,s){const i=this.getTransition(),o="imperative"!==t&&"imperative"===(null==i?void 0:i.source),a=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===e.toString();if(o&&a)return Promise.resolve(!0);let l,u,c;s?(l=s.resolve,u=s.reject,c=s.promise):c=new Promise((e,t)=>{l=e,u=t});const h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:l,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(sr(qn),sr(Jf),sr(Lm),sr(jc),sr(Wi),sr(lc),sr(Lu),sr(void 0))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),zm=(()=>{class e{constructor(e,t,n,r,s){this.router=e,this.route=t,this.commands=[],this.onChanges=new S,null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:qm(this.skipLocationChange),replaceUrl:qm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){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)})}}return e.\u0275fac=function(t){return new(t||e)(co(Hm),co(Cg),Mn("tabindex"),co(tl),co(Qa))},e.\u0275dir=Be({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&Co("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:[ot]}),e})(),$m=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new S,this.subscription=e.events.subscribe(e=>{e instanceof wf&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,r,s){if(0!==e||t||n||r||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:qm(this.skipLocationChange),replaceUrl:qm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){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)})}}return e.\u0275fac=function(t){return new(t||e)(co(Hm),co(Cg),co(Ac))},e.\u0275dir=Be({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&Co("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(Fo("href",t.href,Rr),oo("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:[ot]}),e})();function qm(e){return""===e||!!e}let Bm=(()=>{class e{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new tu,this.deactivateEvents=new tu,this.name=r||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new Gm(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(co(Lm),co(Ll),co(Za),Mn("name"),co(El))},e.\u0275dir=Be({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class Gm{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Cg?this.route:e===Lm?this.childContexts:this.parent.get(e,t)}}class Wm{}class Zm{preload(e,t){return Bd(null)}}let Km=(()=>{class e{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new Dm(t,n,t=>e.triggerEvent(new Af(t)),t=>e.triggerEvent(new Of(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Wd(e=>e instanceof wf),Gd(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(jl);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return V(n).pipe(q(),x(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(H(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(sr(Hm),sr(lc),sr(Lu),sr(Wi),sr(Wm))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Xm=(()=>{class e{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof bf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof wf&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Df&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Df(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(sr(Hm),sr(Jc),sr(void 0))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Ym=new zn("ROUTER_CONFIGURATION"),Qm=new zn("ROUTER_FORROOT_GUARD"),Jm=[jc,{provide:Jf,useClass:eg},{provide:Hm,useFactory:function(e,t,n,r,s,i,o,a={},l,u){const c=new Hm(null,e,t,n,r,s,i,Hf(o));if(l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),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)}(a,c),a.enableTracing){const e=yc();c.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return c},deps:[Jf,Lm,jc,Wi,lc,Lu,jm,Ym,[class{},new lr],[class{},new lr]]},Lm,{provide:Cg,useFactory:function(e){return e.routerState.root},deps:[Hm]},{provide:lc,useClass:hc},Km,Zm,class{preload(e,t){return t().pipe(Xp(()=>Bd(null)))}},{provide:Ym,useValue:{enableTracing:!1}}];function ey(){return new tc("Router",Hm)}let ty=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[Jm,iy(t),{provide:Qm,useFactory:sy,deps:[[Hm,new lr,new ur]]},{provide:Ym,useValue:n||{}},{provide:Ac,useFactory:ry,deps:[bc,[new ar(Ic),new lr],Ym]},{provide:Xm,useFactory:ny,deps:[Hm,Jc,Ym]},{provide:Wm,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Zm},{provide:tc,multi:!0,useFactory:ey},[oy,{provide:vu,multi:!0,useFactory:ay,deps:[oy]},{provide:uy,useFactory:ly,deps:[oy]},{provide:ku,multi:!0,useExisting:uy}]]}}static forChild(t){return{ngModule:e,providers:[iy(t)]}}}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)(sr(Qm,8),sr(Hm,8))}}),e})();function ny(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Xm(e,t,n)}function ry(e,t,n={}){return n.useHash?new Rc(e,t):new Pc(e,t)}function sy(e){return"guarded"}function iy(e){return[{provide:$n,multi:!0,useValue:e},{provide:jm,multi:!0,useValue:e}]}let oy=(()=>{class e{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(_c,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Hm),r=this.injector.get(Ym);return"disabled"===r.initialNavigation?(n.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Bd(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()):e(!0),t})}bootstrapListener(e){const t=this.injector.get(Ym),n=this.injector.get(Km),r=this.injector.get(Xm),s=this.injector.get(Hm),i=this.injector.get(oc);e===i.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||s.initialNavigation(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return e.\u0275fac=function(t){return new(t||e)(sr(Wi))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();function ay(e){return e.appInitializer.bind(e)}function ly(e){return e.bootstrapListener.bind(e)}const uy=new zn("Router Initializer");let cy=(()=>{class e{constructor(e){this.router=e,this.subject=new S,this.keepAfterNavigationChange=!1,e.events.subscribe(e=>{e instanceof bf&&(this.keepAfterNavigationChange?this.keepAfterNavigationChange=!1:this.subject.next())})}success(e,t=!1){this.keepAfterNavigationChange=t,this.subject.next({type:"success",text:e})}error(e,t=!1){this.keepAfterNavigationChange=t,this.subject.next({type:"error",text:e})}getMessage(){return this.subject.asObservable()}}return e.\u0275fac=function(t){return new(t||e)(sr(Hm))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class hy{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const dy=new zn("basePath");class py{constructor(e={}){this.apiKeys=e.apiKeys,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.withCredentials=e.withCredentials,this.encoder=e.encoder}selectHeaderContentType(e){if(0===e.length)return;const t=e.find(e=>this.isJsonMime(e));return void 0===t?e[0]:t}selectHeaderAccept(e){if(0===e.length)return;const t=e.find(e=>this.isJsonMime(e));return void 0===t?e[0]:t}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}let fy=(()=>{class e{constructor(e,t,n){this.httpClient=e,this.basePath="https://gnuboat.engsas.com/mapservice/v1",this.defaultHeaders=new Qd,this.configuration=new py,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new hy}addToHttpParams(e,t,n){return"object"==typeof t&&t instanceof Date==0?this.addToHttpParamsRecursive(e,t):this.addToHttpParamsRecursive(e,t,n)}addToHttpParamsRecursive(e,t,n){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(t=>e=this.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(r=>e=this.addToHttpParamsRecursive(e,t[r],null!=n?`${n}.${r}`:r));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}devicesCreate(e,t="body",n=!1,r){let s=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(s=s.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));const o=this.configuration.selectHeaderContentType(["application/json"]);void 0!==o&&(s=s.set("Content-Type",o));let a="json";return i&&i.startsWith("text")&&(a="text"),this.httpClient.post(`${this.configuration.basePath}/devices`,e,{responseType:a,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}devicesDeviceDelete(e,t="body",n=!1,r){if(null==e)throw new Error("Required parameter id was null or undefined when calling devicesDeviceDelete.");let s=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(s=s.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));let o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.delete(`${this.configuration.basePath}/devices/${encodeURIComponent(String(e))}`,{responseType:o,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}devicesGet(e,t,n,r,s="body",i=!1,o){let a=new tp({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"name")),null!=t&&(a=this.addToHttpParams(a,t,"order_by")),null!=n&&(a=this.addToHttpParams(a,n,"offset")),null!=r&&(a=this.addToHttpParams(a,r,"limit"));let l=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(l=l.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(l=l.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let u=o&&o.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==u&&(l=l.set("Accept",u));let c="json";return u&&u.startsWith("text")&&(c="text"),this.httpClient.get(`${this.configuration.basePath}/devices`,{params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:i})}devicesGetById(e,t="body",n=!1,r){if(null==e)throw new Error("Required parameter id was null or undefined when calling devicesGetById.");let s=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(s=s.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));let o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.get(`${this.configuration.basePath}/devices/${encodeURIComponent(String(e))}`,{responseType:o,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}}return e.\u0275fac=function(t){return new(t||e)(sr(dp),sr(dy,8),sr(py,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gy=(()=>{class e{constructor(e,t,n){this.httpClient=e,this.basePath="https://gnuboat.engsas.com/mapservice/v1",this.defaultHeaders=new Qd,this.configuration=new py,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new hy}addToHttpParams(e,t,n){return"object"==typeof t&&t instanceof Date==0?this.addToHttpParamsRecursive(e,t):this.addToHttpParamsRecursive(e,t,n)}addToHttpParamsRecursive(e,t,n){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(t=>e=this.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(r=>e=this.addToHttpParamsRecursive(e,t[r],null!=n?`${n}.${r}`:r));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}logsGet(e,t,n,r,s="body",i=!1,o){let a=new tp({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"submitter")),null!=t&&(a=this.addToHttpParams(a,t,"order_by")),null!=n&&(a=this.addToHttpParams(a,n,"offset")),null!=r&&(a=this.addToHttpParams(a,r,"limit"));let l=this.defaultHeaders,u=o&&o.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==u&&(l=l.set("Accept",u));let c="json";return u&&u.startsWith("text")&&(c="text"),this.httpClient.get(`${this.configuration.basePath}/logs`,{params:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:s,reportProgress:i})}logsLogCreate(e,t="body",n=!1,r){let s=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(s=s.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));const o=this.configuration.selectHeaderContentType(["application/json"]);void 0!==o&&(s=s.set("Content-Type",o));let a="json";return i&&i.startsWith("text")&&(a="text"),this.httpClient.post(`${this.configuration.basePath}/logs`,e,{responseType:a,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}logsLogDelete(e,t="body",n=!1,r){if(null==e)throw new Error("Required parameter logId was null or undefined when calling logsLogDelete.");let s=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(s=s.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));let o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.delete(`${this.configuration.basePath}/logs/${encodeURIComponent(String(e))}`,{responseType:o,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}logsLogGetById(e,t="body",n=!1,r){if(null==e)throw new Error("Required parameter logId was null or undefined when calling logsLogGetById.");let s=this.defaultHeaders,i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/geo+json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));let o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.get(`${this.configuration.basePath}/logs/${encodeURIComponent(String(e))}`,{responseType:o,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}logsLogUpload(e,t,n="body",r=!1,s){if(null==e)throw new Error("Required parameter logId was null or undefined when calling logsLogUpload.");let i=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(i=i.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==o&&(i=i.set("Accept",o));const a=this.configuration.selectHeaderContentType(["text/plain"]);void 0!==a&&(i=i.set("Content-Type",a));let l="json";return o&&o.startsWith("text")&&(l="text"),this.httpClient.post(`${this.configuration.basePath}/logs/${encodeURIComponent(String(e))}`,t,{responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:n,reportProgress:r})}}return e.\u0275fac=function(t){return new(t||e)(sr(dp),sr(dy,8),sr(py,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),my=(()=>{class e{constructor(e,t,n){this.httpClient=e,this.basePath="https://gnuboat.engsas.com/mapservice/v1",this.defaultHeaders=new Qd,this.configuration=new py,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new hy}addToHttpParams(e,t,n){return"object"==typeof t&&t instanceof Date==0?this.addToHttpParamsRecursive(e,t):this.addToHttpParamsRecursive(e,t,n)}addToHttpParamsRecursive(e,t,n){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(t=>e=this.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(r=>e=this.addToHttpParamsRecursive(e,t[r],null!=n?`${n}.${r}`:r));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}userOptions(e="body",t=!1,n){let r=this.defaultHeaders,s=n&&n.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(r=r.set("Accept",s));let i="json";return s&&s.startsWith("text")&&(i="text"),this.httpClient.options(`${this.configuration.basePath}/user`,{responseType:i,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:t})}usersActivate(e,t="body",n=!1,r){if(null==e)throw new Error("Required parameter activationCode was null or undefined when calling usersActivate.");let s=this.defaultHeaders,i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept([])),void 0!==i&&(s=s.set("Accept",i));let o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.get(`${this.configuration.basePath}/user/activate/${encodeURIComponent(String(e))}`,{responseType:o,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}usersApiKeyCreate(e="body",t=!1,n){let r=this.defaultHeaders;(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let s=n&&n.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==s&&(r=r.set("Accept",s));let i="json";return s&&s.startsWith("text")&&(i="text"),this.httpClient.get(`${this.configuration.basePath}/user/apikey_create`,{responseType:i,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:t})}usersApiKeyDelete(e,t="body",n=!1,r){if(null==e)throw new Error("Required parameter apiKey was null or undefined when calling usersApiKeyDelete.");let s=this.defaultHeaders;(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));let o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.delete(`${this.configuration.basePath}/user/${encodeURIComponent(String(e))}`,{responseType:o,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}usersGet(e="body",t=!1,n){let r=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(r=r.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(r=r.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let s=n&&n.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==s&&(r=r.set("Accept",s));let i="json";return s&&s.startsWith("text")&&(i="text"),this.httpClient.get(`${this.configuration.basePath}/user`,{responseType:i,withCredentials:this.configuration.withCredentials,headers:r,observe:e,reportProgress:t})}usersRegister(e,t="body",n=!1,r){let s=this.defaultHeaders,i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));const o=this.configuration.selectHeaderContentType(["application/json"]);void 0!==o&&(s=s.set("Content-Type",o));let a="json";return i&&i.startsWith("text")&&(a="text"),this.httpClient.post(`${this.configuration.basePath}/user`,e,{responseType:a,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}}return e.\u0275fac=function(t){return new(t||e)(sr(dp),sr(dy,8),sr(py,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),yy=(()=>{class e{constructor(e,t,n){this.httpClient=e,this.basePath="https://gnuboat.engsas.com/mapservice/v1",this.defaultHeaders=new Qd,this.configuration=new py,n&&(this.configuration=n),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new hy}addToHttpParams(e,t,n){return"object"==typeof t&&t instanceof Date==0?this.addToHttpParamsRecursive(e,t):this.addToHttpParamsRecursive(e,t,n)}addToHttpParamsRecursive(e,t,n){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(t=>e=this.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(r=>e=this.addToHttpParamsRecursive(e,t[r],null!=n?`${n}.${r}`:r));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}watersCreate(e,t="body",n=!1,r){let s=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(s=s.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(s=s.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));const o=this.configuration.selectHeaderContentType(["application/json"]);void 0!==o&&(s=s.set("Content-Type",o));let a="json";return i&&i.startsWith("text")&&(a="text"),this.httpClient.post(`${this.configuration.basePath}/waters`,e,{responseType:a,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}watersGaugeCreate(e,t,n="body",r=!1,s){if(null==e)throw new Error("Required parameter waterId was null or undefined when calling watersGaugeCreate.");let i=this.defaultHeaders;if(this.configuration.apiKeys){const e=this.configuration.apiKeys.apiKeyAuth||this.configuration.apiKeys["X-API-KEY"];e&&(i=i.set("X-API-KEY",e))}(this.configuration.username||this.configuration.password)&&(i=i.set("Authorization","Basic "+btoa(this.configuration.username+":"+this.configuration.password)));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json","application/geo+json","application/problem+json"])),void 0!==o&&(i=i.set("Accept",o));const a=this.configuration.selectHeaderContentType(["application/json"]);void 0!==a&&(i=i.set("Content-Type",a));let l="json";return o&&o.startsWith("text")&&(l="text"),this.httpClient.post(`${this.configuration.basePath}/waters/${encodeURIComponent(String(e))}/gauges`,t,{responseType:l,withCredentials:this.configuration.withCredentials,headers:i,observe:n,reportProgress:r})}watersGaugeGetById(e,t,n="body",r=!1,s){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.");let i=this.defaultHeaders,o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json","application/geo+json","application/problem+json"])),void 0!==o&&(i=i.set("Accept",o));let a="json";return o&&o.startsWith("text")&&(a="text"),this.httpClient.get(`${this.configuration.basePath}/waters/${encodeURIComponent(String(e))}/gauges/${encodeURIComponent(String(t))}`,{responseType:a,withCredentials:this.configuration.withCredentials,headers:i,observe:n,reportProgress:r})}watersGaugesGet(e,t,n,r,s,i,o="body",a=!1,l){if(null==e)throw new Error("Required parameter waterId was null or undefined when calling watersGaugesGet.");let u=new tp({encoder:this.encoder});null!=t&&(u=this.addToHttpParams(u,t,"name")),null!=n&&(u=this.addToHttpParams(u,n,"manager")),null!=r&&(u=this.addToHttpParams(u,r,"order_by")),null!=s&&(u=this.addToHttpParams(u,s,"offset")),null!=i&&(u=this.addToHttpParams(u,i,"limit"));let c=this.defaultHeaders,h=l&&l.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json","application/geo+json"])),void 0!==h&&(c=c.set("Accept",h));let d="json";return h&&h.startsWith("text")&&(d="text"),this.httpClient.get(`${this.configuration.basePath}/waters/${encodeURIComponent(String(e))}/gauges`,{params:u,responseType:d,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}watersGet(e,t,n,r,s,i,o="body",a=!1,l){let u=new tp({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"name")),null!=t&&(u=this.addToHttpParams(u,t,"manager")),null!=n&&(u=this.addToHttpParams(u,n,"stakeholder")),null!=r&&(u=this.addToHttpParams(u,r,"order_by")),null!=s&&(u=this.addToHttpParams(u,s,"offset")),null!=i&&(u=this.addToHttpParams(u,i,"limit"));let c=this.defaultHeaders,h=l&&l.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==h&&(c=c.set("Accept",h));let d="json";return h&&h.startsWith("text")&&(d="text"),this.httpClient.get(`${this.configuration.basePath}/waters`,{params:u,responseType:d,withCredentials:this.configuration.withCredentials,headers:c,observe:o,reportProgress:a})}watersGetById(e,t="body",n=!1,r){if(null==e)throw new Error("Required parameter id was null or undefined when calling watersGetById.");let s=this.defaultHeaders,i=r&&r.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json","application/problem+json"])),void 0!==i&&(s=s.set("Accept",i));let o="json";return i&&i.startsWith("text")&&(o="text"),this.httpClient.get(`${this.configuration.basePath}/waters/${encodeURIComponent(String(e))}`,{responseType:o,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:n})}}return e.\u0275fac=function(t){return new(t||e)(sr(dp),sr(dy,8),sr(py,8))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vy=(()=>{class e{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(t){return{ngModule:e,providers:[{provide:py,useFactory:t}]}}}return e.\u0275mod=$e({type:e}),e.\u0275inj=ue({factory:function(t){return new(t||e)(sr(e,12),sr(dp,8))},providers:[],imports:[[]]}),e})(),by=(()=>{class e{constructor(e){this.usersService=e,this.currentUserSubject=new Ap(null),this.currentUser=this.currentUserSubject.asObservable()}get currentUserValue(){return this.currentUserSubject.value}login(e,t){return this.usersService.configuration.username=e,this.usersService.configuration.password=t,this.usersService.usersGet().pipe(x(n=>(n&&n.username==e&&(this.currentUserPassword=t,this.currentUserSubject.next(n)),n)))}logout(){this.currentUserSubject.next(null)}}return e.\u0275fac=function(t){return new(t||e)(sr(my))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var wy=n("E6f0");let _y=(()=>{class e{constructor(e,t){this.http=e,this.alertService=t,this.overpassHeaders=new Qd({"Content-Type":"text/xml"}).set("Accept","text/xml")}findWaters(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(x(e=>wy(jQuery.parseXML(e.body))))}getElement(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(x(e=>wy(jQuery.parseXML(e.body))))}}return e.\u0275fac=function(t){return new(t||e)(sr(dp),sr(cy))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Cy=(()=>{class e{constructor(e,t){this.router=e,this.authenticationService=t}canActivate(e,t){return!!this.authenticationService.currentUserValue||(this.router.navigate(["/login"],{queryParams:{returnUrl:t.url,fragment:e.fragment}}),!1)}}return e.\u0275fac=function(t){return new(t||e)(sr(Hm),sr(by))},e.\u0275prov=le({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Sy=function(e,t,n){return{alert:e,"alert-success":t,"alert-danger":n}};function Ey(e,t){if(1&e&&(fo(0,"div",1),No(1),go()),2&e){const e=ko();ho("ngClass",Jl(2,Sy,e.message,"success"===e.message.type,"error"===e.message.type)),Ds(1),Lo(e.message.text)}}let ky=(()=>{class e{constructor(e){this.alertService=e}ngOnInit(){this.subscription=this.alertService.getMessage().subscribe(e=>{this.message=e})}ngOnDestroy(){this.subscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(co(cy))},e.\u0275cmp=Ue({type:e,selectors:[["alert"]],decls:1,vars:1,consts:[[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(e,t){1&e&&lo(0,Ey,2,6,"div",0),2&e&&ho("ngIf",t.message)},directives:[Bc,Hc],encapsulation:2}),e})();function xy(e,t){1&e&&(fo(0,"div"),No(1,"First Name is required"),go())}function Ty(e,t){if(1&e&&(fo(0,"div",21),lo(1,xy,2,0,"div",22),go()),2&e){const e=ko();Ds(1),ho("ngIf",e.f.firstName.errors.required)}}function Ay(e,t){1&e&&(fo(0,"div"),No(1,"Last Name is required"),go())}function Oy(e,t){if(1&e&&(fo(0,"div",21),lo(1,Ay,2,0,"div",22),go()),2&e){const e=ko();Ds(1),ho("ngIf",e.f.lastName.errors.required)}}function Iy(e,t){1&e&&(fo(0,"div"),No(1,"Username is required"),go())}function Py(e,t){if(1&e&&(fo(0,"div",21),lo(1,Iy,2,0,"div",22),go()),2&e){const e=ko();Ds(1),ho("ngIf",e.f.username.errors.required)}}function Ry(e,t){1&e&&(fo(0,"div"),No(1,"Password is required"),go())}function jy(e,t){1&e&&(fo(0,"div"),No(1,"Password must be at least 6 characters"),go())}function Dy(e,t){if(1&e&&(fo(0,"div",21),lo(1,Ry,2,0,"div",22),lo(2,jy,2,0,"div",22),go()),2&e){const e=ko();Ds(1),ho("ngIf",e.f.password.errors.required),Ds(1),ho("ngIf",e.f.password.errors.minlength)}}function Ny(e,t){1&e&&(fo(0,"div"),No(1,"E-Mail is required"),go())}function Ly(e,t){if(1&e&&(fo(0,"div",21),lo(1,Ny,2,0,"div",22),go()),2&e){const e=ko();Ds(1),ho("ngIf",e.f.email.errors.required)}}function Vy(e,t){1&e&&(fo(0,"div"),No(1,"Accepting the license is required"),go())}function Fy(e,t){if(1&e&&(fo(0,"div",21),lo(1,Vy,2,0,"div",22),go()),2&e){const e=ko();Ds(1),ho("ngIf",e.f.licenseAccepted.errors.required)}}function Uy(e,t){1&e&&mo(0,"img",23)}const My=function(e){return{"is-invalid":e}};let Hy=(()=>{class e{constructor(e,t,n,r,s){this.formBuilder=e,this.router=t,this.authenticationService=n,this.userService=r,this.alertService=s,this.loading=!1,this.submitted=!1,this.authenticationService.currentUserValue&&this.router.navigate(["/"])}ngOnInit(){this.registerForm=this.formBuilder.group({firstName:["",zh.required],lastName:["",zh.required],username:["",zh.required],password:["",[zh.required,zh.minLength(6)]],email:["",zh.required],licenseAccepted:["",zh.required]})}get f(){return this.registerForm.controls}onSubmit(){this.submitted=!0,this.registerForm.invalid||(this.loading=!0,this.userService.usersRegister(this.registerForm.value).pipe(cf()).subscribe(e=>{this.alertService.success("Registration successful",!0),this.router.navigate(["/login"])},e=>{this.alertService.error(e),this.loading=!1}))}}return e.\u0275fac=function(t){return new(t||e)(co($d),co(Hm),co(by),co(my),co(cy))},e.\u0275cmp=Ue({type:e,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&&(fo(0,"div",0),fo(1,"h1"),No(2,"Register"),go(),mo(3,"alert"),go(),fo(4,"div",1),fo(5,"form",2),Co("ngSubmit",function(){return t.onSubmit()}),fo(6,"fieldset"),fo(7,"div",3),fo(8,"label",4),No(9,"First Name"),go(),mo(10,"input",5),lo(11,Ty,2,1,"div",6),go(),fo(12,"div",3),fo(13,"label",7),No(14,"Last Name"),go(),mo(15,"input",8),lo(16,Oy,2,1,"div",6),go(),fo(17,"div",3),fo(18,"label",9),No(19,"Username"),go(),mo(20,"input",10),lo(21,Py,2,1,"div",6),go(),fo(22,"div",3),fo(23,"label",11),No(24,"Password"),go(),mo(25,"input",12),lo(26,Dy,3,2,"div",6),go(),fo(27,"div",3),fo(28,"label",11),No(29,"E-Mail"),go(),mo(30,"input",13),lo(31,Ly,2,1,"div",6),go(),fo(32,"div",3),mo(33,"label",14),mo(34,"input",15),No(35," I agree to upload all date under the "),fo(36,"a",16),No(37,"Open Data Commons Open Database License (ODbL)"),go(),lo(38,Fy,2,1,"div",6),go(),fo(39,"div",17),fo(40,"button",18),No(41,"Register"),go(),lo(42,Uy,1,0,"img",19),fo(43,"a",20),No(44,"Cancel"),go(),go(),go(),go(),go()),2&e&&(Ds(5),ho("formGroup",t.registerForm),Ds(5),ho("ngClass",Ql(15,My,t.submitted&&t.f.firstName.errors)),Ds(1),ho("ngIf",t.submitted&&t.f.firstName.errors),Ds(4),ho("ngClass",Ql(17,My,t.submitted&&t.f.lastName.errors)),Ds(1),ho("ngIf",t.submitted&&t.f.lastName.errors),Ds(4),ho("ngClass",Ql(19,My,t.submitted&&t.f.username.errors)),Ds(1),ho("ngIf",t.submitted&&t.f.username.errors),Ds(4),ho("ngClass",Ql(21,My,t.submitted&&t.f.password.errors)),Ds(1),ho("ngIf",t.submitted&&t.f.password.errors),Ds(4),ho("ngClass",Ql(23,My,t.submitted&&t.f.email.errors)),Ds(1),ho("ngIf",t.submitted&&t.f.email.errors),Ds(3),ho("ngClass",Ql(25,My,t.submitted&&t.f.licenseAccepted.errors)),Ds(4),ho("ngIf",t.submitted&&t.f.licenseAccepted.errors),Ds(2),ho("disabled",t.loading),Ds(2),ho("ngIf",t.loading))},directives:[ky,Dd,id,Vd,Lh,sd,Ud,Hc,Bc,jh,$m],encapsulation:2}),e})();function zy(e,t){1&e&&(fo(0,"span",13),No(1,"Username is required."),go())}function $y(e,t){1&e&&(fo(0,"span",13),No(1,"Password is required."),go())}function qy(e,t){1&e&&mo(0,"img",14)}const By=function(e){return{"is-invalid":e}};let Gy=(()=>{class e{constructor(e,t,n,r,s){this.formBuilder=e,this.route=t,this.router=n,this.authenticationService=r,this.alertService=s,this.loading=!1,this.submitted=!1,this.authenticationService.currentUserValue&&this.router.navigate(["/"])}ngOnInit(){this.loginForm=this.formBuilder.group({username:["",zh.required],password:["",zh.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:""}get f(){return this.loginForm.controls}onSubmit(){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(cf()).subscribe(e=>{this.router.navigate([this.returnUrl],{fragment:this.returnUrlFragment})},e=>{this.alertService.error(e),this.loading=!1}))}}return e.\u0275fac=function(t){return new(t||e)(co($d),co(Cg),co(Hm),co(by),co(cy))},e.\u0275cmp=Ue({type:e,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&&(fo(0,"div",0),fo(1,"h1"),No(2,"Login"),go(),mo(3,"alert"),go(),fo(4,"div",1),fo(5,"form",2),Co("ngSubmit",function(){return t.onSubmit()}),fo(6,"fieldset"),fo(7,"div",3),fo(8,"label",4),No(9,"Username:"),go(),mo(10,"input",5),lo(11,zy,2,0,"span",6),go(),fo(12,"div",3),fo(13,"label",7),No(14,"Password:"),go(),mo(15,"input",8),lo(16,$y,2,0,"span",6),go(),fo(17,"div",9),fo(18,"button",10),No(19,"Login"),go(),lo(20,qy,1,0,"img",11),fo(21,"button",12),No(22,"Register"),go(),go(),go(),go(),go()),2&e&&(Ds(5),ho("formGroup",t.loginForm),Ds(5),ho("ngClass",Ql(7,By,t.submitted&&t.f.username.errors)),Ds(1),ho("ngIf",t.submitted&&t.f.username.errors),Ds(4),ho("ngClass",Ql(9,By,t.submitted&&t.f.password.errors)),Ds(1),ho("ngIf",t.submitted&&t.f.password.errors),Ds(2),ho("disabled",t.loading),Ds(2),ho("ngIf",t.loading))},directives:[ky,Dd,id,Vd,Lh,sd,Ud,Hc,Bc,zm],encapsulation:2}),e})();const Wy=["mapElement"];function Zy(e,t){1&e&&mo(0,"img",5)}let Ky=(()=>{class e{constructor(e,t){this.logsService=e,this.osmOverpassService=t,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 tu}ngOnInit(){}ngOnDestroy(){}ngOnChanges(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))}ngAfterViewInit(){this.map||this.mapSetup()}getMap(){return this.map}set viewportStyleClass(e){this._mapViewportStyleClass=e}mapSetup(){this.map=L.map(this.mapElement.nativeElement,{center:[48.43,10.04],zoom:17,zoomControl:this.controlsShow}),this.map.on("contextmenu",e=>{var t={};return t.latitude=e.latlng.lat,t.longitude=e.latlng.lng,this.clickedRight.emit(t),e});var e={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)},t={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)},n=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'}),r=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);t["GNUBoat Low Accuracy"]=n,t["GNUBoat High Accuracy"]=r,this.controlsShow&&(this.mapControl=L.control.layers(e,t,{hideSingleBase:!0,sortLayers:!0}).addTo(this.map),L.control.scale().addTo(this.map)),this.water&&this.addWaterToMap(this.water)}addOsmElement(e,t){this.osmLayer||(this.osmLayer=this.addGeoJsonLayer(),this.mapControl&&this.mapControl.addOverlay(this.osmLayer,"OSM Data")),this.osmLayer.clearLayers(),this.osmOverpassService.getElement(e,t).subscribe(e=>{this.osmLayer.addData(e),this.map.fitBounds(this.osmLayer.getBounds())})}addGeoJsonLayer(e={}){return L.geoJSON(void 0,e).addTo(this.map)}addWaterToMap(e){this.addOsmElement(e.osmId,e.osmType),"gauges"in e&&this.addGaugesToMap(e.gauges),this.logsShow&&"logs"in e&&this.addLogs(e.logs)}addGaugesToMap(e){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(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.name=e.name,t.properties.manager=e.manager,t.properties.comment=e.comment,this.gaugesLayer.addData(t)}))}addLogs(e){e&&e.length<1||e.forEach(e=>{this.logsService.logsLogGetById(e.logId).pipe(cf()).subscribe(e=>{this.addLogToMap(e)})})}addLogToMap(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(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)}}gaugesMarker(e,t){var n=L.icon({iconUrl:"/resources/gnuboat-gauge.svg",iconSize:[32,32]});return L.marker(t,{icon:n})}gaugesMarkerPopup(e,t){e.properties&&e.properties.name&&t.bindPopup(e.properties.name)}static logsStyle(t){return{color:e.waterDepthToColor(t.properties.waterDepth)}}static waterDepthToColor(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"}}return e.logsWaterDepthPalette={0:"#00008B",2:"#1E90FF",6:" #ADD8E6",10:"#F0F8FF"},e.\u0275fac=function(t){return new(t||e)(co(gy),co(_y))},e.\u0275cmp=Ue({type:e,selectors:[["gnuboat-map"]],viewQuery:function(e,t){if(1&e&&fu(Wy,3),2&e){let e;pu(e=gu())&&(t.mapElement=e.first)}},inputs:{water:"water",logoShow:"logoShow",controlsShow:"controlsShow",logsShow:"logsShow",viewportStyleClass:"viewportStyleClass"},outputs:{clickedRight:"clickedRight"},features:[Ba([_y]),ot],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&&(fo(0,"div",0,1),fo(2,"div",2),fo(3,"div",3),lo(4,Zy,1,0,"img",4),go(),go(),go()),2&e&&(ho("ngClass",t._mapViewportStyleClass),Ds(4),ho("ngIf",t.logoShow))},directives:[Hc,Bc],encapsulation:2}),e})(),Xy=(()=>{class e{constructor(e){this.authenticationService=e}intercept(e,t){let n=this.authenticationService.currentUserValue;return n&&n.apiKeys.length>0&&(e=e.clone({setHeaders:{"X-API-KEY":`${n.apiKeys[0]}`}})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(sr(by))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Yy=(()=>{class e{constructor(e){this.authenticationService=e}intercept(e,t){return t.handle(e).pipe(Xp(e=>{return 401===e.status&&(this.authenticationService.logout(),location.reload(!0)),t=e.error.message||e.statusText,new v(e=>e.error(t));var t}))}}return e.\u0275fac=function(t){return new(t||e)(sr(by))},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})(),Qy=(()=>{class e{constructor(){}getAddParameter(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}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=le({token:e,factory:e.\u0275fac}),e})();const Jy=["mapComponent"];function ev(e,t){if(1&e&&(fo(0,"span"),No(1),go()),2&e){const e=ko();Ds(1),Vo("",e.water.gauges.length," Gauges")}}function tv(e,t){1&e&&(fo(0,"span"),No(1,"No Gauges"),go())}function nv(e,t){if(1&e&&(fo(0,"span"),No(1),go()),2&e){const e=ko();Ds(1),Vo("",e.water.logs.length," Logs")}}function rv(e,t){1&e&&(fo(0,"span"),No(1,"No Logs"),go())}function sv(e,t){1&e&&(fo(0,"span"),No(1,"Edit / "),go())}const iv=function(e){return["/water",e]},ov=function(){return["/mygnuboat/log/add"]};let av=(()=>{class e{constructor(e){this.logParameter=e,this.mapViewportStyleClass="water-map",this.mapControlsShow=!1,this.mapLogsShow=!1,this.mapLogoShow=!1}ngOnInit(){}ngOnDestroy(){}}return e.\u0275fac=function(t){return new(t||e)(co(Qy))},e.\u0275cmp=Ue({type:e,selectors:[["gnuboat-water"]],viewQuery:function(e,t){if(1&e&&fu(Jy,1),2&e){let e;pu(e=gu())&&(t.mapComponent=e.first)}},inputs:{water:"water",user:"user"},features:[Ba([Qy])],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&&(fo(0,"div",0),fo(1,"div",1),mo(2,"gnuboat-map",2,3),go(),fo(4,"div",4),fo(5,"a",5),fo(6,"h2"),No(7),go(),go(),fo(8,"ul"),fo(9,"li"),lo(10,ev,2,1,"span",6),lo(11,tv,2,0,"ng-template",null,7,yu),No(13," / "),lo(14,nv,2,1,"span",6),lo(15,rv,2,0,"ng-template",null,8,yu),go(),fo(17,"li"),fo(18,"a",9),No(19,"Add Logfile"),go(),go(),fo(20,"li"),fo(21,"a",10),lo(22,sv,2,0,"span",11),No(23,"Details"),go(),go(),go(),go(),go()),2&e){const e=uo(12),n=uo(16);Ds(2),ho("viewportStyleClass",t.mapViewportStyleClass)("controlsShow",t.mapControlsShow)("logsShow",t.mapLogsShow)("logoShow",t.mapLogoShow)("water",t.water),Ds(3),ho("routerLink",Ql(15,iv,t.water.waterId)),Ds(2),Lo(t.water.name),Ds(3),ho("ngIf",t.water.gauges)("ngIfElse",e),Ds(4),ho("ngIf",t.water.logs)("ngIfElse",n),Ds(4),ho("routerLink",Yl(17,ov))("queryParams",t.logParameter.getAddParameter(t.water)),Ds(3),ho("routerLink",Ql(18,iv,t.water.waterId)),Ds(1),ho("ngIf",t.user)}},directives:[Ky,$m,Bc],encapsulation:2}),e})();function lv(e,t){if(1&e&&(fo(0,"div",6),mo(1,"gnuboat-water",7),go()),2&e){const e=t.$implicit,n=ko();Ds(1),ho("water",e)("user",n.currentUser)}}let uv=(()=>{class e{constructor(e,t,n){this.watersService=e,this.authenticationService=t,this.usersService=n,this.waters=[],this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e,e&&(this.usersService.configuration.username=e.username,this.usersService.configuration.password=this.authenticationService.currentUserPassword)}),this.watersService.watersGet(void 0,void 0,void 0,"name",0,25).pipe(cf()).subscribe(e=>{this.waters=e})}ngOnInit(){}ngOnDestroy(){this.currentUserSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(co(yy),co(by),co(my))},e.\u0275cmp=Ue({type:e,selectors:[["gnuboat-waters"]],decls:11,vars:1,consts:[[1,"header"],["data",jr`/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&&(fo(0,"div",0),fo(1,"h1"),mo(2,"object",1),No(3,"Waters"),go(),mo(4,"alert"),fo(5,"p"),fo(6,"a",2),No(7,"Add Water"),go(),go(),go(),fo(8,"div",3),fo(9,"div",4),lo(10,lv,2,2,"div",5),go(),go()),2&e&&(Ds(10),ho("ngForOf",t.waters))},directives:[ky,$m,$c,av],encapsulation:2}),e})();const cv=function(){return["/mygnuboat/log/add"]};function hv(e,t){if(1&e&&(fo(0,"p"),fo(1,"a",7),No(2,"Add Logfile"),go(),go()),2&e){const e=ko();Ds(1),ho("routerLink",Yl(2,cv))("queryParams",e.logParameter.getAddParameter(e.water,e.device,e.gauge))}}function dv(e,t){1&e&&mo(0,"img",16),2&e&&xo("title","Status: ",ko().$implicit.processingState.label,"")}function pv(e,t){1&e&&mo(0,"img",17),2&e&&xo("title","Status: ",ko().$implicit.processingState.label,"")}function fv(e,t){1&e&&mo(0,"img",16),2&e&&xo("title","Status: ",ko().$implicit.processingState.label,"")}function gv(e,t){1&e&&mo(0,"img",17),2&e&&xo("title","Status: ",ko().$implicit.processingState.label,"")}function mv(e,t){1&e&&mo(0,"img",18),2&e&&xo("title","Status: ",ko().$implicit.processingState.label,"")}function yv(e,t){1&e&&mo(0,"img",19),2&e&&xo("title","Status: ",ko().$implicit.processingState.label,"")}function vv(e,t){1&e&&mo(0,"img",20),2&e&&xo("title","Status: ",ko().$implicit.processingState.label,"")}function bv(e,t){if(1&e){const e=bo();fo(0,"button",21),Co("click",function(){It(e);const t=ko().$implicit;return ko(2).logDelete(t)}),No(1,"Delete"),go()}}function wv(e,t){if(1&e&&(fo(0,"tr"),fo(1,"td"),No(2),go(),fo(3,"td"),No(4),go(),fo(5,"td"),No(6),go(),fo(7,"td"),No(8),go(),fo(9,"td"),No(10),go(),fo(11,"td"),No(12),go(),fo(13,"td",9),lo(14,dv,1,1,"img",10),lo(15,pv,1,1,"img",11),lo(16,fv,1,1,"img",10),lo(17,gv,1,1,"img",11),lo(18,mv,1,1,"img",12),lo(19,yv,1,1,"img",13),lo(20,vv,1,1,"img",14),go(),fo(21,"td"),No(22),go(),fo(23,"td"),lo(24,bv,2,0,"button",15),go(),go()),2&e){const e=t.$implicit,n=ko(2);Ds(2),Lo(e.water.label),Ds(2),Lo(e.device.label),Ds(2),Lo(e.gauge.label),Ds(2),Lo(e.gaugeLevel),Ds(2),Lo(n.printDate(e.start)),Ds(2),Lo(n.printDate(e.end)),Ds(1),ho("ngSwitch",e.processingState.id),Ds(1),ho("ngSwitchCase",2),Ds(1),ho("ngSwitchCase",3),Ds(1),ho("ngSwitchCase",4),Ds(1),ho("ngSwitchCase",5),Ds(1),ho("ngSwitchCase",6),Ds(1),ho("ngSwitchCase",7),Ds(3),Lo(e.comment),Ds(2),ho("ngIf",!n.currentUser||n.currentUser.username==e.submitter)}}function _v(e,t){if(1&e&&(yo(0),lo(1,wv,25,15,"tr",8),vo()),2&e){const e=ko();Ds(1),ho("ngForOf",e.logs)}}function Cv(e,t){1&e&&(fo(0,"tr"),fo(1,"td",22),No(2,"No Logfiles"),go(),go())}let Sv=(()=>{class e{constructor(e,t,n,r,s){this.alertService=e,this.authenticationService=t,this.logsService=n,this.logParameter=r,this.router=s,this.water=void 0,this.logs=[],this.device=void 0,this.gauge=void 0,this.currentUser=void 0,this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e,e&&(this.logsService.configuration.username=e.username,this.logsService.configuration.password=this.authenticationService.currentUserPassword)})}ngOnInit(){this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e})}ngOnChanges(e){"water"in e&&this.water&&(this.logs=this.water.logs)}ngOnDestroy(){this.currentUserSubscription.unsubscribe()}printDate(e){return new Date(e).toLocaleDateString("de-De",{day:"numeric",month:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}logDelete(e){this.currentUser?this.currentUser.username==e.submitter?this.logsService.logsLogDelete(e.logId).subscribe(e=>{this.alertService.success("Log deleted")},e=>{this.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}})}}return e.\u0275fac=function(t){return new(t||e)(co(cy),co(by),co(gy),co(Qy),co(Hm))},e.\u0275cmp=Ue({type:e,selectors:[["gnuboat-logs"]],inputs:{water:"water",logs:"logs",device:"device",gauge:"gauge"},features:[Ba([Qy]),ot],decls:30,vars:3,consts:[[1,"content-subhead"],["data",jr`/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&&(fo(0,"h2",0),mo(1,"object",1),No(2,"Logfiles"),go(),fo(3,"div"),mo(4,"a",2),lo(5,hv,3,3,"p",3),fo(6,"table",4),fo(7,"thead"),fo(8,"tr"),fo(9,"th"),No(10,"Water"),go(),fo(11,"th"),No(12,"Device"),go(),fo(13,"th"),No(14,"Gauge"),go(),fo(15,"th"),No(16,"Gauge Height"),go(),fo(17,"th"),No(18,"Start"),go(),fo(19,"th"),No(20,"End"),go(),fo(21,"th"),No(22,"Status"),go(),fo(23,"th"),No(24,"Comment"),go(),mo(25,"th"),go(),go(),fo(26,"tbody"),lo(27,_v,2,1,"ng-container",5),lo(28,Cv,3,0,"ng-template",null,6,yu),go(),go(),go()),2&e){const e=uo(29);Ds(5),ho("ngIf",t.currentUser),Ds(22),ho("ngIf",t.logs&&t.logs.length>0)("ngIfElse",e)}},directives:[Bc,$m,$c,Kc,Xc,Yc],encapsulation:2}),e})();function Ev(e,t){if(1&e&&(yo(0),No(1),vo()),2&e){const e=ko().$implicit;Ds(1),Vo(" ",e.comment," ")}}const kv=function(){return["/mygnuboat/log/add"]},xv=function(e){return["/water",e]};function Tv(e,t){if(1&e&&(fo(0,"tr"),fo(1,"td",6),No(2),go(),fo(3,"td"),No(4),go(),fo(5,"td"),No(6),go(),fo(7,"td"),No(8),go(),fo(9,"td"),lo(10,Ev,2,1,"ng-container",7),go(),fo(11,"td"),fo(12,"a",8),No(13,"Add Logfile"),go(),go(),fo(14,"td"),fo(15,"a",9),No(16,"Edit"),go(),go(),go()),2&e){const e=t.$implicit,n=ko(2);Ds(1),xo("title","Gauge Id = ",e.gaugeId,""),Ds(1),Lo(e.name),Ds(2),Lo(n.decimalDegreesToDegreesMinutesSeconds(e.location[1],n.Coordinate.Latitude)),Ds(2),Lo(n.decimalDegreesToDegreesMinutesSeconds(e.location[0],n.Coordinate.Longitude)),Ds(2),Lo(e.referenceWaterLevelGaugeHeight),Ds(2),ho("ngIf",e.comment),Ds(2),ho("routerLink",Yl(9,kv))("queryParams",n.logParameter.getAddParameter(n.water,void 0,e)),Ds(3),ho("routerLink",Ql(10,xv,n.water.waterId))}}function Av(e,t){if(1&e&&(yo(0),lo(1,Tv,17,12,"tr",5),vo()),2&e){const e=ko();Ds(1),ho("ngForOf",e.water.gauges)}}function Ov(e,t){1&e&&(fo(0,"tr"),fo(1,"td",10),No(2,"No Gauges"),go(),go())}var Iv=function(e){return e[e.Latitude=1]="Latitude",e[e.Longitude=2]="Longitude",e}({});let Pv=(()=>{class e{constructor(e,t,n,r){this.watersService=e,this.alertService=t,this.authenticationService=n,this.logParameter=r,this.Coordinate=Iv,this.currentUser=void 0}ngOnInit(){this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e,e&&(this.watersService.configuration.username=e.username,this.watersService.configuration.password=this.authenticationService.currentUserPassword)})}ngOnDestroy(){}decimalDegreesToDegreesMinutesSeconds(e,t){var n=Math.trunc(e),r=Math.trunc(60*(e-n)),s=3600*(e-n-r/60),i="";switch(t){case Iv.Latitude:i=n>0?"N":"S";break;case Iv.Longitude:i=n>0?"E":"W"}return i+" "+n.toString()+"\xb0 "+r.toString()+"'"+s.toPrecision(4)+"''"}}return e.\u0275fac=function(t){return new(t||e)(co(yy),co(cy),co(by),co(Qy))},e.\u0275cmp=Ue({type:e,selectors:[["gnuboat-gauges"]],inputs:{water:"water",mapComponent:"mapComponent"},features:[Ba([Qy])],decls:22,vars:2,consts:[[1,"content-subhead"],["data",jr`/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&&(fo(0,"h2",0),mo(1,"object",1),No(2,"Gauges"),go(),fo(3,"table",2),fo(4,"thead"),fo(5,"tr"),fo(6,"th"),No(7,"Name"),go(),fo(8,"th"),No(9,"Latitude"),go(),fo(10,"th"),No(11,"Longitude"),go(),fo(12,"th"),No(13,"Reference Gauge Height"),go(),fo(14,"th"),No(15,"Comment"),go(),mo(16,"th"),mo(17,"th"),go(),go(),fo(18,"tbody"),lo(19,Av,2,1,"ng-container",3),lo(20,Ov,3,0,"ng-template",null,4,yu),go(),go()),2&e){const e=uo(21);Ds(19),ho("ngIf",t.water&&t.water.gauges&&t.water.gauges.length>0)("ngIfElse",e)}},directives:[Bc,$c,$m],encapsulation:2}),e})();function Rv(e,t){if(1&e&&(fo(0,"div",29),fo(1,"h2"),La(2,30),go(),go()),2&e){const e=ko();Ds(2),Va(e.water.name),n=2,function(e,t,n){if(la>0){const r=e.data[n];ca(e,t,Array.isArray(r)?r:r.update,xt.lFrame.bindingIndex-la-1,aa)}aa=0,la=0}(Ot(),At(),n+20)}var n}function jv(e,t){1&e&&(fo(0,"span",31),La(1,32),go())}function Dv(e,t){1&e&&(fo(0,"span",31),La(1,33),go())}function Nv(e,t){1&e&&(fo(0,"span",31),La(1,34),go())}function Lv(e,t){1&e&&(fo(0,"span",31),La(1,35),go())}let Vv=(()=>{class e{constructor(e,t,n,r){this.watersService=e,this.alertService=t,this.authenticationService=n,this.formBuilder=r,this.currentUser=void 0,this.cancel=new tu,this.gaugeCreated=new tu}ngOnInit(){this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e,e&&(this.watersService.configuration.username=e.username,this.watersService.configuration.password=this.authenticationService.currentUserPassword)}),this.gaugeForm=this.formBuilder.group({name:[,zh.required],latitude:[,zh.required],longitude:[,zh.required],referenceWaterLevelGaugeHeight:[,zh.required],comment:[]}),this.updateFormValues()}ngOnDestroy(){}set gauge(e){this._gauge=e,this.updateFormValues(),document.getElementById("gaugeEditName").scrollIntoView()}updateFormValues(){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})}addGauge(){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(cf()).subscribe(e=>{this.gaugeCreated.emit(e),this._gauge=void 0,this.gaugeForm.reset(),this.gaugeForm.clearValidators()},e=>{this.alertService.error(e)}))}cancelEditing(){this._gauge=void 0,this.gaugeForm.reset(),this.gaugeForm.clearValidators(),this.cancel.emit()}}return e.\u0275fac=function(t){return new(t||e)(co(yy),co(cy),co(by),co($d))},e.\u0275cmp=Ue({type:e,selectors:[["gnuboat-gauge-edit"]],inputs:{water:"water",gauge:"gauge"},outputs:{cancel:"cancel",gaugeCreated:"gaugeCreated"},decls:38,vars:7,consts:function(){let e,t,n,r,s,i,o,a,l,u,c,h;return e=$localize`:@@gaugeEditName␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,t=$localize`:␟87796cdf3ff1e4a4890beb20272671b9a2bda611␟1020859659887325667:Name of Gauge`,n=$localize`:@@gaugeEditLatitude␟4e0ad02a8a2295d1f317fcdbe9057c5e460c8dd0␟6691856122567960400:Latitude:`,r=$localize`:@@gaugeEditLongitude␟284b2009235fd44e3da87a60adb793608ee5d02c␟1113549170516305374:Longitude:`,s=$localize`:@@gaugeEditReferenceWaterLevelGaugeHeight␟89f32820b7ac84682cb3f6e46804a26075e04dee␟5846044266052805760:Gauge Height Reference Water Level:`,i=$localize`:@@gaugeEditComment␟96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd␟872792317034860453:Comment:`,o=$localize`:@@gaugeButtonAdd␟f6755cff4957d5c3c89bafce5651f1b6fa2b1fd9␟3249513483374643425:Add`,a=$localize`:@@gaugeaddTitle␟4a4bc6ee2170dc7a2f18c29de4a3b97dd7266b8a␟2037897628365666937:Add a new Gauge to ${"\ufffd0\ufffd"}:INTERPOLATION:`,l=$localize`:@@gaugeNameRequired␟541087322c34e8b26954fd67ff4fc80d1a6c1b33␟4444753420973870540:Name is required.`,u=$localize`:@@gaugeLatitudeRequired␟83376835482106ab6db74cb61a76b6e3247bcf1d␟359746990905750303:Latitude is required.`,c=$localize`:@@gaugeLongitudeRequired␟ce46de58238d73eeb0d11e84a9ed4ff777b84e8b␟947832037198147866:Longitude is required.`,h=$localize`:@@gaugeReferenceWaterLevelGaugeHeightRequired␟47549dadf2f25a1a478490d7a73fefb13c735629␟2759965436677198358:Reference Gauge Height is required.`,[["class","header",4,"ngIf"],[1,"content"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","name"],e,["id","gaugeEditName","formControlName","name","type","text","placeholder",t,"required",""],["gaugeNameInput",""],["class","pure-form-message-inline",4,"ngIf"],["for","latitude"],n,["formControlName","latitude","type","number","required",""],["gaugeLatitudeInput",""],["for","longitude"],r,["formControlName","longitude","type","number","required",""],["gaugeLongitudeInput",""],["for","referenceWaterLevelGaugeHeight"],s,["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"],i,["formControlName","comment"],["gaugeCommentInput",""],[1,"pure-controls"],[1,"pure-button","pure-button-primary","button-add",3,"disabled"],o,[1,"pure-button",3,"mousedown"],[1,"header"],a,[1,"pure-form-message-inline"],l,u,c,h]},template:function(e,t){1&e&&(lo(0,Rv,3,1,"div",0),fo(1,"div",1),fo(2,"form",2),Co("ngSubmit",function(){return t.addGauge()}),fo(3,"fieldset"),fo(4,"div",3),fo(5,"label",4),La(6,5),go(),mo(7,"input",6,7),lo(9,jv,2,0,"span",8),go(),fo(10,"div",3),fo(11,"label",9),La(12,10),go(),mo(13,"input",11,12),lo(15,Dv,2,0,"span",8),go(),fo(16,"div",3),fo(17,"label",13),La(18,14),go(),mo(19,"input",15,16),lo(21,Nv,2,0,"span",8),go(),fo(22,"div",3),fo(23,"label",17),La(24,18),go(),mo(25,"input",19,20),lo(27,Lv,2,0,"span",8),go(),fo(28,"div",3),fo(29,"label",21),La(30,22),go(),mo(31,"textarea",23,24),go(),fo(33,"div",25),fo(34,"button",26),La(35,27),go(),fo(36,"button",28),Co("mousedown",function(){return t.cancelEditing()}),No(37,"Cancel"),go(),go(),go(),go(),go()),2&e&&(ho("ngIf",t.water&&t._gauge),Ds(2),ho("formGroup",t.gaugeForm),Ds(7),ho("ngIf",t.gaugeForm.controls.name.errors),Ds(6),ho("ngIf",t.gaugeForm.controls.latitude.errors),Ds(6),ho("ngIf",t.gaugeForm.controls.longitude.errors),Ds(6),ho("ngIf",t.gaugeForm.controls.referenceWaterLevelGaugeHeight.errors),Ds(7),ho("disabled",t.gaugeForm.pristine||t.gaugeForm.invalid))},directives:[Bc,Dd,id,Vd,Lh,sd,Ud,Hd,ad],encapsulation:2}),e})();const Fv=["mapComponent"];function Uv(e,t){if(1&e&&(fo(0,"h1"),mo(1,"object",8),No(2),go()),2&e){const e=ko();Ds(2),Lo(e.water.name)}}function Mv(e,t){1&e&&(fo(0,"p"),No(1,"Right click on Map to add new Gauges"),go())}function Hv(e,t){if(1&e){const e=bo();fo(0,"gnuboat-gauge-edit",9),Co("cancel",function(){return It(e),ko().gaugeEditingCanceled()})("gaugeCreated",function(t){return It(e),ko().gaugeCreated(t)}),go()}if(2&e){const e=ko();ho("water",e.water)("gauge",e.gaugeEditing)}}let zv=(()=>{class e{constructor(e,t,n,r,s){this.route=e,this.router=t,this.watersService=n,this.alertService=r,this.authenticationService=s,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}ngOnInit(){this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e,e&&(this.watersService.configuration.username=e.username,this.watersService.configuration.password=this.authenticationService.currentUserPassword)}),this.waterId=Number(this.route.snapshot.paramMap.get("id")),this.getWater(),this.interval=setInterval(()=>{this.getWater()},6e4)}ngOnDestroy(){}getWater(){this.watersService.watersGetById(this.waterId).subscribe(e=>{this.water=e},e=>{this.alertService.error(e)})}mapClicked(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}})}gaugeEditingCanceled(){this.gaugeEditing=void 0}gaugeCreated(e){this.water.gauges.push(e),this.water=Object.assign({},this.water),this.gaugeEditing=void 0}}return e.\u0275fac=function(t){return new(t||e)(co(Cg),co(Hm),co(yy),co(cy),co(by))},e.\u0275cmp=Ue({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&fu(Fv,3),2&e){let e;pu(e=gu())&&(t.mapComponent=e.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",jr`/resources/gnuboat-water.svg`,1,"svg-icon"],[3,"water","gauge","cancel","gaugeCreated"]],template:function(e,t){if(1&e&&(fo(0,"div",0),lo(1,Uv,3,1,"h1",1),mo(2,"alert"),go(),fo(3,"div",2),lo(4,Mv,2,0,"p",1),fo(5,"gnuboat-map",3,4),Co("clickedRight",function(e){return t.mapClicked(e)}),go(),mo(7,"gnuboat-logs",5),mo(8,"gnuboat-gauges",6),lo(9,Hv,1,2,"gnuboat-gauge-edit",7),go()),2&e){const e=uo(6);Ds(1),ho("ngIf",t.water),Ds(3),ho("ngIf",t.currentUser),Ds(1),ho("viewportStyleClass",t.mapViewportStyleClass)("controlsShow",t.mapControlsShow)("logsShow",t.mapLogsShow)("logoShow",t.mapLogoShow)("water",t.water),Ds(2),ho("water",t.water),Ds(1),ho("water",t.water)("mapComponent",e),Ds(1),ho("ngIf",t.gaugeEditing)}},directives:[Bc,ky,Ky,Sv,Pv,Vv],encapsulation:2}),e})();function $v(e,t){if(1&e&&(fo(0,"div",17),mo(1,"gnuboat-water",18),go()),2&e){const e=t.$implicit,n=ko();Ds(1),ho("water",e)("user",n.currentUser)}}const qv=function(){return["/mygnuboat/log/add"]};function Bv(e,t){if(1&e){const e=bo();fo(0,"tr"),fo(1,"td",19),No(2),go(),fo(3,"td",20),No(4),go(),fo(5,"td",21),No(6),go(),fo(7,"td",22),fo(8,"a",23),No(9,"Add Logfile"),go(),go(),fo(10,"td",22),fo(11,"button",24),Co("click",function(){It(e);const n=t.$implicit;return ko().deviceDelete(n)}),No(12,"Delete"),go(),go(),go()}if(2&e){const e=t.$implicit,n=ko();Ds(1),xo("title","Device Id = ",e.deviceId,""),Ds(1),Lo(e.name),Ds(2),Vo("",100*e.sensorDepth,"cm"),Ds(2),Lo(e.comment),Ds(2),ho("routerLink",Yl(6,qv))("queryParams",n.logParameter.getAddParameter(void 0,e))}}function Gv(e,t){if(1&e){const e=bo();fo(0,"tr"),fo(1,"td",25),No(2),go(),fo(3,"td",22),fo(4,"button",24),Co("click",function(){It(e);const n=t.$implicit;return ko().apiKeyDelete(n)}),No(5,"Delete"),go(),go(),go()}if(2&e){const e=t.$implicit;Ds(2),Lo(e)}}let Wv=(()=>{class e{constructor(e,t,n,r,s,i,o){this.authenticationService=e,this.usersService=t,this.watersService=n,this.devicesService=r,this.logsService=s,this.alertService=i,this.logParameter=o,this.apiKeys=[],this.waters=[],this.devices=[],this.logs=[],this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e,this.usersService.configuration.username=e.username,this.usersService.configuration.password=this.authenticationService.currentUserPassword,this.watersService.configuration.username=e.username,this.watersService.configuration.password=this.authenticationService.currentUserPassword,this.devicesService.configuration.username=e.username,this.devicesService.configuration.password=this.authenticationService.currentUserPassword,this.logsService.configuration.username=e.username,this.logsService.configuration.password=this.authenticationService.currentUserPassword,this.watersService.watersGet(void 0,e.username,e.username).pipe(cf()).subscribe(e=>{this.waters=e}),this.devicesService.devicesGet().pipe(cf()).subscribe(e=>{this.devices=e}),this.logsService.logsGet(e.username).pipe(cf()).subscribe(e=>{this.logs=e})})}ngOnInit(){this.apiKeys=this.currentUser.apiKeys}ngOnDestroy(){this.currentUserSubscription.unsubscribe()}deviceDelete(e){this.devicesService.devicesDeviceDelete(e.deviceId).pipe(cf()).subscribe(e=>{this.devices=e},e=>{this.alertService.error(e)})}apiKeyDelete(e){this.usersService.usersApiKeyDelete(e).pipe(cf()).subscribe(e=>{this.apiKeys=e},e=>{this.alertService.error(e)})}apiKeyCreate(){this.usersService.usersApiKeyCreate().pipe(cf()).subscribe(e=>{this.apiKeys=e},e=>{this.alertService.error(e)})}}return e.\u0275fac=function(t){return new(t||e)(co(by),co(my),co(yy),co(fy),co(gy),co(cy),co(Qy))},e.\u0275cmp=Ue({type:e,selectors:[["ng-component"]],features:[Ba([Qy])],decls:47,vars:5,consts:[[1,"header"],[1,"content"],[3,"logs"],[1,"content-subhead"],["data",jr`/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",jr`/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&&(fo(0,"div",0),fo(1,"h1"),No(2),go(),mo(3,"alert"),go(),fo(4,"div",1),mo(5,"gnuboat-logs",2),fo(6,"h2",3),mo(7,"object",4),No(8,"My Waters"),go(),fo(9,"div"),mo(10,"a",5),fo(11,"p"),fo(12,"a",6),No(13,"Add Water"),go(),go(),fo(14,"div",7),lo(15,$v,2,2,"div",8),go(),go(),fo(16,"h2",3),mo(17,"object",9),No(18,"Devices"),go(),fo(19,"div"),mo(20,"a",10),fo(21,"p"),fo(22,"a",11),No(23,"Add Device"),go(),go(),fo(24,"table",12),fo(25,"thead"),fo(26,"tr"),fo(27,"th"),No(28,"Name"),go(),fo(29,"th"),No(30,"Sensor Depth"),go(),fo(31,"th"),No(32,"Comment"),go(),mo(33,"th"),mo(34,"th"),go(),go(),fo(35,"tbody"),lo(36,Bv,13,7,"tr",13),go(),go(),go(),fo(37,"h2",3),No(38,"Your API keys"),go(),fo(39,"div"),mo(40,"a",14),fo(41,"div"),fo(42,"a",15),Co("click",function(){return t.apiKeyCreate()}),No(43,"Create New Api Key"),go(),go(),fo(44,"table",16),fo(45,"tbody"),lo(46,Gv,6,1,"tr",13),go(),go(),go(),go()),2&e&&(Ds(2),Vo("Welcome to ",t.currentUser.firstName,"'s GNUBoat!"),Ds(3),ho("logs",t.logs),Ds(10),ho("ngForOf",t.waters),Ds(21),ho("ngForOf",t.devices),Ds(10),ho("ngForOf",t.apiKeys))},directives:[ky,Sv,$m,$c,av],encapsulation:2}),e})();class Zv extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class Kv extends Zv{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const 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}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(s){r=!0,n=!!s&&s||new Error(s)}if(r)return this.unsubscribe(),n}_unsubscribe(){const 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}}let Xv=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class Yv extends Xv{constructor(e,t=Xv.now){super(e,()=>Yv.delegate&&Yv.delegate!==this?Yv.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Yv.delegate&&Yv.delegate!==this?Yv.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let 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}}}const Qv=new Yv(Kv);function Jv(e,t=Qv){return n=>n.lift(new eb(e,t))}class eb{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new tb(e,this.dueTime,this.scheduler))}}class tb extends f{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(nb,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function nb(e){e.debouncedNext()}const rb=["mapComponent"],sb=["waterNameInput"];function ib(e,t){1&e&&mo(0,"img",19)}function ob(e,t){1&e&&(fo(0,"span",20),La(1,21),go())}function ab(e,t){if(1&e&&(fo(0,"button",22),La(1,23),go()),2&e){const e=ko();ho("disabled",!e.waterChoosen||!e.currentUser)}}function lb(e,t){if(1&e&&(fo(0,"button",22),La(1,24),go()),2&e){const e=ko();ho("disabled",!e.waterChoosen||!e.currentUser)}}function ub(e,t){1&e&&mo(0,"img",19)}var cb=function(e){return e[e.GNUBOAT=1]="GNUBOAT",e[e.OSM=2]="OSM",e}({});let hb=(()=>{class e{constructor(e,t,n,r,s,i,o){this.formBuilder=e,this.watersService=t,this.osmOverpassService=n,this.alertService=r,this.authenticationService=s,this.router=i,this.route=o,this.mapViewportStyleClass="water-add-map",this.mapControlsShow=!1,this.Origin=cb,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(e=>{this.currentUser=e,this.watersService.configuration.username=e.username,this.watersService.configuration.password=this.authenticationService.currentUserPassword})}ngOnInit(){this.watersForm=this.formBuilder.group({name:[,zh.required]}),jQuery("#waterNameAutocomplete").autocomplete({minLength:3,source:[],select:(e,t)=>{this.waterSelected(e,t)}}),this.watersForm.get("name").valueChanges.pipe(Wd(e=>3==e.length),Jv(300),df(()=>this.isProcessingGnuBoat=!0),Mp(e=>this.watersService.watersGet(e).pipe(gf(()=>this.isProcessingGnuBoat=!1)))).subscribe(e=>{this.getGnuBoatWaters(e)}),this.watersForm.get("name").valueChanges.pipe(Wd(e=>3==e.length),Jv(300),df(()=>this.isProcessingOverpass=!0),Mp(e=>this.osmOverpassService.findWaters(e).pipe(gf(()=>this.isProcessingOverpass=!1)))).subscribe(e=>{this.getOverpassWaters(e)})}ngOnDestroy(){}ngAfterViewInit(){this.map=this.mapComponent.getMap(),this.geoJsonLayer=L.geoJSON().addTo(this.map)}getGnuBoatWaters(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=cb.GNUBOAT,n.id=e[t].waterId,n.osmId=e[t].osmId,n.osmType=e[t].osmType,this.filteredWatersGnuBoat.set(n.id,n)}this.buildAutoCompletor()}getOverpassWaters(e){this.filteredWatersOverpass.clear(),"features"in e&&e.features.forEach(e=>{var t={};t.value=e.properties.name,t.label=t.value+" (OSM)",t.origin=cb.OSM,t.id=Number(e.properties.id.replace(/\D/g,"")),t.osmId=t.id,"relation"==e.properties.id.replace(/\/\d+/g,"").toLowerCase()?t.osmType="Relation":console.log(["Unidentified OSM Type",e.properties.id.replace(/\/\d+/g,"")]),this.filteredWatersOverpass.set(t.id,t)}),this.buildAutoCompletor()}getOverpassRelation(e,t){this.geoJsonLayer.clearLayers(),this.mapComponent.addOsmElement(e,t)}buildAutoCompletor(){var e=[];this.filteredWatersGnuBoat.forEach((t,n)=>{e.push(t)}),this.filteredWatersOverpass.forEach((t,n)=>{e.push(t)}),jQuery("#waterNameAutocomplete").autocomplete("option","source",e),jQuery("#waterNameAutocomplete").autocomplete("search",jQuery("#waterNameAutocomplete").val())}waterSelected(e,t){this.waterChoosen=t.item,t.item.osmId&&t.item.osmType&&this.getOverpassRelation(t.item.osmId,t.item.osmType)}addWater(){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==cb.GNUBOAT&&this.router.navigate(["/water",this.waterChoosen.id]),this.waterChoosen.origin==cb.OSM){var e={};e.name=this.waterChoosen.value,e.osmId=this.waterChoosen.id,e.osmType=this.waterChoosen.osmType,this.watersService.watersCreate(e).pipe(cf()).subscribe(t=>{e.name==t.name?this.router.navigate(["/water",t.waterId]):(console.log(t),this.alertService.error("Could not add water!"))},e=>{this.alertService.error(e)})}}else this.alertService.error("Water selected has different name than entered in name field!");else this.alertService.error("No water selected!")}}return e.\u0275fac=function(t){return new(t||e)(co($d),co(yy),co(_y),co(cy),co(by),co(Hm),co(Cg))},e.\u0275cmp=Ue({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){if(1&e&&(fu(rb,1),fu(sb,1)),2&e){let e;pu(e=gu())&&(t.mapComponent=e.first),pu(e=gu())&&(t.waterNameInput=e.first)}},features:[Ba([_y])],decls:24,vars:10,consts:function(){let e,t,n,r,s,i;return e=$localize`:@@wateraddTitle␟07a814b542ed5c77fdd1418d32af9c2a69e37067␟1503542668491126145:${"\ufffd#3\ufffd"}:START_TAG_OBJECT:${"\ufffd/#3\ufffd"}:CLOSE_TAG_OBJECT:Add a new Water`,t=$localize`:@@waterAddName␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,n=$localize`:␟ad1cf55a5798fc11fd75dcd508c8561fe086beb9␟5866076180880331164:Name of Water`,r=$localize`:@@waterNameRequired␟965d956cedfe49676e79e0b87161d5bff7661fa5␟3958642272853103661:Watername is required.`,s=$localize`:@@waterButtonAdd␟f6755cff4957d5c3c89bafce5651f1b6fa2b1fd9␟3249513483374643425:Add`,i=$localize`:@@waterButtonChoose␟9fabdfadf0453602acf388171bd4f758df47e1a7␟5698046514233867599:Choose`,[[1,"header"],e,["data",jr`/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"],s,i]},template:function(e,t){1&e&&(fo(0,"div",0),fo(1,"h1"),Da(2,1),mo(3,"object",2),Na(),go(),mo(4,"alert"),go(),fo(5,"div",3),fo(6,"div",4),fo(7,"div",5),fo(8,"form",6),Co("ngSubmit",function(){return t.addWater()}),fo(9,"fieldset"),fo(10,"div",7),fo(11,"label",8),La(12,9),go(),mo(13,"input",10,11),lo(15,ib,1,0,"img",12),lo(16,ob,2,0,"span",13),go(),fo(17,"div",14),lo(18,ab,2,1,"button",15),lo(19,lb,2,1,"button",15),go(),go(),go(),go(),fo(20,"div",16),lo(21,ub,1,0,"img",12),mo(22,"gnuboat-map",17,18),go(),go(),go()),2&e&&(Ds(8),ho("formGroup",t.watersForm),Ds(7),ho("ngIf",t.isProcessingGnuBoat||t.isProcessingOverpass),Ds(1),ho("ngIf",t.watersForm.controls.name.errors),Ds(2),ho("ngIf",!t.waterChoosen||t.waterChoosen.origin!=t.Origin.GNUBOAT),Ds(1),ho("ngIf",t.waterChoosen&&t.waterChoosen.origin==t.Origin.GNUBOAT),Ds(2),ho("ngIf",t.isProcessingRelation),Ds(1),ho("viewportStyleClass",t.mapViewportStyleClass)("controlsShow",t.mapControlsShow)("logoShow",t.mapLogoShow)("logsShow",t.mapLogsShow))},directives:[ky,Dd,id,Vd,Lh,sd,Ud,Hd,Bc,Ky],encapsulation:2}),e})();function db(e,t){1&e&&(fo(0,"span",22),La(1,23),go())}function pb(e,t){1&e&&(fo(0,"span",22),La(1,24),go())}let fb=(()=>{class e{constructor(e,t,n,r,s){this.formBuilder=e,this.devicesService=t,this.alertService=n,this.authenticationService=r,this.router=s,this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e,this.devicesService.configuration.username=e.username,this.devicesService.configuration.password=this.authenticationService.currentUserPassword})}ngOnInit(){this.devicesForm=this.formBuilder.group({name:[,zh.required],sensorDepth:[,zh.required],comment:[]})}ngOnDestroy(){}addDevice(){if(this.devicesForm.invalid)this.alertService.error("Please enter all necessary data");else{var e={};e.name=this.devicesForm.get("name").value,e.sensorDepth=this.devicesForm.get("sensorDepth").value/100,e.comment=this.devicesForm.get("comment").value?this.devicesForm.get("comment").value:"",this.devicesService.devicesCreate(e).pipe(cf()).subscribe(t=>{e.name==t.name?this.router.navigate(["/mygnuboat"]):(console.log(t),this.alertService.error("Could not add device!"))},e=>{this.alertService.error(e)})}}cancelEditing(){this.router.navigate(["/mygnuboat"])}}return e.\u0275fac=function(t){return new(t||e)(co($d),co(fy),co(cy),co(by),co(Hm))},e.\u0275cmp=Ue({type:e,selectors:[["ng-component"]],decls:30,vars:4,consts:function(){let e,t,n,r,s,i,o,a;return e=$localize`:@@deviceaddTitle␟02b0e404258ae0f38cdc0a248c15f45e5ef3bb3b␟2631079662194939396:Add a new Device`,t=$localize`:@@deviceEditName␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,n=$localize`:␟9a36b287229cfbce7525ea51ce88d070e8960b5d␟4268034752503309278:Name of Device`,r=$localize`:@@deviceEditSensorDepth␟f49c8261e048ef66223f420d9a3a16e28ef1e105␟6964567358702715848:Sensor Depth:`,s=$localize`:@@deviceEditComment␟96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd␟872792317034860453:Comment:`,i=$localize`:@@deviceButtonAdd␟f6755cff4957d5c3c89bafce5651f1b6fa2b1fd9␟3249513483374643425:Add`,o=$localize`:@@deviceNameRequired␟541087322c34e8b26954fd67ff4fc80d1a6c1b33␟4444753420973870540:Name is required.`,a=$localize`:@@deviceSensorDepthRequired␟6f73b1cdf75e7b167c6f587067be96c0ce914767␟5781133826951020538:Sensor Depth is required.`,[[1,"header"],e,[1,"content"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","name"],t,["id","deviceEditName","formControlName","name","type","text","placeholder",n,"required",""],["deviceNameInput",""],["class","pure-form-message-inline",4,"ngIf"],["for","sensorDepth"],r,["formControlName","sensorDepth","type","number","placeholder","cm","min","0","required",""],["deviceSensorDepthInput",""],["for","comment"],s,["formControlName","comment"],["deviceCommentInput",""],[1,"pure-controls"],[1,"pure-button","pure-button-primary","button-add",3,"disabled"],i,[1,"pure-button",3,"mousedown"],[1,"pure-form-message-inline"],o,a]},template:function(e,t){1&e&&(fo(0,"div",0),fo(1,"h2"),La(2,1),go(),go(),fo(3,"div",2),fo(4,"form",3),Co("ngSubmit",function(){return t.addDevice()}),fo(5,"fieldset"),fo(6,"div",4),fo(7,"label",5),La(8,6),go(),mo(9,"input",7,8),lo(11,db,2,0,"span",9),go(),fo(12,"div",4),fo(13,"label",10),La(14,11),go(),mo(15,"input",12,13),fo(17,"span"),No(18,"cm"),go(),lo(19,pb,2,0,"span",9),go(),fo(20,"div",4),fo(21,"label",14),La(22,15),go(),mo(23,"textarea",16,17),go(),fo(25,"div",18),fo(26,"button",19),La(27,20),go(),fo(28,"button",21),Co("mousedown",function(){return t.cancelEditing()}),No(29,"Cancel"),go(),go(),go(),go(),go()),2&e&&(Ds(4),ho("formGroup",t.devicesForm),Ds(7),ho("ngIf",t.devicesForm.controls.name.errors),Ds(8),ho("ngIf",t.devicesForm.controls.sensorDepth.errors),Ds(7),ho("disabled",t.devicesForm.pristine||t.devicesForm.invalid))},directives:[Dd,id,Vd,Lh,sd,Ud,Hd,Bc,ad],encapsulation:2}),e})();const gb=["logFileInput"];function mb(e,t){1&e&&mo(0,"img",35)}function yb(e,t){1&e&&(fo(0,"span",36),La(1,37),go())}function vb(e,t){1&e&&mo(0,"img",35)}function bb(e,t){1&e&&(fo(0,"span",36),La(1,38),go())}function wb(e,t){1&e&&(fo(0,"span",36),La(1,39),go())}function _b(e,t){1&e&&mo(0,"img",35)}function Cb(e,t){1&e&&(fo(0,"span",36),La(1,40),go())}function Sb(e,t){1&e&&(fo(0,"span",36),La(1,41),go())}function Eb(e,t){1&e&&mo(0,"img",35)}let kb=(()=>{class e{constructor(e,t,n,r,s,i,o,a){this.logsService=e,this.watersService=t,this.devicesService=n,this.alertService=r,this.authenticationService=s,this.formBuilder=i,this._route=o,this.router=a,this.water=void 0,this.device=void 0,this.gauge=void 0,this.currentUser=void 0,this.cancel=new tu,this.isProcessingWater=!1,this.isProcessingDevice=!1,this.isProcessingGauge=!1,this.isUploading=!1}ngOnInit(){if(this.currentUserSubscription=this.authenticationService.currentUser.subscribe(e=>{this.currentUser=e,e&&(this.logsService.configuration.username=e.username,this.logsService.configuration.password=this.authenticationService.currentUserPassword)}),this.routeSubcription=this._route.queryParams.subscribe(e=>{if("gauge"in e){var t=JSON.parse(e.gauge);this.gauge={},this.gauge.label=t.name,this.gauge.value=t.name,this.gauge.id=t.gaugeId,this.gauge.originalObject=t}if("water"in e||this.gauge&&"water"in this.gauge.originalObject){var n="water"in e?JSON.parse(e.water):this.gauge.originalObject.water;this.water={},this.water.label=n.name,this.water.value=n.name,this.water.id=n.waterId,this.water.originalObject=n}if("device"in e){var r=JSON.parse(e.device);this.device={},this.device.label=r.name,this.device.value=r.name,this.device.id=r.deviceId,this.device.originalObject=r}}),this.logForm=this.formBuilder.group({water:[,zh.required],device:[,zh.required],gauge:[,zh.required],gaugeHeight:[,zh.required],logfile:[,zh.required],comment:[]}),this.updateFormValues(),jQuery("#logEditWater").autocomplete({minLength:3,source:[],select:(e,t)=>{this.waterSelected(e,t)}}),jQuery("#logEditDevice").autocomplete({minLength:3,source:[],select:(e,t)=>{this.deviceSelected(e,t)}}),jQuery("#logEditGauge").autocomplete({minLength:this.water?0:3,source:[],select:(e,t)=>{this.gaugeSelected(e,t)}}),this.water){for(var e=[],t=this.water.originalObject.gauges,n=0;n<t.length;n++){var r={};r.id=t[n].gaugeId,r.value=t[n].name,r.label=t[n].name,e.push(r)}this.setupGaugeCompletion(e)}this.logForm.get("water").valueChanges.pipe(Wd(e=>e&&3==e.length),Jv(300),df(()=>this.isProcessingWater=!0),Mp(e=>this.watersService.watersGet(e).pipe(gf(()=>this.isProcessingWater=!1)))).subscribe(e=>{this.getWaters(e)}),this.logForm.get("device").valueChanges.pipe(Wd(e=>e&&3==e.length),Jv(300),df(()=>this.isProcessingDevice=!0),Mp(e=>this.devicesService.devicesGet(e).pipe(gf(()=>this.isProcessingDevice=!1)))).subscribe(e=>{this.getDevices(e)}),this.logForm.get("gauge").valueChanges.pipe(Wd(e=>e&&3==e.length),Jv(300),df(()=>this.isProcessingGauge=!0),Mp(e=>this.watersService.watersGaugesGet(this.water.id,e).pipe(gf(()=>this.isProcessingGauge=!1)))).subscribe(e=>{this.getGauges(e)})}ngOnDestroy(){this.currentUserSubscription.unsubscribe(),this.routeSubcription.unsubscribe()}updateFormValues(){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()}addLog(){if(this.logForm.invalid)return void this.alertService.error("Please enter all necessary data");if(!this.water||!this.device||!this.gauge)return void this.alertService.error("Please enter all necessary data");var e={};e.water=this.water.id,e.device=this.device.id,e.gauge=this.gauge.id,e.gaugeHeight=this.logForm.get("gaugeHeight").value,e.comment=null==this.logForm.get("comment").value?"":this.logForm.get("comment").value;let t=new FileReader;this.isUploading=!0,t.onload=n=>{if(null==t.result)return this.alertService.error("Could not read log file"),void(this.isUploading=!1);this.logsService.logsLogCreate(e).pipe(cf()).subscribe(n=>{this.logsService.logsLogUpload(n.logId,new Blob([t.result],{type:"text/plain"})).pipe(cf()).subscribe(t=>{this.isUploading=!1,this.logForm.reset(),this.logForm.clearValidators(),this.router.navigate(["/water",e.water])},e=>{this.alertService.error(e),this.isUploading=!1})},e=>{this.alertService.error(e),this.isUploading=!1})},t.readAsArrayBuffer(this.logFileInput.nativeElement.files[0])}cancelEditing(){this.logForm.reset(),this.logForm.clearValidators(),this.cancel.emit()}getWaters(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)}waterSelected(e,t){this.water=t.item,this.logForm.updateValueAndValidity();for(var n=[],r=0;r<t.item.originalObject.gauges.length;r++){var s={};s.id=t.item.originalObject.gauges[r].gaugeId,s.value=t.item.originalObject.gauges[r].name,s.label=t.item.originalObject.gauges[r].name,n.push(s)}jQuery("#logEditGauge").autocomplete("option","minLength",0),this.setupGaugeCompletion(n),this.updateFormValues()}getDevices(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)}deviceSelected(e,t){this.device=t.item,this.updateFormValues()}getGauges(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)}setupGaugeCompletion(e){jQuery("#logEditGauge").autocomplete("option","source",e),jQuery("#logEditGauge").autocomplete("search",this.logForm.get("gauge").value)}gaugeSelected(e,t){this.gauge=t.item,this.updateFormValues()}}return e.\u0275fac=function(t){return new(t||e)(co(gy),co(yy),co(fy),co(cy),co(by),co($d),co(Cg),co(Hm))},e.\u0275cmp=Ue({type:e,selectors:[["gnuboat-log-add"]],viewQuery:function(e,t){if(1&e&&fu(gb,1),2&e){let e;pu(e=gu())&&(t.logFileInput=e.first)}},inputs:{water:"water",device:"device",gauge:"gauge"},outputs:{cancel:"cancel"},decls:51,vars:11,consts:function(){let e,t,n,r,s,i,o,a,l,u,c,h,d,p,f,g,m;return e=$localize`:@@logAddTitle␟6e15ec5e24042c70d278ba7919f1f22b98da8c4d␟5276023314238517641:Add a new Log`,t=$localize`:@@logEditWater␟3fe5e24f5be930a2b913c38eebe1e9f2498ceac8␟8544097686337078941:Water:`,n=$localize`:␟98a340d734af4784a6da5b051621eaabe834336c␟3389994882033960886:Water where the logged data belongs to`,r=$localize`:@@logEditGauge␟4415257db5ecbb583acd5fbb0b5b1fdf50c97aef␟9003461997693281664:Gauge:`,s=$localize`:␟36bc69a34c55aaabc970860ef4dec23b0e06f686␟8771286106126615689:Gauge measured in`,i=$localize`:@@logEditGaugeHeight␟9f053067bc1c40fa5b704eca40b6d49bdec48f29␟5764946672313343537:Gauge Height (Stage) in metre:`,o=$localize`:␟d4915cafac52ba0b37bde47df608e5110138308e␟5359421901574936400:Level as number with . as decimal seperator`,a=$localize`:@@logEditDevice␟5e9272a5fe59404f637fb8343fe594f9d840aae8␟8067885942233821820:Device:`,l=$localize`:␟3b70c5e96cc2a0a586d02306c5251d504b7a18f9␟6690842742111842657:Device used for logging`,u=$localize`:@@logEditFile␟5123f1da2143102e0d190692a9c71c61feb7e4dd␟3826823411314679528:Logfile:`,c=$localize`:@@logEditComment␟96e41129ef5d2fa12b7a6ffcab608e9af04d8cbd␟872792317034860453:Comment:`,h=$localize`:@@logButtonAdd␟f6755cff4957d5c3c89bafce5651f1b6fa2b1fd9␟3249513483374643425:Add`,d=$localize`:@@logWaterRequired␟d473305d4c72e1f050254147599b4611484020b2␟259140155653744296:Water is required.`,p=$localize`:@@logGaugeRequired␟aef0f4f5c2ee55bb55716b6fddd857118bf5d4d8␟7006240767005844549:Gauge is required.`,f=$localize`:@@logGaugeHeightRequired␟e1371fad77ac299455fc6566d067051b05581e3c␟2514946971223976852:Level of gauge is required.`,g=$localize`:@@logDeviceRequired␟544a3a3f388029669e2bf1e003947c02a468d7f5␟3577197732437117405:Device is required.`,m=$localize`:@@logLogFileRequired␟ac68874819dd65cc31abb6f8e46b8f3806b4d999␟2134246091287354565:Logfile is required.`,[[1,"header"],e,[1,"content"],[1,"pure-form","pure-form-aligned",3,"formGroup","ngSubmit"],[1,"pure-control-group"],["for","water"],t,["id","logEditWater","ngModel","","formControlName","water","type","text","placeholder",n,"required",""],["logWaterInput",""],["class","processing","src","/resources/processing.svg",4,"ngIf"],["class","pure-form-message-inline",4,"ngIf"],["for","gauge"],r,["id","logEditGauge","ngModel","","formControlName","gauge","type","text","placeholder",s,"required",""],["logGaugeInput",""],["for","gaugeHeight"],i,["ngModel","","formControlName","gaugeHeight","type","number","placeholder",o,"required",""],["logGaugeHeightInput",""],["for","device"],a,["id","logEditDevice","ngModel","","formControlName","device","type","text","placeholder",l,"required",""],["logDeviceInput",""],["for","logEditFile"],u,["type","file","id","logEditFile","ngModel","","formControlName","logfile","required",""],["logFileInput",""],["for","comment"],c,["ngModel","","formControlName","comment"],["logCommentInput",""],[1,"pure-controls"],[1,"pure-button","pure-button-primary","button-add",3,"disabled"],h,[1,"pure-button",3,"mousedown"],["src","/resources/processing.svg",1,"processing"],[1,"pure-form-message-inline"],d,p,f,g,m]},template:function(e,t){1&e&&(fo(0,"div",0),fo(1,"h1"),La(2,1),go(),mo(3,"alert"),go(),fo(4,"div",2),fo(5,"form",3),Co("ngSubmit",function(){return t.addLog()}),fo(6,"fieldset"),fo(7,"div",4),fo(8,"label",5),La(9,6),go(),mo(10,"input",7,8),lo(12,mb,1,0,"img",9),lo(13,yb,2,0,"span",10),go(),fo(14,"div",4),fo(15,"label",11),La(16,12),go(),mo(17,"input",13,14),lo(19,vb,1,0,"img",9),lo(20,bb,2,0,"span",10),go(),fo(21,"div",4),fo(22,"label",15),La(23,16),go(),mo(24,"input",17,18),lo(26,wb,2,0,"span",10),go(),fo(27,"div",4),fo(28,"label",19),La(29,20),go(),mo(30,"input",21,22),lo(32,_b,1,0,"img",9),lo(33,Cb,2,0,"span",10),go(),fo(34,"div",4),fo(35,"label",23),La(36,24),go(),mo(37,"input",25,26),lo(39,Sb,2,0,"span",10),go(),fo(40,"div",4),fo(41,"label",27),La(42,28),go(),mo(43,"textarea",29,30),go(),fo(45,"div",31),lo(46,Eb,1,0,"img",9),fo(47,"button",32),La(48,33),go(),fo(49,"button",34),Co("mousedown",function(){return t.cancelEditing()}),No(50,"Cancel"),go(),go(),go(),go(),go()),2&e&&(Ds(5),ho("formGroup",t.logForm),Ds(7),ho("ngIf",t.isProcessingWater),Ds(1),ho("ngIf",t.logForm.controls.water.errors),Ds(6),ho("ngIf",t.isProcessingGauge),Ds(1),ho("ngIf",t.logForm.controls.gauge.errors),Ds(6),ho("ngIf",t.logForm.controls.gaugeHeight.errors),Ds(6),ho("ngIf",t.isProcessingDevice),Ds(1),ho("ngIf",t.logForm.controls.device.errors),Ds(6),ho("ngIf",t.logForm.controls.logfile.errors),Ds(7),ho("ngIf",t.isUploading),Ds(1),ho("disabled",t.logForm.pristine||t.logForm.invalid))},directives:[ky,Dd,id,Vd,Lh,sd,Ud,Hd,Bc,ad],encapsulation:2}),e})();const xb=ty.forRoot([{path:"",component:(()=>{class e{constructor(){this.mapViewportStyleClass="home-map"}ngOnInit(){}ngOnDestroy(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ue({type:e,selectors:[["ng-component"]],decls:1,vars:1,consts:[[3,"viewportStyleClass"]],template:function(e,t){1&e&&mo(0,"gnuboat-map",0),2&e&&ho("viewportStyleClass",t.mapViewportStyleClass)},directives:[Ky],encapsulation:2}),e})()},{path:"login",component:Gy},{path:"mygnuboat",component:Wv,canActivate:[Cy]},{path:"mygnuboat/water/add",component:hb,canActivate:[Cy]},{path:"mygnuboat/device/add",component:fb,canActivate:[Cy]},{path:"mygnuboat/log/add",component:kb,canActivate:[Cy]},{path:"water",component:uv},{path:"water/:id",component:zv},{path:"register",component:Hy},{path:"**",redirectTo:""}],{relativeLinkResolution:"legacy"});function Tb(e,t){if(1&e){const e=bo();fo(0,"li",6),fo(1,"a",25),Co("click",function(){return It(e),ko().logout()}),No(2,"Logout"),go(),go()}}function Ab(e,t){1&e&&(fo(0,"li",6),fo(1,"a",26),No(2,"Login"),go(),go())}function Ob(e,t){1&e&&(fo(0,"a",27),No(1,"Register"),go())}let Ib=(()=>{class e{constructor(e,t){this.router=e,this.authenticationService=t,this.authenticationService.currentUser.subscribe(e=>this.currentUser=e)}logout(){this.authenticationService.logout(),this.router.navigate(["/login"])}}return e.\u0275fac=function(t){return new(t||e)(co(Hm),co(by))},e.\u0275cmp=Ue({type:e,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",jr`/resources/gnuboat-map.svg`,1,"svg-icon-logfile"],["routerLink","water",1,"pure-menu-link"],["data",jr`/resources/gnuboat-water.svg`,1,"svg-icon"],[1,"pure-menu-heading"],["routerLink","mygnuboat","fragment","logfiles",1,"pure-menu-link"],["data",jr`/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",jr`/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&&(fo(0,"div",0),fo(1,"nav"),fo(2,"a",1),mo(3,"span"),go(),fo(4,"div",2),fo(5,"div",3),fo(6,"a",4),No(7,"GNUBoat"),go(),fo(8,"ul",5),fo(9,"li",6),fo(10,"a",7),mo(11,"object",8),No(12,"Map"),go(),go(),fo(13,"li",6),fo(14,"a",9),mo(15,"object",10),No(16,"Waters"),go(),go(),fo(17,"li",11),No(18,"My GNUBoat"),go(),fo(19,"li",6),fo(20,"a",12),mo(21,"object",13),No(22,"Logfiles"),go(),go(),fo(23,"li",6),fo(24,"a",14),mo(25,"object",10),No(26,"Waters"),go(),go(),fo(27,"li",6),fo(28,"a",15),mo(29,"object",16),No(30,"Devices"),go(),go(),fo(31,"li",6),fo(32,"a",17),No(33,"Api Keys"),go(),go(),lo(34,Tb,3,0,"li",18),lo(35,Ab,3,0,"li",18),go(),lo(36,Ob,2,0,"a",19),go(),go(),go(),fo(37,"div",20),mo(38,"router-outlet"),fo(39,"div",21),fo(40,"div",22),fo(41,"div",23),fo(42,"p"),fo(43,"a",24),No(44,"Visit GNUBoat Project"),go(),go(),go(),fo(45,"div",23),fo(46,"p"),No(47,"This software uses several open source componentes"),go(),go(),go(),go(),go(),go()),2&e&&(Ds(34),ho("ngIf",t.currentUser),Ds(1),ho("ngIf",!t.currentUser),Ds(1),ho("ngIf",!t.currentUser))},directives:[$m,Bc,Bm],styles:[""]}),e})(),Pb=(()=>{class e{}return e.\u0275mod=$e({type:e,bootstrap:[Ib]}),e.\u0275inj=ue({factory:function(t){return new(t||e)},providers:[{provide:fp,useClass:Xy,multi:!0},{provide:fp,useClass:Yy,multi:!0},{provide:dy,useValue:"https://gnuboat.engsas.com/mapservice/"}],imports:[[Oh,qd,Tp,vy,xb]]}),e})();(function(){if(Qu)throw new Error("Cannot enable prod mode after platform setup.");Yu=!1})(),Th().bootstrapModule(Pb).catch(e=>console.error(e))},zhAb:function(e,t,n){var r=n("aagx"),s=n("aCFj"),i=n("w2a5")(!1),o=n("YTvA")("IE_PROTO");e.exports=function(e,t){var n,a=s(e),l=0,u=[];for(n in a)n!=o&&r(a,n)&&u.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~i(u,n)||u.push(n));return u}},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"),s=n("y3w9"),i=r.key,o=r.map,a=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:i(arguments[2]),r=o(s(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var l=a.get(t);return l.delete(n),!!l.size||a.delete(t)}})}},[[0,0]]]);
