System.register(["@angular/core","rxjs","rxjs/operators","@angular/common"],(function(e){"use strict";var t,s,r,n,o,a,i,c,u,h,d,l,p,f,m,y,b,w,v,g,T,x,E,C,k,P;return{setters:[function(e){t=e,e.Injectable,s=e.inject,r=e.NgZone,n=e.InjectionToken,o=e["\u0275InitialRenderPendingTasks"],e.Inject,a=e["\u0275RuntimeError"],i=e.PLATFORM_ID,e.NgModule,c=e.makeEnvironmentProviders,u=e["\u0275ENABLED_SSR_FEATURES"],h=e.TransferState,d=e.APP_BOOTSTRAP_LISTENER,l=e.ApplicationRef,p=e.makeStateKey},function(e){f=e.of,m=e.Observable,y=e.from},function(e){b=e.concatMap,w=e.filter,v=e.map,g=e.finalize,T=e.switchMap,x=e.first,E=e.tap},function(e){C=e.DOCUMENT,k=e,P=e["\u0275parseCookieValue"]}],execute:function(){e({provideHttpClient:je,withFetch:function(){0;return Pe(ke.Fetch,[Z,{provide:N,useExisting:Z}])},withInterceptors:function(e){return Pe(ke.Interceptors,e.map((e=>({provide:re,useValue:e,multi:!0}))))},withInterceptorsFromDi:Se,withJsonpSupport:Ie,withNoXsrfProtection:He,withRequestsMadeViaParent:function(){return Pe(ke.RequestsMadeViaParent,[{provide:N,useFactory:()=>{const e=s(j,{skipSelf:!0,optional:!0});return e}}])},withXsrfConfiguration:Re,\u0275withHttpTransferCache:function(){return[{provide:Fe,useFactory:()=>(s(u).add("httpcache"),{isCacheActive:!0})},{provide:ne,useValue:Me,multi:!0,deps:[h,Fe]},{provide:d,multi:!0,useFactory:()=>{const e=s(l),t=s(Fe);return()=>{e.isStable.pipe(x((e=>e))).toPromise().then((()=>{t.isCacheActive=!1}))}}}]}});class j{}e("HttpHandler",j);class N{}e("HttpBackend",N);class S{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?"string"==typeof e?this.lazyInit=()=>{this.headers=new Map,e.split("\n").forEach((e=>{const t=e.indexOf(":");if(t>0){const s=e.slice(0,t),r=s.toLowerCase(),n=e.slice(t+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}}))}:"undefined"!=typeof Headers&&e instanceof Headers?(this.headers=new Map,e.forEach(((e,t)=>{this.setHeaderEntries(t,e)}))):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach((([e,t])=>{this.setHeaderEntries(e,t)}))}: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 S?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 S;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof S?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 s=e.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...s),this.headers.set(t,r);break;case"d":const n=e.value;if(n){let e=this.headers.get(t);if(!e)return;e=e.filter((e=>-1===n.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)}}setHeaderEntries(e,t){const s=(Array.isArray(t)?t:[t]).map((e=>e.toString())),r=e.toLowerCase();this.headers.set(r,s),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach((t=>e(this.normalizedNames.get(t),this.headers.get(t))))}}e("HttpHeaders",S);class R{encodeKey(e){return A(e)}encodeValue(e){return A(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}e("HttpUrlEncodingCodec",R);const H=/%(\d[a-f0-9])/gi,I={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function A(e){return encodeURIComponent(e).replace(H,((e,t)=>I[t]??e))}function O(e){return`${e}`}class L{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new R,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const s=new Map;e.length>0&&e.replace(/^\?/,"").split("&").forEach((e=>{const r=e.indexOf("="),[n,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],a=s.get(n)||[];a.push(o),s.set(n,a)}));return s}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach((t=>{const s=e.fromObject[t],r=Array.isArray(s)?s.map(O):[O(s)];this.map.set(t,r)}))):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"})}appendAll(e){const t=[];return Object.keys(e).forEach((s=>{const r=e[s];Array.isArray(r)?r.forEach((e=>{t.push({param:s,value:e,op:"a"})})):t.push({param:s,value:r,op:"a"})})),this.clone(t)}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 L({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(O(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 s=t.indexOf(O(e.value));-1!==s&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}})),this.cloneFrom=this.updates=null)}}e("HttpParams",L);e("HttpContextToken",class{constructor(e){this.defaultValue=e}});class F{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function z(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function M(e){return"undefined"!=typeof Blob&&e instanceof Blob}function U(e){return"undefined"!=typeof FormData&&e instanceof FormData}e("HttpContext",F);class q{constructor(e,t,s,r){let n;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!==s?s:null,n=r):n=s,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params)),this.headers||(this.headers=new S),this.context||(this.context=new F),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const s=t.indexOf("?"),r=-1===s?"?":s<t.length-1?"&":"";this.urlWithParams=t+r+e}}else this.params=new L,this.urlWithParams=t}serializeBody(){return null===this.body?null:z(this.body)||M(this.body)||U(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof L?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString();var e}detectContentTypeHeader(){return null===this.body||U(this.body)?null:M(this.body)?this.body.type||null:z(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof L?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,s=e.url||this.url,r=e.responseType||this.responseType,n=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let i=e.headers||this.headers,c=e.params||this.params;const u=e.context??this.context;return void 0!==e.setHeaders&&(i=Object.keys(e.setHeaders).reduce(((t,s)=>t.set(s,e.setHeaders[s])),i)),e.setParams&&(c=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),c)),new q(t,s,n,{params:c,headers:i,context:u,reportProgress:a,responseType:r,withCredentials:o})}}var B;e("HttpRequest",q),e("HttpEventType",B),function(e){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"}(B||e("HttpEventType",B={}));class J{constructor(e,t=200,s="OK"){this.headers=e.headers||new S,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||s,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}e("HttpResponseBase",J);class D extends J{constructor(e={}){super(e),this.type=B.ResponseHeader}clone(e={}){return new D({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})}}e("HttpHeaderResponse",D);class X extends J{constructor(e={}){super(e),this.type=B.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new X({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})}}e("HttpResponse",X);class V extends J{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function _(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}e("HttpErrorResponse",V);class K{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof q)r=e;else{let n,o;n=s.headers instanceof S?s.headers:new S(s.headers),s.params&&(o=s.params instanceof L?s.params:new L({fromObject:s.params})),r=new q(e,t,void 0!==s.body?s.body:null,{headers:n,context:s.context,params:o,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const n=f(r).pipe(b((e=>this.handler.handle(e))));if(e instanceof q||"events"===s.observe)return n;const o=n.pipe(w((e=>e instanceof X)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(v((e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return o.pipe(v((e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return o.pipe(v((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(v((e=>e.body)))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${s.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 L).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,s={}){return this.request("PATCH",e,_(s,t))}post(e,t,s={}){return this.request("POST",e,_(s,t))}put(e,t,s={}){return this.request("PUT",e,_(s,t))}static{this.\u0275fac=function(e){return new(e||K)(t.\u0275\u0275inject(j))}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac})}}e("HttpClient",K);const $=/^\)\]\}',?\n/,W="X-Request-URL";function G(e){if(e.url)return e.url;const t=W.toLocaleLowerCase();return e.headers.get(t)}class Z{constructor(){this.fetchImpl=s(Y,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=s(r)}handle(e){return new m((t=>{const s=new AbortController;return this.doRequest(e,s.signal,t).then(Q,(e=>t.error(new V({error:e})))),()=>s.abort()}))}async doRequest(e,t,s){const r=this.createRequestInit(e);let n;try{const o=this.fetchImpl(e.urlWithParams,{signal:t,...r});o.then(Q,Q),s.next({type:B.Sent}),n=await o}catch(t){return void s.error(new V({error:t,status:t.status??0,statusText:t.statusText,url:e.urlWithParams,headers:t.headers}))}const o=new S(n.headers),a=n.statusText,i=G(n)??e.urlWithParams;let c=n.status,u=null;if(e.reportProgress&&s.next(new D({headers:o,status:c,statusText:a,url:i})),n.body){const t=n.headers.get("content-length"),r=[],o=n.body.getReader();let a,i,c=0;const h="undefined"!=typeof Zone&&Zone.current;await this.ngZone.runOutsideAngular((async()=>{for(;;){const{done:n,value:u}=await o.read();if(n)break;if(r.push(u),c+=u.length,e.reportProgress){i="text"===e.responseType?(i??"")+(a??=new TextDecoder).decode(u,{stream:!0}):void 0;const r=()=>s.next({type:B.DownloadProgress,total:t?+t:void 0,loaded:c,partialText:i});h?h.run(r):r()}}}));const d=this.concatChunks(r,c);try{u=this.parseBody(e,d)}catch(t){return void s.error(new V({error:t,headers:new S(n.headers),status:n.status,statusText:n.statusText,url:G(n)??e.urlWithParams}))}}0===c&&(c=u?200:0);c>=200&&c<300?(s.next(new X({body:u,headers:o,status:c,statusText:a,url:i})),s.complete()):s.error(new V({error:u,headers:o,status:c,statusText:a,url:i}))}parseBody(e,t){switch(e.responseType){case"json":const e=(new TextDecoder).decode(t).replace($,"");return""===e?null:JSON.parse(e);case"text":return(new TextDecoder).decode(t);case"blob":return new Blob([t]);case"arraybuffer":return t.buffer}}createRequestInit(e){const t={},s=e.withCredentials?"include":void 0;if(e.headers.forEach(((e,s)=>t[e]=s.join(","))),t.Accept??="application/json, text/plain, */*",!t["Content-Type"]){const s=e.detectContentTypeHeader();null!==s&&(t["Content-Type"]=s)}return{body:e.serializeBody(),method:e.method,headers:t,credentials:s}}concatChunks(e,t){const s=new Uint8Array(t);let r=0;for(const t of e)s.set(t,r),r+=t.length;return s}static{this.\u0275fac=function(e){return new(e||Z)}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:Z,factory:Z.\u0275fac})}}e("FetchBackend",Z);class Y{}function Q(){}function ee(e,t){return t(e)}function te(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}const se=e("HTTP_INTERCEPTORS",new n("")),re=new n(""),ne=new n("");function oe(){let e=null;return(t,r)=>{if(null===e){const t=s(se,{optional:!0})??[];e=t.reduceRight(te,ee)}const n=s(o),a=n.add();return e(t,r).pipe(g((()=>n.remove(a))))}}class ae extends j{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null,this.pendingTasks=s(o)}handle(e){if(null===this.chain){const e=Array.from(new Set([...this.injector.get(re),...this.injector.get(ne,[])]));this.chain=e.reduceRight(((e,t)=>function(e,t,s){return(r,n)=>s.runInContext((()=>t(r,(t=>e(t,n)))))}(e,t,this.injector)),ee)}const t=this.pendingTasks.add();return this.chain(e,(e=>this.backend.handle(e))).pipe(g((()=>this.pendingTasks.remove(t))))}static{this.\u0275fac=function(e){return new(e||ae)(t.\u0275\u0275inject(N),t.\u0275\u0275inject(t.EnvironmentInjector))}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac})}}e({\u0275HttpInterceptingHandler:ae,\u0275HttpInterceptorHandler:ae});let ie,ce=0;class ue{}function he(){return"object"==typeof window?window:{}}class de{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ce++}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((t=>{const s=this.nextCallback(),r=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${s}$1`),n=this.document.createElement("script");n.src=r;let o=null,a=!1;this.callbackMap[s]=e=>{delete this.callbackMap[s],o=e,a=!0};const i=()=>{n.parentNode&&n.parentNode.removeChild(n),delete this.callbackMap[s]};return n.addEventListener("load",(e=>{this.resolvedPromise.then((()=>{i(),a?(t.next(new X({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new V({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))}))})),n.addEventListener("error",(e=>{i(),t.error(new V({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:B.Sent}),()=>{a||this.removeListeners(n),i()}}))}removeListeners(e){ie||(ie=this.document.implementation.createHTMLDocument()),ie.adoptNode(e)}static{this.\u0275fac=function(e){return new(e||de)(t.\u0275\u0275inject(ue),t.\u0275\u0275inject(C))}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:de,factory:de.\u0275fac})}}function le(e,t){return"JSONP"===e.method?s(de).handle(e):t(e)}e("JsonpClientBackend",de);class pe{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>le(e,(e=>t.handle(e)))))}static{this.\u0275fac=function(e){return new(e||pe)(t.\u0275\u0275inject(t.EnvironmentInjector))}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:pe,factory:pe.\u0275fac})}}e("JsonpInterceptor",pe);const fe=/^\)\]\}',?\n/;class me{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new a(-2800,!1);const t=this.xhrFactory;return(t.\u0275loadImpl?y(t.\u0275loadImpl()):f(null)).pipe(T((()=>new m((s=>{const r=t.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(((e,t)=>r.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&r.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();r.responseType="json"!==t?t:"text"}const n=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const t=r.statusText||"OK",s=new S(r.getAllResponseHeaders()),n=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new D({headers:s,status:r.status,statusText:t,url:n}),o},i=()=>{let{headers:t,status:n,statusText:o,url:i}=a(),c=null;204!==n&&(c=void 0===r.response?r.responseText:r.response),0===n&&(n=c?200:0);let u=n>=200&&n<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(fe,"");try{c=""!==c?JSON.parse(c):null}catch(t){c=e,u&&(u=!1,c={error:t,text:c})}}u?(s.next(new X({body:c,headers:t,status:n,statusText:o,url:i||void 0})),s.complete()):s.error(new V({error:c,headers:t,status:n,statusText:o,url:i||void 0}))},c=e=>{const{url:t}=a(),n=new V({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});s.error(n)};let u=!1;const h=t=>{u||(s.next(a()),u=!0);let n={type:B.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),"text"===e.responseType&&r.responseText&&(n.partialText=r.responseText),s.next(n)},d=e=>{let t={type:B.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),s.next(t)};return r.addEventListener("load",i),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",h),null!==n&&r.upload&&r.upload.addEventListener("progress",d)),r.send(n),s.next({type:B.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",i),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",h),null!==n&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})))))}static{this.\u0275fac=function(e){return new(e||me)(t.\u0275\u0275inject(k.XhrFactory))}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac})}}e("HttpXhrBackend",me);const ye=new n("XSRF_ENABLED"),be="XSRF-TOKEN",we=new n("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>be}),ve="X-XSRF-TOKEN",ge=new n("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>ve});class Te{}e("HttpXsrfTokenExtractor",Te);class xe{constructor(e,t,s){this.doc=e,this.platform=t,this.cookieName=s,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=P(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(e){return new(e||xe)(t.\u0275\u0275inject(C),t.\u0275\u0275inject(i),t.\u0275\u0275inject(we))}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac})}}function Ee(e,t){const r=e.url.toLowerCase();if(!s(ye)||"GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return t(e);const n=s(Te).getToken(),o=s(ge);return null==n||e.headers.has(o)||(e=e.clone({headers:e.headers.set(o,n)})),t(e)}class Ce{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>Ee(e,(e=>t.handle(e)))))}static{this.\u0275fac=function(e){return new(e||Ce)(t.\u0275\u0275inject(t.EnvironmentInjector))}}static{this.\u0275prov=t.\u0275\u0275defineInjectable({token:Ce,factory:Ce.\u0275fac})}}var ke;function Pe(e,t){return{\u0275kind:e,\u0275providers:t}}function je(...e){const t=[K,me,ae,{provide:j,useExisting:ae},{provide:N,useExisting:me},{provide:re,useValue:Ee,multi:!0},{provide:ye,useValue:!0},{provide:Te,useClass:xe}];for(const s of e)t.push(...s.\u0275providers);return c(t)}e("HttpFeatureKind",ke),function(e){e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch"}(ke||e("HttpFeatureKind",ke={}));const Ne=new n("LEGACY_INTERCEPTOR_FN");function Se(){return Pe(ke.LegacyInterceptors,[{provide:Ne,useFactory:oe},{provide:re,useExisting:Ne,multi:!0}])}function Re({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:we,useValue:e}),void 0!==t&&s.push({provide:ge,useValue:t}),Pe(ke.CustomXsrfConfiguration,s)}function He(){return Pe(ke.NoXsrfProtection,[{provide:ye,useValue:!1}])}function Ie(){return Pe(ke.JsonpSupport,[de,{provide:ue,useFactory:he},{provide:re,useValue:le,multi:!0}])}class Ae{static disable(){return{ngModule:Ae,providers:[He().\u0275providers]}}static withOptions(e={}){return{ngModule:Ae,providers:Re(e).\u0275providers}}static{this.\u0275fac=function(e){return new(e||Ae)}}static{this.\u0275mod=t.\u0275\u0275defineNgModule({type:Ae})}static{this.\u0275inj=t.\u0275\u0275defineInjector({providers:[Ce,{provide:se,useExisting:Ce,multi:!0},{provide:Te,useClass:xe},Re({cookieName:be,headerName:ve}).\u0275providers,{provide:ye,useValue:!0}]})}}e("HttpClientXsrfModule",Ae);class Oe{static{this.\u0275fac=function(e){return new(e||Oe)}}static{this.\u0275mod=t.\u0275\u0275defineNgModule({type:Oe})}static{this.\u0275inj=t.\u0275\u0275defineInjector({providers:[je(Se())]})}}e("HttpClientModule",Oe);class Le{static{this.\u0275fac=function(e){return new(e||Le)}}static{this.\u0275mod=t.\u0275\u0275defineNgModule({type:Le})}static{this.\u0275inj=t.\u0275\u0275defineInjector({providers:[Ie().\u0275providers]})}}e("HttpClientJsonpModule",Le);const Fe=new n(""),ze=["GET","HEAD"];function Me(e,t){const{isCacheActive:r}=s(Fe);if(!r||!ze.includes(e.method))return t(e);const n=s(h),o=function(e){const{params:t,method:s,responseType:r,url:n}=e,o=t.keys().sort().map((e=>`${e}=${t.getAll(e)}`)).join("&"),a=function(e){let t=0;for(const s of e)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,t.toString()}(s+"."+r+"."+n+"?"+o);return p(a)}(e),a=n.get(o,null);if(a){let e=a.body;switch(a.responseType){case"arraybuffer":e=(new TextEncoder).encode(a.body).buffer;break;case"blob":e=new Blob([a.body])}return f(new X({body:e,headers:new S(a.headers),status:a.status,statusText:a.statusText,url:a.url}))}return t(e).pipe(E((t=>{t instanceof X&&n.set(o,{body:t.body,headers:Ue(t.headers),status:t.status,statusText:t.statusText,url:t.url||"",responseType:e.responseType})})))}function Ue(e){const t={};for(const s of e.keys()){const r=e.getAll(s);null!==r&&(t[s]=r)}return t}}}}));