import{a as w,i as D$1}from"./chunk-DzaR36mO.js";import{K as Fs,Kn as ad,Mn as Ye$1,On as Xr,Qi as w$1,R as Ei,S as Cu,Si as q$1,Tn as We$1,Tt as Md,X as Gr,_a as yn,a as A,aa as x,ai as mt$1,b as Ce,g as C$1,l as An,lt as J$1,mt as Js,ni as me$1,ot as Id,pn as Te,pr as eo,qi as vn,qr as le$1,qt as Ps,xt as Li,yi as pe$1}from"./chunk-D9D3Muov.js";import{g as Pi,m as Mi,s as G$1}from"./chunk-6f7kmopo.js";var O=class r{headers;normalizedNames=/* @__PURE__ */ new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e==`string`?this.lazyInit=()=>{this.headers=/* @__PURE__ */ new Map,e.split(`
`).forEach(t=>{let n=t.indexOf(`:`);if(n>0){let o=t.slice(0,n),s=t.slice(n+1).trim();this.addHeaderEntry(o,s)}})}:typeof Headers<`u`&&e instanceof Headers?(this.headers=/* @__PURE__ */ new Map,e.forEach((t,n)=>{this.addHeaderEntry(n,t)})):this.lazyInit=()=>{this.headers=/* @__PURE__ */ new Map,Object.entries(e).forEach(([t,n])=>{this.setHeaderEntries(t,n)})}:this.headers=/* @__PURE__ */ new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let 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 r?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();for(let[t,n]of e.headers.entries())this.headers.set(t,n),this.normalizedNames.set(t,e.normalizedNames.get(t))}clone(e){let t=new r;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case`a`:case`s`:let n=e.value;if(typeof n==`string`&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,t);let o=e.op===`a`?(this.headers.get(t)||[]).slice():[];o.push(...n),this.headers.set(t,o);break;case`d`:let s=e.value;if(s===void 0)this.headers.delete(t),this.normalizedNames.delete(t);else{let i=Array.isArray(s)?s:[s],c=this.headers.get(t);if(!c)return;c=c.filter(a=>i.indexOf(a)===-1),c.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,c)}}}addHeaderEntry(e,t){let n=e.toLowerCase();this.maybeSetNormalizedName(e,n),this.headers.has(n)?this.headers.get(n).push(t):this.headers.set(n,[t])}setHeaderEntries(e,t){let n=(Array.isArray(t)?t:[t]).map(s=>s.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}};var le=class{defaultValue;constructor(e){this.defaultValue=e}};var W=class{map=/* @__PURE__ */ 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()}};var K=class{encodeKey(e){return Ue(e)}encodeValue(e){return Ue(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function ot(r,e){let t=/* @__PURE__ */ new Map;return r.length>0&&r.replace(/^\?/,``).split(`&`).forEach(o=>{let s=o.indexOf(`=`),[i,c]=s==-1?[e.decodeKey(o),``]:[e.decodeKey(o.slice(0,s)),e.decodeValue(o.slice(s+1))],a=t.get(i)||[];a.push(c),t.set(i,a)}),t}var st=/[&+#]/g;function Ue(r){return encodeURI(r).replace(st,encodeURIComponent)}function G(r){return`${r}`}var C=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new K,e.fromString){if(e.fromObject)throw new x(2805,!1);this.map=ot(e.fromString,this.encoder)}else e.fromObject?(this.map=/* @__PURE__ */ new Map,Object.keys(e.fromObject).forEach(t=>{let n=e.fromObject[t],o=Array.isArray(n)?n.map(G):[G(n)];this.map.set(t,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let 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){let t=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(s=>{t.push({param:n,value:s,op:`a`})}):t.push({param:n,value:o,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=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(n=>t+`=`+this.encoder.encodeValue(n)).join(`&`)}).filter(e=>e!==``).join(`&`)}clone(e){let t=new r({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){if(this.map===null&&(this.map=/* @__PURE__ */ new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[e,t]of this.cloneFrom.map.entries())this.map.set(e,t);this.updates.forEach(e=>{switch(e.op){case`a`:case`s`:let t=e.op===`a`?(this.map.get(e.param)||[]).slice():[];t.push(G(e.value)),this.map.set(e.param,t);break;case`d`:if(e.value!==void 0){let n=(this.map.get(e.param)||[]).slice(),o=n.indexOf(G(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null}}};function it(r){switch(r){case`DELETE`:case`GET`:case`HEAD`:case`OPTIONS`:case`JSONP`:return!1;default:return!0}}function je(r){return typeof ArrayBuffer<`u`&&r instanceof ArrayBuffer}function Le(r){return typeof Blob<`u`&&r instanceof Blob}function Be(r){return typeof FormData<`u`&&r instanceof FormData}function at(r){return typeof URLSearchParams<`u`&&r instanceof URLSearchParams}var J=`Content-Type`;var Y=`Accept`;var Je=`text/plain`;var Ve=`application/json`;var He=`${Ve}, ${Je}, */*`;var L=class r{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType=`json`;method;params;urlWithParams;transferCache;timeout;constructor(e,t,n,o){this.url=t,this.method=e.toUpperCase();let s;if(it(this.method)||o?(this.body=n!==void 0?n:null,s=o):s=n,s){if(this.reportProgress=!!s.reportProgress,this.reportUploadProgress=!!s.reportUploadProgress,this.reportDownloadProgress=!!s.reportDownloadProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout==`number`){if(s.timeout<1||!Number.isInteger(s.timeout))throw new x(2822,``);this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer!==void 0&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache}if(this.headers??=new O,this.context??=new W,!this.params)this.params=new C,this.urlWithParams=t;else{let i=this.params.toString();if(i.length===0)this.urlWithParams=t;else{let c=t,a=``,l=t.indexOf(`#`);l!==-1&&(a=t.substring(l),c=t.substring(0,l));let y=c.indexOf(`?`),g=y===-1?`?`:y<c.length-1?`&`:``;this.urlWithParams=c+g+i+a}}}serializeBody(){return this.body===null?null:typeof this.body==`string`||je(this.body)||Le(this.body)||Be(this.body)||at(this.body)?this.body:this.body instanceof C?this.body.toString():typeof this.body==`object`||typeof this.body==`boolean`||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Be(this.body)?null:Le(this.body)?this.body.type||null:je(this.body)?null:typeof this.body==`string`?Je:this.body instanceof C?`application/x-www-form-urlencoded;charset=UTF-8`:typeof this.body==`object`||typeof this.body==`number`||typeof this.body==`boolean`?Ve:null}clone(e={}){let t=e.method||this.method,n=e.url||this.url,o=e.responseType||this.responseType,s=e.keepalive??this.keepalive,i=e.priority||this.priority,c=e.cache||this.cache,a=e.mode||this.mode,l=e.redirect||this.redirect,y=e.credentials||this.credentials,g=e.referrer??this.referrer,m=e.integrity||this.integrity,v=e.referrerPolicy||this.referrerPolicy,E=e.transferCache??this.transferCache,P=e.timeout??this.timeout,f=e.body!==void 0?e.body:this.body,p=e.withCredentials??this.withCredentials,d=e.reportProgress??this.reportProgress,u=e.reportUploadProgress??this.reportUploadProgress,T=e.reportDownloadProgress??this.reportDownloadProgress,R=e.headers||this.headers,h=e.params||this.params,x=e.context??this.context;return e.setHeaders!==void 0&&(R=Object.keys(e.setHeaders).reduce((N,M)=>N.set(M,e.setHeaders[M]),R)),e.setParams&&(h=Object.keys(e.setParams).reduce((N,M)=>N.set(M,e.setParams[M]),h)),new r(t,n,f,{params:h,headers:R,context:x,reportProgress:d,reportUploadProgress:u,reportDownloadProgress:T,responseType:o,withCredentials:p,transferCache:E,keepalive:s,cache:c,priority:i,timeout:P,mode:a,redirect:l,credentials:y,referrer:g,integrity:m,referrerPolicy:v})}};var D=(function(r){return r[r.Sent=0]=`Sent`,r[r.UploadProgress=1]=`UploadProgress`,r[r.ResponseHeader=2]=`ResponseHeader`,r[r.DownloadProgress=3]=`DownloadProgress`,r[r.Response=4]=`Response`,r[r.User=5]=`User`,r})(D||{});var X=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(e,t=200,n=`OK`){this.headers=e.headers||new O,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.redirected=e.redirected,this.responseType=e.responseType,this.ok=this.status>=200&&this.status<300}};var V=class r extends X{constructor(e={}){super(e)}type=D.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}};var B=class r extends X{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=D.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0,redirected:e.redirected??this.redirected,responseType:e.responseType??this.responseType})}};var S=class extends X{name=`HttpErrorResponse`;message;error;ok=!1;constructor(e){super(e,0,`Unknown Error`),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}};var $e=200;var ct=204;var dt=/^\)\]\}',?\n/;var Ge=new A(``,{factory:()=>null});var q=(()=>{class r{fetchImpl=w$1(ue,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=w$1(q$1);destroyRef=w$1(Te);maxResponseSize=w$1(Ge);handle(t){return new C$1(n=>{let o=new AbortController,s=!1,i={next:a=>{a.type===D.Response&&(s=!0),n.next(a)},error:a=>{s=!0,n.error(a)},complete:()=>{s=!0,n.complete()}};this.doRequest(t,o.signal,i).then(he,a=>i.error(new S({error:a})));let c;return t.timeout&&(c=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException(`signal timed out`,`TimeoutError`))},t.timeout))),()=>{c!==void 0&&clearTimeout(c),!s&&!o.signal.aborted&&o.abort()}})}doRequest(t,n,o){return D$1(this,null,function*(){let s=this.createRequestInit(t),i;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,w({signal:n},s)));lt(f),o.next({type:D.Sent}),i=yield f}catch(f){o.error(new S({error:f,status:f.status??0,statusText:f.statusText,url:t.urlWithParams,headers:f.headers}));return}let c=new O(i.headers),a=i.statusText,l=i.url||t.urlWithParams,y=i.status,g=null,m=t.reportProgress||t.reportDownloadProgress;if(m&&o.next(new V({headers:c,status:y,statusText:a,url:l})),i.body){let f=i.headers.get(J)??``,p=i.headers.get(`content-length`),d=p!==null?Number(p):NaN;this.maxResponseSize!==null&&Number.isFinite(d)&&d>this.maxResponseSize&&(yield i.body.cancel(),Xe(this.maxResponseSize));let u=[],T=i.body.getReader(),R=0,h,x,N=typeof Zone<`u`&&Zone.current,M=!1;if(yield this.ngZone.runOutsideAngular(()=>D$1(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield T.cancel(),M=!0;break}let{done:_,value:U}=yield T.read();if(_)break;if(u.push(U),R+=U.length,this.maxResponseSize!==null&&R>this.maxResponseSize&&(yield T.cancel(),Xe(this.maxResponseSize)),m){x=t.responseType===`text`?(x??``)+(h??=ze(f)).decode(U,{stream:!0}):void 0;let k=()=>o.next({type:D.DownloadProgress,total:Number.isFinite(d)?d:void 0,loaded:R,partialText:x});N?N.run(k):k()}}})),M){o.complete();return}let b=this.concatChunks(u,R);try{g=this.parseBody(t,b,f,y)}catch(_){o.error(new S({error:_,headers:new O(i.headers),status:i.status,statusText:i.statusText,url:i.url||t.urlWithParams}));return}}y===0&&(y=g?$e:0);let v=y>=200&&y<300,E=i.redirected,P=i.type;v?(o.next(new B({body:g,headers:c,status:y,statusText:a,url:l,redirected:E,responseType:P})),o.complete()):o.error(new S({error:g,headers:c,status:y,statusText:a,url:l,redirected:E,responseType:P}))})}parseBody(t,n,o,s){switch(t.responseType){case`json`:let i=new TextDecoder().decode(n).replace(dt,``);if(i===``)return null;try{return JSON.parse(i)}catch(c){if(s<200||s>=300)return i;throw c}case`text`:return ze(o).decode(n);case`blob`:return new Blob([n],{type:o});case`arraybuffer`:return n.buffer}}createRequestInit(t){if(t.reportUploadProgress)throw new x(2824,!1);let n={},o;if(o=t.credentials,t.withCredentials&&(o=`include`),t.headers.forEach((s,i)=>n[s]=i.join(`,`)),t.headers.has(Y)||(n[Y]=He),!t.headers.has(J)){let s=t.detectContentTypeHeader();s!==null&&(n[J]=s)}return{body:t.serializeBody(),method:t.method,headers:n,credentials:o,keepalive:t.keepalive,cache:t.cache,priority:t.priority,mode:t.mode,redirect:t.redirect,referrer:t.referrer,integrity:t.integrity,referrerPolicy:t.referrerPolicy}}concatChunks(t,n){let o=new Uint8Array(n),s=0;for(let i of t)o.set(i,s),s+=i.length;return o}static ɵfac=function(n){return new(n||r)};static ɵprov=yn({token:r,factory:r.ɵfac})}return r})();var ue=class{};function he(){}function lt(r){r.then(he,he)}function Xe(r){throw new x(-2825,!1)}var ut=/charset=\s*["']?([^;"'\s]+)["']?/i;function ze(r){let e=r.match(ut);if(e!==null)try{return new TextDecoder(e[1])}catch(t){}return new TextDecoder}var ht=new A(``,{factory:()=>!0});var ft=`XSRF-TOKEN`;var pt=new A(``,{factory:()=>ft});var yt=`X-XSRF-TOKEN`;var gt=new A(``,{factory:()=>yt});var mt=(()=>{class r{cookieName=w$1(pt);doc=w$1(Xr);lastCookieString=``;lastToken=null;parseCount=0;getToken(){let t=this.doc.cookie||``;return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mi(t,this.cookieName),this.lastCookieString=t),this.lastToken}static ɵfac=function(n){return new(n||r)};static ɵprov=yn({token:r,factory:r.ɵfac})}return r})();var We=(()=>{class r{static ɵfac=function(n){return new(n||r)};static ɵprov=J$1({token:r,factory:function(n){let o=null;return n?o=new(n||r):o=We$1(mt),o},providedIn:`root`})}return r})();function Ke(r,e){if(!w$1(ht)||r.method===`GET`||r.method===`HEAD`)return e(r);try{let o=w$1(G$1).href,{origin:s}=new URL(o),{origin:i}=new URL(r.url,s);if(s!==i)return e(r)}catch(o){return e(r)}let t=w$1(We).getToken(),n=w$1(gt);return t!=null&&!r.headers.has(n)&&(r=r.clone({headers:r.headers.set(n,t)})),e(r)}function Tt(r,e){return e(r)}function bt(r,e,t){return(n,o)=>Ei(t,()=>e(n,s=>r(s,o)))}var fe=new A(``,{factory:()=>[Ke]});var Ye=new A(``);var qe=new A(``,{factory:()=>!0});var pe=(()=>{class r{static ɵfac=function(n){return new(n||r)};static ɵprov=J$1({token:r,factory:function(n){let o=null;return n?o=new(n||r):o=We$1(q),o},providedIn:`root`})}return r})();var Z=(()=>{class r{backend;injector;chain=null;pendingTasks=w$1(eo);contributeToStability=w$1(qe);constructor(t,n){this.backend=t,this.injector=n}handle(t){if(this.chain===null){let o=this.injector.get(Q,null,{skipSelf:!0}),s=o!==null&&this.backend===o,i=this.injector.get(Ye,[],s?{self:!0}:void 0),c=Array.from(/* @__PURE__ */ new Set([...this.injector.get(fe),...i]));this.chain=c.reduceRight((a,l)=>bt(a,l,this.injector),Tt)}let n=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return me$1(()=>n(t,s=>this.backend.handle(s))).pipe(Md(o))}else return me$1(()=>n(t,o=>this.backend.handle(o)))}static ɵfac=function(n){return new(n||r)(We$1(pe),We$1(Ce))};static ɵprov=J$1({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var Q=(()=>{class r{static ɵfac=function(n){return new(n||r)};static ɵprov=J$1({token:r,factory:function(n){let o=null;return n?o=new(n||r):o=We$1(Z),o},providedIn:`root`})}return r})();function de(r,e){return w({body:e},r)}var ye=(()=>{class r{handler;constructor(t){this.handler=t}request(t,n,o={}){let s;if(t instanceof L)s=t;else{let a;o.headers instanceof O?a=o.headers:a=new O(o.headers);let l;o.params&&(o.params instanceof C?l=o.params:l=new C({fromObject:o.params})),s=new L(t,n,o.body!==void 0?o.body:null,{headers:a,context:o.context,params:l,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||`json`,withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let i=Js(s).pipe(Id(a=>this.handler.handle(a)));if(t instanceof L||o.observe===`events`)return i;let c=i.pipe(An(a=>a instanceof B));switch(o.observe||`body`){case`body`:switch(s.responseType){case`arraybuffer`:return c.pipe(pe$1(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new x(2806,!1);return a.body}));case`blob`:return c.pipe(pe$1(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new x(2807,!1);return a.body}));case`text`:return c.pipe(pe$1(a=>{if(a.body!==null&&typeof a.body!=`string`)throw new x(2808,!1);return a.body}));default:return c.pipe(pe$1(a=>a.body))}case`response`:return c;default:throw new x(2809,!1)}}delete(t,n={}){return this.request(`DELETE`,t,n)}get(t,n={}){return this.request(`GET`,t,n)}head(t,n={}){return this.request(`HEAD`,t,n)}jsonp(t,n){return this.request(`JSONP`,t,{params:new C().append(n,`JSONP_CALLBACK`),observe:`body`,responseType:`json`})}options(t,n={}){return this.request(`OPTIONS`,t,n)}patch(t,n,o={}){return this.request(`PATCH`,t,de(o,n))}post(t,n,o={}){return this.request(`POST`,t,de(o,n))}put(t,n,o={}){return this.request(`PUT`,t,de(o,n))}static ɵfac=function(n){return new(n||r)(We$1(Q))};static ɵprov=J$1({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var vt=/^\)\]\}',?\n/;var wt=(()=>{class r{xhrFactory;tracingService=w$1(vn,{optional:!0});constructor(t){this.xhrFactory=t}maybePropagateTrace(t){return this.tracingService?.propagate?this.tracingService.propagate(t):t}handle(t){if(t.method===`JSONP`)throw new x(-2800,!1);let n=this.xhrFactory;return Js(null).pipe(ad(()=>new C$1(s=>{let i=n.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((d,u)=>i.setRequestHeader(d,u.join(`,`))),t.headers.has(Y)||i.setRequestHeader(Y,He),!t.headers.has(J)){let d=t.detectContentTypeHeader();d!==null&&i.setRequestHeader(J,d)}if(t.timeout&&(i.timeout=t.timeout),t.responseType){let d=t.responseType.toLowerCase();i.responseType=d!==`json`?d:`text`}let c=t.serializeBody(),a=null,l=()=>{if(a!==null)return a;let d=i.statusText||`OK`,u=new O(i.getAllResponseHeaders()),T=i.responseURL||t.url;return a=new V({headers:u,status:i.status,statusText:d,url:T}),a},y=this.maybePropagateTrace(()=>{let{headers:d,status:u,statusText:T,url:R}=l(),h=null;u!==ct&&(h=typeof i.response>`u`?i.responseText:i.response),u===0&&(u=h?$e:0);let x=u>=200&&u<300;if(t.responseType===`json`&&typeof h==`string`){let N=h;h=h.replace(vt,``);try{h=h!==``?JSON.parse(h):null}catch(M){h=N,x&&(x=!1,h={error:M,text:h})}}x?(s.next(new B({body:h,headers:d,status:u,statusText:T,url:R||void 0})),s.complete()):s.error(new S({error:h,headers:d,status:u,statusText:T,url:R||void 0}))}),g=this.maybePropagateTrace(d=>{let{url:u}=l(),T=new S({error:d,status:i.status||0,statusText:i.statusText||`Unknown Error`,url:u||void 0});s.error(T)}),m=g;t.timeout&&(m=this.maybePropagateTrace(d=>{let{url:u}=l(),T=new S({error:new DOMException(`Request timed out`,`TimeoutError`),status:i.status||0,statusText:i.statusText||`Request timeout`,url:u||void 0});s.error(T)}));let v=!1,E=this.maybePropagateTrace(d=>{v||(s.next(l()),v=!0);let u={type:D.DownloadProgress,loaded:d.loaded};d.lengthComputable&&(u.total=d.total),t.responseType===`text`&&i.responseText&&(u.partialText=i.responseText),s.next(u)}),P=this.maybePropagateTrace(d=>{let u={type:D.UploadProgress,loaded:d.loaded};d.lengthComputable&&(u.total=d.total),s.next(u)});i.addEventListener(`load`,y),i.addEventListener(`error`,g),i.addEventListener(`timeout`,m),i.addEventListener(`abort`,g);let f=t.reportProgress||t.reportUploadProgress,p=t.reportProgress||t.reportDownloadProgress;return p&&i.addEventListener(`progress`,E),f&&c!==null&&i.upload&&i.upload.addEventListener(`progress`,P),i.send(c),s.next({type:D.Sent}),()=>{i.removeEventListener(`error`,g),i.removeEventListener(`abort`,g),i.removeEventListener(`load`,y),i.removeEventListener(`timeout`,m),p&&i.removeEventListener(`progress`,E),f&&c!==null&&i.upload&&i.upload.removeEventListener(`progress`,P),i.readyState!==i.DONE&&i.abort()}})))}static ɵfac=function(n){return new(n||r)(We$1(Pi))};static ɵprov=J$1({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var ge=(function(r){return r[r.Interceptors=0]=`Interceptors`,r[r.LegacyInterceptors=1]=`LegacyInterceptors`,r[r.CustomXsrfConfiguration=2]=`CustomXsrfConfiguration`,r[r.NoXsrfProtection=3]=`NoXsrfProtection`,r[r.JsonpSupport=4]=`JsonpSupport`,r[r.RequestsMadeViaParent=5]=`RequestsMadeViaParent`,r[r.Fetch=6]=`Fetch`,r[r.Xhr=7]=`Xhr`,r})(ge||{});function Et(r,e){return{ɵkind:r,ɵproviders:e}}function Rt(...r){let e=[ye,q,Z,{provide:Q,useExisting:Z},{provide:pe,useFactory:()=>w$1(q)},{provide:fe,useValue:Ke,multi:!0}];for(let t of r)e.push(...t.ɵproviders);return Gr(e)}function Pt(r){return Et(ge.Interceptors,r.map(e=>({provide:fe,useValue:e,multi:!0})))}var xt=new A(``);var Mt=`b`;var Nt=`h`;var It=`s`;var Ot=`st`;var Dt=`u`;var _t=`rt`;var kt=new A(``);var At=[`GET`,`HEAD`];function St(r,e){let{isCacheActive:t,filter:n,includePostRequests:o,includeRequestsWithAuthHeaders:s,includeRequestsWithCredentials:i,includeNonCacheableRequests:c}=e,{transferCache:a,method:l}=r;return!(!t||a===!1||l===`POST`&&!o&&!a||l!==`POST`&&!At.includes(l)||!s&&Ft(r)||!i&&Bt(r)||!c&&(jt(r.headers)||Lt(r.cache))||n?.(r)===!1)}function Ct(r,e,t,n,o,s=!1){if(!s&&!St(r,e))return null;if(n)throw new x(2803,!1);if(!o){let P=r.url;o=Xt(r,P)}let i=t.get(o,null);if(!i)return null;let{[Mt]:c,[_t]:a,[Nt]:l,[It]:y,[Ot]:g,[Dt]:m}=i,v=c;switch(a){case`arraybuffer`:v=Qe(c);break;case`blob`:v=new Blob([Qe(c)])}let E=new O(l);return new B({body:v,headers:E,status:y,statusText:g,url:m})}function Ft(r){let e=r.headers;return e.has(`authorization`)||e.has(`proxy-authorization`)||e.has(`cookie`)}var Ut=/* @__PURE__ */ new Set([`no-store`,`private`,`no-cache`]);function jt(r){let e=r.getAll(`cache-control`);return e?e.some(t=>t.split(`,`).some(n=>{let o=n.split(`=`,1)[0].trim().toLowerCase();return Ut.has(o)})):!1}function Lt(r){return r===`no-cache`||r===`no-store`}function Bt(r){let{withCredentials:e,credentials:t}=r;return e||t===`include`||t===`same-origin`}function Ze(r){let e=new URLSearchParams(r instanceof URLSearchParams?r:r.toString());return e.sort(),e.toString()}function Xt(r,e){let{params:t,method:n,responseType:o}=r,s=Ze(t),i=r.serializeBody();i instanceof URLSearchParams?i=Ze(i):typeof i!=`string`&&(i=``);return Jt([n,o,e,i,s].join(`\0`))}function Qe(r){let e=atob(r);return Uint8Array.from(e,n=>n.charCodeAt(0)).buffer}var zt=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);var et;function Jt(r){et??=new TextEncoder;let e=et.encode(r),t=1779033703,n=3144134277,o=1013904242,s=2773480762,i=1359893119,c=2600822924,a=528734635,l=1541459225,y=e.length*8,g=(e.length+8>>6)+1<<6,m=new Uint8Array(g);m.set(e),m[e.length]=128;let v=new DataView(m.buffer),E=y>>>0,P=y/4294967296>>>0;v.setUint32(g-8,P,!1),v.setUint32(g-4,E,!1);let f=/* @__PURE__ */ new Uint32Array(64);for(let p=0;p<g;p+=64){for(let b=0;b<16;b++)f[b]=v.getUint32(p+b*4,!1);for(let b=16;b<64;b++){let _=f[b-15],U=((_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3)>>>0,k=f[b-2],te=((k>>>17|k<<15)^(k>>>19|k<<13)^k>>>10)>>>0;f[b]=f[b-16]+U+f[b-7]+te>>>0}let d=t,u=n,T=o,R=s,h=i,x=c,N=a,M=l;for(let b=0;b<64;b++){let _=((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))>>>0,U=(h&x^~h&N)>>>0,k=M+_+U+zt[b]+f[b]>>>0,rt=(((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))>>>0)+((d&u^d&T^u&T)>>>0)>>>0;M=N,N=x,x=h,h=R+k>>>0,R=T,T=u,u=d,d=k+rt>>>0}t=t+d>>>0,n=n+u>>>0,o=o+T>>>0,s=s+R>>>0,i=i+h>>>0,c=c+x>>>0,a=a+N>>>0,l=l+M>>>0}return[t,n,o,s,i,c,a,l].map(p=>p.toString(16).padStart(8,`0`)).join(``)}var kr=(()=>{let r=ee(`json`);return r.arrayBuffer=ee(`arraybuffer`),r.blob=ee(`blob`),r.text=ee(`text`),r})();function ee(r){return function(t,n){let o=n?.injector??w$1(le$1),s=o.get(kt,null,{optional:!0}),i=o.get(Li,null,{optional:!0}),c=o.get(xt,null,{optional:!0}),a=l=>{if(s&&i&&l){let y=Ct(l,s,i,c);if(y)try{let g=y.body,m=n?.parse?n.parse(g):g;return Ye$1({value:m})}catch(g){}}};return new me(o,l=>Vt(l,t,r),n?.defaultValue,n?.debugName,n?.parse,n?.equal,a)}}function Vt(r,e,t){let n=typeof e==`function`?e(r):e;if(n===void 0)return;typeof n==`string`&&(n={url:n});let o=n.headers instanceof O?n.headers:new O(n.headers),s=n.params instanceof C?n.params:new C({fromObject:n.params});return new L(n.method??`GET`,n.url,n.body??null,{headers:o,params:s,reportDownloadProgress:n.reportProgress,withCredentials:n.withCredentials,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,responseType:t,context:n.context,transferCache:n.transferCache,credentials:n.credentials,referrer:n.referrer,referrerPolicy:n.referrerPolicy,integrity:n.integrity,timeout:n.timeout})}var me=class extends Ps{client;_headers=Cu({source:this.extRequest,computation:()=>{}});_progress=Cu({source:this.extRequest,computation:()=>{}});_statusCode=Cu({source:this.extRequest,computation:()=>{}});headers=mt$1(()=>this.status()===`resolved`||this.status()===`error`?this._headers():void 0);progress=this._progress.asReadonly();statusCode=this._statusCode.asReadonly();constructor(e,t,n,o,s,i,c){super(t,({params:a,abortSignal:l})=>{let y,g=!1,m=()=>{g=!0,y?.unsubscribe()};l.addEventListener(`abort`,m,{once:!0});let v=Ye$1({value:void 0}),E,P=new Promise(p=>E=p),f=p=>{v.set(p),E?.(v),E=void 0};return y=this.client.request(a).subscribe({next:p=>{switch(p.type){case D.Response:this._headers.set(p.headers),this._statusCode.set(p.status);try{f({value:s?s(p.body):p.body})}catch(d){f({error:Fs(d)})}break;case D.DownloadProgress:this._progress.set(p)}},error:p=>{p instanceof S&&(this._headers.set(p.headers),this._statusCode.set(p.status)),f({error:p}),l.removeEventListener(`abort`,m)},complete:()=>{E&&f({error:new x(-991,!1)}),l.removeEventListener(`abort`,m)}}),g&&y.unsubscribe(),P},n,i,o,e,void 0,c),this.client=e.get(ye)}set(e){super.set(e),this._headers.set(void 0),this._progress.set(void 0),this._statusCode.set(void 0)}};export{Pt as a,W as c,pe as d,q as f,O as i,kr as l,ye as m,D as n,Rt as o,wt as p,L as r,S as s,C as t,le as u};