import{A as He,Ba as ot,Bc as yt,Ca as _,Cc as vt,Da as j,E as et,Ea as Ae,H as ie,Ha as at,Ia as Ce,Ja as lt,Jc as ce,K as J,Ka as x,Kc as wt,Lc as Tt,Ma as Oe,Mc as w,N as tt,Na as U,Oa as B,Pa as ct,Qa as ut,Ra as dt,Sa as ht,T as Me,Ta as ft,Tc as ue,Ua as pt,Va as gt,W,Wa as F,_ as C,a as M,aa as p,ad as Et,b as Ye,ba as oe,bb as q,cd as de,da as v,db as Pe,ed as he,fa as c,g as Ee,ga as E,ib as mt,j as be,ja as Z,la as ae,na as nt,oa as Le,p as Qe,q as T,qa as rt,ra as st,s as L,sa as it,u as A,y as Re,ya as le,z as De}from"./chunk-5TK2KFYF.js";var Q=class{},pe=class{},R=class n{constructor(r){this.normalizedNames=new Map,this.lazyUpdate=null,r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
`).forEach(e=>{let t=e.indexOf(":");if(t>0){let s=e.slice(0,t),i=s.toLowerCase(),o=e.slice(t+1).trim();this.maybeSetNormalizedName(s,i),this.headers.has(i)?this.headers.get(i).push(o):this.headers.set(i,[o])}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,t)=>{this.setHeaderEntries(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let t=r.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(r.name,e);let s=(r.op==="a"?this.headers.get(e):void 0)||[];s.push(...t),this.headers.set(e,s);break;case"d":let i=r.value;if(!i)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(l=>i.indexOf(l)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}setHeaderEntries(r,e){let t=(Array.isArray(e)?e:[e]).map(i=>i.toString()),s=r.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(r,s)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var Ie=class{encodeKey(r){return bt(r)}encodeValue(r){return bt(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function Jt(n,r){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,l]=i==-1?[r.decodeKey(s),""]:[r.decodeKey(s.slice(0,i)),r.decodeValue(s.slice(i+1))],a=e.get(o)||[];a.push(l),e.set(o,a)}),e}var Wt=/%(\d[a-f0-9])/gi,Zt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function bt(n){return encodeURIComponent(n).replace(Wt,(r,e)=>Zt[e]??r)}function fe(n){return`${n}`}var P=class n{constructor(r={}){if(this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new Ie,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Jt(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let t=r.fromObject[e],s=Array.isArray(t)?t.map(fe):[fe(t)];this.map.set(e,s)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(t=>{let s=r[t];Array.isArray(s)?s.forEach(i=>{e.push({param:t,value:i,op:"a"})}):e.push({param:t,value:s,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(fe(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let t=this.map.get(r.param)||[],s=t.indexOf(fe(r.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(r.param,t):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var Ne=class{constructor(){this.map=new Map}set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function qt(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Rt(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Dt(n){return typeof Blob<"u"&&n instanceof Blob}function Mt(n){return typeof FormData<"u"&&n instanceof FormData}function Yt(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Y=class n{constructor(r,e,t,s){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase();let i;if(qt(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new R,this.context??=new Ne,!this.params)this.params=new P,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let l=e.indexOf("?"),a=l===-1?"?":l<e.length-1?"&":"";this.urlWithParams=e+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Rt(this.body)||Dt(this.body)||Mt(this.body)||Yt(this.body)?this.body:this.body instanceof P?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||Mt(this.body)?null:Dt(this.body)?this.body.type||null:Rt(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof P?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(r={}){let e=r.method||this.method,t=r.url||this.url,s=r.responseType||this.responseType,i=r.transferCache??this.transferCache,o=r.body!==void 0?r.body:this.body,l=r.withCredentials??this.withCredentials,a=r.reportProgress??this.reportProgress,u=r.headers||this.headers,d=r.params||this.params,g=r.context??this.context;return r.setHeaders!==void 0&&(u=Object.keys(r.setHeaders).reduce((b,m)=>b.set(m,r.setHeaders[m]),u)),r.setParams&&(d=Object.keys(r.setParams).reduce((b,m)=>b.set(m,r.setParams[m]),d)),new n(e,t,o,{params:d,headers:u,context:g,reportProgress:a,responseType:s,withCredentials:l,transferCache:i})}},S=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(S||{}),H=class{constructor(r,e=200,t="OK"){this.headers=r.headers||new R,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||t,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}},ge=class n extends H{constructor(r={}){super(r),this.type=S.ResponseHeader}clone(r={}){return new n({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},ee=class n extends H{constructor(r={}){super(r),this.type=S.Response,this.body=r.body!==void 0?r.body:null}clone(r={}){return new n({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},O=class extends H{constructor(r){super(r,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},Pt=200,Qt=204;function Se(n,r){return{body:r,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var Ht=(()=>{class n{constructor(e){this.handler=e}request(e,t,s={}){let i;if(e instanceof Y)i=e;else{let a;s.headers instanceof R?a=s.headers:a=new R(s.headers);let u;s.params&&(s.params instanceof P?u=s.params:u=new P({fromObject:s.params})),i=new Y(e,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:u,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=T(i).pipe(ie(a=>this.handler.handle(a)));if(e instanceof Y||s.observe==="events")return o;let l=o.pipe(et(a=>a instanceof ee));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(A(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return l.pipe(A(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return l.pipe(A(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return l.pipe(A(a=>a.body))}case"response":return l;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 P().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,Se(s,t))}post(e,t,s={}){return this.request("POST",e,Se(s,t))}put(e,t,s={}){return this.request("PUT",e,Se(s,t))}static{this.\u0275fac=function(t){return new(t||n)(c(Q))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})(),en=/^\)\]\}',?\n/,tn="X-Request-URL";function Lt(n){if(n.url)return n.url;let r=tn.toLocaleLowerCase();return n.headers.get(r)}var nn=(()=>{class n{constructor(){this.fetchImpl=E(_e,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=E(j)}handle(e){return new be(t=>{let s=new AbortController;return this.doRequest(e,s.signal,t).then(je,i=>t.error(new O({error:i}))),()=>s.abort()})}doRequest(e,t,s){return Ee(this,null,function*(){let i=this.createRequestInit(e),o;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,M({signal:t},i)));rn(m),s.next({type:S.Sent}),o=yield m}catch(m){s.error(new O({error:m,status:m.status??0,statusText:m.statusText,url:e.urlWithParams,headers:m.headers}));return}let l=new R(o.headers),a=o.statusText,u=Lt(o)??e.urlWithParams,d=o.status,g=null;if(e.reportProgress&&s.next(new ge({headers:l,status:d,statusText:a,url:u})),o.body){let m=o.headers.get("content-length"),G=[],h=o.body.getReader(),f=0,D,k,y=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Ee(this,null,function*(){for(;;){let{done:N,value:K}=yield h.read();if(N)break;if(G.push(K),f+=K.length,e.reportProgress){k=e.responseType==="text"?(k??"")+(D??=new TextDecoder).decode(K,{stream:!0}):void 0;let qe=()=>s.next({type:S.DownloadProgress,total:m?+m:void 0,loaded:f,partialText:k});y?y.run(qe):qe()}}}));let X=this.concatChunks(G,f);try{let N=o.headers.get("Content-Type")??"";g=this.parseBody(e,X,N)}catch(N){s.error(new O({error:N,headers:new R(o.headers),status:o.status,statusText:o.statusText,url:Lt(o)??e.urlWithParams}));return}}d===0&&(d=g?Pt:0),d>=200&&d<300?(s.next(new ee({body:g,headers:l,status:d,statusText:a,url:u})),s.complete()):s.error(new O({error:g,headers:l,status:d,statusText:a,url:u}))})}parseBody(e,t,s){switch(e.responseType){case"json":let i=new TextDecoder().decode(t).replace(en,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(e){let t={},s=e.withCredentials?"include":void 0;if(e.headers.forEach((i,o)=>t[i]=o.join(",")),e.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let i=e.detectContentTypeHeader();i!==null&&(t["Content-Type"]=i)}return{body:e.serializeBody(),method:e.method,headers:t,credentials:s}}concatChunks(e,t){let s=new Uint8Array(t),i=0;for(let o of e)s.set(o,i),i+=o.length;return s}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})(),_e=class{};function je(){}function rn(n){n.then(je,je)}function sn(n,r){return r(n)}function on(n,r,e){return(t,s)=>it(e,()=>r(t,i=>n(i,s)))}var xe=new v(""),an=new v(""),ln=new v("",{providedIn:"root",factory:()=>!0});var At=(()=>{class n extends Q{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null,this.pendingTasks=E(ot),this.contributeToStability=E(ln)}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(xe),...this.injector.get(an,[])]));this.chain=t.reduceRight((s,i)=>on(s,i,this.injector),sn)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,s=>this.backend.handle(s)).pipe(tt(()=>this.pendingTasks.remove(t)))}else return this.chain(e,t=>this.backend.handle(t))}static{this.\u0275fac=function(t){return new(t||n)(c(pe),c(st))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})();var cn=/^\)\]\}',?\n/;function un(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var Ct=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new C(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?Qe(t.\u0275loadImpl()):T(null)).pipe(W(()=>new be(i=>{let o=t.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((h,f)=>o.setRequestHeader(h,f.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let h=e.detectContentTypeHeader();h!==null&&o.setRequestHeader("Content-Type",h)}if(e.responseType){let h=e.responseType.toLowerCase();o.responseType=h!=="json"?h:"text"}let l=e.serializeBody(),a=null,u=()=>{if(a!==null)return a;let h=o.statusText||"OK",f=new R(o.getAllResponseHeaders()),D=un(o)||e.url;return a=new ge({headers:f,status:o.status,statusText:h,url:D}),a},d=()=>{let{headers:h,status:f,statusText:D,url:k}=u(),y=null;f!==Qt&&(y=typeof o.response>"u"?o.responseText:o.response),f===0&&(f=y?Pt:0);let X=f>=200&&f<300;if(e.responseType==="json"&&typeof y=="string"){let N=y;y=y.replace(cn,"");try{y=y!==""?JSON.parse(y):null}catch(K){y=N,X&&(X=!1,y={error:K,text:y})}}X?(i.next(new ee({body:y,headers:h,status:f,statusText:D,url:k||void 0})),i.complete()):i.error(new O({error:y,headers:h,status:f,statusText:D,url:k||void 0}))},g=h=>{let{url:f}=u(),D=new O({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:f||void 0});i.error(D)},b=!1,m=h=>{b||(i.next(u()),b=!0);let f={type:S.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(f.total=h.total),e.responseType==="text"&&o.responseText&&(f.partialText=o.responseText),i.next(f)},G=h=>{let f={type:S.UploadProgress,loaded:h.loaded};h.lengthComputable&&(f.total=h.total),i.next(f)};return o.addEventListener("load",d),o.addEventListener("error",g),o.addEventListener("timeout",g),o.addEventListener("abort",g),e.reportProgress&&(o.addEventListener("progress",m),l!==null&&o.upload&&o.upload.addEventListener("progress",G)),o.send(l),i.next({type:S.Sent}),()=>{o.removeEventListener("error",g),o.removeEventListener("abort",g),o.removeEventListener("load",d),o.removeEventListener("timeout",g),e.reportProgress&&(o.removeEventListener("progress",m),l!==null&&o.upload&&o.upload.removeEventListener("progress",G)),o.readyState!==o.DONE&&o.abort()}})))}static{this.\u0275fac=function(t){return new(t||n)(c(he))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})(),St=new v(""),dn="XSRF-TOKEN",hn=new v("",{providedIn:"root",factory:()=>dn}),fn="X-XSRF-TOKEN",pn=new v("",{providedIn:"root",factory:()=>fn}),me=class{},gn=(()=>{class n{constructor(e,t,s){this.doc=e,this.platform=t,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ue(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(t){return new(t||n)(c(w),c(x),c(hn))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})();function mn(n,r){let e=n.url.toLowerCase();if(!E(St)||n.method==="GET"||n.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(n);let t=E(me).getToken(),s=E(pn);return t!=null&&!n.headers.has(s)&&(n=n.clone({headers:n.headers.set(s,t)})),r(n)}var It=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(It||{});function yn(n,r){return{\u0275kind:n,\u0275providers:r}}function sr(...n){let r=[Ht,Ct,At,{provide:Q,useExisting:At},{provide:pe,useFactory:()=>E(nn,{optional:!0})??E(Ct)},{provide:xe,useValue:mn,multi:!0},{provide:St,useValue:!0},{provide:me,useClass:gn}];for(let e of n)r.push(...e.\u0275providers);return Le(r)}function ir(n){return yn(It.Interceptors,n.map(r=>({provide:xe,useValue:r,multi:!0})))}var Ue=class extends Tt{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Be=class n extends Ue{static makeCurrent(){wt(new n)}onAndCancel(r,e,t){return r.addEventListener(e,t),()=>{r.removeEventListener(e,t)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=wn();return e==null?null:Tn(e)}resetBaseElement(){te=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return ue(document.cookie,r)}},te=null;function wn(){return te=te||document.querySelector("base"),te?te.getAttribute("href"):null}function Tn(n){return new URL(n,document.baseURI).pathname}var En=(()=>{class n{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})(),Ve=new v(""),xt=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>{s.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(i=>i.supports(e)),!t)throw new C(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||n)(c(Ve),c(j))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})(),ye=class{constructor(r){this._doc=r}},Fe="ng-app-id",Ft=(()=>{class n{constructor(e,t,s,i={}){this.doc=e,this.appId=t,this.nonce=s,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=de(i),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(s=>s.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Fe}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(s=>{s.textContent!=null&&t.set(s.textContent,s)}),t}return null}changeUsageCount(e,t){let s=this.styleRef;if(s.has(e)){let i=s.get(e);return i.usage+=t,i.usage}return s.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let s=this.styleNodesInDOM,i=s?.get(t);if(i?.parentNode===e)return s.delete(t),i.removeAttribute(Fe),i;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=t,this.platformIsServer&&o.setAttribute(Fe,this.appId),e.appendChild(o),o}}addStyleToHost(e,t){let s=this.getStyleElement(e,t),i=this.styleRef,o=i.get(t)?.elements;o?o.push(s):i.set(t,{elements:[s],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||n)(c(w),c(Ce),c(Oe,8),c(x))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})(),ke={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/",math:"http://www.w3.org/1998/Math/MathML"},$e=/%COMP%/g,kt="%COMP%",bn=`_nghost-${kt}`,Rn=`_ngcontent-${kt}`,Dn=!0,Mn=new v("",{providedIn:"root",factory:()=>Dn});function Ln(n){return Rn.replace($e,n)}function An(n){return bn.replace($e,n)}function Ut(n,r){return r.map(e=>e.replace($e,n))}var Nt=(()=>{class n{constructor(e,t,s,i,o,l,a,u=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.removeStylesOnCompDestroy=i,this.doc=o,this.platformId=l,this.ngZone=a,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=de(l),this.defaultRenderer=new ne(e,o,a,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Z.ShadowDom&&(t=Ye(M({},t),{encapsulation:Z.Emulated}));let s=this.getOrCreateRenderer(e,t);return s instanceof ve?s.applyToHost(e):s instanceof re&&s.applyStyles(),s}getOrCreateRenderer(e,t){let s=this.rendererByCompId,i=s.get(t.id);if(!i){let o=this.doc,l=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(t.encapsulation){case Z.Emulated:i=new ve(a,u,t,this.appId,d,o,l,g);break;case Z.ShadowDom:return new ze(a,u,e,t,o,l,this.nonce,g);default:i=new re(a,u,t,d,o,l,g);break}s.set(t.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||n)(c(xt),c(Ft),c(Ce),c(Mn),c(w),c(x),c(j),c(Oe))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})(),ne=class{constructor(r,e,t,s){this.eventManager=r,this.doc=e,this.ngZone=t,this.platformIsServer=s,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(r,e){return e?this.doc.createElementNS(ke[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(_t(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(_t(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new C(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,s){if(s){e=s+":"+e;let i=ke[s];i?r.setAttributeNS(i,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let s=ke[t];s?r.removeAttributeNS(s,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,s){s&(q.DashCase|q.Important)?r.style.setProperty(e,t,s&q.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&q.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t){if(typeof r=="string"&&(r=ce().getGlobalEventTarget(this.doc,r),!r))throw new Error(`Unsupported event target ${r} for event ${e}`);return this.eventManager.addEventListener(r,e,this.decoratePreventDefault(t))}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function _t(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var ze=class extends ne{constructor(r,e,t,s,i,o,l,a){super(r,i,o,a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Ut(s.id,s.styles);for(let d of u){let g=document.createElement("style");l&&g.setAttribute("nonce",l),g.textContent=d,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},re=class extends ne{constructor(r,e,t,s,i,o,l,a){super(r,i,o,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=s,this.styles=a?Ut(a,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ve=class extends re{constructor(r,e,t,s,i,o,l,a){let u=s+"-"+t.id;super(r,e,t,i,o,l,a,u),this.contentAttr=Ln(u),this.hostAttr=An(u)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}},Cn=(()=>{class n extends ye{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}static{this.\u0275fac=function(t){return new(t||n)(c(w))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})(),jt=["alt","control","meta","shift"],On={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Pn={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Sn=(()=>{class n extends ye{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,t,s){let i=n.parseEventName(t),o=n.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ce().onAndCancel(e,i.domEventName,o))}static parseEventName(e){let t=e.toLowerCase().split("."),s=t.shift();if(t.length===0||!(s==="keydown"||s==="keyup"))return null;let i=n._normalizeKey(t.pop()),o="",l=t.indexOf("code");if(l>-1&&(t.splice(l,1),o="code."),jt.forEach(u=>{let d=t.indexOf(u);d>-1&&(t.splice(d,1),o+=u+".")}),o+=i,t.length!=0||i.length===0)return null;let a={};return a.domEventName=s,a.fullKey=o,a}static matchEventFullKeyCode(e,t){let s=On[e.key]||e.key,i="";return t.indexOf("code.")>-1&&(s=e.code,i="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),jt.forEach(o=>{if(o!==s){let l=Pn[o];l(e)&&(i+=o+".")}}),i+=s,i===t)}static eventCallback(e,t,s){return i=>{n.matchEventFullKeyCode(i,e)&&s.runGuarded(()=>t(i))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||n)(c(w))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac})}}return n})();function Ir(n,r){return vt(M({rootComponent:n},In(r)))}function In(n){return{appProviders:[...Fn,...n?.providers??[]],platformProviders:xn}}function Nn(){Be.makeCurrent()}function _n(){return new Ae}function jn(){return at(document),document}var xn=[{provide:x,useValue:Et},{provide:lt,useValue:Nn,multi:!0},{provide:w,useFactory:jn,deps:[]}];var Fn=[{provide:rt,useValue:"root"},{provide:Ae,useFactory:_n,deps:[]},{provide:Ve,useClass:Cn,multi:!0,deps:[w,j,x]},{provide:Ve,useClass:Sn,multi:!0,deps:[w]},Nt,Ft,xt,{provide:mt,useExisting:Nt},{provide:he,useClass:En,deps:[]},[]];var Nr=(()=>{class n{constructor(e){this._doc=e,this._dom=ce()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce((s,i)=>(i&&s.push(this._getOrCreateElement(i,t)),s),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);let s=this.getTag(t);return s?this._setMetaElementAttributes(e,s):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){let o=this._parseSelector(e),l=this.getTags(o).filter(a=>this._containsAttributes(e,a))[0];if(l!==void 0)return l}let s=this._dom.createElement("meta");return this._setMetaElementAttributes(e,s),this._doc.getElementsByTagName("head")[0].appendChild(s),s}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(s=>t.setAttribute(this._getMetaKeyMap(s),e[s])),t}_parseSelector(e){let t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every(s=>t.getAttribute(this._getMetaKeyMap(s))===e[s])}_getMetaKeyMap(e){return kn[e]||e}static{this.\u0275fac=function(t){return new(t||n)(c(w))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),kn={httpEquiv:"http-equiv"},_r=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||n)(c(w))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Un=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=p({token:n,factory:function(t){let s=null;return t?s=new(t||n):s=c(Bn),s},providedIn:"root"})}}return n})(),Bn=(()=>{class n extends Un{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case F.NONE:return t;case F.HTML:return B(t,"HTML")?U(t):gt(this._doc,String(t)).toString();case F.STYLE:return B(t,"Style")?U(t):t;case F.SCRIPT:if(B(t,"Script"))return U(t);throw new C(5200,!1);case F.URL:return B(t,"URL")?U(t):pt(String(t));case F.RESOURCE_URL:if(B(t,"ResourceURL"))return U(t);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(e){return ct(e)}bypassSecurityTrustStyle(e){return ut(e)}bypassSecurityTrustScript(e){return dt(e)}bypassSecurityTrustUrl(e){return ht(e)}bypassSecurityTrustResourceUrl(e){return ft(e)}static{this.\u0275fac=function(t){return new(t||n)(c(w))}}static{this.\u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var V=class{},Bt=(()=>{class n extends V{getTranslation(e){return T({})}static \u0275fac=(()=>{let e;return function(s){return(e||(e=le(n)))(s||n)}})();static \u0275prov=p({token:n,factory:n.\u0275fac})}return n})(),se=class{},Vt=(()=>{class n{handle(e){return e.key}static \u0275fac=function(t){return new(t||n)};static \u0275prov=p({token:n,factory:n.\u0275fac})}return n})();function we(n,r){if(n===r)return!0;if(n===null||r===null)return!1;if(n!==n&&r!==r)return!0;let e=typeof n,t=typeof r,s,i,o;if(e==t&&e=="object")if(Array.isArray(n)){if(!Array.isArray(r))return!1;if((s=n.length)==r.length){for(i=0;i<s;i++)if(!we(n[i],r[i]))return!1;return!0}}else{if(Array.isArray(r))return!1;o=Object.create(null);for(i in n){if(!we(n[i],r[i]))return!1;o[i]=!0}for(i in r)if(!(i in o)&&typeof r[i]<"u")return!1;return!0}return!1}function I(n){return typeof n<"u"&&n!==null}function Ge(n){return n&&typeof n=="object"&&!Array.isArray(n)}function Gt(n,r){let e=Object.assign({},n);return Ge(n)&&Ge(r)&&Object.keys(r).forEach(t=>{Ge(r[t])?t in n?e[t]=Gt(n[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}var z=class{},zt=(()=>{class n extends z{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,t){let s;return typeof e=="string"?s=this.interpolateString(e,t):typeof e=="function"?s=this.interpolateFunction(e,t):s=e,s}getValue(e,t){let s=typeof t=="string"?t.split("."):[t];t="";do t+=s.shift(),I(e)&&I(e[t])&&(typeof e[t]=="object"||!s.length)?(e=e[t],t=""):s.length?t+=".":e=void 0;while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,i)=>{let o=this.getValue(t,i);return I(o)?o:s}):e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=le(n)))(s||n)}})();static \u0275prov=p({token:n,factory:n.\u0275fac})}return n})(),$=class{},$t=(()=>{class n extends ${compile(e,t){return e}compileTranslations(e,t){return e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=le(n)))(s||n)}})();static \u0275prov=p({token:n,factory:n.\u0275fac})}return n})(),Te=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new _;onLangChange=new _;onDefaultLangChange=new _},Xe=new v("USE_STORE"),Ke=new v("USE_DEFAULT_LANG"),Je=new v("DEFAULT_LANGUAGE"),We=new v("USE_EXTEND"),Ze=(()=>{class n{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new _;_onLangChange=new _;_onDefaultLangChange=new _;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,t,s,i,o,l=!0,a=!1,u=!1,d){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=i,this.missingTranslationHandler=o,this.useDefaultLang=l,this.isolate=a,this.extend=u,d&&this.setDefaultLang(d)}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(J(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return T(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe(J(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),T(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;let t=this.currentLoader.getTranslation(e).pipe(Me(1),J(1));return this.loadingTranslations=t.pipe(A(s=>this.compiler.compileTranslations(s,e)),Me(1),J(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?M(M({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),(s||this.extend)&&this.translations[e]?this.translations[e]=Gt(this.translations[e],t):this.translations[e]=t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{this.langs.indexOf(t)===-1&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let i;if(t instanceof Array){let o={},l=!1;for(let a of t)o[a]=this.getParsedResult(e,a,s),L(o[a])&&(l=!0);if(l){let a=t.map(u=>L(o[u])?o[u]:T(o[u]));return He(a).pipe(A(u=>{let d={};return u.forEach((g,b)=>{d[t[b]]=g}),d}))}return o}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),s)),typeof i>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),typeof i>"u"){let o={key:t,translateService:this};typeof s<"u"&&(o.interpolateParams=s),i=this.missingTranslationHandler.handle(o)}return typeof i<"u"?i:t}get(e,t){if(!I(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(ie(s=>(s=this.getParsedResult(s,e,t),L(s)?s:T(s))));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return L(s)?s:T(s)}}getStreamOnTranslationChange(e,t){if(!I(e)||!e.length)throw new Error('Parameter "key" required');return Re(De(()=>this.get(e,t)),this.onTranslationChange.pipe(W(s=>{let i=this.getParsedResult(s.translations,e,t);return typeof i.subscribe=="function"?i:T(i)})))}stream(e,t){if(!I(e)||!e.length)throw new Error('Parameter "key" required');return Re(De(()=>this.get(e,t)),this.onLangChange.pipe(W(s=>{let i=this.getParsedResult(s.translations,e,t);return L(i)?i:T(i)})))}instant(e,t){if(!I(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(L(s)){if(e instanceof Array){let i={};return e.forEach((o,l)=>{i[e[l]]=e[l]}),i}return e}else return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;if(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof e>"u"))return e.indexOf("-")!==-1&&(e=e.split("-")[0]),e.indexOf("_")!==-1&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}static \u0275fac=function(t){return new(t||n)(c(Te),c(V),c($),c(z),c(se),c(Ke),c(Xe),c(We),c(Je))};static \u0275prov=p({token:n,factory:n.\u0275fac})}return n})();var Wr=(()=>{class n{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,t){this.translate=e,this._ref=t}updateValue(e,t,s){let i=o=>{this.value=o!==void 0?o:e,this.lastKey=e,this._ref.markForCheck()};if(s){let o=this.translate.getParsedResult(s,e,t);L(o.subscribe)?o.subscribe(i):i(o)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(we(e,this.lastKey)&&we(t,this.lastParams))return this.value;let s;if(I(t[0])&&t.length)if(typeof t[0]=="string"&&t[0].length){let i=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(i)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else typeof t[0]=="object"&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{this.lastKey&&i.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(t){return new(t||n)(Pe(Ze,16),Pe(yt,16))};static \u0275pipe=nt({name:"translate",type:n,pure:!1});static \u0275prov=p({token:n,factory:n.\u0275fac})}return n})(),Zr=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:V,useClass:Bt},e.compiler||{provide:$,useClass:$t},e.parser||{provide:z,useClass:zt},e.missingTranslationHandler||{provide:se,useClass:Vt},Te,{provide:Xe,useValue:e.isolate},{provide:Ke,useValue:e.useDefaultLang},{provide:We,useValue:e.extend},{provide:Je,useValue:e.defaultLanguage},Ze]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:V,useClass:Bt},e.compiler||{provide:$,useClass:$t},e.parser||{provide:z,useClass:zt},e.missingTranslationHandler||{provide:se,useClass:Vt},{provide:Xe,useValue:e.isolate},{provide:Ke,useValue:e.useDefaultLang},{provide:We,useValue:e.extend},{provide:Je,useValue:e.defaultLanguage},Ze]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=ae({type:n});static \u0275inj=oe({})}return n})();export{O as a,Ht as b,sr as c,ir as d,Nt as e,Ir as f,Nr as g,_r as h,Un as i,V as j,Ze as k,Wr as l,Zr as m};