From d93afd9056fff30aa92337d538e6eee25ea209df Mon Sep 17 00:00:00 2001 From: Connie Leung Date: Thu, 21 Nov 2024 23:49:37 +0800 Subject: [PATCH] chore: deploy the apps to github page --- docs/language-detector-demo/404.html | 2 +- docs/language-detector-demo/index.html | 2 +- .../{main-H3334XC3.js => main-LMPANPT5.js} | 2 +- docs/translation-api-demo/404.html | 2 +- docs/translation-api-demo/index.html | 2 +- docs/translation-api-demo/main-BCH6IKNY.js | 7 +++++++ docs/translation-api-demo/main-ZPXUJUI6.js | 7 ------- 7 files changed, 12 insertions(+), 12 deletions(-) rename docs/language-detector-demo/{main-H3334XC3.js => main-LMPANPT5.js} (92%) create mode 100644 docs/translation-api-demo/main-BCH6IKNY.js delete mode 100644 docs/translation-api-demo/main-ZPXUJUI6.js diff --git a/docs/language-detector-demo/404.html b/docs/language-detector-demo/404.html index e36db45..db7c893 100644 --- a/docs/language-detector-demo/404.html +++ b/docs/language-detector-demo/404.html @@ -9,5 +9,5 @@ - + diff --git a/docs/language-detector-demo/index.html b/docs/language-detector-demo/index.html index e36db45..db7c893 100644 --- a/docs/language-detector-demo/index.html +++ b/docs/language-detector-demo/index.html @@ -9,5 +9,5 @@ - + diff --git a/docs/language-detector-demo/main-H3334XC3.js b/docs/language-detector-demo/main-LMPANPT5.js similarity index 92% rename from docs/language-detector-demo/main-H3334XC3.js rename to docs/language-detector-demo/main-LMPANPT5.js index 43a7fc0..5cc0682 100644 --- a/docs/language-detector-demo/main-H3334XC3.js +++ b/docs/language-detector-demo/main-LMPANPT5.js @@ -4,4 +4,4 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `);return n===-1?t:t.substring(0,n)}function Oa(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Yd=F({__forward_ref__:F});function un(e){return e.__forward_ref__=un,e.toString=function(){return oe(this())},e}function W(e){return yu(e)?e():e}function yu(e){return typeof e=="function"&&e.hasOwnProperty(Yd)&&e.__forward_ref__===un}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Sr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ri(e){return Fa(e,vu)||Fa(e,Du)}function Fa(e,t){return e.hasOwnProperty(t)?e[t]:null}function Qd(e){let t=e&&(e[vu]||e[Du]);return t||null}function Ra(e){return e&&(e.hasOwnProperty(Pa)||e.hasOwnProperty(Kd))?e[Pa]:null}var vu=F({\u0275prov:F}),Pa=F({\u0275inj:F}),Du=F({ngInjectableDef:F}),Kd=F({ngInjectorDef:F}),I=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=R({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Cu(e){return e&&!!e.\u0275providers}var Jd=F({\u0275cmp:F}),Xd=F({\u0275dir:F}),ef=F({\u0275pipe:F});var sr=F({\u0275fac:F}),Qt=F({__NG_ELEMENT_ID__:F}),ka=F({__NG_ENV_ID__:F});function ar(e){return typeof e=="string"?e:e==null?"":String(e)}function tf(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ar(e)}function nf(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new v(-200,e)}function Pi(e,t){throw new v(-201,!1)}var _=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(_||{}),Bo;function Eu(){return Bo}function te(e){let t=Bo;return Bo=e,t}function wu(e,t,n){let r=Ri(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&_.Optional)return null;if(t!==void 0)return t;Pi(e,"Injector")}var rf={},Kt=rf,of="__NG_DI_FLAG__",ur="ngTempTokenPath",sf="ngTokenPath",af=/\n/gm,uf="\u0275",La="__source",mt;function cf(){return mt}function Fe(e){let t=mt;return mt=e,t}function lf(e,t=_.Default){if(mt===void 0)throw new v(-203,!1);return mt===null?wu(e,void 0,t):mt.get(e,t&_.Optional?null:void 0,t)}function x(e,t=_.Default){return(Eu()||lf)(W(e),t)}function y(e,t=_.Default){return x(e,Tr(t))}function Tr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ho(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):oe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(af,` - `)}`}function vt(e,t){let n=e.hasOwnProperty(sr);return n?e[sr]:null}function ki(e,t){e.forEach(n=>Array.isArray(n)?ki(n,t):t(n))}function hf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function _u(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function mf(e,t,n){let r=cn(e,t);return r>=0?e[r|1]=n:(r=~r,gf(e,r,t,n)),r}function To(e,t){let n=cn(e,t);if(n>=0)return e[n|1]}function cn(e,t){return yf(e,t,1)}function yf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return ki(t,s=>{let a=s;$o(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Nu(o,i),n}function Nu(e,t){for(let n=0;n{t(i,r)})}}function $o(e,t,n,r){if(e=W(e),!e)return!1;let o=null,i=Ra(e),s=!i&&Nr(e);if(!i&&!s){let u=e.ngModule;if(i=Ra(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)$o(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{ki(i.imports,l=>{$o(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Nu(c,t)}if(!a){let c=vt(o)||(()=>new o);t({provide:o,useFactory:c,deps:ne},o),t({provide:bu,useValue:o,multi:!0},o),t({provide:Jt,useValue:()=>x(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Li(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Li(e,t){for(let n of e)Cu(n)&&(n=n.\u0275providers),Array.isArray(n)?Li(n,t):t(n)}var Cf=F({provide:String,useValue:F});function Au(e){return e!==null&&typeof e=="object"&&Cf in e}function Ef(e){return!!(e&&e.useExisting)}function wf(e){return!!(e&&e.useFactory)}function Ct(e){return typeof e=="function"}function _f(e){return!!e.useClass}var xr=new I(""),tr={},If={},No;function Vi(){return No===void 0&&(No=new cr),No}var Je=class{},Xt=class extends Je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Go(t,s=>this.processProvider(s)),this.records.set(Iu,pt(void 0,this)),o.has("environment")&&this.records.set(Je,pt(void 0,this));let i=this.records.get(xr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(bu,ne,_.Self))}destroy(){Zt(this),this._destroyed=!0;let t=E(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),E(t)}}onDestroy(t){return Zt(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Zt(this);let n=Fe(this),r=te(void 0),o;try{return t()}finally{Fe(n),te(r)}}get(t,n=Kt,r=_.Default){if(Zt(this),t.hasOwnProperty(ka))return t[ka](this);r=Tr(r);let o,i=Fe(this),s=te(void 0);try{if(!(r&_.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Nf(t)&&Ri(t);c&&this.injectableDefInScope(c)?u=pt(Uo(t),tr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&_.Self?Vi():this.parent;return n=r&_.Optional&&n===Kt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[ur]=a[ur]||[]).unshift(oe(t)),i)throw a;return ff(a,t,"R3InjectorError",this.source)}else throw a}finally{te(s),Fe(i)}}resolveInjectorInitializers(){let t=E(null),n=Fe(this),r=te(void 0),o;try{let i=this.get(Jt,ne,_.Self);for(let s of i)s()}finally{Fe(n),te(r),E(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=W(t);let n=Ct(t)?t:W(t&&t.provide),r=Mf(t);if(!Ct(t)&&t.multi===!0){let o=this.records.get(n);o||(o=pt(void 0,tr,!0),o.factory=()=>Ho(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=E(null);try{return n.value===tr&&(n.value=If,n.value=n.factory()),typeof n.value=="object"&&n.value&&Tf(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{E(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=W(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Uo(e){let t=Ri(e),n=t!==null?t.factory:vt(e);if(n!==null)return n;if(e instanceof I)throw new v(204,!1);if(e instanceof Function)return bf(e);throw new v(204,!1)}function bf(e){if(e.length>0)throw new v(204,!1);let n=Qd(e);return n!==null?()=>n.factory(e):()=>new e}function Mf(e){if(Au(e))return pt(void 0,e.useValue);{let t=xu(e);return pt(t,tr)}}function xu(e,t,n){let r;if(Ct(e)){let o=W(e);return vt(o)||Uo(o)}else if(Au(e))r=()=>W(e.useValue);else if(wf(e))r=()=>e.useFactory(...Ho(e.deps||[]));else if(Ef(e))r=()=>x(W(e.useExisting));else{let o=W(e&&(e.useClass||e.provide));if(Sf(e))r=()=>new o(...Ho(e.deps));else return vt(o)||Uo(o)}return r}function Zt(e){if(e.destroyed)throw new v(205,!1)}function pt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Sf(e){return!!e.deps}function Tf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Nf(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function Go(e,t){for(let n of e)Array.isArray(n)?Go(n,t):n&&Cu(n)?Go(n.\u0275providers,t):t(n)}function Ou(e,t){e instanceof Xt&&Zt(e);let n,r=Fe(e),o=te(void 0);try{return t()}finally{Fe(r),te(o)}}function Fu(){return Eu()!==void 0||cf()!=null}function Ru(e){if(!Fu())throw new v(-203,!1)}var Se=0,D=1,g=2,ie=3,fe=4,De=5,en=6,lr=7,U=8,Et=9,ke=10,$=11,tn=12,Va=13,At=14,pe=15,wt=16,ht=17,_t=18,Or=19,Pu=20,Re=21,Ao=22,dr=23,X=24,ee=25,ku=1;var nn=7,Af=8,fr=9,Z=10,pr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(pr||{});function Pe(e){return Array.isArray(e)&&typeof e[ku]=="object"}function ot(e){return Array.isArray(e)&&e[ku]===!0}function Lu(e){return(e.flags&4)!==0}function Fr(e){return e.componentOffset>-1}function ji(e){return(e.flags&1)===1}function Le(e){return!!e.template}function zo(e){return(e[g]&512)!==0}var Wo=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Vu(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ju=(()=>{let e=()=>Bu;return e.ngInherit=!0,e})();function Bu(e){return e.type.prototype.ngOnChanges&&(e.setInput=Of),xf}function xf(){let e=$u(this),t=e?.current;if(t){let n=e.previous;if(n===Dt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Of(e,t,n,r,o){let i=this.declaredInputs[r],s=$u(e)||Ff(e,{previous:Dt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Wo(c&&c.currentValue,n,u===Dt),Vu(e,t,o,n)}var Hu="__ngSimpleChanges__";function $u(e){return e[Hu]||null}function Ff(e,t){return e[Hu]=t}var ja=null;var me=function(e,t,n){ja?.(e,t,n)},Rf="svg",Pf="math";function be(e){for(;Array.isArray(e);)e=e[Se];return e}function Uu(e,t){return be(t[e])}function Ce(e,t){return be(t[e.index])}function Bi(e,t){return e.data[t]}function kf(e,t){return e[t]}function $e(e,t){let n=t[e];return Pe(n)?n:n[Se]}function Hi(e){return(e[g]&128)===128}function It(e,t){return t==null?null:e[t]}function Gu(e){e[ht]=0}function $i(e){e[g]&1024||(e[g]|=1024,Hi(e)&&Pr(e))}function Lf(e,t){for(;e>0;)t=t[At],e--;return t}function Rr(e){return!!(e[g]&9216||e[X]?.dirty)}function qo(e){e[ke].changeDetectionScheduler?.notify(9),e[g]&64&&(e[g]|=1024),Rr(e)&&Pr(e)}function Pr(e){e[ke].changeDetectionScheduler?.notify(0);let t=Xe(e);for(;t!==null&&!(t[g]&8192||(t[g]|=8192,!Hi(t)));)t=Xe(t)}function zu(e,t){if((e[g]&256)===256)throw new v(911,!1);e[Re]===null&&(e[Re]=[]),e[Re].push(t)}function Vf(e,t){if(e[Re]===null)return;let n=e[Re].indexOf(t);n!==-1&&e[Re].splice(n,1)}function Xe(e){let t=e[ie];return ot(t)?t[ie]:t}var C={lFrame:ec(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Zo=!1;function jf(){return C.lFrame.elementDepthCount}function Bf(){C.lFrame.elementDepthCount++}function Hf(){C.lFrame.elementDepthCount--}function Wu(){return C.bindingsEnabled}function $f(){return C.skipHydrationRootTNode!==null}function Uf(e){return C.skipHydrationRootTNode===e}function Gf(){C.skipHydrationRootTNode=null}function A(){return C.lFrame.lView}function q(){return C.lFrame.tView}function Ui(e){return C.lFrame.contextLView=e,e[U]}function Gi(e){return C.lFrame.contextLView=null,e}function se(){let e=qu();for(;e!==null&&e.type===64;)e=e.parent;return e}function qu(){return C.lFrame.currentTNode}function zf(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xt(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function Zu(){return C.lFrame.isParent}function Wf(){C.lFrame.isParent=!1}function qf(){return C.lFrame.contextLView}function Yu(){return Zo}function Ba(e){let t=Zo;return Zo=e,t}function Zf(){return C.lFrame.bindingIndex}function Yf(e){return C.lFrame.bindingIndex=e}function ln(){return C.lFrame.bindingIndex++}function Qu(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Qf(){return C.lFrame.inI18n}function Kf(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,Yo(t)}function Jf(){return C.lFrame.currentDirectiveIndex}function Yo(e){C.lFrame.currentDirectiveIndex=e}function Xf(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ku(e){C.lFrame.currentQueryIndex=e}function ep(e){let t=e[D];return t.type===2?t.declTNode:t.type===1?e[De]:null}function Ju(e,t,n){if(n&_.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&_.Host);)if(o=ep(i),o===null||(i=i[At],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=Xu();return r.currentTNode=t,r.lView=e,!0}function zi(e){let t=Xu(),n=e[D];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Xu(){let e=C.lFrame,t=e===null?null:e.child;return t===null?ec(e):t}function ec(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function tc(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var nc=tc;function Wi(){let e=tc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function tp(e){return(C.lFrame.contextLView=Lf(e,C.lFrame.contextLView))[U]}function Te(){return C.lFrame.selectedIndex}function et(e){C.lFrame.selectedIndex=e}function rc(){let e=C.lFrame;return Bi(e.tView,e.selectedIndex)}function np(){return C.lFrame.currentNamespace}var oc=!0;function qi(){return oc}function Zi(e){oc=e}function rp(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Bu(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Yi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[ht]+=65536),(a>14>16&&(e[g]&3)===t&&(e[g]+=16384,Ha(a,i)):Ha(a,i)}var yt=-1,tt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function ip(e){return e instanceof tt}function sp(e){return(e.flags&8)!==0}function ap(e){return(e.flags&16)!==0}function Qo(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function Xo(e,t){let n=dp(e),r=t;for(;n>0;)r=r[At],n--;return r}var ei=!0;function Ua(e){let t=ei;return ei=e,t}var fp=256,sc=fp-1,ac=5,pp=0,ye={};function hp(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Qt)&&(r=n[Qt]),r==null&&(r=n[Qt]=pp++);let o=r&sc,i=1<>ac)]|=i}function hr(e,t){let n=uc(e,t);if(n!==-1)return n;let r=t[D];r.firstCreatePass&&(e.injectorIndex=t.length,Fo(r.data,e),Fo(t,null),Fo(r.blueprint,null));let o=cc(e,t),i=e.injectorIndex;if(lp(o)){let s=Jo(o),a=Xo(o,t),u=a[D].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Fo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function uc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function cc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=gc(o),r===null)return yt;if(n++,o=o[At],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return yt}function ti(e,t,n){hp(e,t,n)}function lc(e,t,n){if(n&_.Optional||e!==void 0)return e;Pi(t,"NodeInjector")}function dc(e,t,n,r){if(n&_.Optional&&r===void 0&&(r=null),!(n&(_.Self|_.Host))){let o=e[Et],i=te(void 0);try{return o?o.get(t,r,n&_.Optional):wu(t,r,n&_.Optional)}finally{te(i)}}return lc(r,t,n)}function fc(e,t,n,r=_.Default,o){if(e!==null){if(t[g]&2048&&!(r&_.Self)){let s=Dp(e,t,n,r,ye);if(s!==ye)return s}let i=pc(e,t,n,r,ye);if(i!==ye)return i}return dc(t,n,r,o)}function pc(e,t,n,r,o){let i=yp(n);if(typeof i=="function"){if(!Ju(t,e,r))return r&_.Host?lc(o,n,r):dc(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&_.Optional))Pi(n);else return s}finally{nc()}}else if(typeof i=="number"){let s=null,a=uc(e,t),u=yt,c=r&_.Host?t[pe][De]:null;for((a===-1||r&_.SkipSelf)&&(u=a===-1?cc(e,t):t[a+8],u===yt||!za(r,!1)?a=-1:(s=t[D],a=Jo(u),t=Xo(u,t)));a!==-1;){let l=t[D];if(Ga(i,a,l.data)){let d=gp(a,t,n,s,r,c);if(d!==ye)return d}u=t[a+8],u!==yt&&za(r,t[D].data[a+8]===c)&&Ga(i,a,t)?(s=l,a=Jo(u),t=Xo(u,t)):a=-1}}return o}function gp(e,t,n,r,o,i){let s=t[D],a=s.data[e+8],u=r==null?Fr(a)&&ei:r!=s&&(a.type&3)!==0,c=o&_.Host&&i===a,l=mp(a,s,n,u,c);return l!==null?bt(t,s,l,a):ye}function mp(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,u=e.directiveStart,c=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:c;for(let f=d;f=u&&h.type===n)return f}if(o){let f=s[u];if(f&&Le(f)&&f.type===n)return u}return null}function bt(e,t,n,r){let o=e[n],i=t.data;if(ip(o)){let s=o;s.resolving&&nf(tf(i[n]));let a=Ua(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?te(s.injectImpl):null,l=Ju(e,r,_.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&rp(n,i[n],t)}finally{c!==null&&te(c),Ua(a),s.resolving=!1,nc()}}return o}function yp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Qt)?e[Qt]:void 0;return typeof t=="number"?t>=0?t&sc:vp:t}function Ga(e,t,n){let r=1<>ac)]&r)}function za(e,t){return!(e&_.Self)&&!(e&_.Host&&t)}var gr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fc(this._tNode,this._lView,t,Tr(r),n)}};function vp(){return new gr(se(),A())}function hc(e){return Mr(()=>{let t=e.prototype.constructor,n=t[sr]||ni(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[sr]||ni(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ni(e){return yu(e)?()=>{let t=ni(W(e));return t&&t()}:vt(e)}function Dp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[g]&2048&&!(s[g]&512);){let a=pc(i,s,n,r|_.Self,ye);if(a!==ye)return a;let u=i.parent;if(!u){let c=s[Pu];if(c){let l=c.get(n,ye,r);if(l!==ye)return l}u=gc(s),s=s[At]}i=u}return o}function gc(e){let t=e[D],n=t.type;return n===2?t.declTNode:n===1?e[De]:null}function Wa(e,t=null,n=null,r){let o=Cp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Cp(e,t=null,n=null,r,o=new Set){let i=[n||ne,Df(e)];return r=r||(typeof e=="object"?void 0:oe(e)),new Xt(i,t||Vi(),r||null,o)}var Ve=class e{static THROW_IF_NOT_FOUND=Kt;static NULL=new cr;static create(t,n){if(Array.isArray(t))return Wa({name:""},n,t,"");{let r=t.name??"";return Wa({name:r},t.parent,t.providers,r)}}static \u0275prov=R({token:e,providedIn:"any",factory:()=>x(Iu)});static __NG_ELEMENT_ID__=-1};var Ep=new I("");Ep.__NG_ELEMENT_ID__=e=>{let t=se();if(t===null)throw new v(204,!1);if(t.type&2)return t.value;if(e&_.Optional)return null;throw new v(204,!1)};var mc=!1,dn=(()=>{class e{static __NG_ELEMENT_ID__=wp;static __NG_ENV_ID__=n=>n}return e})(),ri=class extends dn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return zu(this._lView,t),()=>Vf(this._lView,t)}};function wp(){return new ri(A())}var Mt=class{},kr=new I("",{providedIn:"root",factory:()=>!1});var yc=new I(""),Qi=new I(""),Lr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new qt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();var oi=class extends Ie{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Fu()&&(this.destroyRef=y(dn,{optional:!0})??void 0,this.pendingTasks=y(Lr,{optional:!0})??void 0)}emit(t){let n=E(null);try{super.next(t)}finally{E(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof z&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},re=oi;function mr(...e){}function vc(e){let t,n;function r(){e=mr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function qa(e){return queueMicrotask(()=>e()),()=>{e=mr}}var Ki="isAngularZone",yr=Ki+"_ID",_p=0,H=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new re(!1);onMicrotaskEmpty=new re(!1);onStable=new re(!1);onError=new re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=mc}=t;if(typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Mp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ki)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Ip,mr,mr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Ip={};function Ji(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function bp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){vc(()=>{e.callbackScheduled=!1,ii(e),e.isCheckStableRunning=!0,Ji(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ii(e)}function Mp(e){let t=()=>{bp(e)},n=_p++;e._inner=e._inner.fork({name:"angular",properties:{[Ki]:!0,[yr]:n,[yr+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(Sp(u))return r.invokeTask(i,s,a,u);try{return Za(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ya(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return Za(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Tp(u)&&t(),Ya(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ii(e),Ji(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ii(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Za(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ya(e){e._nesting--,Ji(e)}var vr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new re;onMicrotaskEmpty=new re;onStable=new re;onError=new re;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Sp(e){return Dc(e,"__ignore_ng_zone__")}function Tp(e){return Dc(e,"__scheduler_tick__")}function Dc(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var je=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Np=new I("",{providedIn:"root",factory:()=>{let e=y(H),t=y(je);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Qa(e,t){return mu(e,t)}function Ap(e){return mu(gu,e)}var Ot=(Qa.required=Ap,Qa);function xp(){return Cc(se(),A())}function Cc(e,t){return new fn(Ce(e,t))}var fn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=xp}return e})();function Ec(e){return(e.flags&128)===128}var wc=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(wc||{}),_c=new Map,Op=0;function Fp(){return Op++}function Rp(e){_c.set(e[Or],e)}function si(e){_c.delete(e[Or])}var Ka="__ngContext__";function nt(e,t){Pe(t)?(e[Ka]=t[Or],Rp(t)):e[Ka]=t}function Ic(e){return Mc(e[tn])}function bc(e){return Mc(e[fe])}function Mc(e){for(;e!==null&&!ot(e);)e=e[fe];return e}var ai;function Sc(e){ai=e}function Pp(){if(ai!==void 0)return ai;if(typeof document<"u")return document;throw new v(210,!1)}var Xi=new I("",{providedIn:"root",factory:()=>kp}),kp="ng",es=new I(""),Ue=new I("",{providedIn:"platform",factory:()=>"unknown"});var ts=new I("",{providedIn:"root",factory:()=>Pp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Lp="h",Vp="b";var Tc=!1,jp=new I("",{providedIn:"root",factory:()=>Tc});var Bp=()=>null;function ns(e,t,n=!1){return Bp(e,t,n)}var ve=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(ve||{});var ui=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Wd})`}};function rs(e){return e instanceof ui?e.changingThisBreaksApplicationSecurity:e}var Be=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Be||{}),Me=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Me||{}),Hp;function os(e,t){return Hp(e,t)}function gt(e,t,n,r,o){if(r!=null){let i,s=!1;ot(r)?i=r:Pe(r)&&(s=!0,r=r[Se]);let a=be(r);e===0&&n!==null?o==null?Oc(t,n,a):ci(t,n,a,o||null,!0):e===1&&n!==null?ci(t,n,a,o||null,!0):e===2?nh(t,a,s):e===3&&t.destroyNode(a),i!=null&&oh(t,e,i,n,o)}}function $p(e,t){return e.createText(t)}function Up(e,t,n){e.setValue(t,n)}function Nc(e,t,n){return e.createElement(t,n)}function Gp(e,t){Ac(e,t),t[Se]=null,t[De]=null}function zp(e,t,n,r,o,i){r[Se]=o,r[De]=t,Vr(e,r,n,1,o,i)}function Ac(e,t){t[ke].changeDetectionScheduler?.notify(10),Vr(e,t,t[$],2,null,null)}function Wp(e){let t=e[tn];if(!t)return Ro(e[D],e);for(;t;){let n=null;if(Pe(t))n=t[tn];else{let r=t[Z];r&&(n=r)}if(!n){for(;t&&!t[fe]&&t!==e;)Pe(t)&&Ro(t[D],t),t=t[ie];t===null&&(t=e),Pe(t)&&Ro(t[D],t),n=t&&t[fe]}t=n}}function qp(e,t,n,r){let o=Z+r,i=n.length;r>0&&(n[o-1][fe]=t),r0&&(e[n-1][fe]=r[fe]);let i=_u(e,Z+t);Gp(r[D],r);let s=i[_t];s!==null&&s.detachView(i[D]),r[ie]=null,r[fe]=null,r[g]&=-129}return r}function as(e,t){if(!(t[g]&256)){let n=t[$];n.destroyNode&&Vr(e,t,n,3,null,null),Wp(t)}}function Ro(e,t){if(t[g]&256)return;let n=E(null);try{t[g]&=-129,t[g]|=256,t[X]&&yo(t[X]),Yp(e,t),Zp(e,t),t[D].type===1&&t[$].destroy();let r=t[wt];if(r!==null&&ot(t[ie])){r!==t[ie]&&is(r,t);let o=t[_t];o!==null&&o.detachView(e)}si(t)}finally{E(n)}}function Zp(e,t){let n=e.cleanup,r=t[lr];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[lr]=null);let o=t[Re];if(o!==null){t[Re]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===ve.None||i===ve.Emulated)return null}return Ce(r,n)}}function ci(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Oc(e,t,n){e.appendChild(t,n)}function Ja(e,t,n,r,o){r!==null?ci(e,t,n,r,o):Oc(e,t,n)}function Jp(e,t){return e.parentNode(t)}function Xp(e,t,n){return th(e,t,n)}function eh(e,t,n){return e.type&40?Ce(e,n):null}var th=eh,Xa;function us(e,t,n,r){let o=Qp(e,r,t),i=t[$],s=r.parent||t[De],a=Xp(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;u-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(de(r))return!1;s=!0}}}}return de(r)||s}function de(e){return(e&1)===0}function dh(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!de(s)&&(t+=eu(i,o),o=""),r=s,i=i||!de(r);n++}return o!==""&&(t+=eu(i,o)),t}function mh(e){return e.map(gh).join(",")}function yh(e){let t=[],n=[],r=1,o=2;for(;ree&&Lc(e,t,ee,!1),me(s?2:0,o),n(r,o)}finally{et(i),me(s?3:1,o)}}function Hc(e,t,n){if(Lu(t)){let r=E(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Ih(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return $f()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function tu(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Be.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?nu(r,n,c,a,u):nu(r,n,c,a)}return r}function nu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function bh(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Ah(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Fr(n)&&Lh(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||hr(n,t),nt(r,t);let s=n.initialInputs;for(let a=o;a{Pr(e.lView)},consumerOnSignalRead(){this.lView[X]=this}});function Kh(e){let t=e[X]??Object.create(Jh);return t.lView=e,t}var Jh=O(N({},zt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Xe(e.lView);for(;t&&!nl(t[D]);)t=Xe(t);t&&$i(t)},consumerOnSignalRead(){this.lView[X]=this}});function nl(e){return e.type!==2}function rl(e){if(e[dr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[dr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[g]&8192)}}var Xh=100;function ol(e,t=!0,n=0){let o=e[ke].rendererFactory,i=!1;i||o.begin?.();try{eg(e,n)}catch(s){throw t&&Kc(e,s),s}finally{i||o.end?.()}}function eg(e,t){let n=Yu();try{Ba(!0),pi(e,t);let r=0;for(;Rr(e);){if(r===Xh)throw new v(103,!1);r++,pi(e,1)}}finally{Ba(n)}}function tg(e,t,n,r){let o=t[g];if((o&256)===256)return;let i=!1,s=!1;zi(t);let a=!0,u=null,c=null;i||(nl(e)?(c=qh(t),u=Nn(c)):qs()===null?(a=!1,c=Kh(t),u=Nn(c)):t[X]&&(yo(t[X]),t[X]=null));try{Gu(t),Yf(e.bindingStartIndex),n!==null&&Bc(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&nr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&rr(t,f,0,null),xo(t,0)}if(s||ng(t),rl(t),il(t,0),e.contentQueries!==null&&Qc(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&nr(t,f)}else{let f=e.contentHooks;f!==null&&rr(t,f,1),xo(t,1)}vh(e,t);let d=e.components;d!==null&&al(t,d,0);let p=e.viewQuery;if(p!==null&&fi(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&nr(t,f)}else{let f=e.viewHooks;f!==null&&rr(t,f,2),xo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ao]){for(let f of t[Ao])f();t[Ao]=null}i||(t[g]&=-73)}catch(l){throw i||Pr(t),l}finally{c!==null&&(go(c,u),a&&Yh(c)),Wi()}}function il(e,t){for(let n=Ic(e);n!==null;n=bc(n))for(let r=Z;r-1&&(ss(t,r),_u(n,r))}this._attachedToViewContainer=!1}as(this._lView[D],this._lView)}onDestroy(t){zu(this._lView,t)}markForCheck(){vs(this._cdRefInjectingView||this._lView,4)}markForRefresh(){$i(this._cdRefInjectingView||this._lView)}detach(){this._lView[g]&=-129}reattach(){qo(this._lView),this._lView[g]|=128}detectChanges(){this._lView[g]|=1024,ol(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=zo(this._lView),n=this._lView[wt];n!==null&&!t&&is(n,this._lView),Ac(this._lView[D],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t;let n=zo(this._lView),r=this._lView[wt];r!==null&&!n&&xc(r,this._lView),qo(this._lView)}};var lE=new RegExp(`^(\\d+)*(${Vp}|${Lp})*(.*)`);var og=()=>null;function Ds(e,t){return og(e,t)}var hi=class{},Cr=class{},gi=class{resolveComponentFactory(t){throw Error(`No component factory found for ${oe(t)}.`)}},sn=class{static NULL=new gi},St=class{},Br=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>ig()}return e})();function ig(){let e=A(),t=se(),n=$e(t.index,e);return(Pe(n)?n:e)[$]}var sg=(()=>{class e{static \u0275prov=R({token:e,providedIn:"root",factory:()=>null})}return e})();function mi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Rc(e,n,i.join(" "))}}function pg(e,t,n){let r=e.projection=[];for(let o=0;o!1;function mg(e,t,n){return gg(e,t,n)}var ou=new Set;function Ge(e){ou.has(e)||(ou.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function yg(e){return typeof e=="function"&&e[J]!==void 0}function V(e,t){Ge("NgSignals");let n=ra(e),r=n[J];return t?.equal&&(r.equal=t.equal),n.set=o=>On(r,o),n.update=o=>oa(r,o),n.asReadonly=vg.bind(n),n}function vg(){let e=this[J];if(e.readonlyFn===void 0){let t=()=>this();t[J]=e,e.readonlyFn=t}return e.readonlyFn}function ul(e){return yg(e)&&typeof e.set=="function"}var Dg=!0,Tt=class{};var Er=class extends Tt{injector;componentFactoryResolver=new yi(this);instance=null;constructor(t){super();let n=new Xt([...t.providers,{provide:Tt,useValue:this},{provide:sn,useValue:this.componentFactoryResolver}],t.parent||Vi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Cg(e,t,n=null){return new Er({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Eg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Tu(!1,n.type),o=r.length>0?Cg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(x(Je))})}return e})();function Y(e){return Mr(()=>{let t=cl(e),n=O(N({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===wc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Eg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ve.Emulated,styles:e.styles||ne,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ge("NgStandalone"),ll(n);let r=e.dependencies;return n.directiveDefs=su(r,!1),n.pipeDefs=su(r,!0),n.id=Ig(n),n})}function wg(e){return Nr(e)||Mu(e)}function _g(e){return e!==null}function Hr(e){return Mr(()=>({type:e.type,bootstrap:e.bootstrap||ne,declarations:e.declarations||ne,imports:e.imports||ne,exports:e.exports||ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function iu(e,t){if(e==null)return Dt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Be.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Be.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Ft(e){return Mr(()=>{let t=cl(e);return ll(t),t})}function cl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Dt,exportAs:e.exportAs||null,standalone:e.standalone??Dg,signals:e.signals===!0,selectors:e.selectors||ne,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:iu(e.inputs,t),outputs:iu(e.outputs),debugInfo:null}}function ll(e){e.features?.forEach(t=>t(e))}function su(e,t){if(!e)return null;let n=t?Su:wg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(_g)}function Ig(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function bg(e){return Object.getPrototypeOf(e.prototype).constructor}function Rt(e){let t=bg(e.type),n=!0,r=[e];for(;t;){let o;if(Le(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Jn(e.inputs),s.inputTransforms=Jn(e.inputTransforms),s.declaredInputs=Jn(e.declaredInputs),s.outputs=Jn(e.outputs);let a=o.hostBindings;a&&Ag(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Tg(e,u),c&&Ng(e,c),Mg(e,o),Zd(e.outputs,o.outputs),Le(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=rn(o.hostAttrs,n=rn(n,o.hostAttrs))}}function Jn(e){return e===Dt?{}:e===ne?[]:e}function Tg(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Ng(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Ag(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function He(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function xg(e,t,n,r){let o=He(e,t,n);return He(e,t+1,r)||o}function Og(e){return(e.flags&32)===32}function Fg(e,t,n,r,o,i,s,a,u){let c=t.consts,l=pn(t,e,4,s||null,a||null);Wc(t,n,l,It(c,u)),Yi(t,l);let d=l.tView=ds(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Ci(e,t,n,r,o,i,s,a,u,c){let l=n+ee,d=t.firstCreatePass?Fg(l,t,e,r,o,i,s,a,u):t.data[l];xt(d,!1);let p=Rg(t,e,d,n);qi()&&us(t,e,p,d),nt(p,e);let f=Bh(p,e,p,d);return e[l]=f,fs(e,f),mg(f,d,e),ji(d)&&$c(t,e,d),u!=null&&Uc(e,d,c),d}function ze(e,t,n,r,o,i,s,a){let u=A(),c=q(),l=It(c.consts,i);return Ci(u,c,e,t,n,r,o,l,s,a),ze}var Rg=Pg;function Pg(e,t,n,r){return Zi(!0),t[$].createComment("")}var kg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();var dl=new I("");function hn(e){return!!e&&typeof e.then=="function"}function fl(e){return!!e&&typeof e.subscribe=="function"}var Lg=new I("");var pl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=y(Lg,{optional:!0})??[];injector=y(Ve);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ou(this.injector,o);if(hn(i))n.push(i);else if(fl(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vg=(()=>{class e{static \u0275prov=R({token:e,providedIn:"root",factory:()=>new Ei})}return e})(),Ei=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},jg=new I("");function Bg(){na(()=>{throw new v(600,!1)})}function Hg(e){return e.isBoundToModule}var $g=10;function Ug(e,t,n){try{let r=n();return hn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var gn=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=y(Np);afterRenderManager=y(kg);zonelessEnabled=y(kr);rootEffectScheduler=y(Vg);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new Ie;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=y(Lr).hasPendingTasks.pipe(Ke(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=y(Je);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Cr;if(!this._injector.get(pl).done){let p=!o&&vf(n),f=!1;throw new v(405,f)}let s;o?s=n:s=this._injector.get(sn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Hg(s)?void 0:this._injector.get(Tt),u=r||s.selector,c=s.create(Ve.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(dl,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),or(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new v(101,!1);let n=E(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,E(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(St,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++<$g;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o,notifyErrorHandler:i}of this.allViews)Gg(o,i,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Rr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;or(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(jg,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>or(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function or(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Gg(e,t,n,r){if(!n&&!Rr(e))return;ol(e,t,n&&!r?0:1)}function zg(e,t,n,r){return He(e,ln(),n)?t+ar(n)+r:Ne}function Wg(e,t,n,r,o,i){let s=Zf(),a=xg(e,s,n,o);return Qu(2),a?t+ar(n)+r+ar(o)+i:Ne}function Xn(e,t){return e<<17|t<<2}function rt(e){return e>>17&32767}function qg(e){return(e&2)==2}function Zg(e,t){return e&131071|t<<17}function wi(e){return e|2}function Nt(e){return(e&131068)>>2}function Po(e,t){return e&-131069|t<<2}function Yg(e){return(e&1)===1}function _i(e){return e|1}function Qg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=rt(s),u=Nt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||cn(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let p=rt(e[a+1]);e[r+1]=Xn(p,a),p!==0&&(e[p+1]=Po(e[p+1],r)),e[a+1]=Zg(e[a+1],r)}else e[r+1]=Xn(a,0),a!==0&&(e[a+1]=Po(e[a+1],r)),a=r;else e[r+1]=Xn(u,0),a===0?a=r:e[u+1]=Po(e[u+1],r),u=r;c&&(e[r+1]=wi(e[r+1])),au(e,l,r,!0),au(e,l,r,!1),Kg(t,l,e,r,i),s=Xn(a,u),i?t.classBindings=s:t.styleBindings=s}function Kg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&cn(i,t)>=0&&(n[r+1]=_i(n[r+1]))}function au(e,t,n,r){let o=e[n+1],i=t===null,s=r?rt(o):Nt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Jg(u,t)&&(a=!0,e[s+1]=r?_i(c):wi(c)),s=r?rt(c):Nt(c)}a&&(e[n+1]=r?wi(o):_i(o))}function Jg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?cn(e,t)>=0:!1}function it(e,t,n){let r=A(),o=ln();if(He(r,o,t)){let i=q(),s=rc();zc(i,s,r,e,t,r[$],n,!1)}return it}function uu(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";ps(e,n,i[s],s,r)}function Cs(e,t){return Xg(e,t,null,!0),Cs}function Xg(e,t,n,r){let o=A(),i=q(),s=Qu(2);if(i.firstUpdatePass&&tm(i,e,s,r),t!==Ne&&He(o,s,t)){let a=i.data[Te()];sm(i,a,o,o[$],e,o[s+1]=am(t,n),r,s)}}function em(e,t){return t>=e.expandoStartIndex}function tm(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Te()],s=em(e,n);um(i,r)&&t===null&&!s&&(t=!1),t=nm(o,i,t,r),Qg(o,i,t,n,s,r)}}function nm(e,t,n,r){let o=Xf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ko(null,e,t,n,r),n=an(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ko(o,e,t,n,r),i===null){let u=rm(e,t,r);u!==void 0&&Array.isArray(u)&&(u=ko(null,e,t,u[1],r),u=an(u,t.attrs,r),om(e,t,r,u))}else i=im(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function rm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Nt(r)!==0)return e[rt(r)]}function om(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[rt(o)]=r}function im(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[o+1];p===Ne&&(p=d?ne:void 0);let f=d?To(p,r):l===r?p:void 0;if(c&&!wr(f)&&(f=To(u,r)),wr(f)&&(a=f,s))return a;let h=e[o+1];o=s?rt(h):Nt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=To(u,r))}return a}function wr(e){return e!==void 0}function am(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=oe(rs(e)))),e}function um(e,t){return(e.flags&(t?8:16))!==0}var Ii=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Lo(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function cm(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=Lo(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),f=t[u],h=Lo(s,p,u,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,u--;continue}let T=n(i,c),k=n(s,p),P=n(i,l);if(Object.is(P,k)){let j=n(u,f);Object.is(j,T)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new _r,o??=du(e,i,s,n),bi(e,r,i,P))e.updateValue(i,l),i++,s++;else if(o.has(P))r.set(T,e.detach(i)),s--;else{let j=e.create(i,t[i]);e.attach(i,j),i++,s++}}for(;i<=u;)lu(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,p=Lo(i,l,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new _r,o??=du(e,i,s,n);let f=n(i,d);if(bi(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!c.done;)lu(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function bi(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function lu(e,t,n,r,o){if(bi(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function du(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var _r=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function st(e,t){Ge("NgControlFlow");let n=A(),r=ln(),o=n[r]!==Ne?n[r]:-1,i=o!==-1?Ir(n,ee+o):void 0,s=0;if(He(n,r,e)){let a=E(null);try{if(i!==void 0&&el(i,s),e!==-1){let u=ee+e,c=Ir(n,u),l=Ni(n[D],u),d=Ds(c,l.tView.ssrId),p=gs(n,l,t,{dehydratedView:d});ys(c,p,s,ms(l,d))}}finally{E(a)}}else if(i!==void 0){let a=Xc(i,s);a!==void 0&&(a[U]=t)}}var Mi=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Z}};function hl(e){return e}var Si=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Pt(e,t,n,r,o,i,s,a,u,c,l,d,p){Ge("NgControlFlow");let f=A(),h=q(),T=u!==void 0,k=A(),P=a?s.bind(k[pe][U]):s,j=new Si(T,P);k[ee+e]=j,Ci(f,h,e+1,t,n,r,o,It(h.consts,i)),T&&Ci(f,h,e+2,u,c,l,d,It(h.consts,p))}var Ti=class extends Ii{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-Z}at(t){return this.getLView(t)[U].$implicit}attach(t,n){let r=n[en];this.needsIndexUpdate||=t!==this.length,ys(this.lContainer,n,t,ms(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,lm(this.lContainer,t)}create(t,n){let r=Ds(this.lContainer,this.templateTNode.tView.ssrId),o=gs(this.hostLView,this.templateTNode,new Mi(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){as(t[D],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[U].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Zi(!0),Nc(r,o,np()));function gl(){return A()}var br="en-US";var hm=br;function gm(e){typeof e=="string"&&(hm=e.toLowerCase().replace(/_/g,"-"))}var mm=(e,t,n)=>{};function Ee(e,t,n,r){let o=A(),i=q(),s=se();return ml(i,o,o[$],s,e,t,r),Ee}function ym(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function ml(e,t,n,r,o,i,s){let a=ji(r),c=e.firstCreatePass&&$h(e),l=t[U],d=Hh(t),p=!0;if(r.type&3||s){let T=Ce(r,t),k=s?s(T):T,P=d.length,j=s?ce=>s(be(ce[r.index])):r.index,_e=null;if(!s&&a&&(_e=ym(e,t,o,r.index)),_e!==null){let ce=_e.__ngLastListenerFn__||_e;ce.__ngNextListenerFn__=i,_e.__ngLastListenerFn__=i,p=!1}else{i=pu(r,t,l,i),mm(T,o,i);let ce=n.listen(k,o,i);d.push(i,ce),c&&c.push(o,j,P,P+1)}}else i=pu(r,t,l,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let T=h.length;if(T)for(let k=0;k-1?$e(e.index,t):t;vs(s,5);let a=fu(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=fu(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function mn(e=1){return tp(e)}function yl(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function b(e,t=""){let n=A(),r=q(),o=e+ee,i=r.firstCreatePass?pn(r,o,1,t,null):r.data[o],s=vm(r,n,i,t,e);n[o]=s,qi()&&us(r,n,s,i),xt(i,!1)}var vm=(e,t,n,r,o)=>(Zi(!0),$p(t[$],r));function Lt(e){return ae("",e,""),Lt}function ae(e,t,n){let r=A(),o=zg(r,e,t,n);return o!==Ne&&Jc(r,Te(),o),ae}function Es(e,t,n,r,o){let i=A(),s=Wg(i,e,t,n,r,o);return s!==Ne&&Jc(i,Te(),s),Es}function ws(e,t,n){ul(t)&&(t=t());let r=A(),o=ln();if(He(r,o,t)){let i=q(),s=rc();zc(i,s,r,e,t,r[$],n,!1)}return ws}function vl(e,t){let n=ul(e);return n&&e.set(t),n}function _s(e,t){let n=A(),r=q(),o=se();return ml(r,n,n[$],o,e,t),_s}var Dl={};function yn(e){let t=q(),n=A(),r=e+ee,o=pn(t,r,128,null,null);return xt(o,!1),yl(t,n,r,Dl),yn}function Cl(e){Ge("NgLet");let t=q(),n=A(),r=Te();return yl(t,n,r,e),e}function El(e){let t=qf(),n=kf(t,ee+e);if(n===Dl)throw new v(314,!1);return n}function Dm(e,t,n){let r=q();if(r.firstCreatePass){let o=Le(e);Ai(n,r.data,r.blueprint,o,!0),Ai(t,r.data,r.blueprint,o,!1)}}function Ai(e,t,n,r,o){if(e=W(e),Array.isArray(e))for(let i=0;i>20;if(Ct(e)||!e.multi){let f=new tt(c,o,G),h=jo(u,t,o?l:l+p,d);h===-1?(ti(hr(a,s),i,u),Vo(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=jo(u,t,l+p,d),h=jo(u,t,l,l+p),T=f>=0&&n[f],k=h>=0&&n[h];if(o&&!k||!o&&!T){ti(hr(a,s),i,u);let P=wm(o?Em:Cm,n.length,o,r,c);!o&&k&&(n[h].providerFactory=P),Vo(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=wl(n[o?h:f],c,!o&&r);Vo(i,e,f>-1?f:h,P)}!o&&r&&k&&n[h].componentProviders++}}}function Vo(e,t,n,r){let o=Ct(t),i=_f(t);if(o||i){let u=(i?W(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function wl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function jo(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>Dm(r,o?o(e):e,t)}}var _m=(()=>{class e{zone=y(H);changeDetectionScheduler=y(Mt);applicationRef=y(gn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Im({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new H(O(N({},bm()),{scheduleInRootZone:n})),[{provide:H,useFactory:e},{provide:Jt,multi:!0,useFactory:()=>{let r=y(_m,{optional:!0});return()=>r.initialize()}},{provide:Jt,multi:!0,useFactory:()=>{let r=y(Mm);return()=>{r.initialize()}}},t===!0?{provide:yc,useValue:!0}:[],{provide:Qi,useValue:n??mc}]}function bm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Mm=(()=>{class e{subscription=new z;initialized=!1;zone=y(H);pendingTasks=y(Lr);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{H.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _l=(()=>{class e{appRef=y(gn);taskService=y(Lr);ngZone=y(H);zonelessEnabled=y(kr);disableScheduling=y(yc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new z;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(yr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(y(Qi,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof vr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?qa:vc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(yr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,qa(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Il(){return Ge("NgZoneless"),Ar([{provide:Mt,useExisting:_l},{provide:H,useClass:vr},{provide:kr,useValue:!0},{provide:Qi,useValue:!1},[]])}function Sm(){return typeof $localize<"u"&&$localize.locale||br}var bs=new I("",{providedIn:"root",factory:()=>y(bs,_.Optional|_.SkipSelf)||Sm()});var Oi=new I("");function er(e){return!e.moduleRef}function Tm(e){let t=er(e)?e.r3Injector:e.moduleRef.injector,n=t.get(H);return n.run(()=>{er(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(je,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),er(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Oi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Oi);s.add(i),e.moduleRef.onDestroy(()=>{or(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Ug(r,n,()=>{let i=t.get(pl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(bs,br);if(gm(s||br),er(e)){let a=t.get(gn);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Nm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Nm(e,t){let n=e.injector.get(gn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new v(-403,!1);t.push(e)}var ir=null;function Am(e=[],t){return Ve.create({name:t,providers:[{provide:xr,useValue:"platform"},{provide:Oi,useValue:new Set([()=>ir=null])},...e]})}function xm(e=[]){if(ir)return ir;let t=Am(e);return ir=t,Bg(),Om(t),t}function Om(e){let t=e.get(es,null);Ou(e,()=>{t?.forEach(n=>n())})}var Ms=(()=>{class e{static __NG_ELEMENT_ID__=Fm}return e})();function Fm(e){return Rm(se(),A(),(e&16)===16)}function Rm(e,t,n){if(Fr(e)&&!n){let r=$e(e.index,t);return new on(r,r)}else if(e.type&175){let r=t[pe];return new on(r,t)}return null}function bl(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=xm(r),i=[Im({}),{provide:Mt,useExisting:_l},...n||[]],s=new Er({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Tm({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Ss(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ue(e,t){Ge("NgSignals");let n=Xs(e);return t?.equal&&(n[J].equal=t.equal),n}function Ae(e){let t=E(null);try{return e()}finally{E(t)}}var hu=class{[J];constructor(t){this[J]=t}destroy(){this[J].destroy()}};var Sl=null;function Vt(){return Sl}function Tl(e){Sl??=e}var $r=class{};var We=new I("");function Nl(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Ts="browser",Pm="server";function Al(e){return e===Ts}function Ns(e){return e===Pm}var Ur=class{};var xs=class extends $r{supportsDOMEvents=!0},Os=class e extends xs{static makeCurrent(){Tl(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Lm();return n==null?null:Vm(n)}resetBaseElement(){vn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Nl(document.cookie,t)}},vn=null;function Lm(){return vn=vn||document.querySelector("base"),vn?vn.getAttribute("href"):null}function Vm(e){return new URL(e,document.baseURI).pathname}var jm=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Fs=new I(""),Ll=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new v(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(x(Fs),x(H))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Gr=class{_doc;constructor(t){this._doc=t}manager},Rs="ng-app-id";function xl(e){for(let t of e)t.remove()}function Ol(e,t){let n=t.createElement("style");return n.textContent=e,n}function Bm(e,t,n){let r=e.head?.querySelectorAll(`style[${Rs}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(Rs),n.set(o.textContent,{usage:0,elements:[o]}))}function Fl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Vl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Ns(i),Bm(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Ol);r?.forEach(o=>this.addUsage(o,this.external,Fl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(xl(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])xl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Ol(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Fl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Rs,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(x(We),x(Xi),x(ts,8),x(Ue))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),As={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"},ks=/%COMP%/g,jl="%COMP%",Hm=`_nghost-${jl}`,$m=`_ngcontent-${jl}`,Um=!0,Gm=new I("",{providedIn:"root",factory:()=>Um});function zm(e){return $m.replace(ks,e)}function Wm(e){return Hm.replace(ks,e)}function Bl(e,t){return t.map(n=>n.replace(ks,e))}var Rl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.platformIsServer=Ns(a),this.defaultRenderer=new Dn(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ve.ShadowDom&&(r=O(N({},r),{encapsulation:ve.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof zr?o.applyToHost(n):o instanceof Cn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case ve.Emulated:i=new zr(u,c,r,this.appId,l,s,a,d);break;case ve.ShadowDom:return new Ps(u,c,n,r,s,a,this.nonce,d);default:i=new Cn(u,c,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(x(Ll),x(Vl),x(Xi),x(Gm),x(We),x(Ue),x(H),x(ts))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Dn=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(As[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Pl(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Pl(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new v(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=As[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=As[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Me.DashCase|Me.Important)?t.style.setProperty(n,r,o&Me.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Me.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Vt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Pl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ps=class extends Dn{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Bl(o.id,o.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Cn=class extends Dn{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=u?Bl(u,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},zr=class extends Cn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,u){let c=o+"-"+r.id;super(t,n,r,i,s,a,u,c),this.contentAttr=zm(c),this.hostAttr=Wm(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},qm=(()=>{class e extends Gr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(x(We))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),kl=["alt","control","meta","shift"],Zm={"\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"},Ym={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Qm=(()=>{class e extends Gr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),kl.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=Zm[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),kl.forEach(s=>{if(s!==o){let a=Ym[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(x(We))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function Hl(e,t){return bl(N({rootComponent:e},Km(t)))}function Km(e){return{appProviders:[...ny,...e?.providers??[]],platformProviders:ty}}function Jm(){Os.makeCurrent()}function Xm(){return new je}function ey(){return Sc(document),document}var ty=[{provide:Ue,useValue:Ts},{provide:es,useValue:Jm,multi:!0},{provide:We,useFactory:ey,deps:[]}];var ny=[{provide:xr,useValue:"root"},{provide:je,useFactory:Xm,deps:[]},{provide:Fs,useClass:qm,multi:!0,deps:[We,H,Ue]},{provide:Fs,useClass:Qm,multi:!0,deps:[We]},Rl,Vl,Ll,{provide:St,useExisting:Rl},{provide:Ur,useClass:jm,deps:[]},[]];var jt=new I("AI_LANGUAGE_DETECTION_API_TOKEN");function $l(){return Ar([{provide:jt,useFactory:()=>{let e=y(Ue),t=Al(e)?window:void 0;if(t&&"ai"in t){let n=t.ai;if(n.languageDetector)return n.languageDetector}}}])}var Ul={providers:[Il(),$l()]};function Ls(e,t){let n=!t?.manualCleanup;n&&!t?.injector&&Ru(Ls);let r=n?t?.injector?.get(dn)??y(dn):null,o=ry(t?.equal),i;t?.requireSync?i=V({kind:0},{equal:o}):i=V({kind:1,value:t?.initialValue},{equal:o});let s=e.subscribe({next:a=>i.set({kind:1,value:a}),error:a=>{if(t?.rejectErrors)throw a;i.set({kind:2,error:a})}});if(t?.requireSync&&i().kind===0)throw new v(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),ue(()=>{let a=i();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new v(601,!1)}},{equal:t?.equal})}function ry(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}function oy(e){let t=e.userAgentData?.brands;return t!==void 0&&Array.isArray(t)}function Wr(){let e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):0}function Gl(){let e=navigator.userAgent.match(/Firefox\/([0-9]+)\./);return e?parseInt(e[1],10):0}function iy(){return oy(navigator)?navigator.userAgentData?.brands:[]}function Vs(){return iy()?.some(e=>e.brand==="Google Chrome")}function zl(){if(Vs())return"Google Chrome";let e=navigator.userAgent;return e.includes("Firefox")?"Firefox":e.includes("SamsungBrowser")?"Samsung Internet":e.includes("Opera")||e.includes("OPR")?"Opera":e.includes("Edge")?"Microsoft Edge (Legacy)":e.includes("Edg")?"Microsoft Edge (Chromium)":e.includes("Chrome")?"Chromium":e.includes("Safari")?"Apple Safari":"unknown"}function sy(e,t){if(e&1&&(w(0,"p")(1,"span",0),b(2,"Chrome Version: "),m(),b(3),m()),e&2){let n=mn();S(3),ae("",n.chromeVersion," ")}}function ay(e,t){if(e&1&&(w(0,"p")(1,"span",0),b(2,"Firefox Version: "),m(),b(3),m()),e&2){let n=mn();S(3),ae("",n.firefoxVersion," ")}}var qr=class e{userAgent=zl();chromeVersion=Wr();firefoxVersion=Gl();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-user-agent"]],decls:10,vars:2,consts:[[1,"label"]],template:function(n,r){n&1&&(w(0,"div")(1,"h3"),b(2,"User Agent"),m(),w(3,"p")(4,"span",0),b(5,"Browser Name: "),m(),b(6),m(),ze(7,sy,4,1,"p")(8,ay,4,1,"p"),m(),Q(9,"hr")),n&2&&(S(6),ae("",r.userAgent," "),S(),st(r.chromeVersion>0?7:r.firefoxVersion>0?8:-1))},encapsulation:2,changeDetection:0})};var Wl=129;async function cy(){if(!Vs())throw new Error("Your browser is not supported. Please use Google Chrome Dev or Canary.");if(Wr()(console.error(e),Mo(e instanceof Error?e.message:"unknown"))))}var td=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(G(Br),G(fn))};static \u0275dir=Ft({type:e})}return e})(),ly=(()=>{class e extends td{static \u0275fac=(()=>{let n;return function(o){return(n||(n=hc(e)))(o||e)}})();static \u0275dir=Ft({type:e,features:[Rt]})}return e})(),nd=new I("");var dy={provide:nd,useExisting:un(()=>Jr),multi:!0};function fy(){let e=Vt()?Vt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var py=new I(""),Jr=(()=>{class e extends td{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!fy())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(G(Br),G(fn),G(py,8))};static \u0275dir=Ft({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&Ee("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Is([dy]),Rt]})}return e})();var hy=new I(""),gy=new I("");function rd(e){return e!=null}function od(e){return hn(e)?Qe(e):e}function id(e){let t={};return e.forEach(n=>{t=n!=null?N(N({},t),n):t}),Object.keys(t).length===0?null:t}function sd(e,t){return t.map(n=>n(e))}function my(e){return!e.validate}function ad(e){return e.map(t=>my(t)?t:n=>t.validate(n))}function yy(e){if(!e)return null;let t=e.filter(rd);return t.length==0?null:function(n){return id(sd(n,t))}}function ud(e){return e!=null?yy(ad(e)):null}function vy(e){if(!e)return null;let t=e.filter(rd);return t.length==0?null:function(n){let r=sd(n,t).map(od);return So(r).pipe(Ke(id))}}function cd(e){return e!=null?vy(ad(e)):null}function Zl(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Dy(e){return e._rawValidators}function Cy(e){return e._rawAsyncValidators}function js(e){return e?Array.isArray(e)?e:[e]:[]}function Yr(e,t){return Array.isArray(e)?e.includes(t):e===t}function Yl(e,t){let n=js(t);return js(e).forEach(o=>{Yr(n,o)||n.push(o)}),n}function Ql(e,t){return js(t).filter(n=>!Yr(e,n))}var Qr=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ud(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=cd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Bs=class extends Qr{name;get formDirective(){return null}get path(){return null}},bn=class extends Qr{_parent=null;name=null;valueAccessor=null},Hs=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Ey={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},a_=O(N({},Ey),{"[class.ng-submitted]":"isSubmitted"}),ld=(()=>{class e extends Hs{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(G(bn,2))};static \u0275dir=Ft({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Cs("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[Rt]})}return e})();var En="VALID",Zr="INVALID",Ht="PENDING",wn="DISABLED",Ut=class{},Kr=class extends Ut{value;source;constructor(t,n){super(),this.value=t,this.source=n}},_n=class extends Ut{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},In=class extends Ut{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},$t=class extends Ut{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function wy(e){return(Xr(e)?e.validators:e)||null}function _y(e){return Array.isArray(e)?ud(e):e||null}function Iy(e,t){return(Xr(t)?t.asyncValidators:e)||null}function by(e){return Array.isArray(e)?cd(e):e||null}function Xr(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var $s=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ae(this.statusReactive)}set status(t){Ae(()=>this.statusReactive.set(t))}_status=ue(()=>this.statusReactive());statusReactive=V(void 0);get valid(){return this.status===En}get invalid(){return this.status===Zr}get pending(){return this.status==Ht}get disabled(){return this.status===wn}get enabled(){return this.status!==wn}errors;get pristine(){return Ae(this.pristineReactive)}set pristine(t){Ae(()=>this.pristineReactive.set(t))}_pristine=ue(()=>this.pristineReactive());pristineReactive=V(!0);get dirty(){return!this.pristine}get touched(){return Ae(this.touchedReactive)}set touched(t){Ae(()=>this.touchedReactive.set(t))}_touched=ue(()=>this.touchedReactive());touchedReactive=V(!1);get untouched(){return!this.touched}_events=new Ie;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Yl(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Yl(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ql(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ql(t,this._rawAsyncValidators))}hasValidator(t){return Yr(this._rawValidators,t)}hasAsyncValidator(t){return Yr(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(O(N({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new In(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new In(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(O(N({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new _n(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new _n(!0,r))}markAsPending(t={}){this.status=Ht;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $t(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(O(N({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=wn,this.errors=null,this._forEachChild(o=>{o.disable(O(N({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Kr(this.value,r)),this._events.next(new $t(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(N({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=En,this._forEachChild(r=>{r.enable(O(N({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(O(N({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===En||this.status===Ht)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Kr(this.value,n)),this._events.next(new $t(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(O(N({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wn:En}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Ht,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=od(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new $t(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new re,this.statusChanges=new re}_calculateStatus(){return this._allControlsDisabled()?wn:this.errors?Zr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ht)?Ht:this._anyControlsHaveStatus(Zr)?Zr:En}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new _n(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new In(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Xr(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=_y(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=by(this._rawAsyncValidators)}};var dd=new I("CallSetDisabledState",{providedIn:"root",factory:()=>Us}),Us="always";function My(e,t){return[...t.path,e]}function Sy(e,t,n=Us){Ny(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Ay(e,t),Oy(e,t),xy(e,t),Ty(e,t)}function Kl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Ty(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Ny(e,t){let n=Dy(e);t.validator!==null?e.setValidators(Zl(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Cy(e);t.asyncValidator!==null?e.setAsyncValidators(Zl(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Kl(t._rawValidators,o),Kl(t._rawAsyncValidators,o)}function Ay(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&fd(e,t)})}function xy(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&fd(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function fd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Oy(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Fy(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Ry(e){return Object.getPrototypeOf(e.constructor)===ly}function Py(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Jr?n=i:Ry(i)?r=i:o=i}),o||r||n||null}function Jl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Xl(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var ky=class extends $s{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(wy(n),Iy(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xr(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Xl(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Jl(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Jl(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Xl(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Ly={provide:bn,useExisting:un(()=>Gs)},ed=Promise.resolve(),Gs=(()=>{class e extends bn{_changeDetectorRef;callSetDisabledState;control=new ky;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new re;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Py(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Fy(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Sy(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ed.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Ss(r);ed.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?My(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(G(Bs,9),G(hy,10),G(gy,10),G(nd,10),G(Ms,8),G(dd,8))};static \u0275dir=Ft({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Is([Ly]),Rt,ju]})}return e})();var Vy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Hr({type:e});static \u0275inj=Sr({})}return e})();var pd=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:dd,useValue:n.callSetDisabledState??Us}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Hr({type:e});static \u0275inj=Sr({imports:[Vy]})}return e})();var By=111,eo=class e{#r=new AbortController;#e=y(jt);#t=V(null);detector=this.#t.asReadonly();#n=V(null);capabilities=this.#n.asReadonly();async createCapabilities(){if(!this.#e)throw new Error("Your browser doesn't support the Prompt API. If you are on Chrome, join the Early Preview Program to enable it.");let t=await this.#e.capabilities();this.#n.set(t)}async destroyCapabilities(){this.#n.set(null)}async detect(t,n=3){if(!this.#e)throw new Error("Your browser doesn't support the Language Detection API. If you are on Chrome, join the Early Preview Program to enable it.");let r=this.detector();if(!r)throw new Error("Failed to create LanguageDetector.");let o=Math.min(n,By);return(await r.detect(t)).slice(0,o).map(a=>O(N({},a),{name:this.languageTagToHumanReadable(a.detectedLanguage)}))}destroyDetector(){let t=this.detector();t&&(t.destroy(),console.log("Destroy the language detector."),this.#t.set(null))}async createDetector(){this.destroyDetector();let t=await this.#e?.create({signal:this.#r.signal});this.#t.set(t)}languageTagToHumanReadable(t,n="en"){return new Intl.DisplayNames([n],{type:"language"}).of(t)||"NA"}static \u0275fac=function(n){return new(n||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var Hy=(e,t)=>t.code;function $y(e,t){if(e&1&&(w(0,"p"),b(1),m()),e&2){let n=t.$implicit;S(),Es("Is ",n.name," available? ",n.available,"")}}var to=class e{languagesAvailable=Ot([]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-language-available"]],inputs:{languagesAvailable:[1,"languagesAvailable"]},decls:3,vars:0,template:function(n,r){n&1&&(w(0,"div"),Pt(1,$y,2,2,"p",null,Hy),m()),n&2&&(S(),kt(r.languagesAvailable()))},encapsulation:2,changeDetection:0})};var Uy=(e,t)=>t.detectedLanguage;function Gy(e,t){if(e&1&&(w(0,"p")(1,"span"),b(2),m(),w(3,"span"),b(4),m(),w(5,"span"),b(6),m()()),e&2){let n=t.$implicit;S(2),ae("Confidence: ",n.confidence.toFixed(3),", "),S(2),ae("Detected Language: ",n.detectedLanguage,", "),S(2),ae("Detected Language Name: ",n.name,"")}}var no=class e{detectedLanguages=Ot([]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-language-detection-result"]],inputs:{detectedLanguages:[1,"detectedLanguages"]},decls:5,vars:0,consts:[[1,"label"]],template:function(n,r){n&1&&(w(0,"div")(1,"span",0),b(2,"Response: "),m(),Pt(3,Gy,7,3,"p",null,Uy),m()),n&2&&(S(3),kt(r.detectedLanguages()))},encapsulation:2,changeDetection:0})};var ro=class e{service=y(eo);inputText=V("");detectedLanguages=V([]);languagesAvailable=V(["en","zh","es","it"].map(t=>({code:t,name:this.service.languageTagToHumanReadable(t)||"NA",available:"no"})));capabilities=this.service.capabilities;detector=this.service.detector;isUnavailable=ue(()=>!this.capabilities()||this.capabilities().available!=="readily");isDisableDetectLanguage=ue(()=>this.isUnavailable()||!this.detector()||this.inputText().trim()==="");async setup(){await this.service.createCapabilities(),await this.service.createDetector();let t=this.languagesAvailable().map(({code:n})=>({code:n,name:this.service.languageTagToHumanReadable(n),available:this.capabilities().languageAvailable(n)}));this.languagesAvailable.set(t)}async teardown(){await this.service.destroyCapabilities(),await this.service.destroyDetector();let t=this.languagesAvailable().map(({code:n})=>({code:n,name:this.service.languageTagToHumanReadable(n),available:"no"}));this.languagesAvailable.set(t)}async detectLanguage(t=3){let n=await this.service.detect(this.inputText(),t);this.detectedLanguages.set(n)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-language-detection"]],decls:15,vars:4,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],[3,"languagesAvailable"],["for","input",1,"label"],["id","input","name","input","rows","3",3,"ngModelChange","ngModel"],[2,"margin-right","0.5rem",3,"click"],[3,"click","disabled"],[3,"detectedLanguages"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"h3"),b(2,"Language Detection Demo"),m(),Q(3,"app-language-available",1),w(4,"div")(5,"span",2),b(6,"Input text: "),m(),w(7,"textarea",3),_s("ngModelChange",function(i){return vl(r.inputText,i)||(r.inputText=i),i}),m()(),w(8,"button",4),Ee("click",function(){return r.setup()}),b(9,"Create capabilities and detector"),m(),w(10,"button",4),Ee("click",function(){return r.teardown()}),b(11,"Destroy capabilities and detector"),m(),w(12,"button",5),Ee("click",function(){return r.detectLanguage()}),b(13,"Detect Language"),m(),Q(14,"app-language-detection-result",6),m()),n&2&&(S(3),it("languagesAvailable",r.languagesAvailable()),S(4),ws("ngModel",r.inputText),S(5),it("disabled",r.isDisableDetectLanguage()),S(2),it("detectedLanguages",r.detectedLanguages()))},dependencies:[pd,Jr,ld,Gs,to,no],encapsulation:2,changeDetection:0})};function zy(e,t){e&1&&Q(0,"app-user-agent")}function Wy(e,t){e&1&&Q(0,"app-language-detection")}function qy(e,t){if(e&1&&b(0),e&2){mn();let n=El(2);ae(" ",n," ")}}function Zy(e,t){e&1&&(w(0,"p"),b(1,"If you're on Chrome, join the "),w(2,"a",0),b(3," Early Preview Program"),m(),b(4," to enable it. "),m())}var oo=class e{showUserAgent=Ot(!1);hasCapability=Ls(ql(),{initialValue:""});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-detect-ai"]],inputs:{showUserAgent:[1,"showUserAgent"]},decls:6,vars:3,consts:[["href","https://developer.chrome.com/docs/ai/built-in#get_an_early_preview","target","_blank"]],template:function(n,r){if(n&1&&(ze(0,zy,1,0,"app-user-agent"),w(1,"div"),yn(2),ze(3,Wy,1,0,"app-language-detection")(4,qy,1,1)(5,Zy,5,0,"p"),m()),n&2){st(r.showUserAgent()?0:-1),S(2);let o=Cl(r.hasCapability());S(),st(o?o!=="unknown"?4:5:3)}},dependencies:[qr,ro],encapsulation:2,changeDetection:0})};function Yy(e,t){if(e&1&&(w(0,"li",2),b(1),m()),e&2){let n=t.$implicit;S(),Lt(n)}}var io=class e{steps=V(["Open a new tab in Chrome, go to chrome://flags/#language-detection-api.","Select Enabled.","Relaunch Chrome"]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-setup"]],decls:12,vars:0,consts:[["href","https://github.com/WICG/translation-api?tab=readme-ov-file#language-detection","target","_blank"],[2,"margin-left","1rem","color","black"],[2,"line-height","1.25rem"]],template:function(n,r){n&1&&(w(0,"p"),b(1,"Explainer: "),w(2,"a",0),b(3," https://github.com/WICG/translation-api?tab=readme-ov-file#language-detection"),m()(),w(4,"p"),b(5,"You will need Version 129.0.6639.0 or above."),m(),w(6,"h3"),b(7,"Setup"),m(),w(8,"ol",1),Pt(9,Yy,2,1,"li",2,hl),m(),Q(11,"hr")),n&2&&(S(9),kt(r.steps()))},encapsulation:2,changeDetection:0})};function Qy(e,t){e&1&&Q(0,"app-setup")}var so=class e{showSetup=V(!1);showUserAgent=V(!1);btnSetupText=ue(()=>this.showSetup()?"Hide Setup":"Show Setup");btnUserAgentText=ue(()=>this.showUserAgent()?"Hide User Agent":"Show User Agent");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-root"]],decls:11,vars:4,consts:[[2,"margin-bottom","0.5rem"],[2,"margin-right","0.25rem",3,"click"],[3,"click"],[3,"showUserAgent"]],template:function(n,r){if(n&1){let o=gl();w(0,"h2"),b(1,"Chrome Built-in Language Detection API "),m(),yn(2)(3),w(4,"div",0)(5,"button",1),Ee("click",function(){return Ui(o),Gi(r.showSetup.set(!r.showSetup()))}),b(6),m(),w(7,"button",2),Ee("click",function(){return Ui(o),Gi(r.showUserAgent.set(!r.showUserAgent()))}),b(8),m()(),ze(9,Qy,1,0,"app-setup"),Q(10,"app-detect-ai",3)}if(n&2){let o=r.showSetup()?"Hide Setup":"Show Setup",i=r.showUserAgent()?"Hide User Agent":"Show User Agent";S(6),Lt(o),S(2),Lt(i),S(),st(r.showSetup()?9:-1),S(),it("showUserAgent",r.showUserAgent())}},dependencies:[oo,io],styles:["[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}"],changeDetection:0})};Hl(so,Ul).catch(e=>console.error(e)); + `)}`}function vt(e,t){let n=e.hasOwnProperty(sr);return n?e[sr]:null}function ki(e,t){e.forEach(n=>Array.isArray(n)?ki(n,t):t(n))}function hf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function _u(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function mf(e,t,n){let r=cn(e,t);return r>=0?e[r|1]=n:(r=~r,gf(e,r,t,n)),r}function To(e,t){let n=cn(e,t);if(n>=0)return e[n|1]}function cn(e,t){return yf(e,t,1)}function yf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return ki(t,s=>{let a=s;$o(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Nu(o,i),n}function Nu(e,t){for(let n=0;n{t(i,r)})}}function $o(e,t,n,r){if(e=W(e),!e)return!1;let o=null,i=Ra(e),s=!i&&Nr(e);if(!i&&!s){let u=e.ngModule;if(i=Ra(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)$o(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{ki(i.imports,l=>{$o(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Nu(c,t)}if(!a){let c=vt(o)||(()=>new o);t({provide:o,useFactory:c,deps:ne},o),t({provide:bu,useValue:o,multi:!0},o),t({provide:Jt,useValue:()=>x(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Li(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Li(e,t){for(let n of e)Cu(n)&&(n=n.\u0275providers),Array.isArray(n)?Li(n,t):t(n)}var Cf=F({provide:String,useValue:F});function Au(e){return e!==null&&typeof e=="object"&&Cf in e}function Ef(e){return!!(e&&e.useExisting)}function wf(e){return!!(e&&e.useFactory)}function Ct(e){return typeof e=="function"}function _f(e){return!!e.useClass}var xr=new I(""),tr={},If={},No;function Vi(){return No===void 0&&(No=new cr),No}var Je=class{},Xt=class extends Je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Go(t,s=>this.processProvider(s)),this.records.set(Iu,pt(void 0,this)),o.has("environment")&&this.records.set(Je,pt(void 0,this));let i=this.records.get(xr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(bu,ne,_.Self))}destroy(){Zt(this),this._destroyed=!0;let t=E(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),E(t)}}onDestroy(t){return Zt(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Zt(this);let n=Fe(this),r=te(void 0),o;try{return t()}finally{Fe(n),te(r)}}get(t,n=Kt,r=_.Default){if(Zt(this),t.hasOwnProperty(ka))return t[ka](this);r=Tr(r);let o,i=Fe(this),s=te(void 0);try{if(!(r&_.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Nf(t)&&Ri(t);c&&this.injectableDefInScope(c)?u=pt(Uo(t),tr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&_.Self?Vi():this.parent;return n=r&_.Optional&&n===Kt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[ur]=a[ur]||[]).unshift(oe(t)),i)throw a;return ff(a,t,"R3InjectorError",this.source)}else throw a}finally{te(s),Fe(i)}}resolveInjectorInitializers(){let t=E(null),n=Fe(this),r=te(void 0),o;try{let i=this.get(Jt,ne,_.Self);for(let s of i)s()}finally{Fe(n),te(r),E(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=W(t);let n=Ct(t)?t:W(t&&t.provide),r=Mf(t);if(!Ct(t)&&t.multi===!0){let o=this.records.get(n);o||(o=pt(void 0,tr,!0),o.factory=()=>Ho(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=E(null);try{return n.value===tr&&(n.value=If,n.value=n.factory()),typeof n.value=="object"&&n.value&&Tf(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{E(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=W(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Uo(e){let t=Ri(e),n=t!==null?t.factory:vt(e);if(n!==null)return n;if(e instanceof I)throw new v(204,!1);if(e instanceof Function)return bf(e);throw new v(204,!1)}function bf(e){if(e.length>0)throw new v(204,!1);let n=Qd(e);return n!==null?()=>n.factory(e):()=>new e}function Mf(e){if(Au(e))return pt(void 0,e.useValue);{let t=xu(e);return pt(t,tr)}}function xu(e,t,n){let r;if(Ct(e)){let o=W(e);return vt(o)||Uo(o)}else if(Au(e))r=()=>W(e.useValue);else if(wf(e))r=()=>e.useFactory(...Ho(e.deps||[]));else if(Ef(e))r=()=>x(W(e.useExisting));else{let o=W(e&&(e.useClass||e.provide));if(Sf(e))r=()=>new o(...Ho(e.deps));else return vt(o)||Uo(o)}return r}function Zt(e){if(e.destroyed)throw new v(205,!1)}function pt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Sf(e){return!!e.deps}function Tf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Nf(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function Go(e,t){for(let n of e)Array.isArray(n)?Go(n,t):n&&Cu(n)?Go(n.\u0275providers,t):t(n)}function Ou(e,t){e instanceof Xt&&Zt(e);let n,r=Fe(e),o=te(void 0);try{return t()}finally{Fe(r),te(o)}}function Fu(){return Eu()!==void 0||cf()!=null}function Ru(e){if(!Fu())throw new v(-203,!1)}var Se=0,D=1,g=2,ie=3,fe=4,De=5,en=6,lr=7,U=8,Et=9,ke=10,$=11,tn=12,Va=13,At=14,pe=15,wt=16,ht=17,_t=18,Or=19,Pu=20,Re=21,Ao=22,dr=23,X=24,ee=25,ku=1;var nn=7,Af=8,fr=9,Z=10,pr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(pr||{});function Pe(e){return Array.isArray(e)&&typeof e[ku]=="object"}function ot(e){return Array.isArray(e)&&e[ku]===!0}function Lu(e){return(e.flags&4)!==0}function Fr(e){return e.componentOffset>-1}function ji(e){return(e.flags&1)===1}function Le(e){return!!e.template}function zo(e){return(e[g]&512)!==0}var Wo=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Vu(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ju=(()=>{let e=()=>Bu;return e.ngInherit=!0,e})();function Bu(e){return e.type.prototype.ngOnChanges&&(e.setInput=Of),xf}function xf(){let e=$u(this),t=e?.current;if(t){let n=e.previous;if(n===Dt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Of(e,t,n,r,o){let i=this.declaredInputs[r],s=$u(e)||Ff(e,{previous:Dt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Wo(c&&c.currentValue,n,u===Dt),Vu(e,t,o,n)}var Hu="__ngSimpleChanges__";function $u(e){return e[Hu]||null}function Ff(e,t){return e[Hu]=t}var ja=null;var me=function(e,t,n){ja?.(e,t,n)},Rf="svg",Pf="math";function be(e){for(;Array.isArray(e);)e=e[Se];return e}function Uu(e,t){return be(t[e])}function Ce(e,t){return be(t[e.index])}function Bi(e,t){return e.data[t]}function kf(e,t){return e[t]}function $e(e,t){let n=t[e];return Pe(n)?n:n[Se]}function Hi(e){return(e[g]&128)===128}function It(e,t){return t==null?null:e[t]}function Gu(e){e[ht]=0}function $i(e){e[g]&1024||(e[g]|=1024,Hi(e)&&Pr(e))}function Lf(e,t){for(;e>0;)t=t[At],e--;return t}function Rr(e){return!!(e[g]&9216||e[X]?.dirty)}function qo(e){e[ke].changeDetectionScheduler?.notify(9),e[g]&64&&(e[g]|=1024),Rr(e)&&Pr(e)}function Pr(e){e[ke].changeDetectionScheduler?.notify(0);let t=Xe(e);for(;t!==null&&!(t[g]&8192||(t[g]|=8192,!Hi(t)));)t=Xe(t)}function zu(e,t){if((e[g]&256)===256)throw new v(911,!1);e[Re]===null&&(e[Re]=[]),e[Re].push(t)}function Vf(e,t){if(e[Re]===null)return;let n=e[Re].indexOf(t);n!==-1&&e[Re].splice(n,1)}function Xe(e){let t=e[ie];return ot(t)?t[ie]:t}var C={lFrame:ec(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Zo=!1;function jf(){return C.lFrame.elementDepthCount}function Bf(){C.lFrame.elementDepthCount++}function Hf(){C.lFrame.elementDepthCount--}function Wu(){return C.bindingsEnabled}function $f(){return C.skipHydrationRootTNode!==null}function Uf(e){return C.skipHydrationRootTNode===e}function Gf(){C.skipHydrationRootTNode=null}function A(){return C.lFrame.lView}function q(){return C.lFrame.tView}function Ui(e){return C.lFrame.contextLView=e,e[U]}function Gi(e){return C.lFrame.contextLView=null,e}function se(){let e=qu();for(;e!==null&&e.type===64;)e=e.parent;return e}function qu(){return C.lFrame.currentTNode}function zf(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function xt(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function Zu(){return C.lFrame.isParent}function Wf(){C.lFrame.isParent=!1}function qf(){return C.lFrame.contextLView}function Yu(){return Zo}function Ba(e){let t=Zo;return Zo=e,t}function Zf(){return C.lFrame.bindingIndex}function Yf(e){return C.lFrame.bindingIndex=e}function ln(){return C.lFrame.bindingIndex++}function Qu(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Qf(){return C.lFrame.inI18n}function Kf(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,Yo(t)}function Jf(){return C.lFrame.currentDirectiveIndex}function Yo(e){C.lFrame.currentDirectiveIndex=e}function Xf(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ku(e){C.lFrame.currentQueryIndex=e}function ep(e){let t=e[D];return t.type===2?t.declTNode:t.type===1?e[De]:null}function Ju(e,t,n){if(n&_.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&_.Host);)if(o=ep(i),o===null||(i=i[At],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=Xu();return r.currentTNode=t,r.lView=e,!0}function zi(e){let t=Xu(),n=e[D];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Xu(){let e=C.lFrame,t=e===null?null:e.child;return t===null?ec(e):t}function ec(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function tc(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var nc=tc;function Wi(){let e=tc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function tp(e){return(C.lFrame.contextLView=Lf(e,C.lFrame.contextLView))[U]}function Te(){return C.lFrame.selectedIndex}function et(e){C.lFrame.selectedIndex=e}function rc(){let e=C.lFrame;return Bi(e.tView,e.selectedIndex)}function np(){return C.lFrame.currentNamespace}var oc=!0;function qi(){return oc}function Zi(e){oc=e}function rp(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Bu(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Yi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[ht]+=65536),(a>14>16&&(e[g]&3)===t&&(e[g]+=16384,Ha(a,i)):Ha(a,i)}var yt=-1,tt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function ip(e){return e instanceof tt}function sp(e){return(e.flags&8)!==0}function ap(e){return(e.flags&16)!==0}function Qo(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function Xo(e,t){let n=dp(e),r=t;for(;n>0;)r=r[At],n--;return r}var ei=!0;function Ua(e){let t=ei;return ei=e,t}var fp=256,sc=fp-1,ac=5,pp=0,ye={};function hp(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Qt)&&(r=n[Qt]),r==null&&(r=n[Qt]=pp++);let o=r&sc,i=1<>ac)]|=i}function hr(e,t){let n=uc(e,t);if(n!==-1)return n;let r=t[D];r.firstCreatePass&&(e.injectorIndex=t.length,Fo(r.data,e),Fo(t,null),Fo(r.blueprint,null));let o=cc(e,t),i=e.injectorIndex;if(lp(o)){let s=Jo(o),a=Xo(o,t),u=a[D].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Fo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function uc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function cc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=gc(o),r===null)return yt;if(n++,o=o[At],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return yt}function ti(e,t,n){hp(e,t,n)}function lc(e,t,n){if(n&_.Optional||e!==void 0)return e;Pi(t,"NodeInjector")}function dc(e,t,n,r){if(n&_.Optional&&r===void 0&&(r=null),!(n&(_.Self|_.Host))){let o=e[Et],i=te(void 0);try{return o?o.get(t,r,n&_.Optional):wu(t,r,n&_.Optional)}finally{te(i)}}return lc(r,t,n)}function fc(e,t,n,r=_.Default,o){if(e!==null){if(t[g]&2048&&!(r&_.Self)){let s=Dp(e,t,n,r,ye);if(s!==ye)return s}let i=pc(e,t,n,r,ye);if(i!==ye)return i}return dc(t,n,r,o)}function pc(e,t,n,r,o){let i=yp(n);if(typeof i=="function"){if(!Ju(t,e,r))return r&_.Host?lc(o,n,r):dc(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&_.Optional))Pi(n);else return s}finally{nc()}}else if(typeof i=="number"){let s=null,a=uc(e,t),u=yt,c=r&_.Host?t[pe][De]:null;for((a===-1||r&_.SkipSelf)&&(u=a===-1?cc(e,t):t[a+8],u===yt||!za(r,!1)?a=-1:(s=t[D],a=Jo(u),t=Xo(u,t)));a!==-1;){let l=t[D];if(Ga(i,a,l.data)){let d=gp(a,t,n,s,r,c);if(d!==ye)return d}u=t[a+8],u!==yt&&za(r,t[D].data[a+8]===c)&&Ga(i,a,t)?(s=l,a=Jo(u),t=Xo(u,t)):a=-1}}return o}function gp(e,t,n,r,o,i){let s=t[D],a=s.data[e+8],u=r==null?Fr(a)&&ei:r!=s&&(a.type&3)!==0,c=o&_.Host&&i===a,l=mp(a,s,n,u,c);return l!==null?bt(t,s,l,a):ye}function mp(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,u=e.directiveStart,c=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:c;for(let f=d;f=u&&h.type===n)return f}if(o){let f=s[u];if(f&&Le(f)&&f.type===n)return u}return null}function bt(e,t,n,r){let o=e[n],i=t.data;if(ip(o)){let s=o;s.resolving&&nf(tf(i[n]));let a=Ua(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?te(s.injectImpl):null,l=Ju(e,r,_.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&rp(n,i[n],t)}finally{c!==null&&te(c),Ua(a),s.resolving=!1,nc()}}return o}function yp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Qt)?e[Qt]:void 0;return typeof t=="number"?t>=0?t&sc:vp:t}function Ga(e,t,n){let r=1<>ac)]&r)}function za(e,t){return!(e&_.Self)&&!(e&_.Host&&t)}var gr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fc(this._tNode,this._lView,t,Tr(r),n)}};function vp(){return new gr(se(),A())}function hc(e){return Mr(()=>{let t=e.prototype.constructor,n=t[sr]||ni(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[sr]||ni(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ni(e){return yu(e)?()=>{let t=ni(W(e));return t&&t()}:vt(e)}function Dp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[g]&2048&&!(s[g]&512);){let a=pc(i,s,n,r|_.Self,ye);if(a!==ye)return a;let u=i.parent;if(!u){let c=s[Pu];if(c){let l=c.get(n,ye,r);if(l!==ye)return l}u=gc(s),s=s[At]}i=u}return o}function gc(e){let t=e[D],n=t.type;return n===2?t.declTNode:n===1?e[De]:null}function Wa(e,t=null,n=null,r){let o=Cp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Cp(e,t=null,n=null,r,o=new Set){let i=[n||ne,Df(e)];return r=r||(typeof e=="object"?void 0:oe(e)),new Xt(i,t||Vi(),r||null,o)}var Ve=class e{static THROW_IF_NOT_FOUND=Kt;static NULL=new cr;static create(t,n){if(Array.isArray(t))return Wa({name:""},n,t,"");{let r=t.name??"";return Wa({name:r},t.parent,t.providers,r)}}static \u0275prov=R({token:e,providedIn:"any",factory:()=>x(Iu)});static __NG_ELEMENT_ID__=-1};var Ep=new I("");Ep.__NG_ELEMENT_ID__=e=>{let t=se();if(t===null)throw new v(204,!1);if(t.type&2)return t.value;if(e&_.Optional)return null;throw new v(204,!1)};var mc=!1,dn=(()=>{class e{static __NG_ELEMENT_ID__=wp;static __NG_ENV_ID__=n=>n}return e})(),ri=class extends dn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return zu(this._lView,t),()=>Vf(this._lView,t)}};function wp(){return new ri(A())}var Mt=class{},kr=new I("",{providedIn:"root",factory:()=>!1});var yc=new I(""),Qi=new I(""),Lr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new qt(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();var oi=class extends Ie{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Fu()&&(this.destroyRef=y(dn,{optional:!0})??void 0,this.pendingTasks=y(Lr,{optional:!0})??void 0)}emit(t){let n=E(null);try{super.next(t)}finally{E(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof z&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},re=oi;function mr(...e){}function vc(e){let t,n;function r(){e=mr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function qa(e){return queueMicrotask(()=>e()),()=>{e=mr}}var Ki="isAngularZone",yr=Ki+"_ID",_p=0,H=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new re(!1);onMicrotaskEmpty=new re(!1);onStable=new re(!1);onError=new re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=mc}=t;if(typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Mp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Ki)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Ip,mr,mr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Ip={};function Ji(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function bp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){vc(()=>{e.callbackScheduled=!1,ii(e),e.isCheckStableRunning=!0,Ji(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ii(e)}function Mp(e){let t=()=>{bp(e)},n=_p++;e._inner=e._inner.fork({name:"angular",properties:{[Ki]:!0,[yr]:n,[yr+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(Sp(u))return r.invokeTask(i,s,a,u);try{return Za(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ya(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return Za(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Tp(u)&&t(),Ya(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ii(e),Ji(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ii(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Za(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ya(e){e._nesting--,Ji(e)}var vr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new re;onMicrotaskEmpty=new re;onStable=new re;onError=new re;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Sp(e){return Dc(e,"__ignore_ng_zone__")}function Tp(e){return Dc(e,"__scheduler_tick__")}function Dc(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var je=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Np=new I("",{providedIn:"root",factory:()=>{let e=y(H),t=y(je);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Qa(e,t){return mu(e,t)}function Ap(e){return mu(gu,e)}var Ot=(Qa.required=Ap,Qa);function xp(){return Cc(se(),A())}function Cc(e,t){return new fn(Ce(e,t))}var fn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=xp}return e})();function Ec(e){return(e.flags&128)===128}var wc=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(wc||{}),_c=new Map,Op=0;function Fp(){return Op++}function Rp(e){_c.set(e[Or],e)}function si(e){_c.delete(e[Or])}var Ka="__ngContext__";function nt(e,t){Pe(t)?(e[Ka]=t[Or],Rp(t)):e[Ka]=t}function Ic(e){return Mc(e[tn])}function bc(e){return Mc(e[fe])}function Mc(e){for(;e!==null&&!ot(e);)e=e[fe];return e}var ai;function Sc(e){ai=e}function Pp(){if(ai!==void 0)return ai;if(typeof document<"u")return document;throw new v(210,!1)}var Xi=new I("",{providedIn:"root",factory:()=>kp}),kp="ng",es=new I(""),Ue=new I("",{providedIn:"platform",factory:()=>"unknown"});var ts=new I("",{providedIn:"root",factory:()=>Pp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Lp="h",Vp="b";var Tc=!1,jp=new I("",{providedIn:"root",factory:()=>Tc});var Bp=()=>null;function ns(e,t,n=!1){return Bp(e,t,n)}var ve=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(ve||{});var ui=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Wd})`}};function rs(e){return e instanceof ui?e.changingThisBreaksApplicationSecurity:e}var Be=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Be||{}),Me=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Me||{}),Hp;function os(e,t){return Hp(e,t)}function gt(e,t,n,r,o){if(r!=null){let i,s=!1;ot(r)?i=r:Pe(r)&&(s=!0,r=r[Se]);let a=be(r);e===0&&n!==null?o==null?Oc(t,n,a):ci(t,n,a,o||null,!0):e===1&&n!==null?ci(t,n,a,o||null,!0):e===2?nh(t,a,s):e===3&&t.destroyNode(a),i!=null&&oh(t,e,i,n,o)}}function $p(e,t){return e.createText(t)}function Up(e,t,n){e.setValue(t,n)}function Nc(e,t,n){return e.createElement(t,n)}function Gp(e,t){Ac(e,t),t[Se]=null,t[De]=null}function zp(e,t,n,r,o,i){r[Se]=o,r[De]=t,Vr(e,r,n,1,o,i)}function Ac(e,t){t[ke].changeDetectionScheduler?.notify(10),Vr(e,t,t[$],2,null,null)}function Wp(e){let t=e[tn];if(!t)return Ro(e[D],e);for(;t;){let n=null;if(Pe(t))n=t[tn];else{let r=t[Z];r&&(n=r)}if(!n){for(;t&&!t[fe]&&t!==e;)Pe(t)&&Ro(t[D],t),t=t[ie];t===null&&(t=e),Pe(t)&&Ro(t[D],t),n=t&&t[fe]}t=n}}function qp(e,t,n,r){let o=Z+r,i=n.length;r>0&&(n[o-1][fe]=t),r0&&(e[n-1][fe]=r[fe]);let i=_u(e,Z+t);Gp(r[D],r);let s=i[_t];s!==null&&s.detachView(i[D]),r[ie]=null,r[fe]=null,r[g]&=-129}return r}function as(e,t){if(!(t[g]&256)){let n=t[$];n.destroyNode&&Vr(e,t,n,3,null,null),Wp(t)}}function Ro(e,t){if(t[g]&256)return;let n=E(null);try{t[g]&=-129,t[g]|=256,t[X]&&yo(t[X]),Yp(e,t),Zp(e,t),t[D].type===1&&t[$].destroy();let r=t[wt];if(r!==null&&ot(t[ie])){r!==t[ie]&&is(r,t);let o=t[_t];o!==null&&o.detachView(e)}si(t)}finally{E(n)}}function Zp(e,t){let n=e.cleanup,r=t[lr];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[lr]=null);let o=t[Re];if(o!==null){t[Re]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===ve.None||i===ve.Emulated)return null}return Ce(r,n)}}function ci(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Oc(e,t,n){e.appendChild(t,n)}function Ja(e,t,n,r,o){r!==null?ci(e,t,n,r,o):Oc(e,t,n)}function Jp(e,t){return e.parentNode(t)}function Xp(e,t,n){return th(e,t,n)}function eh(e,t,n){return e.type&40?Ce(e,n):null}var th=eh,Xa;function us(e,t,n,r){let o=Qp(e,r,t),i=t[$],s=r.parent||t[De],a=Xp(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;u-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(de(r))return!1;s=!0}}}}return de(r)||s}function de(e){return(e&1)===0}function dh(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!de(s)&&(t+=eu(i,o),o=""),r=s,i=i||!de(r);n++}return o!==""&&(t+=eu(i,o)),t}function mh(e){return e.map(gh).join(",")}function yh(e){let t=[],n=[],r=1,o=2;for(;ree&&Lc(e,t,ee,!1),me(s?2:0,o),n(r,o)}finally{et(i),me(s?3:1,o)}}function Hc(e,t,n){if(Lu(t)){let r=E(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Ih(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return $f()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function tu(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Be.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?nu(r,n,c,a,u):nu(r,n,c,a)}return r}function nu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function bh(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Ah(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Fr(n)&&Lh(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||hr(n,t),nt(r,t);let s=n.initialInputs;for(let a=o;a{Pr(e.lView)},consumerOnSignalRead(){this.lView[X]=this}});function Kh(e){let t=e[X]??Object.create(Jh);return t.lView=e,t}var Jh=O(N({},zt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Xe(e.lView);for(;t&&!nl(t[D]);)t=Xe(t);t&&$i(t)},consumerOnSignalRead(){this.lView[X]=this}});function nl(e){return e.type!==2}function rl(e){if(e[dr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[dr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[g]&8192)}}var Xh=100;function ol(e,t=!0,n=0){let o=e[ke].rendererFactory,i=!1;i||o.begin?.();try{eg(e,n)}catch(s){throw t&&Kc(e,s),s}finally{i||o.end?.()}}function eg(e,t){let n=Yu();try{Ba(!0),pi(e,t);let r=0;for(;Rr(e);){if(r===Xh)throw new v(103,!1);r++,pi(e,1)}}finally{Ba(n)}}function tg(e,t,n,r){let o=t[g];if((o&256)===256)return;let i=!1,s=!1;zi(t);let a=!0,u=null,c=null;i||(nl(e)?(c=qh(t),u=Nn(c)):qs()===null?(a=!1,c=Kh(t),u=Nn(c)):t[X]&&(yo(t[X]),t[X]=null));try{Gu(t),Yf(e.bindingStartIndex),n!==null&&Bc(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&nr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&rr(t,f,0,null),xo(t,0)}if(s||ng(t),rl(t),il(t,0),e.contentQueries!==null&&Qc(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&nr(t,f)}else{let f=e.contentHooks;f!==null&&rr(t,f,1),xo(t,1)}vh(e,t);let d=e.components;d!==null&&al(t,d,0);let p=e.viewQuery;if(p!==null&&fi(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&nr(t,f)}else{let f=e.viewHooks;f!==null&&rr(t,f,2),xo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ao]){for(let f of t[Ao])f();t[Ao]=null}i||(t[g]&=-73)}catch(l){throw i||Pr(t),l}finally{c!==null&&(go(c,u),a&&Yh(c)),Wi()}}function il(e,t){for(let n=Ic(e);n!==null;n=bc(n))for(let r=Z;r-1&&(ss(t,r),_u(n,r))}this._attachedToViewContainer=!1}as(this._lView[D],this._lView)}onDestroy(t){zu(this._lView,t)}markForCheck(){vs(this._cdRefInjectingView||this._lView,4)}markForRefresh(){$i(this._cdRefInjectingView||this._lView)}detach(){this._lView[g]&=-129}reattach(){qo(this._lView),this._lView[g]|=128}detectChanges(){this._lView[g]|=1024,ol(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=zo(this._lView),n=this._lView[wt];n!==null&&!t&&is(n,this._lView),Ac(this._lView[D],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t;let n=zo(this._lView),r=this._lView[wt];r!==null&&!n&&xc(r,this._lView),qo(this._lView)}};var cE=new RegExp(`^(\\d+)*(${Vp}|${Lp})*(.*)`);var og=()=>null;function Ds(e,t){return og(e,t)}var hi=class{},Cr=class{},gi=class{resolveComponentFactory(t){throw Error(`No component factory found for ${oe(t)}.`)}},sn=class{static NULL=new gi},St=class{},Br=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>ig()}return e})();function ig(){let e=A(),t=se(),n=$e(t.index,e);return(Pe(n)?n:e)[$]}var sg=(()=>{class e{static \u0275prov=R({token:e,providedIn:"root",factory:()=>null})}return e})();function mi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Rc(e,n,i.join(" "))}}function pg(e,t,n){let r=e.projection=[];for(let o=0;o!1;function mg(e,t,n){return gg(e,t,n)}var ou=new Set;function Ge(e){ou.has(e)||(ou.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function yg(e){return typeof e=="function"&&e[J]!==void 0}function V(e,t){Ge("NgSignals");let n=ra(e),r=n[J];return t?.equal&&(r.equal=t.equal),n.set=o=>On(r,o),n.update=o=>oa(r,o),n.asReadonly=vg.bind(n),n}function vg(){let e=this[J];if(e.readonlyFn===void 0){let t=()=>this();t[J]=e,e.readonlyFn=t}return e.readonlyFn}function ul(e){return yg(e)&&typeof e.set=="function"}var Dg=!0,Tt=class{};var Er=class extends Tt{injector;componentFactoryResolver=new yi(this);instance=null;constructor(t){super();let n=new Xt([...t.providers,{provide:Tt,useValue:this},{provide:sn,useValue:this.componentFactoryResolver}],t.parent||Vi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Cg(e,t,n=null){return new Er({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Eg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Tu(!1,n.type),o=r.length>0?Cg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(x(Je))})}return e})();function Y(e){return Mr(()=>{let t=cl(e),n=O(N({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===wc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Eg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ve.Emulated,styles:e.styles||ne,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ge("NgStandalone"),ll(n);let r=e.dependencies;return n.directiveDefs=su(r,!1),n.pipeDefs=su(r,!0),n.id=Ig(n),n})}function wg(e){return Nr(e)||Mu(e)}function _g(e){return e!==null}function Hr(e){return Mr(()=>({type:e.type,bootstrap:e.bootstrap||ne,declarations:e.declarations||ne,imports:e.imports||ne,exports:e.exports||ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function iu(e,t){if(e==null)return Dt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Be.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Be.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Ft(e){return Mr(()=>{let t=cl(e);return ll(t),t})}function cl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Dt,exportAs:e.exportAs||null,standalone:e.standalone??Dg,signals:e.signals===!0,selectors:e.selectors||ne,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:iu(e.inputs,t),outputs:iu(e.outputs),debugInfo:null}}function ll(e){e.features?.forEach(t=>t(e))}function su(e,t){if(!e)return null;let n=t?Su:wg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(_g)}function Ig(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function bg(e){return Object.getPrototypeOf(e.prototype).constructor}function Rt(e){let t=bg(e.type),n=!0,r=[e];for(;t;){let o;if(Le(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Jn(e.inputs),s.inputTransforms=Jn(e.inputTransforms),s.declaredInputs=Jn(e.declaredInputs),s.outputs=Jn(e.outputs);let a=o.hostBindings;a&&Ag(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Tg(e,u),c&&Ng(e,c),Mg(e,o),Zd(e.outputs,o.outputs),Le(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=rn(o.hostAttrs,n=rn(n,o.hostAttrs))}}function Jn(e){return e===Dt?{}:e===ne?[]:e}function Tg(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Ng(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Ag(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function He(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function xg(e,t,n,r){let o=He(e,t,n);return He(e,t+1,r)||o}function Og(e){return(e.flags&32)===32}function Fg(e,t,n,r,o,i,s,a,u){let c=t.consts,l=pn(t,e,4,s||null,a||null);Wc(t,n,l,It(c,u)),Yi(t,l);let d=l.tView=ds(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Ci(e,t,n,r,o,i,s,a,u,c){let l=n+ee,d=t.firstCreatePass?Fg(l,t,e,r,o,i,s,a,u):t.data[l];xt(d,!1);let p=Rg(t,e,d,n);qi()&&us(t,e,p,d),nt(p,e);let f=Bh(p,e,p,d);return e[l]=f,fs(e,f),mg(f,d,e),ji(d)&&$c(t,e,d),u!=null&&Uc(e,d,c),d}function ze(e,t,n,r,o,i,s,a){let u=A(),c=q(),l=It(c.consts,i);return Ci(u,c,e,t,n,r,o,l,s,a),ze}var Rg=Pg;function Pg(e,t,n,r){return Zi(!0),t[$].createComment("")}var kg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();var dl=new I("");function hn(e){return!!e&&typeof e.then=="function"}function fl(e){return!!e&&typeof e.subscribe=="function"}var Lg=new I("");var pl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=y(Lg,{optional:!0})??[];injector=y(Ve);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ou(this.injector,o);if(hn(i))n.push(i);else if(fl(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vg=(()=>{class e{static \u0275prov=R({token:e,providedIn:"root",factory:()=>new Ei})}return e})(),Ei=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},jg=new I("");function Bg(){na(()=>{throw new v(600,!1)})}function Hg(e){return e.isBoundToModule}var $g=10;function Ug(e,t,n){try{let r=n();return hn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var gn=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=y(Np);afterRenderManager=y(kg);zonelessEnabled=y(kr);rootEffectScheduler=y(Vg);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new Ie;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=y(Lr).hasPendingTasks.pipe(Ke(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=y(Je);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Cr;if(!this._injector.get(pl).done){let p=!o&&vf(n),f=!1;throw new v(405,f)}let s;o?s=n:s=this._injector.get(sn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Hg(s)?void 0:this._injector.get(Tt),u=r||s.selector,c=s.create(Ve.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(dl,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),or(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new v(101,!1);let n=E(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,E(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(St,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++<$g;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o,notifyErrorHandler:i}of this.allViews)Gg(o,i,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Rr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;or(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(jg,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>or(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function or(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Gg(e,t,n,r){if(!n&&!Rr(e))return;ol(e,t,n&&!r?0:1)}function zg(e,t,n,r){return He(e,ln(),n)?t+ar(n)+r:Ne}function Wg(e,t,n,r,o,i){let s=Zf(),a=xg(e,s,n,o);return Qu(2),a?t+ar(n)+r+ar(o)+i:Ne}function Xn(e,t){return e<<17|t<<2}function rt(e){return e>>17&32767}function qg(e){return(e&2)==2}function Zg(e,t){return e&131071|t<<17}function wi(e){return e|2}function Nt(e){return(e&131068)>>2}function Po(e,t){return e&-131069|t<<2}function Yg(e){return(e&1)===1}function _i(e){return e|1}function Qg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=rt(s),u=Nt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||cn(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let p=rt(e[a+1]);e[r+1]=Xn(p,a),p!==0&&(e[p+1]=Po(e[p+1],r)),e[a+1]=Zg(e[a+1],r)}else e[r+1]=Xn(a,0),a!==0&&(e[a+1]=Po(e[a+1],r)),a=r;else e[r+1]=Xn(u,0),a===0?a=r:e[u+1]=Po(e[u+1],r),u=r;c&&(e[r+1]=wi(e[r+1])),au(e,l,r,!0),au(e,l,r,!1),Kg(t,l,e,r,i),s=Xn(a,u),i?t.classBindings=s:t.styleBindings=s}function Kg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&cn(i,t)>=0&&(n[r+1]=_i(n[r+1]))}function au(e,t,n,r){let o=e[n+1],i=t===null,s=r?rt(o):Nt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Jg(u,t)&&(a=!0,e[s+1]=r?_i(c):wi(c)),s=r?rt(c):Nt(c)}a&&(e[n+1]=r?wi(o):_i(o))}function Jg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?cn(e,t)>=0:!1}function it(e,t,n){let r=A(),o=ln();if(He(r,o,t)){let i=q(),s=rc();zc(i,s,r,e,t,r[$],n,!1)}return it}function uu(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";ps(e,n,i[s],s,r)}function Cs(e,t){return Xg(e,t,null,!0),Cs}function Xg(e,t,n,r){let o=A(),i=q(),s=Qu(2);if(i.firstUpdatePass&&tm(i,e,s,r),t!==Ne&&He(o,s,t)){let a=i.data[Te()];sm(i,a,o,o[$],e,o[s+1]=am(t,n),r,s)}}function em(e,t){return t>=e.expandoStartIndex}function tm(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Te()],s=em(e,n);um(i,r)&&t===null&&!s&&(t=!1),t=nm(o,i,t,r),Qg(o,i,t,n,s,r)}}function nm(e,t,n,r){let o=Xf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ko(null,e,t,n,r),n=an(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ko(o,e,t,n,r),i===null){let u=rm(e,t,r);u!==void 0&&Array.isArray(u)&&(u=ko(null,e,t,u[1],r),u=an(u,t.attrs,r),om(e,t,r,u))}else i=im(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function rm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Nt(r)!==0)return e[rt(r)]}function om(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[rt(o)]=r}function im(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[o+1];p===Ne&&(p=d?ne:void 0);let f=d?To(p,r):l===r?p:void 0;if(c&&!wr(f)&&(f=To(u,r)),wr(f)&&(a=f,s))return a;let h=e[o+1];o=s?rt(h):Nt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=To(u,r))}return a}function wr(e){return e!==void 0}function am(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=oe(rs(e)))),e}function um(e,t){return(e.flags&(t?8:16))!==0}var Ii=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Lo(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function cm(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=Lo(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),f=t[u],h=Lo(s,p,u,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,u--;continue}let T=n(i,c),k=n(s,p),P=n(i,l);if(Object.is(P,k)){let j=n(u,f);Object.is(j,T)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new _r,o??=du(e,i,s,n),bi(e,r,i,P))e.updateValue(i,l),i++,s++;else if(o.has(P))r.set(T,e.detach(i)),s--;else{let j=e.create(i,t[i]);e.attach(i,j),i++,s++}}for(;i<=u;)lu(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,p=Lo(i,l,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new _r,o??=du(e,i,s,n);let f=n(i,d);if(bi(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!c.done;)lu(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function bi(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function lu(e,t,n,r,o){if(bi(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function du(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var _r=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function st(e,t){Ge("NgControlFlow");let n=A(),r=ln(),o=n[r]!==Ne?n[r]:-1,i=o!==-1?Ir(n,ee+o):void 0,s=0;if(He(n,r,e)){let a=E(null);try{if(i!==void 0&&el(i,s),e!==-1){let u=ee+e,c=Ir(n,u),l=Ni(n[D],u),d=Ds(c,l.tView.ssrId),p=gs(n,l,t,{dehydratedView:d});ys(c,p,s,ms(l,d))}}finally{E(a)}}else if(i!==void 0){let a=Xc(i,s);a!==void 0&&(a[U]=t)}}var Mi=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Z}};function hl(e){return e}var Si=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Pt(e,t,n,r,o,i,s,a,u,c,l,d,p){Ge("NgControlFlow");let f=A(),h=q(),T=u!==void 0,k=A(),P=a?s.bind(k[pe][U]):s,j=new Si(T,P);k[ee+e]=j,Ci(f,h,e+1,t,n,r,o,It(h.consts,i)),T&&Ci(f,h,e+2,u,c,l,d,It(h.consts,p))}var Ti=class extends Ii{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-Z}at(t){return this.getLView(t)[U].$implicit}attach(t,n){let r=n[en];this.needsIndexUpdate||=t!==this.length,ys(this.lContainer,n,t,ms(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,lm(this.lContainer,t)}create(t,n){let r=Ds(this.lContainer,this.templateTNode.tView.ssrId),o=gs(this.hostLView,this.templateTNode,new Mi(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){as(t[D],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[U].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Zi(!0),Nc(r,o,np()));function gl(){return A()}var br="en-US";var hm=br;function gm(e){typeof e=="string"&&(hm=e.toLowerCase().replace(/_/g,"-"))}var mm=(e,t,n)=>{};function Ee(e,t,n,r){let o=A(),i=q(),s=se();return ml(i,o,o[$],s,e,t,r),Ee}function ym(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function ml(e,t,n,r,o,i,s){let a=ji(r),c=e.firstCreatePass&&$h(e),l=t[U],d=Hh(t),p=!0;if(r.type&3||s){let T=Ce(r,t),k=s?s(T):T,P=d.length,j=s?ce=>s(be(ce[r.index])):r.index,_e=null;if(!s&&a&&(_e=ym(e,t,o,r.index)),_e!==null){let ce=_e.__ngLastListenerFn__||_e;ce.__ngNextListenerFn__=i,_e.__ngLastListenerFn__=i,p=!1}else{i=pu(r,t,l,i),mm(T,o,i);let ce=n.listen(k,o,i);d.push(i,ce),c&&c.push(o,j,P,P+1)}}else i=pu(r,t,l,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let T=h.length;if(T)for(let k=0;k-1?$e(e.index,t):t;vs(s,5);let a=fu(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=fu(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function mn(e=1){return tp(e)}function yl(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function b(e,t=""){let n=A(),r=q(),o=e+ee,i=r.firstCreatePass?pn(r,o,1,t,null):r.data[o],s=vm(r,n,i,t,e);n[o]=s,qi()&&us(r,n,s,i),xt(i,!1)}var vm=(e,t,n,r,o)=>(Zi(!0),$p(t[$],r));function Lt(e){return ae("",e,""),Lt}function ae(e,t,n){let r=A(),o=zg(r,e,t,n);return o!==Ne&&Jc(r,Te(),o),ae}function Es(e,t,n,r,o){let i=A(),s=Wg(i,e,t,n,r,o);return s!==Ne&&Jc(i,Te(),s),Es}function ws(e,t,n){ul(t)&&(t=t());let r=A(),o=ln();if(He(r,o,t)){let i=q(),s=rc();zc(i,s,r,e,t,r[$],n,!1)}return ws}function vl(e,t){let n=ul(e);return n&&e.set(t),n}function _s(e,t){let n=A(),r=q(),o=se();return ml(r,n,n[$],o,e,t),_s}var Dl={};function yn(e){let t=q(),n=A(),r=e+ee,o=pn(t,r,128,null,null);return xt(o,!1),yl(t,n,r,Dl),yn}function Cl(e){Ge("NgLet");let t=q(),n=A(),r=Te();return yl(t,n,r,e),e}function El(e){let t=qf(),n=kf(t,ee+e);if(n===Dl)throw new v(314,!1);return n}function Dm(e,t,n){let r=q();if(r.firstCreatePass){let o=Le(e);Ai(n,r.data,r.blueprint,o,!0),Ai(t,r.data,r.blueprint,o,!1)}}function Ai(e,t,n,r,o){if(e=W(e),Array.isArray(e))for(let i=0;i>20;if(Ct(e)||!e.multi){let f=new tt(c,o,G),h=jo(u,t,o?l:l+p,d);h===-1?(ti(hr(a,s),i,u),Vo(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=jo(u,t,l+p,d),h=jo(u,t,l,l+p),T=f>=0&&n[f],k=h>=0&&n[h];if(o&&!k||!o&&!T){ti(hr(a,s),i,u);let P=wm(o?Em:Cm,n.length,o,r,c);!o&&k&&(n[h].providerFactory=P),Vo(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=wl(n[o?h:f],c,!o&&r);Vo(i,e,f>-1?f:h,P)}!o&&r&&k&&n[h].componentProviders++}}}function Vo(e,t,n,r){let o=Ct(t),i=_f(t);if(o||i){let u=(i?W(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function wl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function jo(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>Dm(r,o?o(e):e,t)}}var _m=(()=>{class e{zone=y(H);changeDetectionScheduler=y(Mt);applicationRef=y(gn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Im({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new H(O(N({},bm()),{scheduleInRootZone:n})),[{provide:H,useFactory:e},{provide:Jt,multi:!0,useFactory:()=>{let r=y(_m,{optional:!0});return()=>r.initialize()}},{provide:Jt,multi:!0,useFactory:()=>{let r=y(Mm);return()=>{r.initialize()}}},t===!0?{provide:yc,useValue:!0}:[],{provide:Qi,useValue:n??mc}]}function bm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Mm=(()=>{class e{subscription=new z;initialized=!1;zone=y(H);pendingTasks=y(Lr);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{H.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _l=(()=>{class e{appRef=y(gn);taskService=y(Lr);ngZone=y(H);zonelessEnabled=y(kr);disableScheduling=y(yc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new z;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(yr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(y(Qi,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof vr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?qa:vc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(yr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,qa(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Il(){return Ge("NgZoneless"),Ar([{provide:Mt,useExisting:_l},{provide:H,useClass:vr},{provide:kr,useValue:!0},{provide:Qi,useValue:!1},[]])}function Sm(){return typeof $localize<"u"&&$localize.locale||br}var bs=new I("",{providedIn:"root",factory:()=>y(bs,_.Optional|_.SkipSelf)||Sm()});var Oi=new I("");function er(e){return!e.moduleRef}function Tm(e){let t=er(e)?e.r3Injector:e.moduleRef.injector,n=t.get(H);return n.run(()=>{er(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(je,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),er(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Oi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Oi);s.add(i),e.moduleRef.onDestroy(()=>{or(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Ug(r,n,()=>{let i=t.get(pl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(bs,br);if(gm(s||br),er(e)){let a=t.get(gn);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Nm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Nm(e,t){let n=e.injector.get(gn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new v(-403,!1);t.push(e)}var ir=null;function Am(e=[],t){return Ve.create({name:t,providers:[{provide:xr,useValue:"platform"},{provide:Oi,useValue:new Set([()=>ir=null])},...e]})}function xm(e=[]){if(ir)return ir;let t=Am(e);return ir=t,Bg(),Om(t),t}function Om(e){let t=e.get(es,null);Ou(e,()=>{t?.forEach(n=>n())})}var Ms=(()=>{class e{static __NG_ELEMENT_ID__=Fm}return e})();function Fm(e){return Rm(se(),A(),(e&16)===16)}function Rm(e,t,n){if(Fr(e)&&!n){let r=$e(e.index,t);return new on(r,r)}else if(e.type&175){let r=t[pe];return new on(r,t)}return null}function bl(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=xm(r),i=[Im({}),{provide:Mt,useExisting:_l},...n||[]],s=new Er({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Tm({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Ss(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ue(e,t){Ge("NgSignals");let n=Xs(e);return t?.equal&&(n[J].equal=t.equal),n}function Ae(e){let t=E(null);try{return e()}finally{E(t)}}var hu=class{[J];constructor(t){this[J]=t}destroy(){this[J].destroy()}};var Sl=null;function Vt(){return Sl}function Tl(e){Sl??=e}var $r=class{};var We=new I("");function Nl(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Ts="browser",Pm="server";function Al(e){return e===Ts}function Ns(e){return e===Pm}var Ur=class{};var xs=class extends $r{supportsDOMEvents=!0},Os=class e extends xs{static makeCurrent(){Tl(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Lm();return n==null?null:Vm(n)}resetBaseElement(){vn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Nl(document.cookie,t)}},vn=null;function Lm(){return vn=vn||document.querySelector("base"),vn?vn.getAttribute("href"):null}function Vm(e){return new URL(e,document.baseURI).pathname}var jm=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Fs=new I(""),Ll=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new v(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(x(Fs),x(H))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Gr=class{_doc;constructor(t){this._doc=t}manager},Rs="ng-app-id";function xl(e){for(let t of e)t.remove()}function Ol(e,t){let n=t.createElement("style");return n.textContent=e,n}function Bm(e,t,n){let r=e.head?.querySelectorAll(`style[${Rs}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(Rs),n.set(o.textContent,{usage:0,elements:[o]}))}function Fl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Vl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Ns(i),Bm(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Ol);r?.forEach(o=>this.addUsage(o,this.external,Fl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(xl(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])xl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Ol(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Fl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Rs,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(x(We),x(Xi),x(ts,8),x(Ue))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),As={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"},ks=/%COMP%/g,jl="%COMP%",Hm=`_nghost-${jl}`,$m=`_ngcontent-${jl}`,Um=!0,Gm=new I("",{providedIn:"root",factory:()=>Um});function zm(e){return $m.replace(ks,e)}function Wm(e){return Hm.replace(ks,e)}function Bl(e,t){return t.map(n=>n.replace(ks,e))}var Rl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.platformIsServer=Ns(a),this.defaultRenderer=new Dn(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ve.ShadowDom&&(r=O(N({},r),{encapsulation:ve.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof zr?o.applyToHost(n):o instanceof Cn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case ve.Emulated:i=new zr(u,c,r,this.appId,l,s,a,d);break;case ve.ShadowDom:return new Ps(u,c,n,r,s,a,this.nonce,d);default:i=new Cn(u,c,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(x(Ll),x(Vl),x(Xi),x(Gm),x(We),x(Ue),x(H),x(ts))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Dn=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(As[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Pl(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Pl(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new v(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=As[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=As[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Me.DashCase|Me.Important)?t.style.setProperty(n,r,o&Me.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Me.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Vt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Pl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ps=class extends Dn{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Bl(o.id,o.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Cn=class extends Dn{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=u?Bl(u,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},zr=class extends Cn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,u){let c=o+"-"+r.id;super(t,n,r,i,s,a,u,c),this.contentAttr=zm(c),this.hostAttr=Wm(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},qm=(()=>{class e extends Gr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(x(We))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),kl=["alt","control","meta","shift"],Zm={"\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"},Ym={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Qm=(()=>{class e extends Gr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),kl.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=Zm[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),kl.forEach(s=>{if(s!==o){let a=Ym[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(x(We))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function Hl(e,t){return bl(N({rootComponent:e},Km(t)))}function Km(e){return{appProviders:[...ny,...e?.providers??[]],platformProviders:ty}}function Jm(){Os.makeCurrent()}function Xm(){return new je}function ey(){return Sc(document),document}var ty=[{provide:Ue,useValue:Ts},{provide:es,useValue:Jm,multi:!0},{provide:We,useFactory:ey,deps:[]}];var ny=[{provide:xr,useValue:"root"},{provide:je,useFactory:Xm,deps:[]},{provide:Fs,useClass:qm,multi:!0,deps:[We,H,Ue]},{provide:Fs,useClass:Qm,multi:!0,deps:[We]},Rl,Vl,Ll,{provide:St,useExisting:Rl},{provide:Ur,useClass:jm,deps:[]},[]];var jt=new I("AI_LANGUAGE_DETECTION_API_TOKEN");function $l(){return Ar([{provide:jt,useFactory:()=>{let e=y(Ue),t=Al(e)?window:void 0;if(t&&"ai"in t){let n=t.ai;if(n.languageDetector)return n.languageDetector}}}])}var Ul={providers:[Il(),$l()]};function Ls(e,t){let n=!t?.manualCleanup;n&&!t?.injector&&Ru(Ls);let r=n?t?.injector?.get(dn)??y(dn):null,o=ry(t?.equal),i;t?.requireSync?i=V({kind:0},{equal:o}):i=V({kind:1,value:t?.initialValue},{equal:o});let s=e.subscribe({next:a=>i.set({kind:1,value:a}),error:a=>{if(t?.rejectErrors)throw a;i.set({kind:2,error:a})}});if(t?.requireSync&&i().kind===0)throw new v(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),ue(()=>{let a=i();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new v(601,!1)}},{equal:t?.equal})}function ry(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}function oy(e){let t=e.userAgentData?.brands;return t!==void 0&&Array.isArray(t)}function Wr(){let e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):0}function Gl(){let e=navigator.userAgent.match(/Firefox\/([0-9]+)\./);return e?parseInt(e[1],10):0}function iy(){return oy(navigator)?navigator.userAgentData?.brands:[]}function Vs(){return iy()?.some(e=>e.brand==="Google Chrome")}function zl(){if(Vs())return"Google Chrome";let e=navigator.userAgent;return e.includes("Firefox")?"Firefox":e.includes("SamsungBrowser")?"Samsung Internet":e.includes("Opera")||e.includes("OPR")?"Opera":e.includes("Edge")?"Microsoft Edge (Legacy)":e.includes("Edg")?"Microsoft Edge (Chromium)":e.includes("Chrome")?"Chromium":e.includes("Safari")?"Apple Safari":"unknown"}function sy(e,t){if(e&1&&(w(0,"p")(1,"span",0),b(2,"Chrome Version: "),m(),b(3),m()),e&2){let n=mn();S(3),ae("",n.chromeVersion," ")}}function ay(e,t){if(e&1&&(w(0,"p")(1,"span",0),b(2,"Firefox Version: "),m(),b(3),m()),e&2){let n=mn();S(3),ae("",n.firefoxVersion," ")}}var qr=class e{userAgent=zl();chromeVersion=Wr();firefoxVersion=Gl();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-user-agent"]],decls:10,vars:2,consts:[[1,"label"]],template:function(n,r){n&1&&(w(0,"div")(1,"h3"),b(2,"User Agent"),m(),w(3,"p")(4,"span",0),b(5,"Browser Name: "),m(),b(6),m(),ze(7,sy,4,1,"p")(8,ay,4,1,"p"),m(),Q(9,"hr")),n&2&&(S(6),ae("",r.userAgent," "),S(),st(r.chromeVersion>0?7:r.firefoxVersion>0?8:-1))},encapsulation:2,changeDetection:0})};var Wl=129;async function uy(){if(!Vs())throw new Error("Your browser is not supported. Please use Google Chrome Dev or Canary.");if(Wr()(console.error(e),Mo(e instanceof Error?e.message:"unknown"))))}var td=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(G(Br),G(fn))};static \u0275dir=Ft({type:e})}return e})(),cy=(()=>{class e extends td{static \u0275fac=(()=>{let n;return function(o){return(n||(n=hc(e)))(o||e)}})();static \u0275dir=Ft({type:e,features:[Rt]})}return e})(),nd=new I("");var ly={provide:nd,useExisting:un(()=>Jr),multi:!0};function dy(){let e=Vt()?Vt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var fy=new I(""),Jr=(()=>{class e extends td{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!dy())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(G(Br),G(fn),G(fy,8))};static \u0275dir=Ft({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&Ee("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Is([ly]),Rt]})}return e})();var py=new I(""),hy=new I("");function rd(e){return e!=null}function od(e){return hn(e)?Qe(e):e}function id(e){let t={};return e.forEach(n=>{t=n!=null?N(N({},t),n):t}),Object.keys(t).length===0?null:t}function sd(e,t){return t.map(n=>n(e))}function gy(e){return!e.validate}function ad(e){return e.map(t=>gy(t)?t:n=>t.validate(n))}function my(e){if(!e)return null;let t=e.filter(rd);return t.length==0?null:function(n){return id(sd(n,t))}}function ud(e){return e!=null?my(ad(e)):null}function yy(e){if(!e)return null;let t=e.filter(rd);return t.length==0?null:function(n){let r=sd(n,t).map(od);return So(r).pipe(Ke(id))}}function cd(e){return e!=null?yy(ad(e)):null}function Zl(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function vy(e){return e._rawValidators}function Dy(e){return e._rawAsyncValidators}function js(e){return e?Array.isArray(e)?e:[e]:[]}function Yr(e,t){return Array.isArray(e)?e.includes(t):e===t}function Yl(e,t){let n=js(t);return js(e).forEach(o=>{Yr(n,o)||n.push(o)}),n}function Ql(e,t){return js(t).filter(n=>!Yr(e,n))}var Qr=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ud(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=cd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Bs=class extends Qr{name;get formDirective(){return null}get path(){return null}},bn=class extends Qr{_parent=null;name=null;valueAccessor=null},Hs=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Cy={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},o_=O(N({},Cy),{"[class.ng-submitted]":"isSubmitted"}),ld=(()=>{class e extends Hs{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(G(bn,2))};static \u0275dir=Ft({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Cs("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[Rt]})}return e})();var En="VALID",Zr="INVALID",Ht="PENDING",wn="DISABLED",Ut=class{},Kr=class extends Ut{value;source;constructor(t,n){super(),this.value=t,this.source=n}},_n=class extends Ut{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},In=class extends Ut{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},$t=class extends Ut{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function Ey(e){return(Xr(e)?e.validators:e)||null}function wy(e){return Array.isArray(e)?ud(e):e||null}function _y(e,t){return(Xr(t)?t.asyncValidators:e)||null}function Iy(e){return Array.isArray(e)?cd(e):e||null}function Xr(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var $s=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ae(this.statusReactive)}set status(t){Ae(()=>this.statusReactive.set(t))}_status=ue(()=>this.statusReactive());statusReactive=V(void 0);get valid(){return this.status===En}get invalid(){return this.status===Zr}get pending(){return this.status==Ht}get disabled(){return this.status===wn}get enabled(){return this.status!==wn}errors;get pristine(){return Ae(this.pristineReactive)}set pristine(t){Ae(()=>this.pristineReactive.set(t))}_pristine=ue(()=>this.pristineReactive());pristineReactive=V(!0);get dirty(){return!this.pristine}get touched(){return Ae(this.touchedReactive)}set touched(t){Ae(()=>this.touchedReactive.set(t))}_touched=ue(()=>this.touchedReactive());touchedReactive=V(!1);get untouched(){return!this.touched}_events=new Ie;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Yl(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Yl(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ql(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ql(t,this._rawAsyncValidators))}hasValidator(t){return Yr(this._rawValidators,t)}hasAsyncValidator(t){return Yr(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(O(N({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new In(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new In(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(O(N({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new _n(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new _n(!0,r))}markAsPending(t={}){this.status=Ht;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $t(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(O(N({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=wn,this.errors=null,this._forEachChild(o=>{o.disable(O(N({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Kr(this.value,r)),this._events.next(new $t(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(N({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=En,this._forEachChild(r=>{r.enable(O(N({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(O(N({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===En||this.status===Ht)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Kr(this.value,n)),this._events.next(new $t(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(O(N({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wn:En}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Ht,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=od(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new $t(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new re,this.statusChanges=new re}_calculateStatus(){return this._allControlsDisabled()?wn:this.errors?Zr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ht)?Ht:this._anyControlsHaveStatus(Zr)?Zr:En}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new _n(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new In(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Xr(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=wy(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Iy(this._rawAsyncValidators)}};var dd=new I("CallSetDisabledState",{providedIn:"root",factory:()=>Us}),Us="always";function by(e,t){return[...t.path,e]}function My(e,t,n=Us){Ty(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Ny(e,t),xy(e,t),Ay(e,t),Sy(e,t)}function Kl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Sy(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Ty(e,t){let n=vy(e);t.validator!==null?e.setValidators(Zl(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Dy(e);t.asyncValidator!==null?e.setAsyncValidators(Zl(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Kl(t._rawValidators,o),Kl(t._rawAsyncValidators,o)}function Ny(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&fd(e,t)})}function Ay(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&fd(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function fd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function xy(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Oy(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Fy(e){return Object.getPrototypeOf(e.constructor)===cy}function Ry(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Jr?n=i:Fy(i)?r=i:o=i}),o||r||n||null}function Jl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Xl(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Py=class extends $s{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Ey(n),_y(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xr(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Xl(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Jl(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Jl(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Xl(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var ky={provide:bn,useExisting:un(()=>Gs)},ed=Promise.resolve(),Gs=(()=>{class e extends bn{_changeDetectorRef;callSetDisabledState;control=new Py;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new re;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Ry(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Oy(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){My(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ed.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Ss(r);ed.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?by(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(G(Bs,9),G(py,10),G(hy,10),G(nd,10),G(Ms,8),G(dd,8))};static \u0275dir=Ft({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Is([ky]),Rt,ju]})}return e})();var Ly=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Hr({type:e});static \u0275inj=Sr({})}return e})();var pd=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:dd,useValue:n.callSetDisabledState??Us}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Hr({type:e});static \u0275inj=Sr({imports:[Ly]})}return e})();var jy=111,eo=class e{#r=new AbortController;#e=y(jt);#t=V(void 0);detector=this.#t.asReadonly();#n=V(null);capabilities=this.#n.asReadonly();async createCapabilities(){if(!this.#e)throw new Error("Your browser doesn't support the Prompt API. If you are on Chrome, join the Early Preview Program to enable it.");let t=await this.#e.capabilities();this.#n.set(t)}async destroyCapabilities(){this.#n.set(null)}async detect(t,n=3){if(!this.#e)throw new Error("Your browser doesn't support the Language Detection API. If you are on Chrome, join the Early Preview Program to enable it.");let r=this.detector();if(!r)throw new Error("Failed to create the LanguageDetector.");let o=Math.min(n,jy);return(await r.detect(t)).slice(0,o).map(a=>O(N({},a),{name:this.languageTagToHumanReadable(a.detectedLanguage)}))}destroyDetector(){let t=this.detector();t&&(t.destroy(),console.log("Destroy the language detector."),this.#t.set(void 0))}async createDetector(){this.destroyDetector();let t=await this.#e?.create({signal:this.#r.signal});this.#t.set(t)}languageTagToHumanReadable(t,n="en"){return new Intl.DisplayNames([n],{type:"language"}).of(t)||"NA"}static \u0275fac=function(n){return new(n||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var By=(e,t)=>t.code;function Hy(e,t){if(e&1&&(w(0,"p"),b(1),m()),e&2){let n=t.$implicit;S(),Es("Is ",n.name," available? ",n.available,"")}}var to=class e{languagesAvailable=Ot([]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-language-available"]],inputs:{languagesAvailable:[1,"languagesAvailable"]},decls:3,vars:0,template:function(n,r){n&1&&(w(0,"div"),Pt(1,Hy,2,2,"p",null,By),m()),n&2&&(S(),kt(r.languagesAvailable()))},encapsulation:2,changeDetection:0})};var $y=(e,t)=>t.detectedLanguage;function Uy(e,t){if(e&1&&(w(0,"p")(1,"span"),b(2),m(),w(3,"span"),b(4),m(),w(5,"span"),b(6),m()()),e&2){let n=t.$implicit;S(2),ae("Confidence: ",n.confidence.toFixed(3),", "),S(2),ae("Detected Language: ",n.detectedLanguage,", "),S(2),ae("Detected Language Name: ",n.name,"")}}var no=class e{detectedLanguages=Ot([]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-language-detection-result"]],inputs:{detectedLanguages:[1,"detectedLanguages"]},decls:5,vars:0,consts:[[1,"label"]],template:function(n,r){n&1&&(w(0,"div")(1,"span",0),b(2,"Response: "),m(),Pt(3,Uy,7,3,"p",null,$y),m()),n&2&&(S(3),kt(r.detectedLanguages()))},encapsulation:2,changeDetection:0})};var ro=class e{service=y(eo);inputText=V("");detectedLanguages=V([]);languagesAvailable=V(["en","zh","es","it"].map(t=>({code:t,name:this.service.languageTagToHumanReadable(t)||"NA",available:"no"})));capabilities=this.service.capabilities;detector=this.service.detector;isUnavailable=ue(()=>!this.capabilities()||this.capabilities()?.available!=="readily");isDisableDetectLanguage=ue(()=>this.isUnavailable()||!this.detector()||this.inputText().trim()==="");async setup(){await this.service.createCapabilities(),await this.service.createDetector();let t=this.languagesAvailable().map(({code:n})=>({code:n,name:this.service.languageTagToHumanReadable(n),available:this.capabilities()?.languageAvailable(n)||"no"}));this.languagesAvailable.set(t)}async teardown(){await this.service.destroyCapabilities(),await this.service.destroyDetector();let t=this.languagesAvailable().map(({code:n})=>({code:n,name:this.service.languageTagToHumanReadable(n),available:"no"}));this.languagesAvailable.set(t)}async detectLanguage(t=3){let n=await this.service.detect(this.inputText(),t);this.detectedLanguages.set(n)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-language-detection"]],decls:15,vars:4,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],[3,"languagesAvailable"],["for","input",1,"label"],["id","input","name","input","rows","3",3,"ngModelChange","ngModel"],[2,"margin-right","0.5rem",3,"click"],[3,"click","disabled"],[3,"detectedLanguages"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"h3"),b(2,"Language Detection Demo"),m(),Q(3,"app-language-available",1),w(4,"div")(5,"span",2),b(6,"Input text: "),m(),w(7,"textarea",3),_s("ngModelChange",function(i){return vl(r.inputText,i)||(r.inputText=i),i}),m()(),w(8,"button",4),Ee("click",function(){return r.setup()}),b(9,"Create capabilities and detector"),m(),w(10,"button",4),Ee("click",function(){return r.teardown()}),b(11,"Destroy capabilities and detector"),m(),w(12,"button",5),Ee("click",function(){return r.detectLanguage()}),b(13,"Detect Language"),m(),Q(14,"app-language-detection-result",6),m()),n&2&&(S(3),it("languagesAvailable",r.languagesAvailable()),S(4),ws("ngModel",r.inputText),S(5),it("disabled",r.isDisableDetectLanguage()),S(2),it("detectedLanguages",r.detectedLanguages()))},dependencies:[pd,Jr,ld,Gs,to,no],encapsulation:2,changeDetection:0})};function Gy(e,t){e&1&&Q(0,"app-user-agent")}function zy(e,t){e&1&&Q(0,"app-language-detection")}function Wy(e,t){if(e&1&&b(0),e&2){mn();let n=El(2);ae(" ",n," ")}}function qy(e,t){e&1&&(w(0,"p"),b(1,"If you're on Chrome, join the "),w(2,"a",0),b(3," Early Preview Program"),m(),b(4," to enable it. "),m())}var oo=class e{showUserAgent=Ot(!1);hasCapability=Ls(ql(),{initialValue:""});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-detect-ai"]],inputs:{showUserAgent:[1,"showUserAgent"]},decls:6,vars:3,consts:[["href","https://developer.chrome.com/docs/ai/built-in#get_an_early_preview","target","_blank"]],template:function(n,r){if(n&1&&(ze(0,Gy,1,0,"app-user-agent"),w(1,"div"),yn(2),ze(3,zy,1,0,"app-language-detection")(4,Wy,1,1)(5,qy,5,0,"p"),m()),n&2){st(r.showUserAgent()?0:-1),S(2);let o=Cl(r.hasCapability());S(),st(o?o!=="unknown"?4:5:3)}},dependencies:[qr,ro],encapsulation:2,changeDetection:0})};function Zy(e,t){if(e&1&&(w(0,"li",2),b(1),m()),e&2){let n=t.$implicit;S(),Lt(n)}}var io=class e{steps=V(["Open a new tab in Chrome, go to chrome://flags/#language-detection-api.","Select Enabled.","Relaunch Chrome"]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-setup"]],decls:12,vars:0,consts:[["href","https://github.com/WICG/translation-api?tab=readme-ov-file#language-detection","target","_blank"],[2,"margin-left","1rem","color","black"],[2,"line-height","1.25rem"]],template:function(n,r){n&1&&(w(0,"p"),b(1,"Explainer: "),w(2,"a",0),b(3," https://github.com/WICG/translation-api?tab=readme-ov-file#language-detection"),m()(),w(4,"p"),b(5,"You will need Version 129.0.6639.0 or above."),m(),w(6,"h3"),b(7,"Setup"),m(),w(8,"ol",1),Pt(9,Zy,2,1,"li",2,hl),m(),Q(11,"hr")),n&2&&(S(9),kt(r.steps()))},encapsulation:2,changeDetection:0})};function Yy(e,t){e&1&&Q(0,"app-setup")}var so=class e{showSetup=V(!1);showUserAgent=V(!1);btnSetupText=ue(()=>this.showSetup()?"Hide Setup":"Show Setup");btnUserAgentText=ue(()=>this.showUserAgent()?"Hide User Agent":"Show User Agent");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Y({type:e,selectors:[["app-root"]],decls:11,vars:4,consts:[[2,"margin-bottom","0.5rem"],[2,"margin-right","0.25rem",3,"click"],[3,"click"],[3,"showUserAgent"]],template:function(n,r){if(n&1){let o=gl();w(0,"h2"),b(1,"Chrome Built-in Language Detection API "),m(),yn(2)(3),w(4,"div",0)(5,"button",1),Ee("click",function(){return Ui(o),Gi(r.showSetup.set(!r.showSetup()))}),b(6),m(),w(7,"button",2),Ee("click",function(){return Ui(o),Gi(r.showUserAgent.set(!r.showUserAgent()))}),b(8),m()(),ze(9,Yy,1,0,"app-setup"),Q(10,"app-detect-ai",3)}if(n&2){let o=r.showSetup()?"Hide Setup":"Show Setup",i=r.showUserAgent()?"Hide User Agent":"Show User Agent";S(6),Lt(o),S(2),Lt(i),S(),st(r.showSetup()?9:-1),S(),it("showUserAgent",r.showUserAgent())}},dependencies:[oo,io],styles:["[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}"],changeDetection:0})};Hl(so,Ul).catch(e=>console.error(e)); diff --git a/docs/translation-api-demo/404.html b/docs/translation-api-demo/404.html index 5b8fb7b..f8db7f5 100644 --- a/docs/translation-api-demo/404.html +++ b/docs/translation-api-demo/404.html @@ -9,5 +9,5 @@ - + diff --git a/docs/translation-api-demo/index.html b/docs/translation-api-demo/index.html index 5b8fb7b..f8db7f5 100644 --- a/docs/translation-api-demo/index.html +++ b/docs/translation-api-demo/index.html @@ -9,5 +9,5 @@ - + diff --git a/docs/translation-api-demo/main-BCH6IKNY.js b/docs/translation-api-demo/main-BCH6IKNY.js new file mode 100644 index 0000000..0fa6dcd --- /dev/null +++ b/docs/translation-api-demo/main-BCH6IKNY.js @@ -0,0 +1,7 @@ +var Rd=Object.defineProperty,Pd=Object.defineProperties;var kd=Object.getOwnPropertyDescriptors;var ia=Object.getOwnPropertySymbols;var Ld=Object.prototype.hasOwnProperty,Vd=Object.prototype.propertyIsEnumerable;var sa=(e,t,n)=>t in e?Rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||={})Ld.call(t,n)&&sa(e,n,t[n]);if(ia)for(var n of ia(t))Vd.call(t,n)&&sa(e,n,t[n]);return e},T=(e,t)=>Pd(e,kd(t));function So(e,t){return Object.is(e,t)}var V=null,Rn=!1,To=1,re=Symbol("SIGNAL");function _(e){let t=V;return V=e,t}function aa(){return V}var Xt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function kn(e){if(Rn)throw new Error("");if(V===null)return;V.consumerOnSignalRead(e);let t=V.nextProducerIndex++;if(jn(V),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ao(e){jn(e);for(let t=0;t0}function jn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function da(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function fa(e){return e.producerNode!==void 0}function pa(e){let t=Object.create(Hd);t.computation=e;let n=()=>{if(No(t),kn(t),t.value===Pn)throw t.error;return t.value};return n[re]=t,n}var Io=Symbol("UNSET"),bo=Symbol("COMPUTING"),Pn=Symbol("ERRORED"),Hd=T(S({},Xt),{value:Io,dirty:!0,error:null,equal:So,producerMustRecompute(e){return e.value===Io||e.value===bo},producerRecomputeValue(e){if(e.value===bo)throw new Error("Detected cycle in computations.");let t=e.value;e.value=bo;let n=Ln(e),r;try{r=e.computation()}catch(o){r=Pn,e.error=o}finally{xo(e,n)}if(t!==Io&&t!==Pn&&r!==Pn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function $d(){throw new Error}var ha=$d;function ga(){ha()}function ma(e){ha=e}var Ud=null;function ya(e){let t=Object.create(Fo);t.value=e;let n=()=>(kn(t),t.value);return n[re]=t,n}function Bn(e,t){ua()||ga(),e.equal(e.value,t)||(e.value=t,Gd(e))}function va(e,t){ua()||ga(),Bn(e,t(e.value))}var Fo=T(S({},Xt),{equal:So,value:void 0});function Gd(e){e.version++,jd(),ca(e),Ud?.()}function N(e){return typeof e=="function"}function Hn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var $n=Hn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function en(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(N(r))try{r()}catch(i){t=i instanceof $n?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Da(i)}catch(s){t=t??[],s instanceof $n?t=[...t,...s.errors]:t.push(s)}}if(t)throw new $n(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Da(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&en(n,t)}remove(t){let{_finalizers:n}=this;n&&en(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var Ro=Y.EMPTY;function Un(e){return e instanceof Y||e&&"closed"in e&&N(e.remove)&&N(e.add)&&N(e.unsubscribe)}function Da(e){N(e)?e():e.unsubscribe()}var ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Et={setTimeout(e,t,...n){let{delegate:r}=Et;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Et;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Gn(e){Et.setTimeout(()=>{let{onUnhandledError:t}=ye;if(t)t(e);else throw e})}function Po(){}var Ca=ko("C",void 0,void 0);function Ea(e){return ko("E",void 0,e)}function _a(e){return ko("N",e,void 0)}function ko(e,t,n){return{kind:e,value:t,error:n}}var it=null;function _t(e){if(ye.useDeprecatedSynchronousErrorHandling){let t=!it;if(t&&(it={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=it;if(it=null,n)throw r}}else e()}function wa(e){ye.useDeprecatedSynchronousErrorHandling&&it&&(it.errorThrown=!0,it.error=e)}var st=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Un(t)&&t.add(this)):this.destination=qd}static create(t,n,r){return new wt(t,n,r)}next(t){this.isStopped?Vo(_a(t),this):this._next(t)}error(t){this.isStopped?Vo(Ea(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Vo(Ca,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},zd=Function.prototype.bind;function Lo(e,t){return zd.call(e,t)}var jo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){zn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){zn(r)}else zn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){zn(n)}}},wt=class extends st{constructor(t,n,r){super();let o;if(N(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ye.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Lo(t.next,i),error:t.error&&Lo(t.error,i),complete:t.complete&&Lo(t.complete,i)}):o=t}this.destination=new jo(o)}};function zn(e){ye.useDeprecatedSynchronousErrorHandling?wa(e):Gn(e)}function Wd(e){throw e}function Vo(e,t){let{onStoppedNotification:n}=ye;n&&Et.setTimeout(()=>n(e,t))}var qd={closed:!0,next:Po,error:Wd,complete:Po};var It=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ia(e){return e}function ba(e){return e.length===0?Ia:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var H=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Yd(n)?n:new wt(n,r,o);return _t(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Ma(r),new r((o,i)=>{let s=new wt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[It](){return this}pipe(...n){return ba(n)(this)}toPromise(n){return n=Ma(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ma(e){var t;return(t=e??ye.Promise)!==null&&t!==void 0?t:Promise}function Zd(e){return e&&N(e.next)&&N(e.error)&&N(e.complete)}function Yd(e){return e&&e instanceof st||Zd(e)&&Un(e)}function Qd(e){return N(e?.lift)}function Ue(e){return t=>{if(Qd(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ge(e,t,n,r,o){return new Bo(e,t,n,r,o)}var Bo=class extends st{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Sa=Hn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Oe=(()=>{class e extends H{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Wn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Sa}next(n){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ro:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,en(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new H;return n.source=this,n}}return e.create=(t,n)=>new Wn(t,n),e})(),Wn=class extends Oe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ro}};var tn=class extends Oe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function Ta(e){return e&&N(e.schedule)}function Na(e){return e[e.length-1]}function xa(e){return N(Na(e))?e.pop():void 0}function Aa(e){return Ta(Na(e))?e.pop():void 0}function Fa(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Oa(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function at(e){return this instanceof at?(this.v=e,this):new at(e)}function Ra(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(A){return new Promise(function(L,P){i.push([f,A,L,P])>1||c(f,A)})},h&&(o[f]=h(o[f])))}function c(f,h){try{u(r[f](h))}catch(A){p(i[0][3],A)}}function u(f){f.value instanceof at?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Pa(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Oa=="function"?Oa(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var qn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Zn(e){return N(e?.then)}function Yn(e){return N(e[It])}function Qn(e){return Symbol.asyncIterator&&N(e?.[Symbol.asyncIterator])}function Kn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Kd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Jn=Kd();function Xn(e){return N(e?.[Jn])}function er(e){return Ra(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield at(n.read());if(o)return yield at(void 0);yield yield at(r)}}finally{n.releaseLock()}})}function tr(e){return N(e?.getReader)}function _e(e){if(e instanceof H)return e;if(e!=null){if(Yn(e))return Jd(e);if(qn(e))return Xd(e);if(Zn(e))return ef(e);if(Qn(e))return ka(e);if(Xn(e))return tf(e);if(tr(e))return nf(e)}throw Kn(e)}function Jd(e){return new H(t=>{let n=e[It]();if(N(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xd(e){return new H(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Gn)})}function tf(e){return new H(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function ka(e){return new H(t=>{rf(e,t).catch(n=>t.error(n))})}function nf(e){return ka(er(e))}function rf(e,t){var n,r,o,i;return Fa(this,void 0,void 0,function*(){try{for(n=Pa(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function we(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function nr(e,t=0){return Ue((n,r)=>{n.subscribe(Ge(r,o=>we(r,e,()=>r.next(o),t),()=>we(r,e,()=>r.complete(),t),o=>we(r,e,()=>r.error(o),t)))})}function rr(e,t=0){return Ue((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function La(e,t){return _e(e).pipe(rr(t),nr(t))}function Va(e,t){return _e(e).pipe(rr(t),nr(t))}function ja(e,t){return new H(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ba(e,t){return new H(n=>{let r;return we(n,t,()=>{r=e[Jn](),we(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>N(r?.return)&&r.return()})}function or(e,t){if(!e)throw new Error("Iterable cannot be null");return new H(n=>{we(n,t,()=>{let r=e[Symbol.asyncIterator]();we(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Ha(e,t){return or(er(e),t)}function $a(e,t){if(e!=null){if(Yn(e))return La(e,t);if(qn(e))return ja(e,t);if(Zn(e))return Va(e,t);if(Qn(e))return or(e,t);if(Xn(e))return Ba(e,t);if(tr(e))return Ha(e,t)}throw Kn(e)}function ct(e,t){return t?$a(e,t):_e(e)}function Ho(...e){let t=Aa(e);return ct(e,t)}function ut(e,t){return Ue((n,r)=>{let o=0;n.subscribe(Ge(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:of}=Array;function sf(e,t){return of(t)?e(...t):e(t)}function Ua(e){return ut(t=>sf(e,t))}var{isArray:af}=Array,{getPrototypeOf:cf,prototype:uf,keys:lf}=Object;function Ga(e){if(e.length===1){let t=e[0];if(af(t))return{args:t,keys:null};if(df(t)){let n=lf(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function df(e){return e&&typeof e=="object"&&cf(e)===uf}function za(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function $o(...e){let t=xa(e),{args:n,keys:r}=Ga(e),o=new H(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?za(r,a):a),i.complete())}))}});return t?o.pipe(Ua(t)):o}function ir(e){return Ue((t,n)=>{let r=null,o=!1,i;r=t.subscribe(Ge(n,void 0,void 0,s=>{i=_e(e(s,ir(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}var Tc="https://g.co/ng/security#xss",E=class extends Error{code;constructor(t,n){super(Zi(t,n)),this.code=t}};function Zi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Nc=Symbol("InputSignalNode#UNSET"),ff=T(S({},Fo),{transformFn:void 0,applyValueToInputSignal(e,t){Bn(e,t)}});function xc(e,t){let n=Object.create(ff);n.value=e,n.transformFn=t?.transform;function r(){if(kn(n),n.value===Nc)throw new E(-950,!1);return n.value}return r[re]=n,r}function Pr(e){return{toString:e}.toString()}function F(e){for(let t in e)if(e[t]===F)return t;throw Error("Could not find renamed property on target object.")}function pf(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function de(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(de).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Wa(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var hf=F({__forward_ref__:F});function mn(e){return e.__forward_ref__=mn,e.toString=function(){return de(this())},e}function Q(e){return Ac(e)?e():e}function Ac(e){return typeof e=="function"&&e.hasOwnProperty(hf)&&e.__forward_ref__===mn}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function kr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yi(e){return qa(e,Oc)||qa(e,Fc)}function qa(e,t){return e.hasOwnProperty(t)?e[t]:null}function gf(e){let t=e&&(e[Oc]||e[Fc]);return t||null}function Za(e){return e&&(e.hasOwnProperty(Ya)||e.hasOwnProperty(mf))?e[Ya]:null}var Oc=F({\u0275prov:F}),Ya=F({\u0275inj:F}),Fc=F({ngInjectableDef:F}),mf=F({ngInjectorDef:F}),M=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=R({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Rc(e){return e&&!!e.\u0275providers}var yf=F({\u0275cmp:F}),vf=F({\u0275dir:F}),Df=F({\u0275pipe:F});var hr=F({\u0275fac:F}),on=F({__NG_ELEMENT_ID__:F}),Qa=F({__NG_ENV_ID__:F});function Tt(e){return typeof e=="string"?e:e==null?"":String(e)}function Cf(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Tt(e)}function Ef(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new E(-200,e)}function Qi(e,t){throw new E(-201,!1)}var b=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(b||{}),ti;function Pc(){return ti}function X(e){let t=ti;return ti=e,t}function kc(e,t,n){let r=Yi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&b.Optional)return null;if(t!==void 0)return t;Qi(e,"Injector")}var _f={},sn=_f,wf="__NG_DI_FLAG__",gr="ngTempTokenPath",If="ngTokenPath",bf=/\n/gm,Mf="\u0275",Ka="__source",Nt;function Sf(){return Nt}function ze(e){let t=Nt;return Nt=e,t}function Tf(e,t=b.Default){if(Nt===void 0)throw new E(-203,!1);return Nt===null?kc(e,void 0,t):Nt.get(e,t&b.Optional?null:void 0,t)}function O(e,t=b.Default){return(Pc()||Tf)(Q(e),t)}function m(e,t=b.Default){return O(e,Lr(t))}function Lr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ni(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):de(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(bf,` + `)}`}function lt(e,t){let n=e.hasOwnProperty(hr);return n?e[hr]:null}function Ki(e,t){e.forEach(n=>Array.isArray(n)?Ki(n,t):t(n))}function Of(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Lc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ff(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Rf(e,t,n){let r=yn(e,t);return r>=0?e[r|1]=n:(r=~r,Ff(e,r,t,n)),r}function Uo(e,t){let n=yn(e,t);if(n>=0)return e[n|1]}function yn(e,t){return Pf(e,t,1)}function Pf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return Ki(t,s=>{let a=s;ri(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Uc(o,i),n}function Uc(e,t){for(let n=0;n{t(i,r)})}}function ri(e,t,n,r){if(e=Q(e),!e)return!1;let o=null,i=Za(e),s=!i&&Vr(e);if(!i&&!s){let c=e.ngModule;if(i=Za(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ri(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ki(i.imports,l=>{ri(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Uc(u,t)}if(!a){let u=lt(o)||(()=>new o);t({provide:o,useFactory:u,deps:ue},o),t({provide:jc,useValue:o,multi:!0},o),t({provide:an,useValue:()=>O(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ji(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ji(e,t){for(let n of e)Rc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ji(n,t):t(n)}var Vf=F({provide:String,useValue:F});function Gc(e){return e!==null&&typeof e=="object"&&Vf in e}function jf(e){return!!(e&&e.useExisting)}function Bf(e){return!!(e&&e.useFactory)}function Ot(e){return typeof e=="function"}function Hf(e){return!!e.useClass}var Br=new M(""),ur={},$f={},Go;function Xi(){return Go===void 0&&(Go=new mr),Go}var dt=class{},cn=class extends dt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ii(t,s=>this.processProvider(s)),this.records.set(Vc,bt(void 0,this)),o.has("environment")&&this.records.set(dt,bt(void 0,this));let i=this.records.get(Br);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(jc,ue,b.Self))}destroy(){nn(this),this._destroyed=!0;let t=_(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),_(t)}}onDestroy(t){return nn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){nn(this);let n=ze(this),r=X(void 0),o;try{return t()}finally{ze(n),X(r)}}get(t,n=sn,r=b.Default){if(nn(this),t.hasOwnProperty(Qa))return t[Qa](this);r=Lr(r);let o,i=ze(this),s=X(void 0);try{if(!(r&b.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=qf(t)&&Yi(t);u&&this.injectableDefInScope(u)?c=bt(oi(t),ur):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&b.Self?Xi():this.parent;return n=r&b.Optional&&n===sn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[gr]=a[gr]||[]).unshift(de(t)),i)throw a;return xf(a,t,"R3InjectorError",this.source)}else throw a}finally{X(s),ze(i)}}resolveInjectorInitializers(){let t=_(null),n=ze(this),r=X(void 0),o;try{let i=this.get(an,ue,b.Self);for(let s of i)s()}finally{ze(n),X(r),_(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(de(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Q(t);let n=Ot(t)?t:Q(t&&t.provide),r=Gf(t);if(!Ot(t)&&t.multi===!0){let o=this.records.get(n);o||(o=bt(void 0,ur,!0),o.factory=()=>ni(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=_(null);try{return n.value===ur&&(n.value=$f,n.value=n.factory()),typeof n.value=="object"&&n.value&&Wf(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{_(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Q(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function oi(e){let t=Yi(e),n=t!==null?t.factory:lt(e);if(n!==null)return n;if(e instanceof M)throw new E(204,!1);if(e instanceof Function)return Uf(e);throw new E(204,!1)}function Uf(e){if(e.length>0)throw new E(204,!1);let n=gf(e);return n!==null?()=>n.factory(e):()=>new e}function Gf(e){if(Gc(e))return bt(void 0,e.useValue);{let t=zc(e);return bt(t,ur)}}function zc(e,t,n){let r;if(Ot(e)){let o=Q(e);return lt(o)||oi(o)}else if(Gc(e))r=()=>Q(e.useValue);else if(Bf(e))r=()=>e.useFactory(...ni(e.deps||[]));else if(jf(e))r=()=>O(Q(e.useExisting));else{let o=Q(e&&(e.useClass||e.provide));if(zf(e))r=()=>new o(...ni(e.deps));else return lt(o)||oi(o)}return r}function nn(e){if(e.destroyed)throw new E(205,!1)}function bt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function zf(e){return!!e.deps}function Wf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function qf(e){return typeof e=="function"||typeof e=="object"&&e instanceof M}function ii(e,t){for(let n of e)Array.isArray(n)?ii(n,t):n&&Rc(n)?ii(n.\u0275providers,t):t(n)}function Wc(e,t){e instanceof cn&&nn(e);let n,r=ze(e),o=X(void 0);try{return t()}finally{ze(r),X(o)}}function qc(){return Pc()!==void 0||Sf()!=null}function Zc(e){if(!qc())throw new E(-203,!1)}var Ve=0,w=1,y=2,fe=3,De=4,Se=5,un=6,yr=7,W=8,Ft=9,Fe=10,G=11,ln=12,Ja=13,$t=14,Ce=15,Rt=16,Mt=17,Pt=18,Hr=19,Yc=20,We=21,zo=22,vr=23,oe=24,K=25,Qc=1;var dn=7,Zf=8,Dr=9,ee=10,Cr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Cr||{});function qe(e){return Array.isArray(e)&&typeof e[Qc]=="object"}function yt(e){return Array.isArray(e)&&e[Qc]===!0}function Kc(e){return(e.flags&4)!==0}function $r(e){return e.componentOffset>-1}function es(e){return(e.flags&1)===1}function Ze(e){return!!e.template}function si(e){return(e[y]&512)!==0}var ai=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Jc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Xc=(()=>{let e=()=>eu;return e.ngInherit=!0,e})();function eu(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qf),Yf}function Yf(){let e=nu(this),t=e?.current;if(t){let n=e.previous;if(n===At)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Qf(e,t,n,r,o){let i=this.declaredInputs[r],s=nu(e)||Kf(e,{previous:At,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ai(u&&u.currentValue,n,c===At),Jc(e,t,o,n)}var tu="__ngSimpleChanges__";function nu(e){return e[tu]||null}function Kf(e,t){return e[tu]=t}var Xa=null;var Ie=function(e,t,n){Xa?.(e,t,n)},Jf="svg",Xf="math";function Re(e){for(;Array.isArray(e);)e=e[Ve];return e}function ru(e,t){return Re(t[e])}function Te(e,t){return Re(t[e.index])}function ts(e,t){return e.data[t]}function ou(e,t){return e[t]}function Ke(e,t){let n=t[e];return qe(n)?n:n[Ve]}function ns(e){return(e[y]&128)===128}function kt(e,t){return t==null?null:e[t]}function iu(e){e[Mt]=0}function rs(e){e[y]&1024||(e[y]|=1024,ns(e)&&Gr(e))}function ep(e,t){for(;e>0;)t=t[$t],e--;return t}function Ur(e){return!!(e[y]&9216||e[oe]?.dirty)}function ci(e){e[Fe].changeDetectionScheduler?.notify(9),e[y]&64&&(e[y]|=1024),Ur(e)&&Gr(e)}function Gr(e){e[Fe].changeDetectionScheduler?.notify(0);let t=ft(e);for(;t!==null&&!(t[y]&8192||(t[y]|=8192,!ns(t)));)t=ft(t)}function su(e,t){if((e[y]&256)===256)throw new E(911,!1);e[We]===null&&(e[We]=[]),e[We].push(t)}function tp(e,t){if(e[We]===null)return;let n=e[We].indexOf(t);n!==-1&&e[We].splice(n,1)}function ft(e){let t=e[fe];return yt(t)?t[fe]:t}var I={lFrame:mu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ui=!1;function np(){return I.lFrame.elementDepthCount}function rp(){I.lFrame.elementDepthCount++}function op(){I.lFrame.elementDepthCount--}function au(){return I.bindingsEnabled}function ip(){return I.skipHydrationRootTNode!==null}function sp(e){return I.skipHydrationRootTNode===e}function ap(){I.skipHydrationRootTNode=null}function x(){return I.lFrame.lView}function q(){return I.lFrame.tView}function je(e){return I.lFrame.contextLView=e,e[W]}function Be(e){return I.lFrame.contextLView=null,e}function pe(){let e=cu();for(;e!==null&&e.type===64;)e=e.parent;return e}function cu(){return I.lFrame.currentTNode}function cp(){let e=I.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ut(e,t){let n=I.lFrame;n.currentTNode=e,n.isParent=t}function uu(){return I.lFrame.isParent}function up(){I.lFrame.isParent=!1}function lp(){return I.lFrame.contextLView}function lu(){return ui}function ec(e){let t=ui;return ui=e,t}function du(){let e=I.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dp(){return I.lFrame.bindingIndex}function fp(e){return I.lFrame.bindingIndex=e}function vn(){return I.lFrame.bindingIndex++}function fu(e){let t=I.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function pp(){return I.lFrame.inI18n}function hp(e,t){let n=I.lFrame;n.bindingIndex=n.bindingRootIndex=e,li(t)}function gp(){return I.lFrame.currentDirectiveIndex}function li(e){I.lFrame.currentDirectiveIndex=e}function mp(e){let t=I.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function pu(e){I.lFrame.currentQueryIndex=e}function yp(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[Se]:null}function hu(e,t,n){if(n&b.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&b.Host);)if(o=yp(i),o===null||(i=i[$t],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=I.lFrame=gu();return r.currentTNode=t,r.lView=e,!0}function os(e){let t=gu(),n=e[w];I.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function gu(){let e=I.lFrame,t=e===null?null:e.child;return t===null?mu(e):t}function mu(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function yu(){let e=I.lFrame;return I.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vu=yu;function is(){let e=yu();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function vp(e){return(I.lFrame.contextLView=ep(e,I.lFrame.contextLView))[W]}function He(){return I.lFrame.selectedIndex}function pt(e){I.lFrame.selectedIndex=e}function Du(){let e=I.lFrame;return ts(e.tView,e.selectedIndex)}function Dp(){return I.lFrame.currentNamespace}var Cu=!0;function ss(){return Cu}function as(e){Cu=e}function Cp(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=eu(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function cs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[Mt]+=65536),(a>14>16&&(e[y]&3)===t&&(e[y]+=16384,tc(a,i)):tc(a,i)}var xt=-1,ht=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function _p(e){return e instanceof ht}function wp(e){return(e.flags&8)!==0}function Ip(e){return(e.flags&16)!==0}function di(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function hi(e,t){let n=Tp(e),r=t;for(;n>0;)r=r[$t],n--;return r}var gi=!0;function Er(e){let t=gi;return gi=e,t}var Np=256,_u=Np-1,wu=5,xp=0,be={};function Ap(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(on)&&(r=n[on]),r==null&&(r=n[on]=xp++);let o=r&_u,i=1<>wu)]|=i}function _r(e,t){let n=Iu(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,Zo(r.data,e),Zo(t,null),Zo(r.blueprint,null));let o=bu(e,t),i=e.injectorIndex;if(Sp(o)){let s=pi(o),a=hi(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Zo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Iu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function bu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Au(o),r===null)return xt;if(n++,o=o[$t],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return xt}function mi(e,t,n){Ap(e,t,n)}function Mu(e,t,n){if(n&b.Optional||e!==void 0)return e;Qi(t,"NodeInjector")}function Su(e,t,n,r){if(n&b.Optional&&r===void 0&&(r=null),!(n&(b.Self|b.Host))){let o=e[Ft],i=X(void 0);try{return o?o.get(t,r,n&b.Optional):kc(t,r,n&b.Optional)}finally{X(i)}}return Mu(r,t,n)}function Tu(e,t,n,r=b.Default,o){if(e!==null){if(t[y]&2048&&!(r&b.Self)){let s=kp(e,t,n,r,be);if(s!==be)return s}let i=Nu(e,t,n,r,be);if(i!==be)return i}return Su(t,n,r,o)}function Nu(e,t,n,r,o){let i=Rp(n);if(typeof i=="function"){if(!hu(t,e,r))return r&b.Host?Mu(o,n,r):Su(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&b.Optional))Qi(n);else return s}finally{vu()}}else if(typeof i=="number"){let s=null,a=Iu(e,t),c=xt,u=r&b.Host?t[Ce][Se]:null;for((a===-1||r&b.SkipSelf)&&(c=a===-1?bu(e,t):t[a+8],c===xt||!oc(r,!1)?a=-1:(s=t[w],a=pi(c),t=hi(c,t)));a!==-1;){let l=t[w];if(rc(i,a,l.data)){let d=Op(a,t,n,s,r,u);if(d!==be)return d}c=t[a+8],c!==xt&&oc(r,t[w].data[a+8]===u)&&rc(i,a,t)?(s=l,a=pi(c),t=hi(c,t)):a=-1}}return o}function Op(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?$r(a)&&gi:r!=s&&(a.type&3)!==0,u=o&b.Host&&i===a,l=Fp(a,s,n,c,u);return l!==null?Lt(t,s,l,a):be}function Fp(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Ze(f)&&f.type===n)return c}return null}function Lt(e,t,n,r){let o=e[n],i=t.data;if(_p(o)){let s=o;s.resolving&&Ef(Cf(i[n]));let a=Er(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?X(s.injectImpl):null,l=hu(e,r,b.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Cp(n,i[n],t)}finally{u!==null&&X(u),Er(a),s.resolving=!1,vu()}}return o}function Rp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(on)?e[on]:void 0;return typeof t=="number"?t>=0?t&_u:Pp:t}function rc(e,t,n){let r=1<>wu)]&r)}function oc(e,t){return!(e&b.Self)&&!(e&b.Host&&t)}var wr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Tu(this._tNode,this._lView,t,Lr(r),n)}};function Pp(){return new wr(pe(),x())}function xu(e){return Pr(()=>{let t=e.prototype.constructor,n=t[hr]||yi(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[hr]||yi(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function yi(e){return Ac(e)?()=>{let t=yi(Q(e));return t&&t()}:lt(e)}function kp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[y]&2048&&!(s[y]&512);){let a=Nu(i,s,n,r|b.Self,be);if(a!==be)return a;let c=i.parent;if(!c){let u=s[Yc];if(u){let l=u.get(n,be,r);if(l!==be)return l}c=Au(s),s=s[$t]}i=c}return o}function Au(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[Se]:null}function ic(e,t=null,n=null,r){let o=Lp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Lp(e,t=null,n=null,r,o=new Set){let i=[n||ue,Lf(e)];return r=r||(typeof e=="object"?void 0:de(e)),new cn(i,t||Xi(),r||null,o)}var Ye=class e{static THROW_IF_NOT_FOUND=sn;static NULL=new mr;static create(t,n){if(Array.isArray(t))return ic({name:""},n,t,"");{let r=t.name??"";return ic({name:r},t.parent,t.providers,r)}}static \u0275prov=R({token:e,providedIn:"any",factory:()=>O(Vc)});static __NG_ELEMENT_ID__=-1};var Vp=new M("");Vp.__NG_ELEMENT_ID__=e=>{let t=pe();if(t===null)throw new E(204,!1);if(t.type&2)return t.value;if(e&b.Optional)return null;throw new E(204,!1)};var Ou=!1,Gt=(()=>{class e{static __NG_ELEMENT_ID__=jp;static __NG_ENV_ID__=n=>n}return e})(),vi=class extends Gt{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return su(this._lView,t),()=>tp(this._lView,t)}};function jp(){return new vi(x())}var Vt=class{},zr=new M("",{providedIn:"root",factory:()=>!1});var Fu=new M(""),us=new M(""),Wr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new tn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();var Di=class extends Oe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,qc()&&(this.destroyRef=m(Gt,{optional:!0})??void 0,this.pendingTasks=m(Wr,{optional:!0})??void 0)}emit(t){let n=_(null);try{super.next(t)}finally{_(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},le=Di;function Ir(...e){}function Ru(e){let t,n;function r(){e=Ir;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function sc(e){return queueMicrotask(()=>e()),()=>{e=Ir}}var ls="isAngularZone",br=ls+"_ID",Bp=0,$=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new le(!1);onMicrotaskEmpty=new le(!1);onStable=new le(!1);onError=new le(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ou}=t;if(typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Up(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ls)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new E(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Hp,Ir,Ir);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Hp={};function ds(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function $p(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Ru(()=>{e.callbackScheduled=!1,Ci(e),e.isCheckStableRunning=!0,ds(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ci(e)}function Up(e){let t=()=>{$p(e)},n=Bp++;e._inner=e._inner.fork({name:"angular",properties:{[ls]:!0,[br]:n,[br+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Gp(c))return r.invokeTask(i,s,a,c);try{return ac(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),cc(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return ac(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!zp(c)&&t(),cc(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ci(e),ds(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ci(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ac(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function cc(e){e._nesting--,ds(e)}var Mr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new le;onMicrotaskEmpty=new le;onStable=new le;onError=new le;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Gp(e){return Pu(e,"__ignore_ng_zone__")}function zp(e){return Pu(e,"__scheduler_tick__")}function Pu(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Pe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Wp=new M("",{providedIn:"root",factory:()=>{let e=m($),t=m(Pe);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),Ei=class{destroyed=!1;listeners=null;errorHandler=m(Pe,{optional:!0});destroyRef=m(Gt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new E(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new E(953,!1);if(this.listeners===null)return;let n=_(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{_(n)}}};function qr(e){return new Ei}function uc(e,t){return xc(e,t)}function qp(e){return xc(Nc,e)}var Je=(uc.required=qp,uc);function Zp(){return ku(pe(),x())}function ku(e,t){return new Dn(Te(e,t))}var Dn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Zp}return e})();function Lu(e){return(e.flags&128)===128}var Vu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Vu||{}),ju=new Map,Yp=0;function Qp(){return Yp++}function Kp(e){ju.set(e[Hr],e)}function _i(e){ju.delete(e[Hr])}var lc="__ngContext__";function gt(e,t){qe(t)?(e[lc]=t[Hr],Kp(t)):e[lc]=t}function Bu(e){return $u(e[ln])}function Hu(e){return $u(e[De])}function $u(e){for(;e!==null&&!yt(e);)e=e[De];return e}var wi;function Uu(e){wi=e}function Jp(){if(wi!==void 0)return wi;if(typeof document<"u")return document;throw new E(210,!1)}var fs=new M("",{providedIn:"root",factory:()=>Xp}),Xp="ng",ps=new M(""),Xe=new M("",{providedIn:"platform",factory:()=>"unknown"});var hs=new M("",{providedIn:"root",factory:()=>Jp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var eh="h",th="b";var Gu=!1,nh=new M("",{providedIn:"root",factory:()=>Gu});var rh=()=>null;function gs(e,t,n=!1){return rh(e,t,n)}var Me=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Me||{});var Sr=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tc})`}};function Zr(e){return e instanceof Sr?e.changingThisBreaksApplicationSecurity:e}function zu(e,t){let n=oh(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Tc})`)}return n===t}function oh(e){return e instanceof Sr&&e.getTypeName()||null}var ih=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wu(e){return e=String(e),e.match(ih)?e:"unsafe:"+e}var ms=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ms||{});function Yr(e){let t=sh();return t?t.sanitize(ms.URL,e)||"":zu(e,"URL")?Zr(e):Wu(Tt(e))}function sh(){let e=x();return e&&e[Fe].sanitizer}var Qe=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Qe||{}),ke=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ke||{}),ah;function ys(e,t){return ah(e,t)}function St(e,t,n,r,o){if(r!=null){let i,s=!1;yt(r)?i=r:qe(r)&&(s=!0,r=r[Ve]);let a=Re(r);e===0&&n!==null?o==null?Qu(t,n,a):Ii(t,n,a,o||null,!0):e===1&&n!==null?Ii(t,n,a,o||null,!0):e===2?_h(t,a,s):e===3&&t.destroyNode(a),i!=null&&Ih(t,e,i,n,o)}}function ch(e,t){return e.createText(t)}function uh(e,t,n){e.setValue(t,n)}function qu(e,t,n){return e.createElement(t,n)}function lh(e,t){Zu(e,t),t[Ve]=null,t[Se]=null}function dh(e,t,n,r,o,i){r[Ve]=o,r[Se]=t,Qr(e,r,n,1,o,i)}function Zu(e,t){t[Fe].changeDetectionScheduler?.notify(10),Qr(e,t,t[G],2,null,null)}function fh(e){let t=e[ln];if(!t)return Yo(e[w],e);for(;t;){let n=null;if(qe(t))n=t[ln];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[De]&&t!==e;)qe(t)&&Yo(t[w],t),t=t[fe];t===null&&(t=e),qe(t)&&Yo(t[w],t),n=t&&t[De]}t=n}}function ph(e,t,n,r){let o=ee+r,i=n.length;r>0&&(n[o-1][De]=t),r0&&(e[n-1][De]=r[De]);let i=Lc(e,ee+t);lh(r[w],r);let s=i[Pt];s!==null&&s.detachView(i[w]),r[fe]=null,r[De]=null,r[y]&=-129}return r}function Cs(e,t){if(!(t[y]&256)){let n=t[G];n.destroyNode&&Qr(e,t,n,3,null,null),fh(t)}}function Yo(e,t){if(t[y]&256)return;let n=_(null);try{t[y]&=-129,t[y]|=256,t[oe]&&Oo(t[oe]),gh(e,t),hh(e,t),t[w].type===1&&t[G].destroy();let r=t[Rt];if(r!==null&&yt(t[fe])){r!==t[fe]&&vs(r,t);let o=t[Pt];o!==null&&o.detachView(e)}_i(t)}finally{_(n)}}function hh(e,t){let n=e.cleanup,r=t[yr];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[yr]=null);let o=t[We];if(o!==null){t[We]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Me.None||i===Me.Emulated)return null}return Te(r,n)}}function Ii(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Qu(e,t,n){e.appendChild(t,n)}function dc(e,t,n,r,o){r!==null?Ii(e,t,n,r,o):Qu(e,t,n)}function vh(e,t){return e.parentNode(t)}function Dh(e,t,n){return Eh(e,t,n)}function Ch(e,t,n){return e.type&40?Te(e,n):null}var Eh=Ch,fc;function Es(e,t,n,r){let o=mh(e,r,t),i=t[G],s=r.parent||t[Se],a=Dh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ve(r))return!1;s=!0}}}}return ve(r)||s}function ve(e){return(e&1)===0}function Ah(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ve(s)&&(t+=pc(i,o),o=""),r=s,i=i||!ve(r);n++}return o!==""&&(t+=pc(i,o)),t}function kh(e){return e.map(Ph).join(",")}function Lh(e){let t=[],n=[],r=1,o=2;for(;rK&&tl(e,t,K,!1),Ie(s?2:0,o),n(r,o)}finally{pt(i),Ie(s?3:1,o)}}function il(e,t,n){if(Kc(t)){let r=_(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Gh(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return ip()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function hc(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Qe.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?gc(r,n,u,a,c):gc(r,n,u,a)}return r}function gc(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function zh(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Qh(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;$r(n)&&rg(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||_r(n,t),gt(r,t);let s=n.initialInputs;for(let a=o;a{Gr(e.lView)},consumerOnSignalRead(){this.lView[oe]=this}});function yg(e){let t=e[oe]??Object.create(vg);return t.lView=e,t}var vg=T(S({},Xt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=ft(e.lView);for(;t&&!Cl(t[w]);)t=ft(t);t&&rs(t)},consumerOnSignalRead(){this.lView[oe]=this}});function Cl(e){return e.type!==2}function El(e){if(e[vr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[vr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[y]&8192)}}var Dg=100;function _l(e,t=!0,n=0){let o=e[Fe].rendererFactory,i=!1;i||o.begin?.();try{Cg(e,n)}catch(s){throw t&&gl(e,s),s}finally{i||o.end?.()}}function Cg(e,t){let n=lu();try{ec(!0),Ti(e,t);let r=0;for(;Ur(e);){if(r===Dg)throw new E(103,!1);r++,Ti(e,1)}}finally{ec(n)}}function Eg(e,t,n,r){let o=t[y];if((o&256)===256)return;let i=!1,s=!1;os(t);let a=!0,c=null,u=null;i||(Cl(e)?(u=pg(t),c=Ln(u)):aa()===null?(a=!1,u=yg(t),c=Ln(u)):t[oe]&&(Oo(t[oe]),t[oe]=null));try{iu(t),fp(e.bindingStartIndex),n!==null&&ol(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&lr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&dr(t,f,0,null),Wo(t,0)}if(s||_g(t),El(t),wl(t,0),e.contentQueries!==null&&hl(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&lr(t,f)}else{let f=e.contentHooks;f!==null&&dr(t,f,1),Wo(t,1)}Vh(e,t);let d=e.components;d!==null&&bl(t,d,0);let p=e.viewQuery;if(p!==null&&Si(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&lr(t,f)}else{let f=e.viewHooks;f!==null&&dr(t,f,2),Wo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[zo]){for(let f of t[zo])f();t[zo]=null}i||(t[y]&=-73)}catch(l){throw i||Gr(t),l}finally{u!==null&&(xo(u,c),a&&gg(u)),is()}}function wl(e,t){for(let n=Bu(e);n!==null;n=Hu(n))for(let r=ee;r-1&&(Ds(t,r),Lc(n,r))}this._attachedToViewContainer=!1}Cs(this._lView[w],this._lView)}onDestroy(t){su(this._lView,t)}markForCheck(){As(this._cdRefInjectingView||this._lView,4)}markForRefresh(){rs(this._cdRefInjectingView||this._lView)}detach(){this._lView[y]&=-129}reattach(){ci(this._lView),this._lView[y]|=128}detectChanges(){this._lView[y]|=1024,_l(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=si(this._lView),n=this._lView[Rt];n!==null&&!t&&vs(n,this._lView),Zu(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t;let n=si(this._lView),r=this._lView[Rt];r!==null&&!n&&Yu(r,this._lView),ci(this._lView)}};var jE=new RegExp(`^(\\d+)*(${th}|${eh})*(.*)`);var Ig=()=>null;function Os(e,t){return Ig(e,t)}var Ni=class{},Nr=class{},xi=class{resolveComponentFactory(t){throw Error(`No component factory found for ${de(t)}.`)}},hn=class{static NULL=new xi},jt=class{},Jr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>bg()}return e})();function bg(){let e=x(),t=pe(),n=Ke(t.index,e);return(qe(n)?n:e)[G]}var Mg=(()=>{class e{static \u0275prov=R({token:e,providedIn:"root",factory:()=>null})}return e})();function Ai(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Ju(e,n,i.join(" "))}}function Fg(e,t,n){let r=e.projection=[];for(let o=0;o!1;function kg(e,t,n){return Pg(e,t,n)}var yc=new Set;function et(e){yc.has(e)||(yc.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Lg(e){return typeof e=="function"&&e[re]!==void 0}function k(e,t){et("NgSignals");let n=ya(e),r=n[re];return t?.equal&&(r.equal=t.equal),n.set=o=>Bn(r,o),n.update=o=>va(r,o),n.asReadonly=Vg.bind(n),n}function Vg(){let e=this[re];if(e.readonlyFn===void 0){let t=()=>this();t[re]=e,e.readonlyFn=t}return e.readonlyFn}function Ml(e){return Lg(e)&&typeof e.set=="function"}var Sl=!0,Bt=class{};var xr=class extends Bt{injector;componentFactoryResolver=new Oi(this);instance=null;constructor(t){super();let n=new cn([...t.providers,{provide:Bt,useValue:this},{provide:hn,useValue:this.componentFactoryResolver}],t.parent||Xi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function jg(e,t,n=null){return new xr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Bg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=$c(!1,n.type),o=r.length>0?jg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(O(dt))})}return e})();function Z(e){return Pr(()=>{let t=Nl(e),n=T(S({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Vu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Bg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Me.Emulated,styles:e.styles||ue,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&et("NgStandalone"),xl(n);let r=e.dependencies;return n.directiveDefs=Dc(r,!1),n.pipeDefs=Dc(r,!0),n.id=Ug(n),n})}function Hg(e){return Vr(e)||Bc(e)}function $g(e){return e!==null}function Xr(e){return Pr(()=>({type:e.type,bootstrap:e.bootstrap||ue,declarations:e.declarations||ue,imports:e.imports||ue,exports:e.exports||ue,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vc(e,t){if(e==null)return At;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Qe.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Qe.None?[r,a]:r,t[i]=s):n[i]=r}return n}function zt(e){return Pr(()=>{let t=Nl(e);return xl(t),t})}function Tl(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??Sl,onDestroy:e.type.prototype.ngOnDestroy||null}}function Nl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||At,exportAs:e.exportAs||null,standalone:e.standalone??Sl,signals:e.signals===!0,selectors:e.selectors||ue,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:vc(e.inputs,t),outputs:vc(e.outputs),debugInfo:null}}function xl(e){e.features?.forEach(t=>t(e))}function Dc(e,t){if(!e)return null;let n=t?Hc:Hg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter($g)}function Ug(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Gg(e){return Object.getPrototypeOf(e.prototype).constructor}function Wt(e){let t=Gg(e.type),n=!0,r=[e];for(;t;){let o;if(Ze(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new E(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=sr(e.inputs),s.inputTransforms=sr(e.inputTransforms),s.declaredInputs=sr(e.declaredInputs),s.outputs=sr(e.outputs);let a=o.hostBindings;a&&Yg(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&qg(e,c),u&&Zg(e,u),zg(e,o),pf(e.outputs,o.outputs),Ze(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=fn(o.hostAttrs,n=fn(n,o.hostAttrs))}}function sr(e){return e===At?{}:e===ue?[]:e}function qg(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Zg(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Yg(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Qg(e,t,n){return e[t]=n}function Le(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Al(e,t,n,r){let o=Le(e,t,n);return Le(e,t+1,r)||o}function Kg(e,t,n,r,o){let i=Al(e,t,n,r);return Le(e,t+2,o)||i}function Jg(e){return(e.flags&32)===32}function Xg(e,t,n,r,o,i,s,a,c){let u=t.consts,l=Cn(t,e,4,s||null,a||null);ll(t,n,l,kt(u,c)),cs(t,l);let d=l.tView=Is(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Pi(e,t,n,r,o,i,s,a,c,u){let l=n+K,d=t.firstCreatePass?Xg(l,t,e,r,o,i,s,a,c):t.data[l];Ut(d,!1);let p=em(t,e,d,n);ss()&&Es(t,e,p,d),gt(p,e);let f=sg(p,e,p,d);return e[l]=f,bs(e,f),kg(f,d,e),es(d)&&sl(t,e,d),c!=null&&al(e,d,u),d}function te(e,t,n,r,o,i,s,a){let c=x(),u=q(),l=kt(u.consts,i);return Pi(c,u,e,t,n,r,o,l,s,a),te}var em=tm;function tm(e,t,n,r){return as(!0),t[G].createComment("")}var nm=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ol=new M("");function En(e){return!!e&&typeof e.then=="function"}function Fl(e){return!!e&&typeof e.subscribe=="function"}var rm=new M("");var Rl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=m(rm,{optional:!0})??[];injector=m(Ye);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Wc(this.injector,o);if(En(i))n.push(i);else if(Fl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),om=(()=>{class e{static \u0275prov=R({token:e,providedIn:"root",factory:()=>new ki})}return e})(),ki=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},im=new M("");function sm(){ma(()=>{throw new E(600,!1)})}function am(e){return e.isBoundToModule}var cm=10;function um(e,t,n){try{let r=n();return En(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var _n=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=m(Wp);afterRenderManager=m(nm);zonelessEnabled=m(zr);rootEffectScheduler=m(om);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new Oe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=m(Wr).hasPendingTasks.pipe(ut(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=m(dt);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Nr;if(!this._injector.get(Rl).done){let p=!o&&kf(n),f=!1;throw new E(405,f)}let s;o?s=n:s=this._injector.get(hn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=am(s)?void 0:this._injector.get(Bt),c=r||s.selector,u=s.create(Ye.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Ol,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),fr(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new E(101,!1);let n=_(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,_(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(jt,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Ur(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;fr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(im,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function lm(e,t,n,r){if(!n&&!Ur(e))return;_l(e,t,n&&!r?0:1)}function dm(e,t,n,r){return Le(e,vn(),n)?t+Tt(n)+r:Ne}function fm(e,t,n,r,o,i,s,a){let c=dp(),u=Kg(e,c,n,o,s);return fu(3),u?t+Tt(n)+r+Tt(o)+i+Tt(s)+a:Ne}function ar(e,t){return e<<17|t<<2}function mt(e){return e>>17&32767}function pm(e){return(e&2)==2}function hm(e,t){return e&131071|t<<17}function Li(e){return e|2}function Ht(e){return(e&131068)>>2}function Qo(e,t){return e&-131069|t<<2}function gm(e){return(e&1)===1}function Vi(e){return e|1}function mm(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=mt(s),c=Ht(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||yn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=mt(e[a+1]);e[r+1]=ar(p,a),p!==0&&(e[p+1]=Qo(e[p+1],r)),e[a+1]=hm(e[a+1],r)}else e[r+1]=ar(a,0),a!==0&&(e[a+1]=Qo(e[a+1],r)),a=r;else e[r+1]=ar(c,0),a===0?a=r:e[c+1]=Qo(e[c+1],r),c=r;u&&(e[r+1]=Li(e[r+1])),Cc(e,l,r,!0),Cc(e,l,r,!1),ym(t,l,e,r,i),s=ar(a,c),i?t.classBindings=s:t.styleBindings=s}function ym(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&yn(i,t)>=0&&(n[r+1]=Vi(n[r+1]))}function Cc(e,t,n,r){let o=e[n+1],i=t===null,s=r?mt(o):Ht(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];vm(c,t)&&(a=!0,e[s+1]=r?Vi(u):Li(u)),s=r?mt(u):Ht(u)}a&&(e[n+1]=r?Li(o):Vi(o))}function vm(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?yn(e,t)>=0:!1}function he(e,t,n){let r=x(),o=vn();if(Le(r,o,t)){let i=q(),s=Du();ul(i,s,r,e,t,r[G],n,!1)}return he}function Ec(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Ms(e,n,i[s],s,r)}function Fs(e,t){return Dm(e,t,null,!0),Fs}function Dm(e,t,n,r){let o=x(),i=q(),s=fu(2);if(i.firstUpdatePass&&Em(i,e,s,r),t!==Ne&&Le(o,s,t)){let a=i.data[He()];Mm(i,a,o,o[G],e,o[s+1]=Sm(t,n),r,s)}}function Cm(e,t){return t>=e.expandoStartIndex}function Em(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[He()],s=Cm(e,n);Tm(i,r)&&t===null&&!s&&(t=!1),t=_m(o,i,t,r),mm(o,i,t,n,s,r)}}function _m(e,t,n,r){let o=mp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ko(null,e,t,n,r),n=gn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ko(o,e,t,n,r),i===null){let c=wm(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ko(null,e,t,c[1],r),c=gn(c,t.attrs,r),Im(e,t,r,c))}else i=bm(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function wm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Ht(r)!==0)return e[mt(r)]}function Im(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[mt(o)]=r}function bm(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===Ne&&(p=d?ue:void 0);let f=d?Uo(p,r):l===r?p:void 0;if(u&&!Ar(f)&&(f=Uo(c,r)),Ar(f)&&(a=f,s))return a;let h=e[o+1];o=s?mt(h):Ht(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Uo(c,r))}return a}function Ar(e){return e!==void 0}function Sm(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(Zr(e)))),e}function Tm(e,t){return(e.flags&(t?8:16))!==0}var ji=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Jo(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Nm(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],d=Jo(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),f=t[c],h=Jo(s,p,c,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,c--;continue}let A=n(i,u),L=n(s,p),P=n(i,l);if(Object.is(P,L)){let B=n(c,f);Object.is(B,A)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Or,o??=Ic(e,i,s,n),Bi(e,r,i,P))e.updateValue(i,l),i++,s++;else if(o.has(P))r.set(A,e.detach(i)),s--;else{let B=e.create(i,t[i]);e.attach(i,B),i++,s++}}for(;i<=c;)wc(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,p=Jo(i,l,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,u=c.next();else{r??=new Or,o??=Ic(e,i,s,n);let f=n(i,d);if(Bi(e,r,i,f))e.updateValue(i,d),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=c.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!u.done;)wc(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Bi(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function wc(e,t,n,r,o){if(Bi(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Ic(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Or=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function ie(e,t){et("NgControlFlow");let n=x(),r=vn(),o=n[r]!==Ne?n[r]:-1,i=o!==-1?Fr(n,K+o):void 0,s=0;if(Le(n,r,e)){let a=_(null);try{if(i!==void 0&&vl(i,s),e!==-1){let c=K+e,u=Fr(n,c),l=Gi(n[w],c),d=Os(u,l.tView.ssrId),p=Ts(n,l,t,{dehydratedView:d});xs(u,p,s,Ns(l,d))}}finally{_(a)}}else if(i!==void 0){let a=yl(i,s);a!==void 0&&(a[W]=t)}}var Hi=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ee}};function wn(e){return e}var $i=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function In(e,t,n,r,o,i,s,a,c,u,l,d,p){et("NgControlFlow");let f=x(),h=q(),A=c!==void 0,L=x(),P=a?s.bind(L[Ce][W]):s,B=new $i(A,P);L[K+e]=B,Pi(f,h,e+1,t,n,r,o,kt(h.consts,i)),A&&Pi(f,h,e+2,c,u,l,d,kt(h.consts,p))}var Ui=class extends ji{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ee}at(t){return this.getLView(t)[W].$implicit}attach(t,n){let r=n[un];this.needsIndexUpdate||=t!==this.length,xs(this.lContainer,n,t,Ns(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,xm(this.lContainer,t)}create(t,n){let r=Os(this.lContainer,this.templateTNode.tView.ssrId),o=Ts(this.hostLView,this.templateTNode,new Hi(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Cs(t[w],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[W].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(as(!0),qu(r,o,Dp()));function tt(){return x()}var Rr="en-US";var Rm=Rr;function Pm(e){typeof e=="string"&&(Rm=e.toLowerCase().replace(/_/g,"-"))}var km=(e,t,n)=>{};function J(e,t,n,r){let o=x(),i=q(),s=pe();return Pl(i,o,o[G],s,e,t,r),J}function Lm(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Pl(e,t,n,r,o,i,s){let a=es(r),u=e.firstCreatePass&&cg(e),l=t[W],d=ag(t),p=!0;if(r.type&3||s){let A=Te(r,t),L=s?s(A):A,P=d.length,B=s?me=>s(Re(me[r.index])):r.index,Ae=null;if(!s&&a&&(Ae=Lm(e,t,o,r.index)),Ae!==null){let me=Ae.__ngLastListenerFn__||Ae;me.__ngNextListenerFn__=i,Ae.__ngLastListenerFn__=i,p=!1}else{i=Mc(r,t,l,i),km(A,o,i);let me=n.listen(L,o,i);d.push(i,me),u&&u.push(o,B,P,P+1)}}else i=Mc(r,t,l,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let A=h.length;if(A)for(let L=0;L-1?Ke(e.index,t):t;As(s,5);let a=bc(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=bc(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function j(e=1){return vp(e)}function Rs(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function C(e,t=""){let n=x(),r=q(),o=e+K,i=r.firstCreatePass?Cn(r,o,1,t,null):r.data[o],s=Vm(r,n,i,t,e);n[o]=s,ss()&&Es(r,n,s,i),Ut(i,!1)}var Vm=(e,t,n,r,o)=>(as(!0),ch(t[G],r));function ge(e){return U("",e,""),ge}function U(e,t,n){let r=x(),o=dm(r,e,t,n);return o!==Ne&&ml(r,He(),o),U}function Ps(e,t,n,r,o,i,s){let a=x(),c=fm(a,e,t,n,r,o,i,s);return c!==Ne&&ml(a,He(),c),Ps}function ks(e,t,n){Ml(t)&&(t=t());let r=x(),o=vn();if(Le(r,o,t)){let i=q(),s=Du();ul(i,s,r,e,t,r[G],n,!1)}return ks}function kl(e,t){let n=Ml(e);return n&&e.set(t),n}function Ls(e,t){let n=x(),r=q(),o=pe();return Pl(r,n,n[G],o,e,t),Ls}var Ll={};function Ee(e){let t=q(),n=x(),r=e+K,o=Cn(t,r,128,null,null);return Ut(o,!1),Rs(t,n,r,Ll),Ee}function nt(e){et("NgLet");let t=q(),n=x(),r=He();return Rs(t,n,r,e),e}function xe(e){let t=lp(),n=ou(t,K+e);if(n===Ll)throw new E(314,!1);return n}function jm(e,t,n){let r=q();if(r.firstCreatePass){let o=Ze(e);zi(n,r.data,r.blueprint,o,!0),zi(t,r.data,r.blueprint,o,!1)}}function zi(e,t,n,r,o){if(e=Q(e),Array.isArray(e))for(let i=0;i>20;if(Ot(e)||!e.multi){let f=new ht(u,o,z),h=ei(c,t,o?l:l+p,d);h===-1?(mi(_r(a,s),i,c),Xo(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=ei(c,t,l+p,d),h=ei(c,t,l,l+p),A=f>=0&&n[f],L=h>=0&&n[h];if(o&&!L||!o&&!A){mi(_r(a,s),i,c);let P=$m(o?Hm:Bm,n.length,o,r,u);!o&&L&&(n[h].providerFactory=P),Xo(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=Vl(n[o?h:f],u,!o&&r);Xo(i,e,f>-1?f:h,P)}!o&&r&&L&&n[h].componentProviders++}}}function Xo(e,t,n,r){let o=Ot(t),i=Hf(t);if(o||i){let c=(i?Q(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Vl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ei(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>jm(r,o?o(e):e,t)}}function jl(e,t,n,r,o){return Bl(x(),du(),e,t,n,r,o)}function Um(e,t){let n=e[t];return n===Ne?void 0:n}function Bl(e,t,n,r,o,i,s){let a=t+n;return Al(e,a,o,i)?Qg(e,a+2,s?r.call(s,o,i):r(o,i)):Um(e,a+2)}function Hl(e,t){let n=q(),r,o=e+K;n.firstCreatePass?(r=Gm(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=lt(r.type,!0)),s,a=X(z);try{let c=Er(!1),u=i();return Er(c),Rs(n,x(),o,u),u}finally{X(a)}}function Gm(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function $l(e,t,n,r){let o=e+K,i=x(),s=ou(i,o);return zm(i,o)?Bl(i,du(),t,s.transform,n,r,s):s.transform(n,r)}function zm(e,t){return e[w].data[t].pure}var Wm=(()=>{class e{zone=m($);changeDetectionScheduler=m(Vt);applicationRef=m(_n);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qm({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new $(T(S({},Zm()),{scheduleInRootZone:n})),[{provide:$,useFactory:e},{provide:an,multi:!0,useFactory:()=>{let r=m(Wm,{optional:!0});return()=>r.initialize()}},{provide:an,multi:!0,useFactory:()=>{let r=m(Ym);return()=>{r.initialize()}}},t===!0?{provide:Fu,useValue:!0}:[],{provide:us,useValue:n??Ou}]}function Zm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Ym=(()=>{class e{subscription=new Y;initialized=!1;zone=m($);pendingTasks=m(Wr);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ul=(()=>{class e{appRef=m(_n);taskService=m(Wr);ngZone=m($);zonelessEnabled=m(zr);disableScheduling=m(Fu,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Y;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(br):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(us,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Mr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?sc:Ru;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(br+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,sc(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Gl(){return et("NgZoneless"),jr([{provide:Vt,useExisting:Ul},{provide:$,useClass:Mr},{provide:zr,useValue:!0},{provide:us,useValue:!1},[]])}function Qm(){return typeof $localize<"u"&&$localize.locale||Rr}var js=new M("",{providedIn:"root",factory:()=>m(js,b.Optional|b.SkipSelf)||Qm()});var qi=new M("");function cr(e){return!e.moduleRef}function Km(e){let t=cr(e)?e.r3Injector:e.moduleRef.injector,n=t.get($);return n.run(()=>{cr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Pe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),cr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(qi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(qi);s.add(i),e.moduleRef.onDestroy(()=>{fr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return um(r,n,()=>{let i=t.get(Rl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(js,Rr);if(Pm(s||Rr),cr(e)){let a=t.get(_n);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Jm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Jm(e,t){let n=e.injector.get(_n);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new E(-403,!1);t.push(e)}var pr=null;function Xm(e=[],t){return Ye.create({name:t,providers:[{provide:Br,useValue:"platform"},{provide:qi,useValue:new Set([()=>pr=null])},...e]})}function ey(e=[]){if(pr)return pr;let t=Xm(e);return pr=t,sm(),ty(t),t}function ty(e){let t=e.get(ps,null);Wc(e,()=>{t?.forEach(n=>n())})}var Bs=(()=>{class e{static __NG_ELEMENT_ID__=ny}return e})();function ny(e){return ry(pe(),x(),(e&16)===16)}function ry(e,t,n){if($r(e)&&!n){let r=Ke(e.index,t);return new pn(r,r)}else if(e.type&175){let r=t[Ce];return new pn(r,t)}return null}function zl(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=ey(r),i=[qm({}),{provide:Vt,useExisting:Ul},...n||[]],s=new xr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Km({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Hs(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ae(e,t){et("NgSignals");let n=pa(e);return t?.equal&&(n[re].equal=t.equal),n}function $e(e){let t=_(null);try{return e()}finally{_(t)}}var Sc=class{[re];constructor(t){this[re]=t}destroy(){this[re].destroy()}};var ql=null;function qt(){return ql}function Zl(e){ql??=e}var eo=class{};var rt=new M("");function Yl(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var $s="browser",oy="server";function Ql(e){return e===$s}function Us(e){return e===oy}var to=class{};var zs=class extends eo{supportsDOMEvents=!0},Ws=class e extends zs{static makeCurrent(){Zl(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=sy();return n==null?null:ay(n)}resetBaseElement(){Mn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Yl(document.cookie,t)}},Mn=null;function sy(){return Mn=Mn||document.querySelector("base"),Mn?Mn.getAttribute("href"):null}function ay(e){return new URL(e,document.baseURI).pathname}var cy=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),qs=new M(""),rd=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(O(qs),O($))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),no=class{_doc;constructor(t){this._doc=t}manager},Zs="ng-app-id";function Kl(e){for(let t of e)t.remove()}function Jl(e,t){let n=t.createElement("style");return n.textContent=e,n}function uy(e,t,n){let r=e.head?.querySelectorAll(`style[${Zs}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(Zs),n.set(o.textContent,{usage:0,elements:[o]}))}function Xl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var od=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Us(i),uy(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Jl);r?.forEach(o=>this.addUsage(o,this.external,Xl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Kl(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Kl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Jl(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Xl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Zs,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(O(rt),O(fs),O(hs,8),O(Xe))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Gs={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"},Qs=/%COMP%/g,id="%COMP%",ly=`_nghost-${id}`,dy=`_ngcontent-${id}`,fy=!0,py=new M("",{providedIn:"root",factory:()=>fy});function hy(e){return dy.replace(Qs,e)}function gy(e){return ly.replace(Qs,e)}function sd(e,t){return t.map(n=>n.replace(Qs,e))}var ed=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.platformIsServer=Us(a),this.defaultRenderer=new Sn(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Me.ShadowDom&&(r=T(S({},r),{encapsulation:Me.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof ro?o.applyToHost(n):o instanceof Tn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Me.Emulated:i=new ro(c,u,r,this.appId,l,s,a,d);break;case Me.ShadowDom:return new Ys(c,u,n,r,s,a,this.nonce,d);default:i=new Tn(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(O(rd),O(od),O(fs),O(py),O(rt),O(Xe),O($),O(hs))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Sn=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Gs[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(td(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(td(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new E(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Gs[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Gs[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ke.DashCase|ke.Important)?t.style.setProperty(n,r,o&ke.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ke.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=qt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function td(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ys=class extends Sn{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=sd(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Tn=class extends Sn{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?sd(c,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ro=class extends Tn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=hy(u),this.hostAttr=gy(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},my=(()=>{class e extends no{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(O(rt))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),nd=["alt","control","meta","shift"],yy={"\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"},vy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Dy=(()=>{class e extends no{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),nd.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=yy[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),nd.forEach(s=>{if(s!==o){let a=vy[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(O(rt))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function ad(e,t){return zl(S({rootComponent:e},Cy(t)))}function Cy(e){return{appProviders:[...by,...e?.providers??[]],platformProviders:Iy}}function Ey(){Ws.makeCurrent()}function _y(){return new Pe}function wy(){return Uu(document),document}var Iy=[{provide:Xe,useValue:$s},{provide:ps,useValue:Ey,multi:!0},{provide:rt,useFactory:wy,deps:[]}];var by=[{provide:Br,useValue:"root"},{provide:Pe,useFactory:_y,deps:[]},{provide:qs,useClass:my,multi:!0,deps:[rt,$,Xe]},{provide:qs,useClass:Dy,multi:!0,deps:[rt]},ed,od,rd,{provide:jt,useExisting:ed},{provide:to,useClass:cy,deps:[]},[]];var ot=new M("AI_TRANSLATION_API_TOKEN");function cd(){return jr([{provide:ot,useFactory:()=>{let e=m(Xe),t=Ql(e)?window:void 0;return t&&"translation"in t?t.translation:void 0}}])}var ud={providers:[Gl(),cd()]};function Ks(e,t){let n=!t?.manualCleanup;n&&!t?.injector&&Zc(Ks);let r=n?t?.injector?.get(Gt)??m(Gt):null,o=My(t?.equal),i;t?.requireSync?i=k({kind:0},{equal:o}):i=k({kind:1,value:t?.initialValue},{equal:o});let s=e.subscribe({next:a=>i.set({kind:1,value:a}),error:a=>{if(t?.rejectErrors)throw a;i.set({kind:2,error:a})}});if(t?.requireSync&&i().kind===0)throw new E(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),ae(()=>{let a=i();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new E(601,!1)}},{equal:t?.equal})}function My(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}function Sy(e){let t=e.userAgentData?.brands;return t!==void 0&&Array.isArray(t)}function oo(){let e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):0}function ld(){let e=navigator.userAgent.match(/Firefox\/([0-9]+)\./);return e?parseInt(e[1],10):0}function Ty(){return Sy(navigator)?navigator.userAgentData?.brands:[]}function Js(){return Ty()?.some(e=>e.brand==="Google Chrome")}function dd(){if(Js())return"Google Chrome";let e=navigator.userAgent;return e.includes("Firefox")?"Firefox":e.includes("SamsungBrowser")?"Samsung Internet":e.includes("Opera")||e.includes("OPR")?"Opera":e.includes("Edge")?"Microsoft Edge (Legacy)":e.includes("Edg")?"Microsoft Edge (Chromium)":e.includes("Chrome")?"Chromium":e.includes("Safari")?"Apple Safari":"unknown"}function Ny(e,t){if(e&1&&(v(0,"p")(1,"span",0),C(2,"Chrome Version: "),g(),C(3),g()),e&2){let n=j();D(3),U("",n.chromeVersion," ")}}function xy(e,t){if(e&1&&(v(0,"p")(1,"span",0),C(2,"Firefox Version: "),g(),C(3),g()),e&2){let n=j();D(3),U("",n.firefoxVersion," ")}}var io=class e{userAgent=dd();chromeVersion=oo();firefoxVersion=ld();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-user-agent"]],decls:10,vars:2,consts:[[1,"label"]],template:function(n,r){n&1&&(v(0,"div")(1,"h3"),C(2,"User Agent"),g(),v(3,"p")(4,"span",0),C(5,"Browser Name: "),g(),C(6),g(),te(7,Ny,4,1,"p")(8,xy,4,1,"p"),g(),se(9,"hr")),n&2&&(D(6),U("",r.userAgent," "),D(),ie(r.chromeVersion>0?7:r.firefoxVersion>0?8:-1))},encapsulation:2,changeDetection:0})};var fd=131;async function Ay(){if(!Js())throw new Error("Your browser is not supported. Please use Google Chrome Dev or Canary.");if(oo()(console.error(e),Ho(e instanceof Error?e.message:"unknown"))))}var Py=["en","es","ja","zh","zh-Hant","it","fr","zz"],Zt=class e{#e=m(ot);async createLanguagePairs(t){if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let n=[];for(let r of Py)if(t!==r){let o={sourceLanguage:t,targetLanguage:r},i=await this.#e.canTranslate(o);i!=="no"&&n.push(T(S({},o),{available:i}))}return n}async translate(t,n){try{if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let r=await this.#e.createTranslator(t);if(!r)return"";let o=await r.translate(n);return r.destroy&&r.destroy(),o}catch(r){return console.error(r),""}}async downloadLanguagePackage(t){try{if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let n=await this.#e.createTranslator(t),r=n?"readily":"no";return n.destroy(),T(S({},t),{available:r})}catch(n){return console.error(n),T(S({},t),{available:"no"})}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var Ed=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(z(Jr),z(Dn))};static \u0275dir=zt({type:e})}return e})(),ky=(()=>{class e extends Ed{static \u0275fac=(()=>{let n;return function(o){return(n||(n=xu(e)))(o||e)}})();static \u0275dir=zt({type:e,features:[Wt]})}return e})(),_d=new M("");var Ly={provide:_d,useExisting:mn(()=>lo),multi:!0};function Vy(){let e=qt()?qt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var jy=new M(""),lo=(()=>{class e extends Ed{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Vy())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(z(Jr),z(Dn),z(jy,8))};static \u0275dir=zt({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&J("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Vs([Ly]),Wt]})}return e})();var By=new M(""),Hy=new M("");function wd(e){return e!=null}function Id(e){return En(e)?ct(e):e}function bd(e){let t={};return e.forEach(n=>{t=n!=null?S(S({},t),n):t}),Object.keys(t).length===0?null:t}function Md(e,t){return t.map(n=>n(e))}function $y(e){return!e.validate}function Sd(e){return e.map(t=>$y(t)?t:n=>t.validate(n))}function Uy(e){if(!e)return null;let t=e.filter(wd);return t.length==0?null:function(n){return bd(Md(n,t))}}function Td(e){return e!=null?Uy(Sd(e)):null}function Gy(e){if(!e)return null;let t=e.filter(wd);return t.length==0?null:function(n){let r=Md(n,t).map(Id);return $o(r).pipe(ut(bd))}}function Nd(e){return e!=null?Gy(Sd(e)):null}function hd(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function zy(e){return e._rawValidators}function Wy(e){return e._rawAsyncValidators}function Xs(e){return e?Array.isArray(e)?e:[e]:[]}function ao(e,t){return Array.isArray(e)?e.includes(t):e===t}function gd(e,t){let n=Xs(t);return Xs(e).forEach(o=>{ao(n,o)||n.push(o)}),n}function md(e,t){return Xs(t).filter(n=>!ao(e,n))}var co=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Td(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Nd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},ea=class extends co{name;get formDirective(){return null}get path(){return null}},Fn=class extends co{_parent=null;name=null;valueAccessor=null},ta=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},qy={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},jw=T(S({},qy),{"[class.ng-submitted]":"isSubmitted"}),xd=(()=>{class e extends ta{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(z(Fn,2))};static \u0275dir=zt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Fs("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[Wt]})}return e})();var Nn="VALID",so="INVALID",Yt="PENDING",xn="DISABLED",Kt=class{},uo=class extends Kt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},An=class extends Kt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},On=class extends Kt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Qt=class extends Kt{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function Zy(e){return(fo(e)?e.validators:e)||null}function Yy(e){return Array.isArray(e)?Td(e):e||null}function Qy(e,t){return(fo(t)?t.asyncValidators:e)||null}function Ky(e){return Array.isArray(e)?Nd(e):e||null}function fo(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var na=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return $e(this.statusReactive)}set status(t){$e(()=>this.statusReactive.set(t))}_status=ae(()=>this.statusReactive());statusReactive=k(void 0);get valid(){return this.status===Nn}get invalid(){return this.status===so}get pending(){return this.status==Yt}get disabled(){return this.status===xn}get enabled(){return this.status!==xn}errors;get pristine(){return $e(this.pristineReactive)}set pristine(t){$e(()=>this.pristineReactive.set(t))}_pristine=ae(()=>this.pristineReactive());pristineReactive=k(!0);get dirty(){return!this.pristine}get touched(){return $e(this.touchedReactive)}set touched(t){$e(()=>this.touchedReactive.set(t))}_touched=ae(()=>this.touchedReactive());touchedReactive=k(!1);get untouched(){return!this.touched}_events=new Oe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(gd(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(gd(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(md(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(md(t,this._rawAsyncValidators))}hasValidator(t){return ao(this._rawValidators,t)}hasAsyncValidator(t){return ao(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(T(S({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new On(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new On(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(T(S({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new An(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new An(!0,r))}markAsPending(t={}){this.status=Yt;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Qt(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(T(S({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=xn,this.errors=null,this._forEachChild(o=>{o.disable(T(S({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new uo(this.value,r)),this._events.next(new Qt(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(T(S({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Nn,this._forEachChild(r=>{r.enable(T(S({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(T(S({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nn||this.status===Yt)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new uo(this.value,n)),this._events.next(new Qt(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(T(S({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xn:Nn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Yt,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Id(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Qt(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?xn:this.errors?so:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yt)?Yt:this._anyControlsHaveStatus(so)?so:Nn}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new An(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new On(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){fo(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Yy(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ky(this._rawAsyncValidators)}};var Ad=new M("CallSetDisabledState",{providedIn:"root",factory:()=>ra}),ra="always";function Jy(e,t){return[...t.path,e]}function Xy(e,t,n=ra){tv(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),nv(e,t),ov(e,t),rv(e,t),ev(e,t)}function yd(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ev(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function tv(e,t){let n=zy(e);t.validator!==null?e.setValidators(hd(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Wy(e);t.asyncValidator!==null?e.setAsyncValidators(hd(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();yd(t._rawValidators,o),yd(t._rawAsyncValidators,o)}function nv(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Od(e,t)})}function rv(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Od(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Od(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ov(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function iv(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function sv(e){return Object.getPrototypeOf(e.constructor)===ky}function av(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===lo?n=i:sv(i)?r=i:o=i}),o||r||n||null}function vd(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Dd(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var cv=class extends na{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Zy(n),Qy(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),fo(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Dd(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){vd(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){vd(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Dd(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var uv={provide:Fn,useExisting:mn(()=>oa)},Cd=Promise.resolve(),oa=(()=>{class e extends Fn{_changeDetectorRef;callSetDisabledState;control=new cv;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new le;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=av(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),iv(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Xy(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Cd.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Hs(r);Cd.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Jy(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(z(ea,9),z(By,10),z(Hy,10),z(_d,10),z(Bs,8),z(Ad,8))};static \u0275dir=zt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Vs([uv]),Wt,Xc]})}return e})();var lv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Xr({type:e});static \u0275inj=kr({})}return e})();var po=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Ad,useValue:n.callSetDisabledState??ra}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Xr({type:e});static \u0275inj=kr({imports:[lv]})}return e})();var ho=class e{#e=m(ot);#t=k(void 0);detector=this.#t.asReadonly();async detect(t,n=.6){if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let r=this.detector();if(!r)throw new Error("Built-in Language Detector is not available.");let o=await r.detect(t);if(!o.length)return;let i=o.find(a=>a.confidence>=n),s=i||o[0];return T(S({},s),{name:this.languageTagToHumanReadable(s.detectedLanguage)})}async createDetector(){if(this.detector()){console.log("Language Detector found.");return}if(!(await this.#e?.canDetect()==="readily"))throw new Error("Built-in Language Detector is not available.");let n=await this.#e?.createDetector();this.#t.set(n)}languageTagToHumanReadable(t,n="en"){return new Intl.DisplayNames([n],{type:"language"}).of(t)||"NA"}static \u0275fac=function(n){return new(n||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var go=class e{transform(t,n){let r=t>=n?"High Confidence":"Low Confidence";return`${t.toFixed(3)} (${r})`}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Tl({name:"confidence",type:e,pure:!0})};function fv(e,t){if(e&1&&(v(0,"p")(1,"span"),C(2),Hl(3,"confidence"),g(),v(4,"span"),C(5),g(),v(6,"span"),C(7),g()()),e&2){let n=j(),r=xe(3);D(2),U("Confidence: ",$l(3,3,r.confidence,n.minConfidence()),", "),D(3),U("Detected Language: ",r.detectedLanguage,", "),D(2),U("Detected Language Name: ",r.name,"")}}var mo=class e{detectedLanguage=Je.required();minConfidence=Je.required({transform:t=>t<0||t>1?.6:t});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-language-detection-result"]],inputs:{detectedLanguage:[1,"detectedLanguage"],minConfidence:[1,"minConfidence"]},decls:5,vars:2,consts:[[1,"label"]],template:function(n,r){if(n&1&&(v(0,"div")(1,"span",0),C(2,"Response: "),g(),Ee(3),te(4,fv,8,6,"p"),g()),n&2){D(3);let o=nt(r.detectedLanguage());D(),ie(o?4:-1)}},dependencies:[go],encapsulation:2,changeDetection:0})};var yo=class e{service=m(ho);inputText=k("Buenos tarde. Mucho Gusto. Hoy es 23 de Noviembre, 2024 y Mi charla es sobre Chrome Built-in AI.");detectedLanguage=k(void 0);detector=this.service.detector;isDisableDetectLanguage=ae(()=>!this.detector()||this.inputText().trim()==="");nextStep=qr();minConfidence=.6;async setup(){await this.service.createDetector()}async detectLanguage(){let t=this.inputText().trim(),n=await this.service.detect(t,this.minConfidence);this.detectedLanguage.set(n),n?this.nextStep.emit({code:n.detectedLanguage,toTranslate:n.confidence>=this.minConfidence,inputText:t}):this.nextStep.emit(void 0)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-language-detection"]],outputs:{nextStep:"nextStep"},decls:10,vars:4,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],["for","input",1,"label"],["id","input","name","input","rows","3",3,"ngModelChange","ngModel"],[2,"margin-right","0.5rem",3,"click"],[3,"click","disabled"],[3,"detectedLanguage","minConfidence"]],template:function(n,r){n&1&&(v(0,"div",0)(1,"div")(2,"span",1),C(3,"Input text: "),g(),v(4,"textarea",2),Ls("ngModelChange",function(i){return kl(r.inputText,i)||(r.inputText=i),i}),g()(),v(5,"button",3),J("click",function(){return r.setup()}),C(6,"Create language detector"),g(),v(7,"button",4),J("click",function(){return r.detectLanguage()}),C(8,"Detect Language"),g(),se(9,"app-language-detection-result",5),g()),n&2&&(D(4),ks("ngModel",r.inputText),D(3),he("disabled",r.isDisableDetectLanguage()),D(2),he("detectedLanguage",r.detectedLanguage())("minConfidence",r.minConfidence))},dependencies:[po,lo,xd,oa,mo],encapsulation:2,changeDetection:0})};var pv=(e,t)=>({sourceLanguage:e,targetLanguage:t});function hv(e,t){if(e&1&&(v(0,"p"),C(1),g()),e&2){let n=t.$implicit;D(),Ps("canTranslate('",n.sourceLanguage,"', '",n.targetLanguage,"') = ",n.available,"")}}function gv(e,t){if(e&1){let n=tt();v(0,"button",5),J("click",function(){je(n),j();let o=xe(0),i=j();return Be(i.translateText(o))}),C(1),g()}if(e&2){let n=j().$implicit;D(),ge(n.text)}}function mv(e,t){if(e&1){let n=tt();v(0,"button",5),J("click",function(){je(n),j();let o=xe(0),i=j();return Be(i.download(o))}),C(1),g()}if(e&2){let n=j().$implicit;D(),ge(n.text)}}function yv(e,t){if(e&1&&(Ee(0),te(1,gv,2,1,"button",4)(2,mv,2,1,"button",4)),e&2){let n=t.$implicit;nt(jl(2,pv,n.sourceLanguage,n.targetLanguage)),D(),ie(n.available==="readily"?1:n.available==="after-download"?2:-1)}}var vo=class e{service=m(Zt);languagePairs=Je.required();inputText=Je.required();translation=k("");downloadSuccess=qr();canTranslateButtons=ae(()=>this.languagePairs().reduce((t,n)=>n.available==="readily"?t.concat(T(S({},n),{text:`${n.sourceLanguage} to ${n.targetLanguage}`})):n.available==="after-download"?t.concat(T(S({},n),{text:`Download ${n.targetLanguage}`})):t,[]));async translateText(t){this.translation.set("");let n=await this.service.translate(t,this.inputText());this.translation.set(n)}async download(t){try{let n=await this.service.downloadLanguagePackage(t);n?.available==="readily"&&this.downloadSuccess.emit(n)}catch(n){console.error(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-translate-text"]],inputs:{languagePairs:[1,"languagePairs"],inputText:[1,"inputText"]},outputs:{downloadSuccess:"downloadSuccess"},decls:11,vars:1,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem","display","flex"],[2,"margin-right","0.5rem","flex-basis","50%"],[2,"display","flex","flex-direction","column"],[2,"margin","1rem"],[2,"margin-right","0.25rem"],[2,"margin-right","0.25rem",3,"click"]],template:function(n,r){n&1&&(v(0,"div",0)(1,"div",1),In(2,hv,2,3,"p",null,wn),g(),v(4,"div",2)(5,"div",3),In(6,yv,3,5,null,null,wn),g(),v(8,"div")(9,"p"),C(10),g()()()()),n&2&&(D(2),bn(r.languagePairs()),D(4),bn(r.canTranslateButtons()),D(4),U("Translation: ",r.translation(),""))},dependencies:[po],encapsulation:2,changeDetection:0})};function vv(e,t){if(e&1){let n=tt();v(0,"app-translate-text",2),J("downloadSuccess",function(o){je(n);let i=j();return Be(i.downloadNewLanguage(o))}),g()}if(e&2){let n=j(),r=xe(4);he("languagePairs",n.languagePairs())("inputText",r)}}function Dv(e,t){if(e&1&&(v(0,"p"),C(1),g()),e&2){j();let n=xe(4);D(),U("",n," cannot be translated.")}}var Do=class e{translationService=m(Zt);languagePairs=k([]);sample=k({sourceLanguage:"",inputText:""});async updateCanTranslate(t){if(this.languagePairs.set([]),this.sample.set({sourceLanguage:"",inputText:""}),t&&t.toTranslate){let{code:n,inputText:r}=t;this.languagePairs.set(await this.translationService.createLanguagePairs(n)),this.sample.set({sourceLanguage:n,inputText:r})}}downloadNewLanguage(t){this.languagePairs.update(n=>n.map(r=>r.sourceLanguage===t.sourceLanguage&&r.targetLanguage===t.targetLanguage?t:r))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-translation-container"]],decls:7,vars:2,consts:[[3,"nextStep"],[3,"languagePairs","inputText"],[3,"downloadSuccess","languagePairs","inputText"]],template:function(n,r){if(n&1){let o=tt();v(0,"div")(1,"h3"),C(2,"Translation API Demo"),g(),v(3,"app-language-detection",0),J("nextStep",function(s){return je(o),Be(r.updateCanTranslate(s))}),g(),Ee(4),te(5,vv,1,2,"app-translate-text",1)(6,Dv,2,1,"p"),g()}if(n&2){D(4);let o=nt(r.sample().inputText);D(),ie(r.sample().sourceLanguage&&o?5:o?6:-1)}},dependencies:[yo,vo],encapsulation:2,changeDetection:0})};function Cv(e,t){e&1&&se(0,"app-user-agent")}function Ev(e,t){if(e&1&&(v(0,"p"),C(1,"Another demo: "),v(2,"a",0),C(3),g()(),se(4,"app-translation-container")),e&2){let n=j();D(2),he("href",n.glitchDemo,Yr),D(),ge(n.glitchDemo)}}function _v(e,t){if(e&1&&C(0),e&2){j();let n=xe(2);U(" ",n," ")}}function wv(e,t){e&1&&(v(0,"p"),C(1,"If you're on Chrome, join the "),v(2,"a",1),C(3," Early Preview Program"),g(),C(4," to enable it. "),g())}var Co=class e{glitchDemo="https://translation-demo.glitch.me/";showUserAgent=Je(!1);hasCapability=Ks(pd(),{initialValue:""});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-detect-ai"]],inputs:{showUserAgent:[1,"showUserAgent"]},decls:6,vars:3,consts:[["target","_blank",3,"href"],["href","https://developer.chrome.com/docs/ai/built-in#get_an_early_preview","target","_blank"]],template:function(n,r){if(n&1&&(te(0,Cv,1,0,"app-user-agent"),v(1,"div"),Ee(2),te(3,Ev,5,2)(4,_v,1,1)(5,wv,5,0,"p"),g()),n&2){ie(r.showUserAgent()?0:-1),D(2);let o=nt(r.hasCapability());D(),ie(o?o!=="unknown"?4:5:3)}},dependencies:[Do,io],encapsulation:2,changeDetection:0})};function Iv(e,t){if(e&1&&(v(0,"li",2),C(1),g()),e&2){let n=t.$implicit;D(),ge(n)}}var Eo=class e{explainer="https://github.com/WICG/translation-api?tab=readme-ov-file#translation";minimumVersion="131.0.6778.2";steps=k(["Open new tab, go to chrome://flags/#translation-api.","Select Enabled. If you want to try many language pairs, select Enabled without language pack limit.","Relaunch Chrome","Open new tab, go to chrome://components.","Find Chrome TranslateKit",'Click "Check for update" button to download the language model. Version number should update.',"(Optional) Open new tab, go to chrome://on-device-translation-internals/","(Optional) Install language pairs."]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-setup"]],decls:13,vars:3,consts:[["target","_blank",3,"href"],[2,"margin-left","1rem","color","black"],[2,"line-height","1.25rem"]],template:function(n,r){n&1&&(v(0,"p"),C(1,"Explainer: "),v(2,"a",0),C(3),g(),C(4," (Outdated or broken changes) "),g(),v(5,"p"),C(6),g(),v(7,"h3"),C(8,"Setup"),g(),v(9,"ol",1),In(10,Iv,2,1,"li",2,wn),g(),se(12,"hr")),n&2&&(D(2),he("href",r.explainer,Yr),D(),ge(r.explainer),D(3),U("You will need Version ",r.minimumVersion," or above."),D(4),bn(r.steps()))},encapsulation:2,changeDetection:0})};function bv(e,t){e&1&&se(0,"app-setup")}var _o=class e{showSetup=k(!1);showUserAgent=k(!1);btnSetupText=ae(()=>this.showSetup()?"Hide Setup":"Show Setup");btnUserAgentText=ae(()=>this.showUserAgent()?"Hide User Agent":"Show User Agent");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-root"]],decls:11,vars:4,consts:[[2,"margin-bottom","0.5rem"],[2,"margin-right","0.25rem",3,"click"],[3,"click"],[3,"showUserAgent"]],template:function(n,r){if(n&1){let o=tt();v(0,"h2"),C(1,"Chrome Built-in Translation API "),g(),Ee(2)(3),v(4,"div",0)(5,"button",1),J("click",function(){return je(o),Be(r.showSetup.set(!r.showSetup()))}),C(6),g(),v(7,"button",2),J("click",function(){return je(o),Be(r.showUserAgent.set(!r.showUserAgent()))}),C(8),g()(),te(9,bv,1,0,"app-setup"),se(10,"app-detect-ai",3)}if(n&2){let o=r.showSetup()?"Hide Setup":"Show Setup",i=r.showUserAgent()?"Hide User Agent":"Show User Agent";D(6),ge(o),D(2),ge(i),D(),ie(r.showSetup()?9:-1),D(),he("showUserAgent",r.showUserAgent())}},dependencies:[Co,Eo],styles:["[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}"],changeDetection:0})};ad(_o,ud).catch(e=>console.error(e)); diff --git a/docs/translation-api-demo/main-ZPXUJUI6.js b/docs/translation-api-demo/main-ZPXUJUI6.js deleted file mode 100644 index 1c6edec..0000000 --- a/docs/translation-api-demo/main-ZPXUJUI6.js +++ /dev/null @@ -1,7 +0,0 @@ -var Pd=Object.defineProperty,kd=Object.defineProperties;var Ld=Object.getOwnPropertyDescriptors;var sa=Object.getOwnPropertySymbols;var Vd=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable;var aa=(e,t,n)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||={})Vd.call(t,n)&&aa(e,n,t[n]);if(sa)for(var n of sa(t))jd.call(t,n)&&aa(e,n,t[n]);return e},T=(e,t)=>kd(e,Ld(t));function So(e,t){return Object.is(e,t)}var V=null,Rn=!1,To=1,re=Symbol("SIGNAL");function _(e){let t=V;return V=e,t}function ca(){return V}var Xt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function kn(e){if(Rn)throw new Error("");if(V===null)return;V.consumerOnSignalRead(e);let t=V.nextProducerIndex++;if(jn(V),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ao(e){jn(e);for(let t=0;t0}function jn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function fa(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function pa(e){return e.producerNode!==void 0}function ha(e){let t=Object.create($d);t.computation=e;let n=()=>{if(No(t),kn(t),t.value===Pn)throw t.error;return t.value};return n[re]=t,n}var Io=Symbol("UNSET"),bo=Symbol("COMPUTING"),Pn=Symbol("ERRORED"),$d=T(S({},Xt),{value:Io,dirty:!0,error:null,equal:So,producerMustRecompute(e){return e.value===Io||e.value===bo},producerRecomputeValue(e){if(e.value===bo)throw new Error("Detected cycle in computations.");let t=e.value;e.value=bo;let n=Ln(e),r;try{r=e.computation()}catch(o){r=Pn,e.error=o}finally{xo(e,n)}if(t!==Io&&t!==Pn&&r!==Pn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Ud(){throw new Error}var ga=Ud;function ma(){ga()}function ya(e){ga=e}var Gd=null;function va(e){let t=Object.create(Fo);t.value=e;let n=()=>(kn(t),t.value);return n[re]=t,n}function Bn(e,t){la()||ma(),e.equal(e.value,t)||(e.value=t,zd(e))}function Da(e,t){la()||ma(),Bn(e,t(e.value))}var Fo=T(S({},Xt),{equal:So,value:void 0});function zd(e){e.version++,Bd(),ua(e),Gd?.()}function N(e){return typeof e=="function"}function Hn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var $n=Hn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function en(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(N(r))try{r()}catch(i){t=i instanceof $n?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ca(i)}catch(s){t=t??[],s instanceof $n?t=[...t,...s.errors]:t.push(s)}}if(t)throw new $n(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ca(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&en(n,t)}remove(t){let{_finalizers:n}=this;n&&en(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var Ro=Y.EMPTY;function Un(e){return e instanceof Y||e&&"closed"in e&&N(e.remove)&&N(e.add)&&N(e.unsubscribe)}function Ca(e){N(e)?e():e.unsubscribe()}var ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Et={setTimeout(e,t,...n){let{delegate:r}=Et;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Et;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Gn(e){Et.setTimeout(()=>{let{onUnhandledError:t}=ye;if(t)t(e);else throw e})}function Po(){}var Ea=ko("C",void 0,void 0);function _a(e){return ko("E",void 0,e)}function wa(e){return ko("N",e,void 0)}function ko(e,t,n){return{kind:e,value:t,error:n}}var it=null;function _t(e){if(ye.useDeprecatedSynchronousErrorHandling){let t=!it;if(t&&(it={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=it;if(it=null,n)throw r}}else e()}function Ia(e){ye.useDeprecatedSynchronousErrorHandling&&it&&(it.errorThrown=!0,it.error=e)}var st=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Un(t)&&t.add(this)):this.destination=Zd}static create(t,n,r){return new wt(t,n,r)}next(t){this.isStopped?Vo(wa(t),this):this._next(t)}error(t){this.isStopped?Vo(_a(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Vo(Ea,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Wd=Function.prototype.bind;function Lo(e,t){return Wd.call(e,t)}var jo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){zn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){zn(r)}else zn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){zn(n)}}},wt=class extends st{constructor(t,n,r){super();let o;if(N(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ye.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Lo(t.next,i),error:t.error&&Lo(t.error,i),complete:t.complete&&Lo(t.complete,i)}):o=t}this.destination=new jo(o)}};function zn(e){ye.useDeprecatedSynchronousErrorHandling?Ia(e):Gn(e)}function qd(e){throw e}function Vo(e,t){let{onStoppedNotification:n}=ye;n&&Et.setTimeout(()=>n(e,t))}var Zd={closed:!0,next:Po,error:qd,complete:Po};var It=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ba(e){return e}function Ma(e){return e.length===0?ba:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var H=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Qd(n)?n:new wt(n,r,o);return _t(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Sa(r),new r((o,i)=>{let s=new wt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[It](){return this}pipe(...n){return Ma(n)(this)}toPromise(n){return n=Sa(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Sa(e){var t;return(t=e??ye.Promise)!==null&&t!==void 0?t:Promise}function Yd(e){return e&&N(e.next)&&N(e.error)&&N(e.complete)}function Qd(e){return e&&e instanceof st||Yd(e)&&Un(e)}function Kd(e){return N(e?.lift)}function Ue(e){return t=>{if(Kd(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ge(e,t,n,r,o){return new Bo(e,t,n,r,o)}var Bo=class extends st{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Ta=Hn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Oe=(()=>{class e extends H{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Wn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ta}next(n){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){_t(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ro:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,en(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new H;return n.source=this,n}}return e.create=(t,n)=>new Wn(t,n),e})(),Wn=class extends Oe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ro}};var tn=class extends Oe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function Na(e){return e&&N(e.schedule)}function xa(e){return e[e.length-1]}function Aa(e){return N(xa(e))?e.pop():void 0}function Oa(e){return Na(xa(e))?e.pop():void 0}function Ra(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Fa(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function at(e){return this instanceof at?(this.v=e,this):new at(e)}function Pa(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(A){return new Promise(function(L,P){i.push([f,A,L,P])>1||c(f,A)})},h&&(o[f]=h(o[f])))}function c(f,h){try{u(r[f](h))}catch(A){p(i[0][3],A)}}function u(f){f.value instanceof at?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function ka(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Fa=="function"?Fa(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var qn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Zn(e){return N(e?.then)}function Yn(e){return N(e[It])}function Qn(e){return Symbol.asyncIterator&&N(e?.[Symbol.asyncIterator])}function Kn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Jd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Jn=Jd();function Xn(e){return N(e?.[Jn])}function er(e){return Pa(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield at(n.read());if(o)return yield at(void 0);yield yield at(r)}}finally{n.releaseLock()}})}function tr(e){return N(e?.getReader)}function _e(e){if(e instanceof H)return e;if(e!=null){if(Yn(e))return Xd(e);if(qn(e))return ef(e);if(Zn(e))return tf(e);if(Qn(e))return La(e);if(Xn(e))return nf(e);if(tr(e))return rf(e)}throw Kn(e)}function Xd(e){return new H(t=>{let n=e[It]();if(N(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ef(e){return new H(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Gn)})}function nf(e){return new H(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function La(e){return new H(t=>{of(e,t).catch(n=>t.error(n))})}function rf(e){return La(er(e))}function of(e,t){var n,r,o,i;return Ra(this,void 0,void 0,function*(){try{for(n=ka(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function we(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function nr(e,t=0){return Ue((n,r)=>{n.subscribe(Ge(r,o=>we(r,e,()=>r.next(o),t),()=>we(r,e,()=>r.complete(),t),o=>we(r,e,()=>r.error(o),t)))})}function rr(e,t=0){return Ue((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Va(e,t){return _e(e).pipe(rr(t),nr(t))}function ja(e,t){return _e(e).pipe(rr(t),nr(t))}function Ba(e,t){return new H(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ha(e,t){return new H(n=>{let r;return we(n,t,()=>{r=e[Jn](),we(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>N(r?.return)&&r.return()})}function or(e,t){if(!e)throw new Error("Iterable cannot be null");return new H(n=>{we(n,t,()=>{let r=e[Symbol.asyncIterator]();we(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function $a(e,t){return or(er(e),t)}function Ua(e,t){if(e!=null){if(Yn(e))return Va(e,t);if(qn(e))return Ba(e,t);if(Zn(e))return ja(e,t);if(Qn(e))return or(e,t);if(Xn(e))return Ha(e,t);if(tr(e))return $a(e,t)}throw Kn(e)}function ct(e,t){return t?Ua(e,t):_e(e)}function Ho(...e){let t=Oa(e);return ct(e,t)}function ut(e,t){return Ue((n,r)=>{let o=0;n.subscribe(Ge(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:sf}=Array;function af(e,t){return sf(t)?e(...t):e(t)}function Ga(e){return ut(t=>af(e,t))}var{isArray:cf}=Array,{getPrototypeOf:uf,prototype:lf,keys:df}=Object;function za(e){if(e.length===1){let t=e[0];if(cf(t))return{args:t,keys:null};if(ff(t)){let n=df(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function ff(e){return e&&typeof e=="object"&&uf(e)===lf}function Wa(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function $o(...e){let t=Aa(e),{args:n,keys:r}=za(e),o=new H(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=p},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Wa(r,a):a),i.complete())}))}});return t?o.pipe(Ga(t)):o}function ir(e){return Ue((t,n)=>{let r=null,o=!1,i;r=t.subscribe(Ge(n,void 0,void 0,s=>{i=_e(e(s,ir(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}var Nc="https://g.co/ng/security#xss",E=class extends Error{code;constructor(t,n){super(Zi(t,n)),this.code=t}};function Zi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var xc=Symbol("InputSignalNode#UNSET"),pf=T(S({},Fo),{transformFn:void 0,applyValueToInputSignal(e,t){Bn(e,t)}});function Ac(e,t){let n=Object.create(pf);n.value=e,n.transformFn=t?.transform;function r(){if(kn(n),n.value===xc)throw new E(-950,!1);return n.value}return r[re]=n,r}function Pr(e){return{toString:e}.toString()}function F(e){for(let t in e)if(e[t]===F)return t;throw Error("Could not find renamed property on target object.")}function hf(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function de(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(de).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function qa(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var gf=F({__forward_ref__:F});function mn(e){return e.__forward_ref__=mn,e.toString=function(){return de(this())},e}function Q(e){return Oc(e)?e():e}function Oc(e){return typeof e=="function"&&e.hasOwnProperty(gf)&&e.__forward_ref__===mn}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function kr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yi(e){return Za(e,Fc)||Za(e,Rc)}function Za(e,t){return e.hasOwnProperty(t)?e[t]:null}function mf(e){let t=e&&(e[Fc]||e[Rc]);return t||null}function Ya(e){return e&&(e.hasOwnProperty(Qa)||e.hasOwnProperty(yf))?e[Qa]:null}var Fc=F({\u0275prov:F}),Qa=F({\u0275inj:F}),Rc=F({ngInjectableDef:F}),yf=F({ngInjectorDef:F}),M=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=R({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Pc(e){return e&&!!e.\u0275providers}var vf=F({\u0275cmp:F}),Df=F({\u0275dir:F}),Cf=F({\u0275pipe:F});var hr=F({\u0275fac:F}),on=F({__NG_ELEMENT_ID__:F}),Ka=F({__NG_ENV_ID__:F});function Tt(e){return typeof e=="string"?e:e==null?"":String(e)}function Ef(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Tt(e)}function _f(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new E(-200,e)}function Qi(e,t){throw new E(-201,!1)}var b=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(b||{}),ti;function kc(){return ti}function X(e){let t=ti;return ti=e,t}function Lc(e,t,n){let r=Yi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&b.Optional)return null;if(t!==void 0)return t;Qi(e,"Injector")}var wf={},sn=wf,If="__NG_DI_FLAG__",gr="ngTempTokenPath",bf="ngTokenPath",Mf=/\n/gm,Sf="\u0275",Ja="__source",Nt;function Tf(){return Nt}function ze(e){let t=Nt;return Nt=e,t}function Nf(e,t=b.Default){if(Nt===void 0)throw new E(-203,!1);return Nt===null?Lc(e,void 0,t):Nt.get(e,t&b.Optional?null:void 0,t)}function O(e,t=b.Default){return(kc()||Nf)(Q(e),t)}function m(e,t=b.Default){return O(e,Lr(t))}function Lr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ni(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):de(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Mf,` - `)}`}function lt(e,t){let n=e.hasOwnProperty(hr);return n?e[hr]:null}function Ki(e,t){e.forEach(n=>Array.isArray(n)?Ki(n,t):t(n))}function Ff(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Rf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Pf(e,t,n){let r=yn(e,t);return r>=0?e[r|1]=n:(r=~r,Rf(e,r,t,n)),r}function Uo(e,t){let n=yn(e,t);if(n>=0)return e[n|1]}function yn(e,t){return kf(e,t,1)}function kf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return Ki(t,s=>{let a=s;ri(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Gc(o,i),n}function Gc(e,t){for(let n=0;n{t(i,r)})}}function ri(e,t,n,r){if(e=Q(e),!e)return!1;let o=null,i=Ya(e),s=!i&&Vr(e);if(!i&&!s){let c=e.ngModule;if(i=Ya(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ri(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ki(i.imports,l=>{ri(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Gc(u,t)}if(!a){let u=lt(o)||(()=>new o);t({provide:o,useFactory:u,deps:ue},o),t({provide:Bc,useValue:o,multi:!0},o),t({provide:an,useValue:()=>O(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ji(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ji(e,t){for(let n of e)Pc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ji(n,t):t(n)}var jf=F({provide:String,useValue:F});function zc(e){return e!==null&&typeof e=="object"&&jf in e}function Bf(e){return!!(e&&e.useExisting)}function Hf(e){return!!(e&&e.useFactory)}function Ot(e){return typeof e=="function"}function $f(e){return!!e.useClass}var Br=new M(""),ur={},Uf={},Go;function Xi(){return Go===void 0&&(Go=new mr),Go}var dt=class{},cn=class extends dt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ii(t,s=>this.processProvider(s)),this.records.set(jc,bt(void 0,this)),o.has("environment")&&this.records.set(dt,bt(void 0,this));let i=this.records.get(Br);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Bc,ue,b.Self))}destroy(){nn(this),this._destroyed=!0;let t=_(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),_(t)}}onDestroy(t){return nn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){nn(this);let n=ze(this),r=X(void 0),o;try{return t()}finally{ze(n),X(r)}}get(t,n=sn,r=b.Default){if(nn(this),t.hasOwnProperty(Ka))return t[Ka](this);r=Lr(r);let o,i=ze(this),s=X(void 0);try{if(!(r&b.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Zf(t)&&Yi(t);u&&this.injectableDefInScope(u)?c=bt(oi(t),ur):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&b.Self?Xi():this.parent;return n=r&b.Optional&&n===sn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[gr]=a[gr]||[]).unshift(de(t)),i)throw a;return Af(a,t,"R3InjectorError",this.source)}else throw a}finally{X(s),ze(i)}}resolveInjectorInitializers(){let t=_(null),n=ze(this),r=X(void 0),o;try{let i=this.get(an,ue,b.Self);for(let s of i)s()}finally{ze(n),X(r),_(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(de(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Q(t);let n=Ot(t)?t:Q(t&&t.provide),r=zf(t);if(!Ot(t)&&t.multi===!0){let o=this.records.get(n);o||(o=bt(void 0,ur,!0),o.factory=()=>ni(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=_(null);try{return n.value===ur&&(n.value=Uf,n.value=n.factory()),typeof n.value=="object"&&n.value&&qf(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{_(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Q(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function oi(e){let t=Yi(e),n=t!==null?t.factory:lt(e);if(n!==null)return n;if(e instanceof M)throw new E(204,!1);if(e instanceof Function)return Gf(e);throw new E(204,!1)}function Gf(e){if(e.length>0)throw new E(204,!1);let n=mf(e);return n!==null?()=>n.factory(e):()=>new e}function zf(e){if(zc(e))return bt(void 0,e.useValue);{let t=Wc(e);return bt(t,ur)}}function Wc(e,t,n){let r;if(Ot(e)){let o=Q(e);return lt(o)||oi(o)}else if(zc(e))r=()=>Q(e.useValue);else if(Hf(e))r=()=>e.useFactory(...ni(e.deps||[]));else if(Bf(e))r=()=>O(Q(e.useExisting));else{let o=Q(e&&(e.useClass||e.provide));if(Wf(e))r=()=>new o(...ni(e.deps));else return lt(o)||oi(o)}return r}function nn(e){if(e.destroyed)throw new E(205,!1)}function bt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Wf(e){return!!e.deps}function qf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Zf(e){return typeof e=="function"||typeof e=="object"&&e instanceof M}function ii(e,t){for(let n of e)Array.isArray(n)?ii(n,t):n&&Pc(n)?ii(n.\u0275providers,t):t(n)}function qc(e,t){e instanceof cn&&nn(e);let n,r=ze(e),o=X(void 0);try{return t()}finally{ze(r),X(o)}}function Zc(){return kc()!==void 0||Tf()!=null}function Yc(e){if(!Zc())throw new E(-203,!1)}var Ve=0,w=1,y=2,fe=3,De=4,Se=5,un=6,yr=7,W=8,Ft=9,Fe=10,G=11,ln=12,Xa=13,$t=14,Ce=15,Rt=16,Mt=17,Pt=18,Hr=19,Qc=20,We=21,zo=22,vr=23,oe=24,K=25,Kc=1;var dn=7,Yf=8,Dr=9,ee=10,Cr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Cr||{});function qe(e){return Array.isArray(e)&&typeof e[Kc]=="object"}function yt(e){return Array.isArray(e)&&e[Kc]===!0}function Jc(e){return(e.flags&4)!==0}function $r(e){return e.componentOffset>-1}function es(e){return(e.flags&1)===1}function Ze(e){return!!e.template}function si(e){return(e[y]&512)!==0}var ai=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Xc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var eu=(()=>{let e=()=>tu;return e.ngInherit=!0,e})();function tu(e){return e.type.prototype.ngOnChanges&&(e.setInput=Kf),Qf}function Qf(){let e=ru(this),t=e?.current;if(t){let n=e.previous;if(n===At)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Kf(e,t,n,r,o){let i=this.declaredInputs[r],s=ru(e)||Jf(e,{previous:At,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ai(u&&u.currentValue,n,c===At),Xc(e,t,o,n)}var nu="__ngSimpleChanges__";function ru(e){return e[nu]||null}function Jf(e,t){return e[nu]=t}var ec=null;var Ie=function(e,t,n){ec?.(e,t,n)},Xf="svg",ep="math";function Re(e){for(;Array.isArray(e);)e=e[Ve];return e}function ou(e,t){return Re(t[e])}function Te(e,t){return Re(t[e.index])}function ts(e,t){return e.data[t]}function iu(e,t){return e[t]}function Ke(e,t){let n=t[e];return qe(n)?n:n[Ve]}function ns(e){return(e[y]&128)===128}function kt(e,t){return t==null?null:e[t]}function su(e){e[Mt]=0}function rs(e){e[y]&1024||(e[y]|=1024,ns(e)&&Gr(e))}function tp(e,t){for(;e>0;)t=t[$t],e--;return t}function Ur(e){return!!(e[y]&9216||e[oe]?.dirty)}function ci(e){e[Fe].changeDetectionScheduler?.notify(9),e[y]&64&&(e[y]|=1024),Ur(e)&&Gr(e)}function Gr(e){e[Fe].changeDetectionScheduler?.notify(0);let t=ft(e);for(;t!==null&&!(t[y]&8192||(t[y]|=8192,!ns(t)));)t=ft(t)}function au(e,t){if((e[y]&256)===256)throw new E(911,!1);e[We]===null&&(e[We]=[]),e[We].push(t)}function np(e,t){if(e[We]===null)return;let n=e[We].indexOf(t);n!==-1&&e[We].splice(n,1)}function ft(e){let t=e[fe];return yt(t)?t[fe]:t}var I={lFrame:yu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ui=!1;function rp(){return I.lFrame.elementDepthCount}function op(){I.lFrame.elementDepthCount++}function ip(){I.lFrame.elementDepthCount--}function cu(){return I.bindingsEnabled}function sp(){return I.skipHydrationRootTNode!==null}function ap(e){return I.skipHydrationRootTNode===e}function cp(){I.skipHydrationRootTNode=null}function x(){return I.lFrame.lView}function q(){return I.lFrame.tView}function je(e){return I.lFrame.contextLView=e,e[W]}function Be(e){return I.lFrame.contextLView=null,e}function pe(){let e=uu();for(;e!==null&&e.type===64;)e=e.parent;return e}function uu(){return I.lFrame.currentTNode}function up(){let e=I.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ut(e,t){let n=I.lFrame;n.currentTNode=e,n.isParent=t}function lu(){return I.lFrame.isParent}function lp(){I.lFrame.isParent=!1}function dp(){return I.lFrame.contextLView}function du(){return ui}function tc(e){let t=ui;return ui=e,t}function fu(){let e=I.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fp(){return I.lFrame.bindingIndex}function pp(e){return I.lFrame.bindingIndex=e}function vn(){return I.lFrame.bindingIndex++}function pu(e){let t=I.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function hp(){return I.lFrame.inI18n}function gp(e,t){let n=I.lFrame;n.bindingIndex=n.bindingRootIndex=e,li(t)}function mp(){return I.lFrame.currentDirectiveIndex}function li(e){I.lFrame.currentDirectiveIndex=e}function yp(e){let t=I.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function hu(e){I.lFrame.currentQueryIndex=e}function vp(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[Se]:null}function gu(e,t,n){if(n&b.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&b.Host);)if(o=vp(i),o===null||(i=i[$t],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=I.lFrame=mu();return r.currentTNode=t,r.lView=e,!0}function os(e){let t=mu(),n=e[w];I.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function mu(){let e=I.lFrame,t=e===null?null:e.child;return t===null?yu(e):t}function yu(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function vu(){let e=I.lFrame;return I.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Du=vu;function is(){let e=vu();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Dp(e){return(I.lFrame.contextLView=tp(e,I.lFrame.contextLView))[W]}function He(){return I.lFrame.selectedIndex}function pt(e){I.lFrame.selectedIndex=e}function Cu(){let e=I.lFrame;return ts(e.tView,e.selectedIndex)}function Cp(){return I.lFrame.currentNamespace}var Eu=!0;function ss(){return Eu}function as(e){Eu=e}function Ep(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=tu(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function cs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[Mt]+=65536),(a>14>16&&(e[y]&3)===t&&(e[y]+=16384,nc(a,i)):nc(a,i)}var xt=-1,ht=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function wp(e){return e instanceof ht}function Ip(e){return(e.flags&8)!==0}function bp(e){return(e.flags&16)!==0}function di(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function hi(e,t){let n=Np(e),r=t;for(;n>0;)r=r[$t],n--;return r}var gi=!0;function Er(e){let t=gi;return gi=e,t}var xp=256,wu=xp-1,Iu=5,Ap=0,be={};function Op(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(on)&&(r=n[on]),r==null&&(r=n[on]=Ap++);let o=r&wu,i=1<>Iu)]|=i}function _r(e,t){let n=bu(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,Zo(r.data,e),Zo(t,null),Zo(r.blueprint,null));let o=Mu(e,t),i=e.injectorIndex;if(Tp(o)){let s=pi(o),a=hi(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Zo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Mu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Ou(o),r===null)return xt;if(n++,o=o[$t],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return xt}function mi(e,t,n){Op(e,t,n)}function Su(e,t,n){if(n&b.Optional||e!==void 0)return e;Qi(t,"NodeInjector")}function Tu(e,t,n,r){if(n&b.Optional&&r===void 0&&(r=null),!(n&(b.Self|b.Host))){let o=e[Ft],i=X(void 0);try{return o?o.get(t,r,n&b.Optional):Lc(t,r,n&b.Optional)}finally{X(i)}}return Su(r,t,n)}function Nu(e,t,n,r=b.Default,o){if(e!==null){if(t[y]&2048&&!(r&b.Self)){let s=Lp(e,t,n,r,be);if(s!==be)return s}let i=xu(e,t,n,r,be);if(i!==be)return i}return Tu(t,n,r,o)}function xu(e,t,n,r,o){let i=Pp(n);if(typeof i=="function"){if(!gu(t,e,r))return r&b.Host?Su(o,n,r):Tu(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&b.Optional))Qi(n);else return s}finally{Du()}}else if(typeof i=="number"){let s=null,a=bu(e,t),c=xt,u=r&b.Host?t[Ce][Se]:null;for((a===-1||r&b.SkipSelf)&&(c=a===-1?Mu(e,t):t[a+8],c===xt||!ic(r,!1)?a=-1:(s=t[w],a=pi(c),t=hi(c,t)));a!==-1;){let l=t[w];if(oc(i,a,l.data)){let d=Fp(a,t,n,s,r,u);if(d!==be)return d}c=t[a+8],c!==xt&&ic(r,t[w].data[a+8]===u)&&oc(i,a,t)?(s=l,a=pi(c),t=hi(c,t)):a=-1}}return o}function Fp(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?$r(a)&&gi:r!=s&&(a.type&3)!==0,u=o&b.Host&&i===a,l=Rp(a,s,n,c,u);return l!==null?Lt(t,s,l,a):be}function Rp(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,p=o?a+l:u;for(let f=d;f=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Ze(f)&&f.type===n)return c}return null}function Lt(e,t,n,r){let o=e[n],i=t.data;if(wp(o)){let s=o;s.resolving&&_f(Ef(i[n]));let a=Er(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?X(s.injectImpl):null,l=gu(e,r,b.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Ep(n,i[n],t)}finally{u!==null&&X(u),Er(a),s.resolving=!1,Du()}}return o}function Pp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(on)?e[on]:void 0;return typeof t=="number"?t>=0?t&wu:kp:t}function oc(e,t,n){let r=1<>Iu)]&r)}function ic(e,t){return!(e&b.Self)&&!(e&b.Host&&t)}var wr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Nu(this._tNode,this._lView,t,Lr(r),n)}};function kp(){return new wr(pe(),x())}function Au(e){return Pr(()=>{let t=e.prototype.constructor,n=t[hr]||yi(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[hr]||yi(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function yi(e){return Oc(e)?()=>{let t=yi(Q(e));return t&&t()}:lt(e)}function Lp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[y]&2048&&!(s[y]&512);){let a=xu(i,s,n,r|b.Self,be);if(a!==be)return a;let c=i.parent;if(!c){let u=s[Qc];if(u){let l=u.get(n,be,r);if(l!==be)return l}c=Ou(s),s=s[$t]}i=c}return o}function Ou(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[Se]:null}function sc(e,t=null,n=null,r){let o=Vp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Vp(e,t=null,n=null,r,o=new Set){let i=[n||ue,Vf(e)];return r=r||(typeof e=="object"?void 0:de(e)),new cn(i,t||Xi(),r||null,o)}var Ye=class e{static THROW_IF_NOT_FOUND=sn;static NULL=new mr;static create(t,n){if(Array.isArray(t))return sc({name:""},n,t,"");{let r=t.name??"";return sc({name:r},t.parent,t.providers,r)}}static \u0275prov=R({token:e,providedIn:"any",factory:()=>O(jc)});static __NG_ELEMENT_ID__=-1};var jp=new M("");jp.__NG_ELEMENT_ID__=e=>{let t=pe();if(t===null)throw new E(204,!1);if(t.type&2)return t.value;if(e&b.Optional)return null;throw new E(204,!1)};var Fu=!1,Gt=(()=>{class e{static __NG_ELEMENT_ID__=Bp;static __NG_ENV_ID__=n=>n}return e})(),vi=class extends Gt{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return au(this._lView,t),()=>np(this._lView,t)}};function Bp(){return new vi(x())}var Vt=class{},zr=new M("",{providedIn:"root",factory:()=>!1});var Ru=new M(""),us=new M(""),Wr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new tn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();var Di=class extends Oe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Zc()&&(this.destroyRef=m(Gt,{optional:!0})??void 0,this.pendingTasks=m(Wr,{optional:!0})??void 0)}emit(t){let n=_(null);try{super.next(t)}finally{_(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},le=Di;function Ir(...e){}function Pu(e){let t,n;function r(){e=Ir;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function ac(e){return queueMicrotask(()=>e()),()=>{e=Ir}}var ls="isAngularZone",br=ls+"_ID",Hp=0,$=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new le(!1);onMicrotaskEmpty=new le(!1);onStable=new le(!1);onError=new le(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Fu}=t;if(typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Gp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(ls)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new E(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,$p,Ir,Ir);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},$p={};function ds(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Up(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Pu(()=>{e.callbackScheduled=!1,Ci(e),e.isCheckStableRunning=!0,ds(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ci(e)}function Gp(e){let t=()=>{Up(e)},n=Hp++;e._inner=e._inner.fork({name:"angular",properties:{[ls]:!0,[br]:n,[br+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(zp(c))return r.invokeTask(i,s,a,c);try{return cc(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),uc(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return cc(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Wp(c)&&t(),uc(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ci(e),ds(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ci(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function cc(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function uc(e){e._nesting--,ds(e)}var Mr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new le;onMicrotaskEmpty=new le;onStable=new le;onError=new le;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function zp(e){return ku(e,"__ignore_ng_zone__")}function Wp(e){return ku(e,"__scheduler_tick__")}function ku(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Pe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},qp=new M("",{providedIn:"root",factory:()=>{let e=m($),t=m(Pe);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),Ei=class{destroyed=!1;listeners=null;errorHandler=m(Pe,{optional:!0});destroyRef=m(Gt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new E(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new E(953,!1);if(this.listeners===null)return;let n=_(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{_(n)}}};function qr(e){return new Ei}function lc(e,t){return Ac(e,t)}function Zp(e){return Ac(xc,e)}var Je=(lc.required=Zp,lc);function Yp(){return Lu(pe(),x())}function Lu(e,t){return new Dn(Te(e,t))}var Dn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Yp}return e})();function Vu(e){return(e.flags&128)===128}var ju=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ju||{}),Bu=new Map,Qp=0;function Kp(){return Qp++}function Jp(e){Bu.set(e[Hr],e)}function _i(e){Bu.delete(e[Hr])}var dc="__ngContext__";function gt(e,t){qe(t)?(e[dc]=t[Hr],Jp(t)):e[dc]=t}function Hu(e){return Uu(e[ln])}function $u(e){return Uu(e[De])}function Uu(e){for(;e!==null&&!yt(e);)e=e[De];return e}var wi;function Gu(e){wi=e}function Xp(){if(wi!==void 0)return wi;if(typeof document<"u")return document;throw new E(210,!1)}var fs=new M("",{providedIn:"root",factory:()=>eh}),eh="ng",ps=new M(""),Xe=new M("",{providedIn:"platform",factory:()=>"unknown"});var hs=new M("",{providedIn:"root",factory:()=>Xp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var th="h",nh="b";var zu=!1,rh=new M("",{providedIn:"root",factory:()=>zu});var oh=()=>null;function gs(e,t,n=!1){return oh(e,t,n)}var Me=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Me||{});var Sr=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Nc})`}};function Zr(e){return e instanceof Sr?e.changingThisBreaksApplicationSecurity:e}function Wu(e,t){let n=ih(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Nc})`)}return n===t}function ih(e){return e instanceof Sr&&e.getTypeName()||null}var sh=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function qu(e){return e=String(e),e.match(sh)?e:"unsafe:"+e}var ms=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ms||{});function Yr(e){let t=ah();return t?t.sanitize(ms.URL,e)||"":Wu(e,"URL")?Zr(e):qu(Tt(e))}function ah(){let e=x();return e&&e[Fe].sanitizer}var Qe=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Qe||{}),ke=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ke||{}),ch;function ys(e,t){return ch(e,t)}function St(e,t,n,r,o){if(r!=null){let i,s=!1;yt(r)?i=r:qe(r)&&(s=!0,r=r[Ve]);let a=Re(r);e===0&&n!==null?o==null?Ku(t,n,a):Ii(t,n,a,o||null,!0):e===1&&n!==null?Ii(t,n,a,o||null,!0):e===2?wh(t,a,s):e===3&&t.destroyNode(a),i!=null&&bh(t,e,i,n,o)}}function uh(e,t){return e.createText(t)}function lh(e,t,n){e.setValue(t,n)}function Zu(e,t,n){return e.createElement(t,n)}function dh(e,t){Yu(e,t),t[Ve]=null,t[Se]=null}function fh(e,t,n,r,o,i){r[Ve]=o,r[Se]=t,Qr(e,r,n,1,o,i)}function Yu(e,t){t[Fe].changeDetectionScheduler?.notify(10),Qr(e,t,t[G],2,null,null)}function ph(e){let t=e[ln];if(!t)return Yo(e[w],e);for(;t;){let n=null;if(qe(t))n=t[ln];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[De]&&t!==e;)qe(t)&&Yo(t[w],t),t=t[fe];t===null&&(t=e),qe(t)&&Yo(t[w],t),n=t&&t[De]}t=n}}function hh(e,t,n,r){let o=ee+r,i=n.length;r>0&&(n[o-1][De]=t),r0&&(e[n-1][De]=r[De]);let i=Vc(e,ee+t);dh(r[w],r);let s=i[Pt];s!==null&&s.detachView(i[w]),r[fe]=null,r[De]=null,r[y]&=-129}return r}function Cs(e,t){if(!(t[y]&256)){let n=t[G];n.destroyNode&&Qr(e,t,n,3,null,null),ph(t)}}function Yo(e,t){if(t[y]&256)return;let n=_(null);try{t[y]&=-129,t[y]|=256,t[oe]&&Oo(t[oe]),mh(e,t),gh(e,t),t[w].type===1&&t[G].destroy();let r=t[Rt];if(r!==null&&yt(t[fe])){r!==t[fe]&&vs(r,t);let o=t[Pt];o!==null&&o.detachView(e)}_i(t)}finally{_(n)}}function gh(e,t){let n=e.cleanup,r=t[yr];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[yr]=null);let o=t[We];if(o!==null){t[We]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Me.None||i===Me.Emulated)return null}return Te(r,n)}}function Ii(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Ku(e,t,n){e.appendChild(t,n)}function fc(e,t,n,r,o){r!==null?Ii(e,t,n,r,o):Ku(e,t,n)}function Dh(e,t){return e.parentNode(t)}function Ch(e,t,n){return _h(e,t,n)}function Eh(e,t,n){return e.type&40?Te(e,n):null}var _h=Eh,pc;function Es(e,t,n,r){let o=yh(e,r,t),i=t[G],s=r.parent||t[Se],a=Ch(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ve(r))return!1;s=!0}}}}return ve(r)||s}function ve(e){return(e&1)===0}function Oh(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ve(s)&&(t+=hc(i,o),o=""),r=s,i=i||!ve(r);n++}return o!==""&&(t+=hc(i,o)),t}function Lh(e){return e.map(kh).join(",")}function Vh(e){let t=[],n=[],r=1,o=2;for(;rK&&nl(e,t,K,!1),Ie(s?2:0,o),n(r,o)}finally{pt(i),Ie(s?3:1,o)}}function sl(e,t,n){if(Jc(t)){let r=_(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function zh(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return sp()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function gc(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Qe.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?mc(r,n,u,a,c):mc(r,n,u,a)}return r}function mc(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Wh(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Kh(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;$r(n)&&og(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||_r(n,t),gt(r,t);let s=n.initialInputs;for(let a=o;a{Gr(e.lView)},consumerOnSignalRead(){this.lView[oe]=this}});function vg(e){let t=e[oe]??Object.create(Dg);return t.lView=e,t}var Dg=T(S({},Xt),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=ft(e.lView);for(;t&&!El(t[w]);)t=ft(t);t&&rs(t)},consumerOnSignalRead(){this.lView[oe]=this}});function El(e){return e.type!==2}function _l(e){if(e[vr]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[vr])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[y]&8192)}}var Cg=100;function wl(e,t=!0,n=0){let o=e[Fe].rendererFactory,i=!1;i||o.begin?.();try{Eg(e,n)}catch(s){throw t&&ml(e,s),s}finally{i||o.end?.()}}function Eg(e,t){let n=du();try{tc(!0),Ti(e,t);let r=0;for(;Ur(e);){if(r===Cg)throw new E(103,!1);r++,Ti(e,1)}}finally{tc(n)}}function _g(e,t,n,r){let o=t[y];if((o&256)===256)return;let i=!1,s=!1;os(t);let a=!0,c=null,u=null;i||(El(e)?(u=hg(t),c=Ln(u)):ca()===null?(a=!1,u=vg(t),c=Ln(u)):t[oe]&&(Oo(t[oe]),t[oe]=null));try{su(t),pp(e.bindingStartIndex),n!==null&&il(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&lr(t,f,null)}else{let f=e.preOrderHooks;f!==null&&dr(t,f,0,null),Wo(t,0)}if(s||wg(t),_l(t),Il(t,0),e.contentQueries!==null&&gl(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&lr(t,f)}else{let f=e.contentHooks;f!==null&&dr(t,f,1),Wo(t,1)}jh(e,t);let d=e.components;d!==null&&Ml(t,d,0);let p=e.viewQuery;if(p!==null&&Si(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&lr(t,f)}else{let f=e.viewHooks;f!==null&&dr(t,f,2),Wo(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[zo]){for(let f of t[zo])f();t[zo]=null}i||(t[y]&=-73)}catch(l){throw i||Gr(t),l}finally{u!==null&&(xo(u,c),a&&mg(u)),is()}}function Il(e,t){for(let n=Hu(e);n!==null;n=$u(n))for(let r=ee;r-1&&(Ds(t,r),Vc(n,r))}this._attachedToViewContainer=!1}Cs(this._lView[w],this._lView)}onDestroy(t){au(this._lView,t)}markForCheck(){As(this._cdRefInjectingView||this._lView,4)}markForRefresh(){rs(this._cdRefInjectingView||this._lView)}detach(){this._lView[y]&=-129}reattach(){ci(this._lView),this._lView[y]|=128}detectChanges(){this._lView[y]|=1024,wl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=si(this._lView),n=this._lView[Rt];n!==null&&!t&&vs(n,this._lView),Yu(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t;let n=si(this._lView),r=this._lView[Rt];r!==null&&!n&&Qu(r,this._lView),ci(this._lView)}};var BE=new RegExp(`^(\\d+)*(${nh}|${th})*(.*)`);var bg=()=>null;function Os(e,t){return bg(e,t)}var Ni=class{},Nr=class{},xi=class{resolveComponentFactory(t){throw Error(`No component factory found for ${de(t)}.`)}},hn=class{static NULL=new xi},jt=class{},Jr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Mg()}return e})();function Mg(){let e=x(),t=pe(),n=Ke(t.index,e);return(qe(n)?n:e)[G]}var Sg=(()=>{class e{static \u0275prov=R({token:e,providedIn:"root",factory:()=>null})}return e})();function Ai(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Xu(e,n,i.join(" "))}}function Rg(e,t,n){let r=e.projection=[];for(let o=0;o!1;function Lg(e,t,n){return kg(e,t,n)}var vc=new Set;function et(e){vc.has(e)||(vc.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Vg(e){return typeof e=="function"&&e[re]!==void 0}function k(e,t){et("NgSignals");let n=va(e),r=n[re];return t?.equal&&(r.equal=t.equal),n.set=o=>Bn(r,o),n.update=o=>Da(r,o),n.asReadonly=jg.bind(n),n}function jg(){let e=this[re];if(e.readonlyFn===void 0){let t=()=>this();t[re]=e,e.readonlyFn=t}return e.readonlyFn}function Sl(e){return Vg(e)&&typeof e.set=="function"}var Tl=!0,Bt=class{};var xr=class extends Bt{injector;componentFactoryResolver=new Oi(this);instance=null;constructor(t){super();let n=new cn([...t.providers,{provide:Bt,useValue:this},{provide:hn,useValue:this.componentFactoryResolver}],t.parent||Xi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Bg(e,t,n=null){return new xr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Hg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Uc(!1,n.type),o=r.length>0?Bg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(O(dt))})}return e})();function Z(e){return Pr(()=>{let t=xl(e),n=T(S({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ju.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Hg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Me.Emulated,styles:e.styles||ue,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&et("NgStandalone"),Al(n);let r=e.dependencies;return n.directiveDefs=Cc(r,!1),n.pipeDefs=Cc(r,!0),n.id=Gg(n),n})}function $g(e){return Vr(e)||Hc(e)}function Ug(e){return e!==null}function Xr(e){return Pr(()=>({type:e.type,bootstrap:e.bootstrap||ue,declarations:e.declarations||ue,imports:e.imports||ue,exports:e.exports||ue,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Dc(e,t){if(e==null)return At;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Qe.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Qe.None?[r,a]:r,t[i]=s):n[i]=r}return n}function zt(e){return Pr(()=>{let t=xl(e);return Al(t),t})}function Nl(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??Tl,onDestroy:e.type.prototype.ngOnDestroy||null}}function xl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||At,exportAs:e.exportAs||null,standalone:e.standalone??Tl,signals:e.signals===!0,selectors:e.selectors||ue,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Dc(e.inputs,t),outputs:Dc(e.outputs),debugInfo:null}}function Al(e){e.features?.forEach(t=>t(e))}function Cc(e,t){if(!e)return null;let n=t?$c:$g;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ug)}function Gg(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function zg(e){return Object.getPrototypeOf(e.prototype).constructor}function Wt(e){let t=zg(e.type),n=!0,r=[e];for(;t;){let o;if(Ze(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new E(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=sr(e.inputs),s.inputTransforms=sr(e.inputTransforms),s.declaredInputs=sr(e.declaredInputs),s.outputs=sr(e.outputs);let a=o.hostBindings;a&&Qg(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Zg(e,c),u&&Yg(e,u),Wg(e,o),hf(e.outputs,o.outputs),Ze(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=fn(o.hostAttrs,n=fn(n,o.hostAttrs))}}function sr(e){return e===At?{}:e===ue?[]:e}function Zg(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Yg(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Qg(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Kg(e,t,n){return e[t]=n}function Le(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Ol(e,t,n,r){let o=Le(e,t,n);return Le(e,t+1,r)||o}function Jg(e,t,n,r,o){let i=Ol(e,t,n,r);return Le(e,t+2,o)||i}function Xg(e){return(e.flags&32)===32}function em(e,t,n,r,o,i,s,a,c){let u=t.consts,l=Cn(t,e,4,s||null,a||null);dl(t,n,l,kt(u,c)),cs(t,l);let d=l.tView=Is(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Pi(e,t,n,r,o,i,s,a,c,u){let l=n+K,d=t.firstCreatePass?em(l,t,e,r,o,i,s,a,c):t.data[l];Ut(d,!1);let p=tm(t,e,d,n);ss()&&Es(t,e,p,d),gt(p,e);let f=ag(p,e,p,d);return e[l]=f,bs(e,f),Lg(f,d,e),es(d)&&al(t,e,d),c!=null&&cl(e,d,u),d}function te(e,t,n,r,o,i,s,a){let c=x(),u=q(),l=kt(u.consts,i);return Pi(c,u,e,t,n,r,o,l,s,a),te}var tm=nm;function nm(e,t,n,r){return as(!0),t[G].createComment("")}var rm=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}return e})();var Fl=new M("");function En(e){return!!e&&typeof e.then=="function"}function Rl(e){return!!e&&typeof e.subscribe=="function"}var om=new M("");var Pl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=m(om,{optional:!0})??[];injector=m(Ye);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=qc(this.injector,o);if(En(i))n.push(i);else if(Rl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),im=(()=>{class e{static \u0275prov=R({token:e,providedIn:"root",factory:()=>new ki})}return e})(),ki=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},sm=new M("");function am(){ya(()=>{throw new E(600,!1)})}function cm(e){return e.isBoundToModule}var um=10;function lm(e,t,n){try{let r=n();return En(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var _n=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=m(qp);afterRenderManager=m(rm);zonelessEnabled=m(zr);rootEffectScheduler=m(im);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new Oe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=m(Wr).hasPendingTasks.pipe(ut(n=>!n));whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=m(dt);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Nr;if(!this._injector.get(Pl).done){let p=!o&&Lf(n),f=!1;throw new E(405,f)}let s;o?s=n:s=this._injector.get(hn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=cm(s)?void 0:this._injector.get(Bt),c=r||s.selector,u=s.create(Ye.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Fl,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),fr(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new E(101,!1);let n=_(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,_(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(jt,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Ur(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;fr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(sm,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function dm(e,t,n,r){if(!n&&!Ur(e))return;wl(e,t,n&&!r?0:1)}function fm(e,t,n,r){return Le(e,vn(),n)?t+Tt(n)+r:Ne}function pm(e,t,n,r,o,i,s,a){let c=fp(),u=Jg(e,c,n,o,s);return pu(3),u?t+Tt(n)+r+Tt(o)+i+Tt(s)+a:Ne}function ar(e,t){return e<<17|t<<2}function mt(e){return e>>17&32767}function hm(e){return(e&2)==2}function gm(e,t){return e&131071|t<<17}function Li(e){return e|2}function Ht(e){return(e&131068)>>2}function Qo(e,t){return e&-131069|t<<2}function mm(e){return(e&1)===1}function Vi(e){return e|1}function ym(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=mt(s),c=Ht(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||yn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=mt(e[a+1]);e[r+1]=ar(p,a),p!==0&&(e[p+1]=Qo(e[p+1],r)),e[a+1]=gm(e[a+1],r)}else e[r+1]=ar(a,0),a!==0&&(e[a+1]=Qo(e[a+1],r)),a=r;else e[r+1]=ar(c,0),a===0?a=r:e[c+1]=Qo(e[c+1],r),c=r;u&&(e[r+1]=Li(e[r+1])),Ec(e,l,r,!0),Ec(e,l,r,!1),vm(t,l,e,r,i),s=ar(a,c),i?t.classBindings=s:t.styleBindings=s}function vm(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&yn(i,t)>=0&&(n[r+1]=Vi(n[r+1]))}function Ec(e,t,n,r){let o=e[n+1],i=t===null,s=r?mt(o):Ht(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];Dm(c,t)&&(a=!0,e[s+1]=r?Vi(u):Li(u)),s=r?mt(u):Ht(u)}a&&(e[n+1]=r?Li(o):Vi(o))}function Dm(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?yn(e,t)>=0:!1}function he(e,t,n){let r=x(),o=vn();if(Le(r,o,t)){let i=q(),s=Cu();ll(i,s,r,e,t,r[G],n,!1)}return he}function _c(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Ms(e,n,i[s],s,r)}function Fs(e,t){return Cm(e,t,null,!0),Fs}function Cm(e,t,n,r){let o=x(),i=q(),s=pu(2);if(i.firstUpdatePass&&_m(i,e,s,r),t!==Ne&&Le(o,s,t)){let a=i.data[He()];Sm(i,a,o,o[G],e,o[s+1]=Tm(t,n),r,s)}}function Em(e,t){return t>=e.expandoStartIndex}function _m(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[He()],s=Em(e,n);Nm(i,r)&&t===null&&!s&&(t=!1),t=wm(o,i,t,r),ym(o,i,t,n,s,r)}}function wm(e,t,n,r){let o=yp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ko(null,e,t,n,r),n=gn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ko(o,e,t,n,r),i===null){let c=Im(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ko(null,e,t,c[1],r),c=gn(c,t.attrs,r),bm(e,t,r,c))}else i=Mm(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Im(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Ht(r)!==0)return e[mt(r)]}function bm(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[mt(o)]=r}function Mm(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===Ne&&(p=d?ue:void 0);let f=d?Uo(p,r):l===r?p:void 0;if(u&&!Ar(f)&&(f=Uo(c,r)),Ar(f)&&(a=f,s))return a;let h=e[o+1];o=s?mt(h):Ht(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Uo(c,r))}return a}function Ar(e){return e!==void 0}function Tm(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(Zr(e)))),e}function Nm(e,t){return(e.flags&(t?8:16))!==0}var ji=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Jo(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function xm(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],d=Jo(i,u,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),f=t[c],h=Jo(s,p,c,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,c--;continue}let A=n(i,u),L=n(s,p),P=n(i,l);if(Object.is(P,L)){let B=n(c,f);Object.is(B,A)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Or,o??=bc(e,i,s,n),Bi(e,r,i,P))e.updateValue(i,l),i++,s++;else if(o.has(P))r.set(A,e.detach(i)),s--;else{let B=e.create(i,t[i]);e.attach(i,B),i++,s++}}for(;i<=c;)Ic(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,p=Jo(i,l,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,u=c.next();else{r??=new Or,o??=bc(e,i,s,n);let f=n(i,d);if(Bi(e,r,i,f))e.updateValue(i,d),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=c.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!u.done;)Ic(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Bi(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Ic(e,t,n,r,o){if(Bi(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function bc(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Or=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function ie(e,t){et("NgControlFlow");let n=x(),r=vn(),o=n[r]!==Ne?n[r]:-1,i=o!==-1?Fr(n,K+o):void 0,s=0;if(Le(n,r,e)){let a=_(null);try{if(i!==void 0&&Dl(i,s),e!==-1){let c=K+e,u=Fr(n,c),l=Gi(n[w],c),d=Os(u,l.tView.ssrId),p=Ts(n,l,t,{dehydratedView:d});xs(u,p,s,Ns(l,d))}}finally{_(a)}}else if(i!==void 0){let a=vl(i,s);a!==void 0&&(a[W]=t)}}var Hi=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ee}};function wn(e){return e}var $i=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function In(e,t,n,r,o,i,s,a,c,u,l,d,p){et("NgControlFlow");let f=x(),h=q(),A=c!==void 0,L=x(),P=a?s.bind(L[Ce][W]):s,B=new $i(A,P);L[K+e]=B,Pi(f,h,e+1,t,n,r,o,kt(h.consts,i)),A&&Pi(f,h,e+2,c,u,l,d,kt(h.consts,p))}var Ui=class extends ji{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ee}at(t){return this.getLView(t)[W].$implicit}attach(t,n){let r=n[un];this.needsIndexUpdate||=t!==this.length,xs(this.lContainer,n,t,Ns(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Am(this.lContainer,t)}create(t,n){let r=Os(this.lContainer,this.templateTNode.tView.ssrId),o=Ts(this.hostLView,this.templateTNode,new Hi(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Cs(t[w],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[W].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(as(!0),Zu(r,o,Cp()));function tt(){return x()}var Rr="en-US";var Pm=Rr;function km(e){typeof e=="string"&&(Pm=e.toLowerCase().replace(/_/g,"-"))}var Lm=(e,t,n)=>{};function J(e,t,n,r){let o=x(),i=q(),s=pe();return kl(i,o,o[G],s,e,t,r),J}function Vm(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function kl(e,t,n,r,o,i,s){let a=es(r),u=e.firstCreatePass&&ug(e),l=t[W],d=cg(t),p=!0;if(r.type&3||s){let A=Te(r,t),L=s?s(A):A,P=d.length,B=s?me=>s(Re(me[r.index])):r.index,Ae=null;if(!s&&a&&(Ae=Vm(e,t,o,r.index)),Ae!==null){let me=Ae.__ngLastListenerFn__||Ae;me.__ngNextListenerFn__=i,Ae.__ngLastListenerFn__=i,p=!1}else{i=Sc(r,t,l,i),Lm(A,o,i);let me=n.listen(L,o,i);d.push(i,me),u&&u.push(o,B,P,P+1)}}else i=Sc(r,t,l,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let A=h.length;if(A)for(let L=0;L-1?Ke(e.index,t):t;As(s,5);let a=Mc(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Mc(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function j(e=1){return Dp(e)}function Rs(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function C(e,t=""){let n=x(),r=q(),o=e+K,i=r.firstCreatePass?Cn(r,o,1,t,null):r.data[o],s=jm(r,n,i,t,e);n[o]=s,ss()&&Es(r,n,s,i),Ut(i,!1)}var jm=(e,t,n,r,o)=>(as(!0),uh(t[G],r));function ge(e){return U("",e,""),ge}function U(e,t,n){let r=x(),o=fm(r,e,t,n);return o!==Ne&&yl(r,He(),o),U}function Ps(e,t,n,r,o,i,s){let a=x(),c=pm(a,e,t,n,r,o,i,s);return c!==Ne&&yl(a,He(),c),Ps}function ks(e,t,n){Sl(t)&&(t=t());let r=x(),o=vn();if(Le(r,o,t)){let i=q(),s=Cu();ll(i,s,r,e,t,r[G],n,!1)}return ks}function Ll(e,t){let n=Sl(e);return n&&e.set(t),n}function Ls(e,t){let n=x(),r=q(),o=pe();return kl(r,n,n[G],o,e,t),Ls}var Vl={};function Ee(e){let t=q(),n=x(),r=e+K,o=Cn(t,r,128,null,null);return Ut(o,!1),Rs(t,n,r,Vl),Ee}function nt(e){et("NgLet");let t=q(),n=x(),r=He();return Rs(t,n,r,e),e}function xe(e){let t=dp(),n=iu(t,K+e);if(n===Vl)throw new E(314,!1);return n}function Bm(e,t,n){let r=q();if(r.firstCreatePass){let o=Ze(e);zi(n,r.data,r.blueprint,o,!0),zi(t,r.data,r.blueprint,o,!1)}}function zi(e,t,n,r,o){if(e=Q(e),Array.isArray(e))for(let i=0;i>20;if(Ot(e)||!e.multi){let f=new ht(u,o,z),h=ei(c,t,o?l:l+p,d);h===-1?(mi(_r(a,s),i,c),Xo(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=ei(c,t,l+p,d),h=ei(c,t,l,l+p),A=f>=0&&n[f],L=h>=0&&n[h];if(o&&!L||!o&&!A){mi(_r(a,s),i,c);let P=Um(o?$m:Hm,n.length,o,r,u);!o&&L&&(n[h].providerFactory=P),Xo(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(P),s.push(P)}else{let P=jl(n[o?h:f],u,!o&&r);Xo(i,e,f>-1?f:h,P)}!o&&r&&L&&n[h].componentProviders++}}}function Xo(e,t,n,r){let o=Ot(t),i=$f(t);if(o||i){let c=(i?Q(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function jl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ei(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>Bm(r,o?o(e):e,t)}}function Bl(e,t,n,r,o){return Hl(x(),fu(),e,t,n,r,o)}function Gm(e,t){let n=e[t];return n===Ne?void 0:n}function Hl(e,t,n,r,o,i,s){let a=t+n;return Ol(e,a,o,i)?Kg(e,a+2,s?r.call(s,o,i):r(o,i)):Gm(e,a+2)}function $l(e,t){let n=q(),r,o=e+K;n.firstCreatePass?(r=zm(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=lt(r.type,!0)),s,a=X(z);try{let c=Er(!1),u=i();return Er(c),Rs(n,x(),o,u),u}finally{X(a)}}function zm(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Ul(e,t,n,r){let o=e+K,i=x(),s=iu(i,o);return Wm(i,o)?Hl(i,fu(),t,s.transform,n,r,s):s.transform(n,r)}function Wm(e,t){return e[w].data[t].pure}var qm=(()=>{class e{zone=m($);changeDetectionScheduler=m(Vt);applicationRef=m(_n);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zm({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new $(T(S({},Ym()),{scheduleInRootZone:n})),[{provide:$,useFactory:e},{provide:an,multi:!0,useFactory:()=>{let r=m(qm,{optional:!0});return()=>r.initialize()}},{provide:an,multi:!0,useFactory:()=>{let r=m(Qm);return()=>{r.initialize()}}},t===!0?{provide:Ru,useValue:!0}:[],{provide:us,useValue:n??Fu}]}function Ym(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Qm=(()=>{class e{subscription=new Y;initialized=!1;zone=m($);pendingTasks=m(Wr);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Gl=(()=>{class e{appRef=m(_n);taskService=m(Wr);ngZone=m($);zonelessEnabled=m(zr);disableScheduling=m(Ru,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Y;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(br):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(us,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Mr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?ac:Pu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(br+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ac(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function zl(){return et("NgZoneless"),jr([{provide:Vt,useExisting:Gl},{provide:$,useClass:Mr},{provide:zr,useValue:!0},{provide:us,useValue:!1},[]])}function Km(){return typeof $localize<"u"&&$localize.locale||Rr}var js=new M("",{providedIn:"root",factory:()=>m(js,b.Optional|b.SkipSelf)||Km()});var qi=new M("");function cr(e){return!e.moduleRef}function Jm(e){let t=cr(e)?e.r3Injector:e.moduleRef.injector,n=t.get($);return n.run(()=>{cr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Pe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),cr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(qi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(qi);s.add(i),e.moduleRef.onDestroy(()=>{fr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return lm(r,n,()=>{let i=t.get(Pl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(js,Rr);if(km(s||Rr),cr(e)){let a=t.get(_n);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Xm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Xm(e,t){let n=e.injector.get(_n);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new E(-403,!1);t.push(e)}var pr=null;function ey(e=[],t){return Ye.create({name:t,providers:[{provide:Br,useValue:"platform"},{provide:qi,useValue:new Set([()=>pr=null])},...e]})}function ty(e=[]){if(pr)return pr;let t=ey(e);return pr=t,am(),ny(t),t}function ny(e){let t=e.get(ps,null);qc(e,()=>{t?.forEach(n=>n())})}var Bs=(()=>{class e{static __NG_ELEMENT_ID__=ry}return e})();function ry(e){return oy(pe(),x(),(e&16)===16)}function oy(e,t,n){if($r(e)&&!n){let r=Ke(e.index,t);return new pn(r,r)}else if(e.type&175){let r=t[Ce];return new pn(r,t)}return null}function Wl(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=ty(r),i=[Zm({}),{provide:Vt,useExisting:Gl},...n||[]],s=new xr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return Jm({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Hs(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ae(e,t){et("NgSignals");let n=ha(e);return t?.equal&&(n[re].equal=t.equal),n}function $e(e){let t=_(null);try{return e()}finally{_(t)}}var Tc=class{[re];constructor(t){this[re]=t}destroy(){this[re].destroy()}};var Zl=null;function qt(){return Zl}function Yl(e){Zl??=e}var eo=class{};var rt=new M("");function Ql(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var $s="browser",iy="server";function Kl(e){return e===$s}function Us(e){return e===iy}var to=class{};var zs=class extends eo{supportsDOMEvents=!0},Ws=class e extends zs{static makeCurrent(){Yl(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=ay();return n==null?null:cy(n)}resetBaseElement(){Mn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ql(document.cookie,t)}},Mn=null;function ay(){return Mn=Mn||document.querySelector("base"),Mn?Mn.getAttribute("href"):null}function cy(e){return new URL(e,document.baseURI).pathname}var uy=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),qs=new M(""),od=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(O(qs),O($))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),no=class{_doc;constructor(t){this._doc=t}manager},Zs="ng-app-id";function Jl(e){for(let t of e)t.remove()}function Xl(e,t){let n=t.createElement("style");return n.textContent=e,n}function ly(e,t,n){let r=e.head?.querySelectorAll(`style[${Zs}="${t}"]`);if(r)for(let o of r)o.textContent&&(o.removeAttribute(Zs),n.set(o.textContent,{usage:0,elements:[o]}))}function ed(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var id=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Us(i),ly(n,r,this.inline),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Xl);r?.forEach(o=>this.addUsage(o,this.external,ed))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Jl(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Jl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Xl(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,ed(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Zs,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(O(rt),O(fs),O(hs,8),O(Xe))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Gs={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"},Qs=/%COMP%/g,sd="%COMP%",dy=`_nghost-${sd}`,fy=`_ngcontent-${sd}`,py=!0,hy=new M("",{providedIn:"root",factory:()=>py});function gy(e){return fy.replace(Qs,e)}function my(e){return dy.replace(Qs,e)}function ad(e,t){return t.map(n=>n.replace(Qs,e))}var td=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.platformIsServer=Us(a),this.defaultRenderer=new Sn(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Me.ShadowDom&&(r=T(S({},r),{encapsulation:Me.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof ro?o.applyToHost(n):o instanceof Tn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Me.Emulated:i=new ro(c,u,r,this.appId,l,s,a,d);break;case Me.ShadowDom:return new Ys(c,u,n,r,s,a,this.nonce,d);default:i=new Tn(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(O(od),O(id),O(fs),O(hy),O(rt),O(Xe),O($),O(hs))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),Sn=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Gs[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(nd(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(nd(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new E(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Gs[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Gs[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ke.DashCase|ke.Important)?t.style.setProperty(n,r,o&ke.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ke.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=qt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function nd(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ys=class extends Sn{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=ad(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Tn=class extends Sn{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?ad(c,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ro=class extends Tn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=gy(u),this.hostAttr=my(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},yy=(()=>{class e extends no{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(O(rt))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})(),rd=["alt","control","meta","shift"],vy={"\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"},Dy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Cy=(()=>{class e extends no{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),rd.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=vy[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),rd.forEach(s=>{if(s!==o){let a=Dy[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(O(rt))};static \u0275prov=R({token:e,factory:e.\u0275fac})}return e})();function cd(e,t){return Wl(S({rootComponent:e},Ey(t)))}function Ey(e){return{appProviders:[...My,...e?.providers??[]],platformProviders:by}}function _y(){Ws.makeCurrent()}function wy(){return new Pe}function Iy(){return Gu(document),document}var by=[{provide:Xe,useValue:$s},{provide:ps,useValue:_y,multi:!0},{provide:rt,useFactory:Iy,deps:[]}];var My=[{provide:Br,useValue:"root"},{provide:Pe,useFactory:wy,deps:[]},{provide:qs,useClass:yy,multi:!0,deps:[rt,$,Xe]},{provide:qs,useClass:Cy,multi:!0,deps:[rt]},td,id,od,{provide:jt,useExisting:td},{provide:to,useClass:uy,deps:[]},[]];var ot=new M("AI_TRANSLATION_API_TOKEN");function ud(){return jr([{provide:ot,useFactory:()=>{let e=m(Xe),t=Kl(e)?window:void 0;return t&&"translation"in t?t.translation:void 0}}])}var ld={providers:[zl(),ud()]};function Ks(e,t){let n=!t?.manualCleanup;n&&!t?.injector&&Yc(Ks);let r=n?t?.injector?.get(Gt)??m(Gt):null,o=Sy(t?.equal),i;t?.requireSync?i=k({kind:0},{equal:o}):i=k({kind:1,value:t?.initialValue},{equal:o});let s=e.subscribe({next:a=>i.set({kind:1,value:a}),error:a=>{if(t?.rejectErrors)throw a;i.set({kind:2,error:a})}});if(t?.requireSync&&i().kind===0)throw new E(601,!1);return r?.onDestroy(s.unsubscribe.bind(s)),ae(()=>{let a=i();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new E(601,!1)}},{equal:t?.equal})}function Sy(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}function Ty(e){let t=e.userAgentData?.brands;return t!==void 0&&Array.isArray(t)}function oo(){let e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return e?parseInt(e[2],10):0}function dd(){let e=navigator.userAgent.match(/Firefox\/([0-9]+)\./);return e?parseInt(e[1],10):0}function Ny(){return Ty(navigator)?navigator.userAgentData?.brands:[]}function Js(){return Ny()?.some(e=>e.brand==="Google Chrome")}function fd(){if(Js())return"Google Chrome";let e=navigator.userAgent;return e.includes("Firefox")?"Firefox":e.includes("SamsungBrowser")?"Samsung Internet":e.includes("Opera")||e.includes("OPR")?"Opera":e.includes("Edge")?"Microsoft Edge (Legacy)":e.includes("Edg")?"Microsoft Edge (Chromium)":e.includes("Chrome")?"Chromium":e.includes("Safari")?"Apple Safari":"unknown"}function xy(e,t){if(e&1&&(v(0,"p")(1,"span",0),C(2,"Chrome Version: "),g(),C(3),g()),e&2){let n=j();D(3),U("",n.chromeVersion," ")}}function Ay(e,t){if(e&1&&(v(0,"p")(1,"span",0),C(2,"Firefox Version: "),g(),C(3),g()),e&2){let n=j();D(3),U("",n.firefoxVersion," ")}}var io=class e{userAgent=fd();chromeVersion=oo();firefoxVersion=dd();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-user-agent"]],decls:10,vars:2,consts:[[1,"label"]],template:function(n,r){n&1&&(v(0,"div")(1,"h3"),C(2,"User Agent"),g(),v(3,"p")(4,"span",0),C(5,"Browser Name: "),g(),C(6),g(),te(7,xy,4,1,"p")(8,Ay,4,1,"p"),g(),se(9,"hr")),n&2&&(D(6),U("",r.userAgent," "),D(),ie(r.chromeVersion>0?7:r.firefoxVersion>0?8:-1))},encapsulation:2,changeDetection:0})};var pd=131;async function Oy(){if(!Js())throw new Error("Your browser is not supported. Please use Google Chrome Dev or Canary.");if(oo()(console.error(e),Ho(e instanceof Error?e.message:"unknown"))))}var ky=["en","es","ja","zh","zh-Hant","it","fr","zz"],Zt=class e{#e=m(ot);async createLanguagePairs(t){if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let n=[];for(let r of ky)if(t!==r){let o={sourceLanguage:t,targetLanguage:r},i=await this.#e.canTranslate(o);i!=="no"&&n.push(T(S({},o),{available:i}))}return n}async translate(t,n){try{if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let r=await this.#e.createTranslator(t);if(!r)return"";let o=await r.translate(n);return r.destroy&&r.destroy(),o}catch(r){return console.error(r),""}}async downloadLanguagePackage(t){try{if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let n=await this.#e.createTranslator(t),r=n?"readily":"no";return n.destroy&&n.destroy(),T(S({},t),{available:r})}catch(n){return console.error(n),T(S({},t),{available:"no"})}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var _d=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(z(Jr),z(Dn))};static \u0275dir=zt({type:e})}return e})(),Ly=(()=>{class e extends _d{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Au(e)))(o||e)}})();static \u0275dir=zt({type:e,features:[Wt]})}return e})(),wd=new M("");var Vy={provide:wd,useExisting:mn(()=>lo),multi:!0};function jy(){let e=qt()?qt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var By=new M(""),lo=(()=>{class e extends _d{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!jy())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(z(Jr),z(Dn),z(By,8))};static \u0275dir=zt({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&J("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Vs([Vy]),Wt]})}return e})();var Hy=new M(""),$y=new M("");function Id(e){return e!=null}function bd(e){return En(e)?ct(e):e}function Md(e){let t={};return e.forEach(n=>{t=n!=null?S(S({},t),n):t}),Object.keys(t).length===0?null:t}function Sd(e,t){return t.map(n=>n(e))}function Uy(e){return!e.validate}function Td(e){return e.map(t=>Uy(t)?t:n=>t.validate(n))}function Gy(e){if(!e)return null;let t=e.filter(Id);return t.length==0?null:function(n){return Md(Sd(n,t))}}function Nd(e){return e!=null?Gy(Td(e)):null}function zy(e){if(!e)return null;let t=e.filter(Id);return t.length==0?null:function(n){let r=Sd(n,t).map(bd);return $o(r).pipe(ut(Md))}}function xd(e){return e!=null?zy(Td(e)):null}function gd(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Wy(e){return e._rawValidators}function qy(e){return e._rawAsyncValidators}function ea(e){return e?Array.isArray(e)?e:[e]:[]}function ao(e,t){return Array.isArray(e)?e.includes(t):e===t}function md(e,t){let n=ea(t);return ea(e).forEach(o=>{ao(n,o)||n.push(o)}),n}function yd(e,t){return ea(t).filter(n=>!ao(e,n))}var co=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Nd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=xd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},ta=class extends co{name;get formDirective(){return null}get path(){return null}},Fn=class extends co{_parent=null;name=null;valueAccessor=null},na=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Zy={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Gw=T(S({},Zy),{"[class.ng-submitted]":"isSubmitted"}),Ad=(()=>{class e extends na{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(z(Fn,2))};static \u0275dir=zt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Fs("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[Wt]})}return e})();var Nn="VALID",so="INVALID",Yt="PENDING",xn="DISABLED",Kt=class{},uo=class extends Kt{value;source;constructor(t,n){super(),this.value=t,this.source=n}},An=class extends Kt{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},On=class extends Kt{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Qt=class extends Kt{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function Yy(e){return(fo(e)?e.validators:e)||null}function Qy(e){return Array.isArray(e)?Nd(e):e||null}function Ky(e,t){return(fo(t)?t.asyncValidators:e)||null}function Jy(e){return Array.isArray(e)?xd(e):e||null}function fo(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var ra=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return $e(this.statusReactive)}set status(t){$e(()=>this.statusReactive.set(t))}_status=ae(()=>this.statusReactive());statusReactive=k(void 0);get valid(){return this.status===Nn}get invalid(){return this.status===so}get pending(){return this.status==Yt}get disabled(){return this.status===xn}get enabled(){return this.status!==xn}errors;get pristine(){return $e(this.pristineReactive)}set pristine(t){$e(()=>this.pristineReactive.set(t))}_pristine=ae(()=>this.pristineReactive());pristineReactive=k(!0);get dirty(){return!this.pristine}get touched(){return $e(this.touchedReactive)}set touched(t){$e(()=>this.touchedReactive.set(t))}_touched=ae(()=>this.touchedReactive());touchedReactive=k(!1);get untouched(){return!this.touched}_events=new Oe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(md(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(md(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(yd(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(yd(t,this._rawAsyncValidators))}hasValidator(t){return ao(this._rawValidators,t)}hasAsyncValidator(t){return ao(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(T(S({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new On(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new On(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(T(S({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new An(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new An(!0,r))}markAsPending(t={}){this.status=Yt;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Qt(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(T(S({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=xn,this.errors=null,this._forEachChild(o=>{o.disable(T(S({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new uo(this.value,r)),this._events.next(new Qt(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(T(S({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Nn,this._forEachChild(r=>{r.enable(T(S({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(T(S({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nn||this.status===Yt)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new uo(this.value,n)),this._events.next(new Qt(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(T(S({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xn:Nn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Yt,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=bd(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Qt(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?xn:this.errors?so:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yt)?Yt:this._anyControlsHaveStatus(so)?so:Nn}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new An(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new On(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){fo(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Qy(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Jy(this._rawAsyncValidators)}};var Od=new M("CallSetDisabledState",{providedIn:"root",factory:()=>oa}),oa="always";function Xy(e,t){return[...t.path,e]}function ev(e,t,n=oa){nv(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),rv(e,t),iv(e,t),ov(e,t),tv(e,t)}function vd(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function tv(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function nv(e,t){let n=Wy(e);t.validator!==null?e.setValidators(gd(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=qy(e);t.asyncValidator!==null?e.setAsyncValidators(gd(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();vd(t._rawValidators,o),vd(t._rawAsyncValidators,o)}function rv(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Fd(e,t)})}function ov(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Fd(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Fd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function iv(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function sv(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function av(e){return Object.getPrototypeOf(e.constructor)===Ly}function cv(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===lo?n=i:av(i)?r=i:o=i}),o||r||n||null}function Dd(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Cd(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var uv=class extends ra{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Yy(n),Ky(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),fo(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Cd(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Dd(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Dd(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Cd(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var lv={provide:Fn,useExisting:mn(()=>ia)},Ed=Promise.resolve(),ia=(()=>{class e extends Fn{_changeDetectorRef;callSetDisabledState;control=new uv;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new le;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=cv(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),sv(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ev(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Ed.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Hs(r);Ed.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Xy(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(z(ta,9),z(Hy,10),z($y,10),z(wd,10),z(Bs,8),z(Od,8))};static \u0275dir=zt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Vs([lv]),Wt,eu]})}return e})();var dv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Xr({type:e});static \u0275inj=kr({})}return e})();var po=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Od,useValue:n.callSetDisabledState??oa}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Xr({type:e});static \u0275inj=kr({imports:[dv]})}return e})();var ho=class e{#e=m(ot);#t=k(null);detector=this.#t.asReadonly();async detect(t,n=.6){if(!this.#e)throw new Error("Your browser doesn't support the Translation API. If you are on Chrome, join the Early Preview Program to enable it.");let r=this.detector();if(!r)throw new Error("Built-in Language Detector is not available.");let o=await r.detect(t);if(!o.length)return;let i=o.find(a=>a.confidence>=n),s=i||o[0];return T(S({},s),{name:this.languageTagToHumanReadable(s.detectedLanguage)})}async createDetector(){if(this.detector()){console.log("Language Detector found.");return}if(!(await this.#e?.canDetect()==="readily"))throw new Error("Built-in Language Detector is not available.");let n=await this.#e?.createDetector();this.#t.set(n)}languageTagToHumanReadable(t,n="en"){return new Intl.DisplayNames([n],{type:"language"}).of(t)||"NA"}static \u0275fac=function(n){return new(n||e)};static \u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})};var go=class e{transform(t,n){let r=t>=n?"High Confidence":"Low Confidence";return`${t.toFixed(3)} (${r})`}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Nl({name:"confidence",type:e,pure:!0})};function pv(e,t){if(e&1&&(v(0,"p")(1,"span"),C(2),$l(3,"confidence"),g(),v(4,"span"),C(5),g(),v(6,"span"),C(7),g()()),e&2){let n=j(),r=xe(3);D(2),U("Confidence: ",Ul(3,3,r.confidence,n.minConfidence()),", "),D(3),U("Detected Language: ",r.detectedLanguage,", "),D(2),U("Detected Language Name: ",r.name,"")}}var mo=class e{detectedLanguage=Je.required();minConfidence=Je.required({transform:t=>t<0||t>1?.6:t});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-language-detection-result"]],inputs:{detectedLanguage:[1,"detectedLanguage"],minConfidence:[1,"minConfidence"]},decls:5,vars:2,consts:[[1,"label"]],template:function(n,r){if(n&1&&(v(0,"div")(1,"span",0),C(2,"Response: "),g(),Ee(3),te(4,pv,8,6,"p"),g()),n&2){D(3);let o=nt(r.detectedLanguage());D(),ie(o?4:-1)}},dependencies:[go],encapsulation:2,changeDetection:0})};var yo=class e{service=m(ho);inputText=k("Buenos tarde. Mucho Gusto. Hoy es 23 de Noviembre, 2024 y Mi charla es sobre Chrome Built-in AI.");detectedLanguage=k(void 0);detector=this.service.detector;isDisableDetectLanguage=ae(()=>!this.detector()||this.inputText().trim()==="");nextStep=qr();minConfidence=.6;async setup(){await this.service.createDetector()}async detectLanguage(){let t=this.inputText().trim(),n=await this.service.detect(t,this.minConfidence);this.detectedLanguage.set(n),n?this.nextStep.emit({code:n.detectedLanguage,toTranslate:n.confidence>=this.minConfidence,inputText:t}):this.nextStep.emit(void 0)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-language-detection"]],outputs:{nextStep:"nextStep"},decls:10,vars:4,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem"],["for","input",1,"label"],["id","input","name","input","rows","3",3,"ngModelChange","ngModel"],[2,"margin-right","0.5rem",3,"click"],[3,"click","disabled"],[3,"detectedLanguage","minConfidence"]],template:function(n,r){n&1&&(v(0,"div",0)(1,"div")(2,"span",1),C(3,"Input text: "),g(),v(4,"textarea",2),Ls("ngModelChange",function(i){return Ll(r.inputText,i)||(r.inputText=i),i}),g()(),v(5,"button",3),J("click",function(){return r.setup()}),C(6,"Create language detector"),g(),v(7,"button",4),J("click",function(){return r.detectLanguage()}),C(8,"Detect Language"),g(),se(9,"app-language-detection-result",5),g()),n&2&&(D(4),ks("ngModel",r.inputText),D(3),he("disabled",r.isDisableDetectLanguage()),D(2),he("detectedLanguage",r.detectedLanguage())("minConfidence",r.minConfidence))},dependencies:[po,lo,Ad,ia,mo],encapsulation:2,changeDetection:0})};var hv=(e,t)=>({sourceLanguage:e,targetLanguage:t});function gv(e,t){if(e&1&&(v(0,"p"),C(1),g()),e&2){let n=t.$implicit;D(),Ps("canTranslate('",n.sourceLanguage,"', '",n.targetLanguage,"') = ",n.available,"")}}function mv(e,t){if(e&1){let n=tt();v(0,"button",5),J("click",function(){je(n),j();let o=xe(0),i=j();return Be(i.translateText(o))}),C(1),g()}if(e&2){let n=j().$implicit;D(),ge(n.text)}}function yv(e,t){if(e&1){let n=tt();v(0,"button",5),J("click",function(){je(n),j();let o=xe(0),i=j();return Be(i.download(o))}),C(1),g()}if(e&2){let n=j().$implicit;D(),ge(n.text)}}function vv(e,t){if(e&1&&(Ee(0),te(1,mv,2,1,"button",4)(2,yv,2,1,"button",4)),e&2){let n=t.$implicit;nt(Bl(2,hv,n.sourceLanguage,n.targetLanguage)),D(),ie(n.available==="readily"?1:n.available==="after-download"?2:-1)}}var vo=class e{service=m(Zt);languagePairs=Je.required();inputText=Je.required();translation=k("");downloadSuccess=qr();canTranslateButtons=ae(()=>this.languagePairs().reduce((t,n)=>n.available==="readily"?t.concat(T(S({},n),{text:`${n.sourceLanguage} to ${n.targetLanguage}`})):n.available==="after-download"?t.concat(T(S({},n),{text:`Download ${n.targetLanguage}`})):t,[]));async translateText(t){this.translation.set("");let n=await this.service.translate(t,this.inputText());this.translation.set(n)}async download(t){try{let n=await this.service.downloadLanguagePackage(t);n?.available==="readily"&&this.downloadSuccess.emit(n)}catch(n){console.error(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-translate-text"]],inputs:{languagePairs:[1,"languagePairs"],inputText:[1,"inputText"]},outputs:{downloadSuccess:"downloadSuccess"},decls:11,vars:1,consts:[[2,"border","1px solid black","border-radius","0.25rem","padding","1rem","display","flex"],[2,"margin-right","0.5rem","flex-basis","50%"],[2,"display","flex","flex-direction","column"],[2,"margin","1rem"],[2,"margin-right","0.25rem"],[2,"margin-right","0.25rem",3,"click"]],template:function(n,r){n&1&&(v(0,"div",0)(1,"div",1),In(2,gv,2,3,"p",null,wn),g(),v(4,"div",2)(5,"div",3),In(6,vv,3,5,null,null,wn),g(),v(8,"div")(9,"p"),C(10),g()()()()),n&2&&(D(2),bn(r.languagePairs()),D(4),bn(r.canTranslateButtons()),D(4),U("Translation: ",r.translation(),""))},dependencies:[po],encapsulation:2,changeDetection:0})};function Dv(e,t){if(e&1){let n=tt();v(0,"app-translate-text",2),J("downloadSuccess",function(o){je(n);let i=j();return Be(i.downloadNewLanguage(o))}),g()}if(e&2){let n=j(),r=xe(4);he("languagePairs",n.languagePairs())("inputText",r)}}function Cv(e,t){if(e&1&&(v(0,"p"),C(1),g()),e&2){j();let n=xe(4);D(),U("",n," cannot be translated.")}}var Do=class e{translationService=m(Zt);languagePairs=k([]);sample=k({sourceLanguage:"",inputText:""});async updateCanTranslate(t){if(this.languagePairs.set([]),this.sample.set({sourceLanguage:"",inputText:""}),t&&t.toTranslate){let{code:n,inputText:r}=t;this.languagePairs.set(await this.translationService.createLanguagePairs(n)),this.sample.set({sourceLanguage:n,inputText:r})}}downloadNewLanguage(t){this.languagePairs.update(n=>n.map(r=>r.sourceLanguage===t.sourceLanguage&&r.targetLanguage===t.targetLanguage?t:r))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-translation-container"]],decls:7,vars:2,consts:[[3,"nextStep"],[3,"languagePairs","inputText"],[3,"downloadSuccess","languagePairs","inputText"]],template:function(n,r){if(n&1){let o=tt();v(0,"div")(1,"h3"),C(2,"Translation API Demo"),g(),v(3,"app-language-detection",0),J("nextStep",function(s){return je(o),Be(r.updateCanTranslate(s))}),g(),Ee(4),te(5,Dv,1,2,"app-translate-text",1)(6,Cv,2,1,"p"),g()}if(n&2){D(4);let o=nt(r.sample().inputText);D(),ie(r.sample().sourceLanguage&&o?5:o?6:-1)}},dependencies:[yo,vo],encapsulation:2,changeDetection:0})};function Ev(e,t){e&1&&se(0,"app-user-agent")}function _v(e,t){if(e&1&&(v(0,"p"),C(1,"Another demo: "),v(2,"a",0),C(3),g()(),se(4,"app-translation-container")),e&2){let n=j();D(2),he("href",n.glitchDemo,Yr),D(),ge(n.glitchDemo)}}function wv(e,t){if(e&1&&C(0),e&2){j();let n=xe(2);U(" ",n," ")}}function Iv(e,t){e&1&&(v(0,"p"),C(1,"If you're on Chrome, join the "),v(2,"a",1),C(3," Early Preview Program"),g(),C(4," to enable it. "),g())}var Co=class e{glitchDemo="https://translation-demo.glitch.me/";showUserAgent=Je(!1);hasCapability=Ks(hd(),{initialValue:""});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-detect-ai"]],inputs:{showUserAgent:[1,"showUserAgent"]},decls:6,vars:3,consts:[["target","_blank",3,"href"],["href","https://developer.chrome.com/docs/ai/built-in#get_an_early_preview","target","_blank"]],template:function(n,r){if(n&1&&(te(0,Ev,1,0,"app-user-agent"),v(1,"div"),Ee(2),te(3,_v,5,2)(4,wv,1,1)(5,Iv,5,0,"p"),g()),n&2){ie(r.showUserAgent()?0:-1),D(2);let o=nt(r.hasCapability());D(),ie(o?o!=="unknown"?4:5:3)}},dependencies:[Do,io],encapsulation:2,changeDetection:0})};function bv(e,t){if(e&1&&(v(0,"li",2),C(1),g()),e&2){let n=t.$implicit;D(),ge(n)}}var Eo=class e{explainer="https://github.com/WICG/translation-api?tab=readme-ov-file#translation";minimumVersion="131.0.6778.2";steps=k(["Open new tab, go to chrome://flags/#translation-api.","Select Enabled. If you want to try many language pairs, select Enabled without language pack limit.","Relaunch Chrome","Open new tab, go to chrome://components.","Find Chrome TranslateKit",'Click "Check for update" button to download the language model. Version number should update.',"(Optional) Open new tab, go to chrome://on-device-translation-internals/","(Optional) Install language pairs."]);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-setup"]],decls:13,vars:3,consts:[["target","_blank",3,"href"],[2,"margin-left","1rem","color","black"],[2,"line-height","1.25rem"]],template:function(n,r){n&1&&(v(0,"p"),C(1,"Explainer: "),v(2,"a",0),C(3),g(),C(4," (Outdated or broken changes) "),g(),v(5,"p"),C(6),g(),v(7,"h3"),C(8,"Setup"),g(),v(9,"ol",1),In(10,bv,2,1,"li",2,wn),g(),se(12,"hr")),n&2&&(D(2),he("href",r.explainer,Yr),D(),ge(r.explainer),D(3),U("You will need Version ",r.minimumVersion," or above."),D(4),bn(r.steps()))},encapsulation:2,changeDetection:0})};function Mv(e,t){e&1&&se(0,"app-setup")}var _o=class e{showSetup=k(!1);showUserAgent=k(!1);btnSetupText=ae(()=>this.showSetup()?"Hide Setup":"Show Setup");btnUserAgentText=ae(()=>this.showUserAgent()?"Hide User Agent":"Show User Agent");static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Z({type:e,selectors:[["app-root"]],decls:11,vars:4,consts:[[2,"margin-bottom","0.5rem"],[2,"margin-right","0.25rem",3,"click"],[3,"click"],[3,"showUserAgent"]],template:function(n,r){if(n&1){let o=tt();v(0,"h2"),C(1,"Chrome Built-in Translation API "),g(),Ee(2)(3),v(4,"div",0)(5,"button",1),J("click",function(){return je(o),Be(r.showSetup.set(!r.showSetup()))}),C(6),g(),v(7,"button",2),J("click",function(){return je(o),Be(r.showUserAgent.set(!r.showUserAgent()))}),C(8),g()(),te(9,Mv,1,0,"app-setup"),se(10,"app-detect-ai",3)}if(n&2){let o=r.showSetup()?"Hide Setup":"Show Setup",i=r.showUserAgent()?"Hide User Agent":"Show User Agent";D(6),ge(o),D(2),ge(i),D(),ie(r.showSetup()?9:-1),D(),he("showUserAgent",r.showUserAgent())}},dependencies:[Co,Eo],styles:["[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}"],changeDetection:0})};cd(_o,ld).catch(e=>console.error(e));