(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7471,529],{56498:(S,p,n)=>{n.d(p,{y:()=>d});var u=n(43489),T=n(57668),m=n(73292),f=n(93821),v=n(4843),E=n(92830);let d=(()=>{class c{constructor(l){this._isScalar=!1,l&&(this._subscribe=l)}lift(l){const y=new c;return y.source=this,y.operator=l,y}subscribe(l,y,M){const{operator:_}=this,b=function w(c,h,l){if(c){if(c instanceof u.L)return c;if(c[T.b])return c[T.b]()}return c||h||l?new u.L(c,h,l):new u.L(m.c)}(l,y,M);if(b.add(_?_.call(b,this.source):this.source||E.v.useDeprecatedSynchronousErrorHandling&&!b.syncErrorThrowable?this._subscribe(b):this._trySubscribe(b)),E.v.useDeprecatedSynchronousErrorHandling&&b.syncErrorThrowable&&(b.syncErrorThrowable=!1,b.syncErrorThrown))throw b.syncErrorValue;return b}_trySubscribe(l){try{return this._subscribe(l)}catch(y){E.v.useDeprecatedSynchronousErrorHandling&&(l.syncErrorThrown=!0,l.syncErrorValue=y),function a(c){for(;c;){const{closed:h,destination:l,isStopped:y}=c;if(h||y)return!1;c=l&&l instanceof u.L?l:null}return!0}(l)?l.error(y):console.warn(y)}}forEach(l,y){return new(y=r(y))((M,_)=>{let b;b=this.subscribe(C=>{try{l(C)}catch(I){_(I),b&&b.unsubscribe()}},_,M)})}_subscribe(l){const{source:y}=this;return y&&y.subscribe(l)}[f.L](){return this}pipe(...l){return 0===l.length?this:(0,v.U)(l)(this)}toPromise(l){return new(l=r(l))((y,M)=>{let _;this.subscribe(b=>_=b,b=>M(b),()=>y(_))})}}return c.create=h=>new c(h),c})();function r(c){if(c||(c=E.v.Promise||Promise),!c)throw new Error("no Promise impl found");return c}},73292:(S,p,n)=>{n.d(p,{c:()=>T});var u=n(92830),a=n(22782);const T={closed:!0,next(m){},error(m){if(u.v.useDeprecatedSynchronousErrorHandling)throw m;(0,a.z)(m)},complete(){}}},43489:(S,p,n)=>{n.d(p,{L:()=>v});var u=n(67043),a=n(73292),T=n(42654),m=n(57668),w=n(92830),f=n(22782);class v extends T.w{constructor(r,c,h){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.c;break;case 1:if(!r){this.destination=a.c;break}if("object"==typeof r){r instanceof v?(this.syncErrorThrowable=r.syncErrorThrowable,this.destination=r,r.add(this)):(this.syncErrorThrowable=!0,this.destination=new E(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new E(this,r,c,h)}}[m.b](){return this}static create(r,c,h){const l=new v(r,c,h);return l.syncErrorThrowable=!1,l}next(r){this.isStopped||this._next(r)}error(r){this.isStopped||(this.isStopped=!0,this._error(r))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(r){this.destination.next(r)}_error(r){this.destination.error(r),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:r}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this}}class E extends v{constructor(r,c,h,l){super(),this._parentSubscriber=r;let y,M=this;(0,u.m)(c)?y=c:c&&(y=c.next,h=c.error,l=c.complete,c!==a.c&&(M=Object.create(c),(0,u.m)(M.unsubscribe)&&this.add(M.unsubscribe.bind(M)),M.unsubscribe=this.unsubscribe.bind(this))),this._context=M,this._next=y,this._error=h,this._complete=l}next(r){if(!this.isStopped&&this._next){const{_parentSubscriber:c}=this;w.v.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable?this.__tryOrSetError(c,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}}error(r){if(!this.isStopped){const{_parentSubscriber:c}=this,{useDeprecatedSynchronousErrorHandling:h}=w.v;if(this._error)h&&c.syncErrorThrowable?(this.__tryOrSetError(c,this._error,r),this.unsubscribe()):(this.__tryOrUnsub(this._error,r),this.unsubscribe());else if(c.syncErrorThrowable)h?(c.syncErrorValue=r,c.syncErrorThrown=!0):(0,f.z)(r),this.unsubscribe();else{if(this.unsubscribe(),h)throw r;(0,f.z)(r)}}}complete(){if(!this.isStopped){const{_parentSubscriber:r}=this;if(this._complete){const c=()=>this._complete.call(this._context);w.v.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?(this.__tryOrSetError(r,c),this.unsubscribe()):(this.__tryOrUnsub(c),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(r,c){try{r.call(this._context,c)}catch(h){if(this.unsubscribe(),w.v.useDeprecatedSynchronousErrorHandling)throw h;(0,f.z)(h)}}__tryOrSetError(r,c,h){if(!w.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{c.call(this._context,h)}catch(l){return w.v.useDeprecatedSynchronousErrorHandling?(r.syncErrorValue=l,r.syncErrorThrown=!0,!0):((0,f.z)(l),!0)}return!1}_unsubscribe(){const{_parentSubscriber:r}=this;this._context=null,this._parentSubscriber=null,r.unsubscribe()}}},42654:(S,p,n)=>{n.d(p,{w:()=>f});var u=n(66688),a=n(57830),T=n(67043);const w=(()=>{function E(d){return Error.call(this),this.message=d?`${d.length} errors occurred during unsubscription:\n${d.map((r,c)=>`${c+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=d,this}return E.prototype=Object.create(Error.prototype),E})();class f{constructor(d){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,d&&(this._ctorUnsubscribe=!0,this._unsubscribe=d)}unsubscribe(){let d;if(this.closed)return;let{_parentOrParents:r,_ctorUnsubscribe:c,_unsubscribe:h,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof f)r.remove(this);else if(null!==r)for(let y=0;yd.concat(r instanceof w?r.errors:r),[])}f.EMPTY=((E=new f).closed=!0,E)},92830:(S,p,n)=>{n.d(p,{v:()=>a});let u=!1;const a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(T){if(T){const m=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+m.stack)}else u&&console.log("RxJS: Back to a better error behavior. Thank you. <3");u=T},get useDeprecatedSynchronousErrorHandling(){return u}}},41177:(S,p,n)=>{n.d(p,{Ds:()=>f,IY:()=>m,ft:()=>E});var u=n(43489),a=n(56498),T=n(59249);class m extends u.L{constructor(r){super(),this.parent=r}_next(r){this.parent.notifyNext(r)}_error(r){this.parent.notifyError(r),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class f extends u.L{notifyNext(r){this.destination.next(r)}notifyError(r){this.destination.error(r)}notifyComplete(){this.destination.complete()}}function E(d,r){if(r.closed)return;if(d instanceof a.y)return d.subscribe(r);let c;try{c=(0,T.s)(d)(r)}catch(h){r.error(h)}return c}},5254:(S,p,n)=>{n.d(p,{D:()=>M});var u=n(56498),a=n(59249),T=n(42654),m=n(93821),v=n(66454),E=n(5430),c=n(98955),h=n(58515);function M(_,b){return b?function y(_,b){if(null!=_){if(function r(_){return _&&"function"==typeof _[m.L]}(_))return function w(_,b){return new u.y(C=>{const I=new T.w;return I.add(b.schedule(()=>{const L=_[m.L]();I.add(L.subscribe({next(j){I.add(b.schedule(()=>C.next(j)))},error(j){I.add(b.schedule(()=>C.error(j)))},complete(){I.add(b.schedule(()=>C.complete()))}}))})),I})}(_,b);if((0,c.t)(_))return function f(_,b){return new u.y(C=>{const I=new T.w;return I.add(b.schedule(()=>_.then(L=>{I.add(b.schedule(()=>{C.next(L),I.add(b.schedule(()=>C.complete()))}))},L=>{I.add(b.schedule(()=>C.error(L)))}))),I})}(_,b);if((0,h.z)(_))return(0,v.r)(_,b);if(function l(_){return _&&"function"==typeof _[E.hZ]}(_)||"string"==typeof _)return function d(_,b){if(!_)throw new Error("Iterable cannot be null");return new u.y(C=>{const I=new T.w;let L;return I.add(()=>{L&&"function"==typeof L.return&&L.return()}),I.add(b.schedule(()=>{L=_[E.hZ](),I.add(b.schedule(function(){if(C.closed)return;let j,J;try{const B=L.next();j=B.value,J=B.done}catch(B){return void C.error(B)}J?C.complete():(C.next(j),this.schedule())}))})),I})}(_,b)}throw new TypeError((null!==_&&typeof _||_)+" is not observable")}(_,b):_ instanceof u.y?_:new u.y((0,a.s)(_))}},33009:(S,p,n)=>{n.d(p,{n:()=>m});var u=n(56498),a=n(13650),T=n(66454);function m(w,f){return f?(0,T.r)(w,f):new u.y((0,a.V)(w))}},21086:(S,p,n)=>{n.d(p,{of:()=>m});var u=n(72866),a=n(33009),T=n(66454);function m(...w){let f=w[w.length-1];return(0,u.K)(f)?(w.pop(),(0,T.r)(w,f)):(0,a.n)(w)}},21406:(S,p,n)=>{n.d(p,{b:()=>a});var u=n(61709);function a(T,m){return(0,u.zg)(T,m,1)}},92198:(S,p,n)=>{n.d(p,{h:()=>a});var u=n(43489);function a(w,f){return function(E){return E.lift(new T(w,f))}}class T{constructor(f,v){this.predicate=f,this.thisArg=v}call(f,v){return v.subscribe(new m(f,this.predicate,this.thisArg))}}class m extends u.L{constructor(f,v,E){super(f),this.predicate=v,this.thisArg=E,this.count=0}_next(f){let v;try{v=this.predicate.call(this.thisArg,f,this.count++)}catch(E){return void this.destination.error(E)}v&&this.destination.next(f)}}},24850:(S,p,n)=>{n.d(p,{U:()=>a});var u=n(43489);function a(w,f){return function(E){if("function"!=typeof w)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return E.lift(new T(w,f))}}class T{constructor(f,v){this.project=f,this.thisArg=v}call(f,v){return v.subscribe(new m(f,this.project,this.thisArg))}}class m extends u.L{constructor(f,v,E){super(f),this.project=v,this.count=0,this.thisArg=E||this}_next(f){let v;try{v=this.project.call(this.thisArg,f,this.count++)}catch(E){return void this.destination.error(E)}this.destination.next(v)}}},61709:(S,p,n)=>{n.d(p,{zg:()=>m});var u=n(24850),a=n(5254),T=n(41177);function m(E,d,r=Number.POSITIVE_INFINITY){return"function"==typeof d?c=>c.pipe(m((h,l)=>(0,a.D)(E(h,l)).pipe((0,u.U)((y,M)=>d(h,y,l,M))),r)):("number"==typeof d&&(r=d),c=>c.lift(new w(E,r)))}class w{constructor(d,r=Number.POSITIVE_INFINITY){this.project=d,this.concurrent=r}call(d,r){return r.subscribe(new f(d,this.project,this.concurrent))}}class f extends T.Ds{constructor(d,r,c=Number.POSITIVE_INFINITY){super(d),this.project=r,this.concurrent=c,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(d){this.active0?this._next(d.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},66454:(S,p,n)=>{n.d(p,{r:()=>T});var u=n(56498),a=n(42654);function T(m,w){return new u.y(f=>{const v=new a.w;let E=0;return v.add(w.schedule(function(){E!==m.length?(f.next(m[E++]),f.closed||v.add(this.schedule())):f.complete()})),v})}},5430:(S,p,n)=>{n.d(p,{hZ:()=>a});const a=function u(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:(S,p,n)=>{n.d(p,{L:()=>u});const u="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:(S,p,n)=>{n.d(p,{b:()=>u});const u="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},22782:(S,p,n)=>{function u(a){setTimeout(()=>{throw a},0)}n.d(p,{z:()=>u})},35379:(S,p,n)=>{function u(a){return a}n.d(p,{y:()=>u})},66688:(S,p,n)=>{n.d(p,{k:()=>u});const u=Array.isArray||(a=>a&&"number"==typeof a.length)},58515:(S,p,n)=>{n.d(p,{z:()=>u});const u=a=>a&&"number"==typeof a.length&&"function"!=typeof a},67043:(S,p,n)=>{function u(a){return"function"==typeof a}n.d(p,{m:()=>u})},57830:(S,p,n)=>{function u(a){return null!==a&&"object"==typeof a}n.d(p,{K:()=>u})},98955:(S,p,n)=>{function u(a){return!!a&&"function"!=typeof a.subscribe&&"function"==typeof a.then}n.d(p,{t:()=>u})},72866:(S,p,n)=>{function u(a){return a&&"function"==typeof a.schedule}n.d(p,{K:()=>u})},4843:(S,p,n)=>{n.d(p,{U:()=>T,z:()=>a});var u=n(35379);function a(...m){return T(m)}function T(m){return 0===m.length?u.y:1===m.length?m[0]:function(f){return m.reduce((v,E)=>E(v),f)}}},59249:(S,p,n)=>{n.d(p,{s:()=>c});var u=n(13650),a=n(22782),m=n(5430),f=n(93821),E=n(58515),d=n(98955),r=n(57830);const c=h=>{if(h&&"function"==typeof h[f.L])return(h=>l=>{const y=h[f.L]();if("function"!=typeof y.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return y.subscribe(l)})(h);if((0,E.z)(h))return(0,u.V)(h);if((0,d.t)(h))return(h=>l=>(h.then(y=>{l.closed||(l.next(y),l.complete())},y=>l.error(y)).then(null,a.z),l))(h);if(h&&"function"==typeof h[m.hZ])return(h=>l=>{const y=h[m.hZ]();for(;;){let M;try{M=y.next()}catch(_){return l.error(_),l}if(M.done){l.complete();break}if(l.next(M.value),l.closed)break}return"function"==typeof y.return&&l.add(()=>{y.return&&y.return()}),l})(h);{const y=`You provided ${(0,r.K)(h)?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(y)}}},13650:(S,p,n)=>{n.d(p,{V:()=>u});const u=a=>T=>{for(let m=0,w=a.length;m{n.r(p),n.d(p,{HTTP_INTERCEPTORS:()=>Y,HttpBackend:()=>d,HttpClient:()=>ie,HttpClientJsonpModule:()=>Oe,HttpClientModule:()=>Pe,HttpClientXsrfModule:()=>de,HttpContext:()=>L,HttpContextToken:()=>I,HttpErrorResponse:()=>X,HttpEventType:()=>x,HttpHandler:()=>E,HttpHeaderResponse:()=>$,HttpHeaders:()=>r,HttpParams:()=>C,HttpRequest:()=>K,HttpResponse:()=>F,HttpResponseBase:()=>V,HttpUrlEncodingCodec:()=>h,HttpXhrBackend:()=>q,HttpXsrfTokenExtractor:()=>re,JsonpClientBackend:()=>Q,JsonpInterceptor:()=>ue,XhrFactory:()=>Se,\u0275HttpInterceptingHandler:()=>le});var u=n(90944),a=n(45449),T=n(21086),m=n(56498),w=n(21406),f=n(92198),v=n(24850);class E{}class d{}class r{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),g=o.toLowerCase(),O=e.slice(i+1).trim();this.maybeSetNormalizedName(o,g),this.headers.has(g)?this.headers.get(g).push(O):this.headers.set(g,[O])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const o=("a"===t.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const g=t.value;if(g){let O=this.headers.get(e);if(!O)return;O=O.filter(R=>-1===g.indexOf(R)),0===O.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,O)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class h{encodeKey(t){return _(t)}encodeValue(t){return _(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const y=/%(\d[a-f0-9])/gi,M={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _(s){return encodeURIComponent(s).replace(y,(t,e)=>{var i;return null!==(i=M[e])&&void 0!==i?i:t})}function b(s){return`${s}`}class C{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new h,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function l(s,t){const e=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(o=>{const g=o.indexOf("="),[O,R]=-1==g?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,g)),t.decodeValue(o.slice(g+1))],P=e.get(O)||[];P.push(R),e.set(O,P)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],o=Array.isArray(i)?i.map(b):[b(i)];this.map.set(e,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const o=t[i];Array.isArray(o)?o.forEach(g=>{e.push({param:i,value:g,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new C({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(b(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const o=i.indexOf(b(t.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class I{constructor(t){this.defaultValue=t}}class L{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function J(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function B(s){return typeof Blob<"u"&&s instanceof Blob}function oe(s){return typeof FormData<"u"&&s instanceof FormData}class K{constructor(t,e,i,o){let g;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function j(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,g=o):g=i,g&&(this.reportProgress=!!g.reportProgress,this.withCredentials=!!g.withCredentials,g.responseType&&(this.responseType=g.responseType),g.headers&&(this.headers=g.headers),g.context&&(this.context=g.context),g.params&&(this.params=g.params)),this.headers||(this.headers=new r),this.context||(this.context=new L),this.params){const O=this.params.toString();if(0===O.length)this.urlWithParams=e;else{const R=e.indexOf("?");this.urlWithParams=e+(-1===R?"?":RN.set(D,t.setHeaders[D]),H)),t.setParams&&(k=Object.keys(t.setParams).reduce((N,D)=>N.set(D,t.setParams[D]),k)),new K(i,o,O,{params:k,headers:H,context:z,reportProgress:P,responseType:g,withCredentials:R})}}var x=(()=>((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x))();class V{constructor(t,e=200,i="OK"){this.headers=t.headers||new r,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class $ extends V{constructor(t={}){super(t),this.type=x.ResponseHeader}clone(t={}){return new $({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class F extends V{constructor(t={}){super(t),this.type=x.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new F({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class X extends V{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function G(s,t){return{body:t,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials}}let ie=(()=>{class s{constructor(e){this.handler=e}request(e,i,o={}){let g;if(e instanceof K)g=e;else{let P,H;P=o.headers instanceof r?o.headers:new r(o.headers),o.params&&(H=o.params instanceof C?o.params:new C({fromObject:o.params})),g=new K(e,i,void 0!==o.body?o.body:null,{headers:P,context:o.context,params:H,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const O=(0,T.of)(g).pipe((0,w.b)(P=>this.handler.handle(P)));if(e instanceof K||"events"===o.observe)return O;const R=O.pipe((0,f.h)(P=>P instanceof F));switch(o.observe||"body"){case"body":switch(g.responseType){case"arraybuffer":return R.pipe((0,v.U)(P=>{if(null!==P.body&&!(P.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return P.body}));case"blob":return R.pipe((0,v.U)(P=>{if(null!==P.body&&!(P.body instanceof Blob))throw new Error("Response is not a Blob.");return P.body}));case"text":return R.pipe((0,v.U)(P=>{if(null!==P.body&&"string"!=typeof P.body)throw new Error("Response is not a string.");return P.body}));default:return R.pipe((0,v.U)(P=>P.body))}case"response":return R;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new C).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,G(o,i))}post(e,i,o={}){return this.request("POST",e,G(o,i))}put(e,i,o={}){return this.request("PUT",e,G(o,i))}}return s.\u0275fac=function(e){return new(e||s)(a.\u0275\u0275inject(E))},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();class ae{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Y=new a.InjectionToken("HTTP_INTERCEPTORS");let Z,pe=(()=>{class s{intercept(e,i){return i.handle(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})(),ye=0;class ce{}let Q=(()=>{class s{constructor(e,i){this.callbackMap=e,this.document=i,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ye++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");if(e.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new m.y(i=>{const o=this.nextCallback(),g=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${o}$1`),O=this.document.createElement("script");O.src=g;let R=null,P=!1;this.callbackMap[o]=N=>{delete this.callbackMap[o],R=N,P=!0};const H=()=>{O.parentNode&&O.parentNode.removeChild(O),delete this.callbackMap[o]};return O.addEventListener("load",N=>{this.resolvedPromise.then(()=>{H(),P?(i.next(new F({body:R,status:200,statusText:"OK",url:g})),i.complete()):i.error(new X({url:g,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),O.addEventListener("error",N=>{H(),i.error(new X({error:N,status:0,statusText:"JSONP Error",url:g}))}),this.document.body.appendChild(O),i.next({type:x.Sent}),()=>{P||this.removeListeners(O),H()}})}removeListeners(e){Z||(Z=this.document.implementation.createHTMLDocument()),Z.adoptNode(e)}}return s.\u0275fac=function(e){return new(e||s)(a.\u0275\u0275inject(ce),a.\u0275\u0275inject(u.DOCUMENT))},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})(),ue=(()=>{class s{constructor(e){this.jsonp=e}intercept(e,i){return"JSONP"===e.method?this.jsonp.handle(e):i.handle(e)}}return s.\u0275fac=function(e){return new(e||s)(a.\u0275\u0275inject(Q))},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();const ge=/^\)\]\}',?\n/;let q=(()=>{class s{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new m.y(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((D,A)=>o.setRequestHeader(D,A.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const D=e.detectContentTypeHeader();null!==D&&o.setRequestHeader("Content-Type",D)}if(e.responseType){const D=e.responseType.toLowerCase();o.responseType="json"!==D?D:"text"}const g=e.serializeBody();let O=null;const R=()=>{if(null!==O)return O;const D=o.statusText||"OK",A=new r(o.getAllResponseHeaders()),W=function ve(s){return"responseURL"in s&&s.responseURL?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null}(o)||e.url;return O=new $({headers:A,status:o.status,statusText:D,url:W}),O},P=()=>{let{headers:D,status:A,statusText:W,url:he}=R(),U=null;204!==A&&(U=typeof o.response>"u"?o.responseText:o.response),0===A&&(A=U?200:0);let ne=A>=200&&A<300;if("json"===e.responseType&&"string"==typeof U){const De=U;U=U.replace(ge,"");try{U=""!==U?JSON.parse(U):null}catch(Me){U=De,ne&&(ne=!1,U={error:Me,text:U})}}ne?(i.next(new F({body:U,headers:D,status:A,statusText:W,url:he||void 0})),i.complete()):i.error(new X({error:U,headers:D,status:A,statusText:W,url:he||void 0}))},H=D=>{const{url:A}=R(),W=new X({error:D,status:o.status||0,statusText:o.statusText||"Unknown Error",url:A||void 0});i.error(W)};let k=!1;const z=D=>{k||(i.next(R()),k=!0);let A={type:x.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(A.total=D.total),"text"===e.responseType&&!!o.responseText&&(A.partialText=o.responseText),i.next(A)},N=D=>{let A={type:x.UploadProgress,loaded:D.loaded};D.lengthComputable&&(A.total=D.total),i.next(A)};return o.addEventListener("load",P),o.addEventListener("error",H),o.addEventListener("timeout",H),o.addEventListener("abort",H),e.reportProgress&&(o.addEventListener("progress",z),null!==g&&o.upload&&o.upload.addEventListener("progress",N)),o.send(g),i.next({type:x.Sent}),()=>{o.removeEventListener("error",H),o.removeEventListener("abort",H),o.removeEventListener("load",P),o.removeEventListener("timeout",H),e.reportProgress&&(o.removeEventListener("progress",z),null!==g&&o.upload&&o.upload.removeEventListener("progress",N)),o.readyState!==o.DONE&&o.abort()}})}}return s.\u0275fac=function(e){return new(e||s)(a.\u0275\u0275inject(u.XhrFactory))},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();const ee=new a.InjectionToken("XSRF_COOKIE_NAME"),te=new a.InjectionToken("XSRF_HEADER_NAME");class re{}let Te=(()=>{class s{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,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=(0,u.\u0275parseCookieValue)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return s.\u0275fac=function(e){return new(e||s)(a.\u0275\u0275inject(u.DOCUMENT),a.\u0275\u0275inject(a.PLATFORM_ID),a.\u0275\u0275inject(ee))},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})(),se=(()=>{class s{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const g=this.tokenService.getToken();return null!==g&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,g)})),i.handle(e)}}return s.\u0275fac=function(e){return new(e||s)(a.\u0275\u0275inject(re),a.\u0275\u0275inject(te))},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})(),le=(()=>{class s{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Y,[]);this.chain=i.reduceRight((o,g)=>new ae(o,g),this.backend)}return this.chain.handle(e)}}return s.\u0275fac=function(e){return new(e||s)(a.\u0275\u0275inject(d),a.\u0275\u0275inject(a.Injector))},s.\u0275prov=a.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac}),s})();function we(){return"object"==typeof window?window:{}}let de=(()=>{class s{static disable(){return{ngModule:s,providers:[{provide:se,useClass:pe}]}}static withOptions(e={}){return{ngModule:s,providers:[e.cookieName?{provide:ee,useValue:e.cookieName}:[],e.headerName?{provide:te,useValue:e.headerName}:[]]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=a.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=a.\u0275\u0275defineInjector({providers:[se,{provide:Y,useExisting:se,multi:!0},{provide:re,useClass:Te},{provide:ee,useValue:"XSRF-TOKEN"},{provide:te,useValue:"X-XSRF-TOKEN"}]}),s})(),Pe=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=a.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=a.\u0275\u0275defineInjector({providers:[ie,{provide:E,useClass:le},q,{provide:d,useExisting:q}],imports:[de.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),s})(),Oe=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=a.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=a.\u0275\u0275defineInjector({providers:[Q,{provide:ce,useFactory:we},{provide:Y,useClass:ue,multi:!0}]}),s})();const Se=u.XhrFactory}}]);