Your IP : 3.128.255.136
import{$ as Ia,A as w,B as it,C as Od,D as kd,G as b,H as Fi,I as Ce,J as Li,K as ji,L as Sn,N as Da,O as wa,Q as Ea,R as Mn,S as F,V as re,X as Et,Z as $i,_ as Q,a as p,b as T,ba as Jt,ca as Bi,ea as Pt,fa as be,ga as Vi,ha as Ca,ka as ba,m as de,n as bn,na as Sa,o as wt,oa as Ma,p as Er,pa as Xt,q as Pi,r as ya,ra as Ta,s as V,sa as xa,t as R,ta as ee,u as _d,ua as Ir,va as Cr,wa as Tn,xa as P,y as rt,z as ue}from"./chunk-ERDNNTNA.js";function Pd(t,e){return Object.is(t,e)}var te=null,br=!1,Ui=1,Se=Symbol("SIGNAL");function O(t){let e=te;return te=t,e}function Fd(){return te}function sy(){return br}var xn={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 Mr(t){if(br)throw new Error("");if(te===null)return;te.consumerOnSignalRead(t);let e=te.nextProducerIndex++;if(Zi(te),e<te.producerNode.length&&te.producerNode[e]!==t&&Sr(te)){let r=te.producerNode[e];Wi(r,te.producerIndexOfThis[e])}te.producerNode[e]!==t&&(te.producerNode[e]=t,te.producerIndexOfThis[e]=Sr(te)?Vd(t,te,e):0),te.producerLastReadVersion[e]=t.version}function ay(){Ui++}function Ld(t){if(!(Sr(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ui)){if(!t.producerMustRecompute(t)&&!qi(t)){t.dirty=!1,t.lastCleanEpoch=Ui;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ui}}function jd(t){if(t.liveConsumerNode===void 0)return;let e=br;br=!0;try{for(let r of t.liveConsumerNode)r.dirty||Bd(r)}finally{br=e}}function $d(){return te?.consumerAllowSignalWrites!==!1}function Bd(t){t.dirty=!0,jd(t),t.consumerMarkedDirty?.(t)}function Tr(t){return t&&(t.nextProducerIndex=0),O(t)}function zi(t,e){if(O(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Sr(t))for(let r=t.nextProducerIndex;r<t.producerNode.length;r++)Wi(t.producerNode[r],t.producerIndexOfThis[r]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function qi(t){Zi(t);for(let e=0;e<t.producerNode.length;e++){let r=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==r.version||(Ld(r),n!==r.version))return!0}return!1}function Gi(t){if(Zi(t),Sr(t))for(let e=0;e<t.producerNode.length;e++)Wi(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Vd(t,e,r){if(Ud(t),t.liveConsumerNode.length===0&&Hd(t))for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=Vd(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(r),t.liveConsumerNode.push(e)-1}function Wi(t,e){if(Ud(t),t.liveConsumerNode.length===1&&Hd(t))for(let n=0;n<t.producerNode.length;n++)Wi(t.producerNode[n],t.producerIndexOfThis[n]);let r=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[r],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[r],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],i=t.liveConsumerNode[e];Zi(i),i.producerIndexOfThis[n]=e}}function Sr(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Zi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Ud(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Hd(t){return t.producerNode!==void 0}function _a(t){let e=Object.create(cy);e.computation=t;let r=()=>{if(Ld(e),Mr(e),e.value===Hi)throw e.error;return e.value};return r[Se]=e,r}var Na=Symbol("UNSET"),Aa=Symbol("COMPUTING"),Hi=Symbol("ERRORED"),cy=T(p({},xn),{value:Na,dirty:!0,error:null,equal:Pd,producerMustRecompute(t){return t.value===Na||t.value===Aa},producerRecomputeValue(t){if(t.value===Aa)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Aa;let r=Tr(t),n;try{n=t.computation()}catch(i){n=Hi,t.error=i}finally{zi(t,r)}if(e!==Na&&e!==Hi&&n!==Hi&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function uy(){throw new Error}var zd=uy;function qd(){zd()}function Gd(t){zd=t}var ly=null;function Wd(t){let e=Object.create(Oa);e.value=t;let r=()=>(Mr(e),e.value);return r[Se]=e,r}function xr(t,e){$d()||qd(),t.equal(t.value,e)||(t.value=e,dy(t))}function Zd(t,e){$d()||qd(),xr(t,e(t.value))}var Oa=T(p({},xn),{equal:Pd,value:void 0});function dy(t){t.version++,ay(),jd(t),ly?.()}function Qd(t,e,r){let n=Object.create(fy);r&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=e;let i=c=>{n.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||(Gi(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Ra)}let a=()=>{if(n.fn===null)return;if(sy())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!qi(n))return;n.hasRun=!0;let c=Tr(n);try{n.cleanupFn(),n.cleanupFn=Ra,n.fn(i)}finally{zi(n,c)}};return n.ref={notify:()=>Bd(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[Se]:n},n.ref}var Ra=()=>{},fy=T(p({},xn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Ra});var qf="https://g.co/ng/security#xss",D=class extends Error{constructor(e,r){super(Uo(e,r)),this.code=e}};function Uo(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Ho=Symbol("InputSignalNode#UNSET"),Gf=T(p({},Oa),{transformFn:void 0,applyValueToInputSignal(t,e){xr(t,e)}});function Wf(t,e){let r=Object.create(Gf);r.value=t,r.transformFn=e?.transform;function n(){if(Mr(r),r.value===Ho)throw new D(-950,!1);return r.value}return n[Se]=r,n}function Br(t){return{toString:t}.toString()}var Qi="__parameters__";function hy(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function ou(t,e,r){return Br(()=>{let n=hy(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Qi)?c[Qi]:Object.defineProperty(c,Qi,{value:[]})[Qi];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Ne=globalThis;function U(t){for(let e in t)if(t[e]===U)return e;throw Error("Could not find renamed property on target object.")}function py(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function ye(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ye).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(`
`);return r===-1?e:e.substring(0,r)}function Wa(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var gy=U({__forward_ref__:U});function Zf(t){return t.__forward_ref__=Zf,t.toString=function(){return ye(this())},t}function me(t){return Qf(t)?t():t}function Qf(t){return typeof t=="function"&&t.hasOwnProperty(gy)&&t.__forward_ref__===Zf}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ft(t){return{providers:t.providers||[],imports:t.imports||[]}}function zo(t){return Yd(t,Kf)||Yd(t,Jf)}function Yf(t){return zo(t)!==null}function Yd(t,e){return t.hasOwnProperty(e)?t[e]:null}function my(t){let e=t&&(t[Kf]||t[Jf]);return e||null}function Kd(t){return t&&(t.hasOwnProperty(Jd)||t.hasOwnProperty(vy))?t[Jd]:null}var Kf=U({\u0275prov:U}),Jd=U({\u0275inj:U}),Jf=U({ngInjectableDef:U}),vy=U({ngInjectorDef:U}),E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=y({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Xf(t){return t&&!!t.\u0275providers}var yy=U({\u0275cmp:U}),Dy=U({\u0275dir:U}),wy=U({\u0275pipe:U}),Ey=U({\u0275mod:U}),uo=U({\u0275fac:U}),Ar=U({__NG_ELEMENT_ID__:U}),Xd=U({__NG_ENV_ID__:U});function at(t){return typeof t=="string"?t:t==null?"":String(t)}function Iy(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():at(t)}function Cy(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new D(-200,t)}function su(t,e){throw new D(-201,!1)}var k=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(k||{}),Za;function eh(){return Za}function Me(t){let e=Za;return Za=t,e}function th(t,e,r){let n=zo(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&k.Optional)return null;if(e!==void 0)return e;su(t,"Injector")}var by={},_r=by,Qa="__NG_DI_FLAG__",lo="ngTempTokenPath",Sy="ngTokenPath",My=/\n/gm,Ty="\u0275",ef="__source",On;function xy(){return On}function Ft(t){let e=On;return On=t,e}function Ny(t,e=k.Default){if(On===void 0)throw new D(-203,!1);return On===null?th(t,void 0,e):On.get(t,e&k.Optional?null:void 0,e)}function g(t,e=k.Default){return(eh()||Ny)(me(t),e)}function m(t,e=k.Default){return g(t,qo(e))}function qo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ya(t){let e=[];for(let r=0;r<t.length;r++){let n=me(t[r]);if(Array.isArray(n)){if(n.length===0)throw new D(900,!1);let i,o=k.Default;for(let s=0;s<n.length;s++){let a=n[s],c=Ay(a);typeof c=="number"?c===-1?i=a.token:o|=c:i=a}e.push(g(i,o))}else e.push(g(n))}return e}function au(t,e){return t[Qa]=e,t.prototype[Qa]=e,t}function Ay(t){return t[Qa]}function Ry(t,e,r,n){let i=t[lo];throw e[ef]&&i.unshift(e[ef]),t.message=_y(`
`+t.message,i,r,n),t[Sy]=i,t[lo]=null,t}function _y(t,e,r,n=null){t=t&&t.charAt(0)===`
`&&t.charAt(1)==Ty?t.slice(2):t;let i=ye(e);if(Array.isArray(e))i=e.map(ye).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ye(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(My,`
`)}`}var Sx=au(ou("Inject",t=>({token:t})),-1),Vr=au(ou("Optional"),8);var Go=au(ou("SkipSelf"),4);function rn(t,e){let r=t.hasOwnProperty(uo);return r?t[uo]:null}function Oy(t,e,r){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){let i=t[n],o=e[n];if(r&&(i=r(i),o=r(o)),o!==i)return!1}return!0}function ky(t){return t.flat(Number.POSITIVE_INFINITY)}function cu(t,e){t.forEach(r=>Array.isArray(r)?cu(r,e):e(r))}function nh(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function fo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Py(t,e){let r=[];for(let n=0;n<t;n++)r.push(e);return r}function Fy(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Ur(t,e,r){let n=Hr(t,e);return n>=0?t[n|1]=r:(n=~n,Fy(t,n,e,r)),n}function ka(t,e){let r=Hr(t,e);if(r>=0)return t[r|1]}function Hr(t,e){return Ly(t,e,1)}function Ly(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<<r];if(e===s)return o<<r;s>e?i=o:n=o+1}return~(i<<r)}var Pn={},ve=[],Fn=new E(""),rh=new E("",-1),ih=new E(""),ho=class{get(e,r=_r){if(r===_r){let n=new Error(`NullInjectorError: No provider for ${ye(e)}!`);throw n.name="NullInjectorError",n}return r}},oh=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(oh||{}),ct=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ct||{}),$t=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}($t||{});function jy(t,e,r){let n=t.length;for(;;){let i=t.indexOf(e,r);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===n||t.charCodeAt(i+o)<=32)return i}r=i+1}}function Ka(t,e,r){let n=0;for(;n<r.length;){let i=r[n];if(typeof i=="number"){if(i!==0)break;n++;let o=r[n++],s=r[n++],a=r[n++];t.setAttribute(e,s,a,o)}else{let o=i,s=r[++n];$y(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),n++}}return n}function sh(t){return t===3||t===4||t===6}function $y(t){return t.charCodeAt(0)===64}function Or(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let r=-1;for(let n=0;n<e.length;n++){let i=e[n];typeof i=="number"?r=i:r===0||(r===-1||r===2?tf(t,r,i,null,e[++n]):tf(t,r,i,null,null))}}return t}function tf(t,e,r,n,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===r){if(n===null){i!==null&&(t[o+1]=i);return}else if(n===t[o+1]){t[o+2]=i;return}}o++,n!==null&&o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,r),n!==null&&t.splice(o++,0,n),i!==null&&t.splice(o++,0,i)}var ah="ng-template";function By(t,e,r,n){let i=0;if(n){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&jy(e[i+1].toLowerCase(),r,0)!==-1)return!0}else if(uu(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===r)return!0}return!1}function uu(t){return t.type===4&&t.value!==ah}function Vy(t,e,r){let n=t.type===4&&!r?ah:t.value;return e===n}function Uy(t,e,r){let n=4,i=t.attrs,o=i!==null?qy(i):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!Ge(n)&&!Ge(c))return!1;if(s&&Ge(c))continue;s=!1,n=c|n&1;continue}if(!s)if(n&4){if(n=2|n&1,c!==""&&!Vy(t,c,r)||c===""&&e.length===1){if(Ge(n))return!1;s=!0}}else if(n&8){if(i===null||!By(t,i,c,r)){if(Ge(n))return!1;s=!0}}else{let u=e[++a],l=Hy(c,i,uu(t),r);if(l===-1){if(Ge(n))return!1;s=!0;continue}if(u!==""){let d;if(l>o?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(Ge(n))return!1;s=!0}}}}return Ge(n)||s}function Ge(t){return(t&1)===0}function Hy(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return Gy(e,t)}function ch(t,e,r=!1){for(let n=0;n<e.length;n++)if(Uy(t,e[n],r))return!0;return!1}function zy(t){let e=t.attrs;if(e!=null){let r=e.indexOf(5);if(!(r&1))return e[r+1]}return null}function qy(t){for(let e=0;e<t.length;e++){let r=t[e];if(sh(r))return e}return t.length}function Gy(t,e){let r=t.indexOf(4);if(r>-1)for(r++;r<t.length;){let n=t[r];if(typeof n=="number")return-1;if(n===e)return r;r++}return-1}function Wy(t,e){e:for(let r=0;r<e.length;r++){let n=e[r];if(t.length===n.length){for(let i=0;i<t.length;i++)if(t[i]!==n[i])continue e;return!0}}return!1}function nf(t,e){return t?":not("+e.trim()+")":e}function Zy(t){let e=t[0],r=1,n=2,i="",o=!1;for(;r<t.length;){let s=t[r];if(typeof s=="string")if(n&2){let a=t[++r];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Ge(s)&&(e+=nf(o,i),i=""),n=s,o=o||!Ge(n);r++}return i!==""&&(e+=nf(o,i)),e}function Qy(t){return t.map(Zy).join(",")}function Yy(t){let e=[],r=[],n=1,i=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++n]):i===8&&r.push(o);else{if(!Ge(i))break;i=o}n++}return{attrs:e,classes:r}}function Wo(t){return Br(()=>{let e=ph(t),r=T(p({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===oh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ct.Emulated,styles:t.styles||ve,_:null,schemas:t.schemas||null,tView:null,id:""});gh(r);let n=t.dependencies;return r.directiveDefs=po(n,!1),r.pipeDefs=po(n,!0),r.id=Xy(r),r})}function Ky(t){return It(t)||lh(t)}function Jy(t){return t!==null}function ht(t){return Br(()=>({type:t.type,bootstrap:t.bootstrap||ve,declarations:t.declarations||ve,imports:t.imports||ve,exports:t.exports||ve,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function rf(t,e){if(t==null)return Pn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=$t.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==$t.None?[n,a]:n,e[o]=s):r[o]=n}return r}function Qe(t){return Br(()=>{let e=ph(t);return gh(e),e})}function uh(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function It(t){return t[yy]||null}function lh(t){return t[Dy]||null}function dh(t){return t[wy]||null}function fh(t){let e=It(t)||lh(t)||dh(t);return e!==null?e.standalone:!1}function hh(t,e){let r=t[Ey]||null;if(!r&&e===!0)throw new Error(`Type ${ye(t)} does not have '\u0275mod' property.`);return r}function ph(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Pn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||ve,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:rf(t.inputs,e),outputs:rf(t.outputs),debugInfo:null}}function gh(t){t.features?.forEach(e=>e(t))}function po(t,e){if(!t)return null;let r=e?dh:Ky;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Jy)}function Xy(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Zn(t){return{\u0275providers:t}}function eD(...t){return{\u0275providers:mh(!0,t),\u0275fromNgModule:!0}}function mh(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return cu(e,s=>{let a=s;Ja(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&vh(i,o),r}function vh(t,e){for(let r=0;r<t.length;r++){let{ngModule:n,providers:i}=t[r];lu(i,o=>{e(o,n)})}}function Ja(t,e,r,n){if(t=me(t),!t)return!1;let i=null,o=Kd(t),s=!o&&It(t);if(!o&&!s){let c=t.ngModule;if(o=Kd(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ja(u,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;try{cu(o.imports,l=>{Ja(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&vh(u,e)}if(!a){let u=rn(i)||(()=>new i);e({provide:i,useFactory:u,deps:ve},i),e({provide:ih,useValue:i,multi:!0},i),e({provide:Fn,useValue:()=>g(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=t;lu(c,l=>{e(l,u)})}}else return!1;return i!==t&&t.providers!==void 0}function lu(t,e){for(let r of t)Xf(r)&&(r=r.\u0275providers),Array.isArray(r)?lu(r,e):e(r)}var tD=U({provide:String,useValue:U});function yh(t){return t!==null&&typeof t=="object"&&tD in t}function nD(t){return!!(t&&t.useExisting)}function rD(t){return!!(t&&t.useFactory)}function Ln(t){return typeof t=="function"}function iD(t){return!!t.useClass}var Zo=new E(""),ro={},oD={},Pa;function Qo(){return Pa===void 0&&(Pa=new ho),Pa}var De=class{},kr=class extends De{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ec(e,s=>this.processProvider(s)),this.records.set(rh,Nn(void 0,this)),i.has("environment")&&this.records.set(De,Nn(void 0,this));let o=this.records.get(Zo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ih,ve,k.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=O(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),O(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Ft(this),n=Me(void 0),i;try{return e()}finally{Ft(r),Me(n)}}get(e,r=_r,n=k.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Xd))return e[Xd](this);n=qo(n);let i,o=Ft(this),s=Me(void 0);try{if(!(n&k.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=lD(e)&&zo(e);u&&this.injectableDefInScope(u)?c=Nn(Xa(e),ro):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&k.Self?Qo():this.parent;return r=n&k.Optional&&r===_r?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[lo]=a[lo]||[]).unshift(ye(e)),o)throw a;return Ry(a,e,"R3InjectorError",this.source)}else throw a}finally{Me(s),Ft(o)}}resolveInjectorInitializers(){let e=O(null),r=Ft(this),n=Me(void 0),i;try{let o=this.get(Fn,ve,k.Self);for(let s of o)s()}finally{Ft(r),Me(n),O(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(ye(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(e){e=me(e);let r=Ln(e)?e:me(e&&e.provide),n=aD(e);if(!Ln(e)&&e.multi===!0){let i=this.records.get(r);i||(i=Nn(void 0,ro,!0),i.factory=()=>Ya(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=O(null);try{return r.value===ro&&(r.value=oD,r.value=r.factory()),typeof r.value=="object"&&r.value&&uD(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{O(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=me(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Xa(t){let e=zo(t),r=e!==null?e.factory:rn(t);if(r!==null)return r;if(t instanceof E)throw new D(204,!1);if(t instanceof Function)return sD(t);throw new D(204,!1)}function sD(t){if(t.length>0)throw new D(204,!1);let r=my(t);return r!==null?()=>r.factory(t):()=>new t}function aD(t){if(yh(t))return Nn(void 0,t.useValue);{let e=Dh(t);return Nn(e,ro)}}function Dh(t,e,r){let n;if(Ln(t)){let i=me(t);return rn(i)||Xa(i)}else if(yh(t))n=()=>me(t.useValue);else if(rD(t))n=()=>t.useFactory(...Ya(t.deps||[]));else if(nD(t))n=()=>g(me(t.useExisting));else{let i=me(t&&(t.useClass||t.provide));if(cD(t))n=()=>new i(...Ya(t.deps));else return rn(i)||Xa(i)}return n}function Nn(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function cD(t){return!!t.deps}function uD(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function lD(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function ec(t,e){for(let r of t)Array.isArray(r)?ec(r,e):r&&Xf(r)?ec(r.\u0275providers,e):e(r)}function $e(t,e){t instanceof kr&&t.assertNotDestroyed();let r,n=Ft(t),i=Me(void 0);try{return e()}finally{Ft(n),Me(i)}}function wh(){return eh()!==void 0||xy()!=null}function pn(t){if(!wh())throw new D(-203,!1)}function dD(t){let e=Ne.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function fD(t){return typeof t=="function"}var pt=0,N=1,x=2,pe=3,We=4,Te=5,jn=6,go=7,fe=8,$n=9,ut=10,Z=11,Pr=12,of=13,Qn=14,Ae=15,on=16,An=17,Ct=18,Yo=19,Eh=20,Lt=21,io=22,je=23,oe=25,du=1;var sn=7,mo=8,Bn=9,he=10,vo=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(vo||{});function jt(t){return Array.isArray(t)&&typeof t[du]=="object"}function Tt(t){return Array.isArray(t)&&t[du]===!0}function fu(t){return(t.flags&4)!==0}function Ko(t){return t.componentOffset>-1}function Jo(t){return(t.flags&1)===1}function bt(t){return!!t.template}function tc(t){return(t[x]&512)!==0}var nc=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ih(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function zr(){return Ch}function Ch(t){return t.type.prototype.ngOnChanges&&(t.setInput=pD),hD}zr.ngInherit=!0;function hD(){let t=Sh(this),e=t?.current;if(e){let r=t.previous;if(r===Pn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function pD(t,e,r,n,i){let o=this.declaredInputs[n],s=Sh(t)||gD(t,{previous:Pn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new nc(u&&u.currentValue,r,c===Pn),Ih(t,e,i,r)}var bh="__ngSimpleChanges__";function Sh(t){return t[bh]||null}function gD(t,e){return t[bh]=e}var sf=null;var ot=function(t,e,r){sf?.(t,e,r)},Mh="svg",mD="math";function lt(t){for(;Array.isArray(t);)t=t[pt];return t}function vD(t){for(;Array.isArray(t);){if(typeof t[du]=="object")return t;t=t[pt]}return null}function Th(t,e){return lt(e[t])}function Be(t,e){return lt(e[t.index])}function hu(t,e){return t.data[e]}function pu(t,e){return t[e]}function Ht(t,e){let r=e[t];return jt(r)?r:r[pt]}function yD(t){return(t[x]&4)===4}function gu(t){return(t[x]&128)===128}function DD(t){return Tt(t[pe])}function Bt(t,e){return e==null?null:t[e]}function xh(t){t[An]=0}function Nh(t){t[x]&1024||(t[x]|=1024,gu(t)&&es(t))}function wD(t,e){for(;t>0;)e=e[Qn],t--;return e}function Xo(t){return!!(t[x]&9216||t[je]?.dirty)}function rc(t){t[ut].changeDetectionScheduler?.notify(8),t[x]&64&&(t[x]|=1024),Xo(t)&&es(t)}function es(t){t[ut].changeDetectionScheduler?.notify(0);let e=an(t);for(;e!==null&&!(e[x]&8192||(e[x]|=8192,!gu(e)));)e=an(e)}function Ah(t,e){if((t[x]&256)===256)throw new D(911,!1);t[Lt]===null&&(t[Lt]=[]),t[Lt].push(e)}function ED(t,e){if(t[Lt]===null)return;let r=t[Lt].indexOf(e);r!==-1&&t[Lt].splice(r,1)}function an(t){let e=t[pe];return Tt(e)?e[pe]:e}var A={lFrame:$h(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Rh=!1;function ID(){return A.lFrame.elementDepthCount}function CD(){A.lFrame.elementDepthCount++}function bD(){A.lFrame.elementDepthCount--}function _h(){return A.bindingsEnabled}function Oh(){return A.skipHydrationRootTNode!==null}function SD(t){return A.skipHydrationRootTNode===t}function MD(){A.skipHydrationRootTNode=null}function S(){return A.lFrame.lView}function W(){return A.lFrame.tView}function Mx(t){return A.lFrame.contextLView=t,t[fe]}function Tx(t){return A.lFrame.contextLView=null,t}function ae(){let t=kh();for(;t!==null&&t.type===64;)t=t.parent;return t}function kh(){return A.lFrame.currentTNode}function TD(){let t=A.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function gn(t,e){let r=A.lFrame;r.currentTNode=t,r.isParent=e}function mu(){return A.lFrame.isParent}function vu(){A.lFrame.isParent=!1}function xD(){return A.lFrame.contextLView}function Ph(){return Rh}function af(t){Rh=t}function mn(){let t=A.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Fh(){return A.lFrame.bindingIndex}function ND(t){return A.lFrame.bindingIndex=t}function zt(){return A.lFrame.bindingIndex++}function ts(t){let e=A.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function AD(){return A.lFrame.inI18n}function RD(t,e){let r=A.lFrame;r.bindingIndex=r.bindingRootIndex=t,ic(e)}function _D(){return A.lFrame.currentDirectiveIndex}function ic(t){A.lFrame.currentDirectiveIndex=t}function yu(t){let e=A.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Du(){return A.lFrame.currentQueryIndex}function ns(t){A.lFrame.currentQueryIndex=t}function OD(t){let e=t[N];return e.type===2?e.declTNode:e.type===1?t[Te]:null}function Lh(t,e,r){if(r&k.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&k.Host);)if(i=OD(o),i===null||(o=o[Qn],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=A.lFrame=jh();return n.currentTNode=e,n.lView=t,!0}function wu(t){let e=jh(),r=t[N];A.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function jh(){let t=A.lFrame,e=t===null?null:t.child;return e===null?$h(t):e}function $h(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Bh(){let t=A.lFrame;return A.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Vh=Bh;function Eu(){let t=Bh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function kD(t){return(A.lFrame.contextLView=wD(t,A.lFrame.contextLView))[fe]}function gt(){return A.lFrame.selectedIndex}function cn(t){A.lFrame.selectedIndex=t}function Yn(){let t=A.lFrame;return hu(t.tView,t.selectedIndex)}function xx(){A.lFrame.currentNamespace=Mh}function Nx(){PD()}function PD(){A.lFrame.currentNamespace=null}function FD(){return A.lFrame.currentNamespace}var Uh=!0;function rs(){return Uh}function is(t){Uh=t}function LD(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Ch(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function os(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r<n;r++){let o=t.data[r].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=o;s&&(t.contentHooks??=[]).push(-r,s),a&&((t.contentHooks??=[]).push(r,a),(t.contentCheckHooks??=[]).push(r,a)),c&&(t.viewHooks??=[]).push(-r,c),u&&((t.viewHooks??=[]).push(r,u),(t.viewCheckHooks??=[]).push(r,u)),l!=null&&(t.destroyHooks??=[]).push(r,l)}}function oo(t,e,r){Hh(t,e,3,r)}function so(t,e,r,n){(t[x]&3)===r&&Hh(t,e,r,n)}function Fa(t,e){let r=t[x];(r&3)===e&&(r&=16383,r+=1,t[x]=r)}function Hh(t,e,r,n){let i=n!==void 0?t[An]&65535:0,o=n??-1,s=e.length-1,a=0;for(let c=i;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],n!=null&&a>=n)break}else e[c]<0&&(t[An]+=65536),(a<o||o==-1)&&(jD(t,r,e,c),t[An]=(t[An]&4294901760)+c+2),c++}function cf(t,e){ot(4,t,e);let r=O(null);try{e.call(t)}finally{O(r),ot(5,t,e)}}function jD(t,e,r,n){let i=r[n]<0,o=r[n+1],s=i?-r[n]:r[n],a=t[s];i?t[x]>>14<t[An]>>16&&(t[x]&3)===e&&(t[x]+=16384,cf(a,o)):cf(a,o)}var kn=-1,un=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function $D(t){return t instanceof un}function BD(t){return(t.flags&8)!==0}function VD(t){return(t.flags&16)!==0}var La={},oc=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=qo(n);let i=this.injector.get(e,La,n);return i!==La||r===La?i:this.parentInjector.get(e,r,n)}};function zh(t){return t!==kn}function yo(t){return t&32767}function UD(t){return t>>16}function Do(t,e){let r=UD(t),n=e;for(;r>0;)n=n[Qn],r--;return n}var sc=!0;function wo(t){let e=sc;return sc=t,e}var HD=256,qh=HD-1,Gh=5,zD=0,st={};function qD(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Ar)&&(n=r[Ar]),n==null&&(n=r[Ar]=zD++);let i=n&qh,o=1<<i;e.data[t+(i>>Gh)]|=o}function Eo(t,e){let r=Wh(t,e);if(r!==-1)return r;let n=e[N];n.firstCreatePass&&(t.injectorIndex=e.length,ja(n.data,t),ja(e,null),ja(n.blueprint,null));let i=Iu(t,e),o=t.injectorIndex;if(zh(i)){let s=yo(i),a=Do(i,e),c=a[N].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|c[s+u]}return e[o+8]=i,o}function ja(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Wh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Iu(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Jh(i),n===null)return kn;if(r++,i=i[Qn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return kn}function ac(t,e,r){qD(t,e,r)}function GD(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i<n;){let o=r[i];if(sh(o))break;if(o===0)i=i+2;else if(typeof o=="number")for(i++;i<n&&typeof r[i]=="string";)i++;else{if(o===e)return r[i+1];i=i+2}}}return null}function Zh(t,e,r){if(r&k.Optional||t!==void 0)return t;su(e,"NodeInjector")}function Qh(t,e,r,n){if(r&k.Optional&&n===void 0&&(n=null),!(r&(k.Self|k.Host))){let i=t[$n],o=Me(void 0);try{return i?i.get(e,n,r&k.Optional):th(e,n,r&k.Optional)}finally{Me(o)}}return Zh(n,e,r)}function Yh(t,e,r,n=k.Default,i){if(t!==null){if(e[x]&2048&&!(n&k.Self)){let s=YD(t,e,r,n,st);if(s!==st)return s}let o=Kh(t,e,r,n,st);if(o!==st)return o}return Qh(e,r,n,i)}function Kh(t,e,r,n,i){let o=ZD(r);if(typeof o=="function"){if(!Lh(e,t,n))return n&k.Host?Zh(i,r,n):Qh(e,r,n,i);try{let s;if(s=o(n),s==null&&!(n&k.Optional))su(r);else return s}finally{Vh()}}else if(typeof o=="number"){let s=null,a=Wh(t,e),c=kn,u=n&k.Host?e[Ae][Te]:null;for((a===-1||n&k.SkipSelf)&&(c=a===-1?Iu(t,e):e[a+8],c===kn||!lf(n,!1)?a=-1:(s=e[N],a=yo(c),e=Do(c,e)));a!==-1;){let l=e[N];if(uf(o,a,l.data)){let d=WD(a,e,r,s,n,u);if(d!==st)return d}c=e[a+8],c!==kn&&lf(n,e[N].data[a+8]===u)&&uf(o,a,e)?(s=l,a=yo(c),e=Do(c,e)):a=-1}}return i}function WD(t,e,r,n,i,o){let s=e[N],a=s.data[t+8],c=n==null?Ko(a)&&sc:n!=s&&(a.type&3)!==0,u=i&k.Host&&o===a,l=ao(a,s,r,c,u);return l!==null?ln(e,s,l,a):st}function ao(t,e,r,n,i){let o=t.providerIndexes,s=e.data,a=o&1048575,c=t.directiveStart,u=t.directiveEnd,l=o>>20,d=n?a:a+l,f=i?a+l:u;for(let h=d;h<f;h++){let v=s[h];if(h<c&&r===v||h>=c&&v.type===r)return h}if(i){let h=s[c];if(h&&bt(h)&&h.type===r)return c}return null}function ln(t,e,r,n){let i=t[r],o=e.data;if($D(i)){let s=i;s.resolving&&Cy(Iy(o[r]));let a=wo(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Me(s.injectImpl):null,l=Lh(t,n,k.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&LD(r,o[r],e)}finally{u!==null&&Me(u),wo(a),s.resolving=!1,Vh()}}return i}function ZD(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Ar)?t[Ar]:void 0;return typeof e=="number"?e>=0?e&qh:QD:e}function uf(t,e,r){let n=1<<t;return!!(r[e+(t>>Gh)]&n)}function lf(t,e){return!(t&k.Self)&&!(t&k.Host&&e)}var nn=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Yh(this._tNode,this._lView,e,qo(n),r)}};function QD(){return new nn(ae(),S())}function qr(t){return Br(()=>{let e=t.prototype.constructor,r=e[uo]||cc(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[uo]||cc(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function cc(t){return Qf(t)?()=>{let e=cc(me(t));return e&&e()}:rn(t)}function YD(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[x]&2048&&!(s[x]&512);){let a=Kh(o,s,r,n|k.Self,st);if(a!==st)return a;let c=o.parent;if(!c){let u=s[Eh];if(u){let l=u.get(r,st,n);if(l!==st)return l}c=Jh(s),s=s[Qn]}o=c}return i}function Jh(t){let e=t[N],r=e.type;return r===2?e.declTNode:r===1?t[Te]:null}function Xh(t){return GD(ae(),t)}function df(t,e=null,r=null,n){let i=ep(t,e,r,n);return i.resolveInjectorInitializers(),i}function ep(t,e=null,r=null,n,i=new Set){let o=[r||ve,eD(t)];return n=n||(typeof t=="object"?void 0:ye(t)),new kr(o,e||Qo(),n||null,i)}var en=class en{static create(e,r){if(Array.isArray(e))return df({name:""},r,e,"");{let n=e.name??"";return df({name:n},e.parent,e.providers,n)}}};en.THROW_IF_NOT_FOUND=_r,en.NULL=new ho,en.\u0275prov=y({token:en,providedIn:"any",factory:()=>g(rh)}),en.__NG_ELEMENT_ID__=-1;var se=en;var KD=new E("");KD.__NG_ELEMENT_ID__=t=>{let e=ae();if(e===null)throw new D(204,!1);if(e.type&2)return e.value;if(t&k.Optional)return null;throw new D(204,!1)};var JD="ngOriginalError";function $a(t){return t[JD]}var tp=!0,Ve=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=XD,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),uc=class extends Ve{constructor(e){super(),this._lView=e}onDestroy(e){return Ah(this._lView,e),()=>ED(this._lView,e)}};function XD(){return new uc(S())}var mt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new R(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),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)}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var lc=class extends V{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,wh()&&(this.destroyRef=m(Ve,{optional:!0})??void 0,this.pendingTasks=m(mt,{optional:!0})??void 0)}emit(e){let r=O(null);try{super.next(e)}finally{O(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof bn&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},ie=lc;function Io(...t){}function np(t){let e,r;function n(){t=Io;try{r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(r=requestAnimationFrame(()=>{t(),n()})),()=>n()}function ff(t){return queueMicrotask(()=>t()),()=>{t=Io}}var Cu="isAngularZone",Co=Cu+"_ID",ew=0,j=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1);let{enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=tp}=e;if(typeof Zone>"u")throw new D(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)),r&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&n,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,rw(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Cu)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new D(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,tw,Io,Io);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},tw={};function bu(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function nw(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){np(()=>{t.callbackScheduled=!1,dc(t),t.isCheckStableRunning=!0,bu(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),dc(t)}function rw(t){let e=()=>{nw(t)},r=ew++;t._inner=t._inner.fork({name:"angular",properties:{[Cu]:!0,[Co]:r,[Co+r]:!0},onInvokeTask:(n,i,o,s,a,c)=>{if(iw(c))return n.invokeTask(o,s,a,c);try{return hf(t),n.invokeTask(o,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),pf(t)}},onInvoke:(n,i,o,s,a,c,u)=>{try{return hf(t),n.invoke(o,s,a,c,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!ow(c)&&e(),pf(t)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,dc(t),bu(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,o,s)=>(n.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function dc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function hf(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function pf(t){t._nesting--,bu(t)}var bo=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function iw(t){return rp(t,"__ignore_ng_zone__")}function ow(t){return rp(t,"__scheduler_tick__")}function rp(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function sw(t="zone.js",e){return t==="noop"?new bo:t==="zone.js"?new j(e):t}var Ze=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&$a(e);for(;r&&$a(r);)r=$a(r);return r||null}},aw=new E("",{providedIn:"root",factory:()=>{let t=m(j),e=m(Ze);return r=>t.runOutsideAngular(()=>e.handleError(r))}}),So=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=m(Ze,{optional:!0}),this.destroyRef=m(Ve),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new D(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let r=this.listeners?.indexOf(e);r!==void 0&&r!==-1&&this.listeners?.splice(r,1)}}}emit(e){if(this.destroyed)throw new D(953,!1);if(this.listeners===null)return;let r=O(null);try{for(let n of this.listeners)try{n(e)}catch(i){this.errorHandler?.handleError(i)}}finally{O(r)}}};function Ax(t){return new So}function gf(t,e){return Wf(t,e)}function cw(t){return Wf(Ho,t)}var Rx=(gf.required=cw,gf);function uw(){return Kn(ae(),S())}function Kn(t,e){return new Ye(Be(t,e))}var Ye=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=uw;let t=e;return t})();function ip(t){return t instanceof Ye?t.nativeElement:t}function lw(){return this._results[Symbol.iterator]()}var fc=class t{get changes(){return this._changes??=new ie}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=lw)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=ky(e);(this._changesDetected=!Oy(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function op(t){return(t.flags&128)===128}var sp=new Map,dw=0;function fw(){return dw++}function hw(t){sp.set(t[Yo],t)}function hc(t){sp.delete(t[Yo])}var mf="__ngContext__";function Vt(t,e){jt(e)?(t[mf]=e[Yo],hw(e)):t[mf]=e}function ap(t){return up(t[Pr])}function cp(t){return up(t[We])}function up(t){for(;t!==null&&!Tt(t);)t=t[We];return t}var pc;function lp(t){pc=t}function dp(){if(pc!==void 0)return pc;if(typeof document<"u")return document;throw new D(210,!1)}var ss=new E("",{providedIn:"root",factory:()=>pw}),pw="ng",Su=new E(""),Ee=new E("",{providedIn:"platform",factory:()=>"unknown"});var _x=new E(""),Mu=new E("",{providedIn:"root",factory:()=>dp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var gw="h",mw="b";var vw=()=>null;function Tu(t,e,r=!1){return vw(t,e,r)}var fp=!1,yw=new E("",{providedIn:"root",factory:()=>fp});var Yi;function Dw(){if(Yi===void 0&&(Yi=null,Ne.trustedTypes))try{Yi=Ne.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Yi}function as(t){return Dw()?.createHTML(t)||t}var Ki;function hp(){if(Ki===void 0&&(Ki=null,Ne.trustedTypes))try{Ki=Ne.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ki}function vf(t){return hp()?.createHTML(t)||t}function yf(t){return hp()?.createScriptURL(t)||t}var St=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qf})`}},gc=class extends St{getTypeName(){return"HTML"}},mc=class extends St{getTypeName(){return"Style"}},vc=class extends St{getTypeName(){return"Script"}},yc=class extends St{getTypeName(){return"URL"}},Dc=class extends St{getTypeName(){return"ResourceURL"}};function Re(t){return t instanceof St?t.changingThisBreaksApplicationSecurity:t}function xt(t,e){let r=ww(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${qf})`)}return r===e}function ww(t){return t instanceof St&&t.getTypeName()||null}function pp(t){return new gc(t)}function gp(t){return new mc(t)}function mp(t){return new vc(t)}function vp(t){return new yc(t)}function yp(t){return new Dc(t)}function Ew(t){let e=new Ec(t);return Iw()?new wc(e):e}var wc=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{let r=new window.DOMParser().parseFromString(as(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.firstChild?.remove(),r)}catch{return null}}},Ec=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=as(e),r}};function Iw(){try{return!!new window.DOMParser().parseFromString(as(""),"text/html")}catch{return!1}}var Cw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cs(t){return t=String(t),t.match(Cw)?t:"unsafe:"+t}function Nt(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Gr(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var Dp=Nt("area,br,col,hr,img,wbr"),wp=Nt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ep=Nt("rp,rt"),bw=Gr(Ep,wp),Sw=Gr(wp,Nt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Mw=Gr(Ep,Nt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Df=Gr(Dp,Sw,Mw,bw),Ip=Nt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Tw=Nt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),xw=Nt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Nw=Gr(Ip,Tw,xw),Aw=Nt("script,style,template"),Ic=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=Ow(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=_w(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(e){let r=wf(e).toLowerCase();if(!Df.hasOwnProperty(r))return this.sanitizedSomething=!0,!Aw.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i<n.length;i++){let o=n.item(i),s=o.name,a=s.toLowerCase();if(!Nw.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=o.value;Ip[a]&&(c=cs(c)),this.buf.push(" ",s,'="',Ef(c),'"')}return this.buf.push(">"),!0}endElement(e){let r=wf(e).toLowerCase();Df.hasOwnProperty(r)&&!Dp.hasOwnProperty(r)&&(this.buf.push("</"),this.buf.push(r),this.buf.push(">"))}chars(e){this.buf.push(Ef(e))}};function Rw(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function _w(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Cp(e);return e}function Ow(t){let e=t.firstChild;if(e&&Rw(t,e))throw Cp(e);return e}function wf(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Cp(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var kw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Pw=/([^\#-~ |!])/g;function Ef(t){return t.replace(/&/g,"&").replace(kw,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(Pw,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Ji;function xu(t,e){let r=null;try{Ji=Ji||Ew(t);let n=e?String(e):"";r=Ji.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=Ji.getInertBodyElement(n)}while(n!==o);let a=new Ic().sanitizeChildren(If(r)||r);return as(a)}finally{if(r){let n=If(r)||r;for(;n.firstChild;)n.firstChild.remove()}}}function If(t){return"content"in t&&Fw(t)?t.content:null}function Fw(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Ke=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ke||{});function Ox(t){let e=Nu();return e?vf(e.sanitize(Ke.HTML,t)||""):xt(t,"HTML")?vf(Re(t)):xu(dp(),at(t))}function kx(t){let e=Nu();return e?e.sanitize(Ke.URL,t)||"":xt(t,"URL")?Re(t):cs(at(t))}function Px(t){let e=Nu();if(e)return yf(e.sanitize(Ke.RESOURCE_URL,t)||"");if(xt(t,"ResourceURL"))return yf(Re(t));throw new D(904,!1)}function Nu(){let t=S();return t&&t[ut].sanitizer}var Lw=/^>|^->|<!--|-->|--!>|<!-$/g,jw=/(<|>)/g,$w="\u200B$1\u200B";function Bw(t){return t.replace(Lw,e=>e.replace(jw,$w))}function Fx(t){return t.ownerDocument}function bp(t){return t instanceof Function?t():t}function Sp(t){return(t??m(se)).get(Ee)==="browser"}var dt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(dt||{}),Vw;function Au(t,e){return Vw(t,e)}function Rn(t,e,r,n,i){if(n!=null){let o,s=!1;Tt(n)?o=n:jt(n)&&(s=!0,n=n[pt]);let a=lt(n);t===0&&r!==null?i==null?Ap(e,r,a):Mo(e,r,a,i||null,!0):t===1&&r!==null?Mo(e,r,a,i||null,!0):t===2?tE(e,a,s):t===3&&e.destroyNode(a),o!=null&&rE(e,t,o,r,i)}}function Uw(t,e){return t.createText(e)}function Hw(t,e,r){t.setValue(e,r)}function zw(t,e){return t.createComment(Bw(e))}function Mp(t,e,r){return t.createElement(e,r)}function qw(t,e){Tp(t,e),e[pt]=null,e[Te]=null}function Gw(t,e,r,n,i,o){n[pt]=i,n[Te]=e,ds(t,n,r,1,i,o)}function Tp(t,e){e[ut].changeDetectionScheduler?.notify(9),ds(t,e,e[Z],2,null,null)}function Ww(t){let e=t[Pr];if(!e)return Ba(t[N],t);for(;e;){let r=null;if(jt(e))r=e[Pr];else{let n=e[he];n&&(r=n)}if(!r){for(;e&&!e[We]&&e!==t;)jt(e)&&Ba(e[N],e),e=e[pe];e===null&&(e=t),jt(e)&&Ba(e[N],e),r=e&&e[We]}e=r}}function Zw(t,e,r,n){let i=he+n,o=r.length;n>0&&(r[i-1][We]=e),n<o-he?(e[We]=r[i],nh(r,he+n,e)):(r.push(e),e[We]=null),e[pe]=r;let s=e[on];s!==null&&r!==s&&xp(s,e);let a=e[Ct];a!==null&&a.insertView(t),rc(e),e[x]|=128}function xp(t,e){let r=t[Bn],n=e[pe];if(jt(n))t[x]|=vo.HasTransplantedViews;else{let i=n[pe][Ae];e[Ae]!==i&&(t[x]|=vo.HasTransplantedViews)}r===null?t[Bn]=[e]:r.push(e)}function Ru(t,e){let r=t[Bn],n=r.indexOf(e);r.splice(n,1)}function Fr(t,e){if(t.length<=he)return;let r=he+e,n=t[r];if(n){let i=n[on];i!==null&&i!==t&&Ru(i,n),e>0&&(t[r-1][We]=n[We]);let o=fo(t,he+e);qw(n[N],n);let s=o[Ct];s!==null&&s.detachView(o[N]),n[pe]=null,n[We]=null,n[x]&=-129}return n}function us(t,e){if(!(e[x]&256)){let r=e[Z];r.destroyNode&&ds(t,e,r,3,null,null),Ww(e)}}function Ba(t,e){if(e[x]&256)return;let r=O(null);try{e[x]&=-129,e[x]|=256,e[je]&&Gi(e[je]),Yw(t,e),Qw(t,e),e[N].type===1&&e[Z].destroy();let n=e[on];if(n!==null&&Tt(e[pe])){n!==e[pe]&&Ru(n,e);let i=e[Ct];i!==null&&i.detachView(t)}hc(e)}finally{O(r)}}function Qw(t,e){let r=t.cleanup,n=e[go];if(r!==null)for(let o=0;o<r.length-1;o+=2)if(typeof r[o]=="string"){let s=r[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[go]=null);let i=e[Lt];if(i!==null){e[Lt]=null;for(let o=0;o<i.length;o++){let s=i[o];s()}}}function Yw(t,e){let r;if(t!=null&&(r=t.destroyHooks)!=null)for(let n=0;n<r.length;n+=2){let i=e[r[n]];if(!(i instanceof un)){let o=r[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],c=o[s+1];ot(4,a,c);try{c.call(a)}finally{ot(5,a,c)}}else{ot(4,i,o);try{o.call(i)}finally{ot(5,i,o)}}}}}function Np(t,e,r){return Kw(t,e.parent,r)}function Kw(t,e,r){let n=e;for(;n!==null&&n.type&168;)e=n,n=e.parent;if(n===null)return r[pt];{let{componentOffset:i}=n;if(i>-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===ct.None||o===ct.Emulated)return null}return Be(n,r)}}function Mo(t,e,r,n,i){t.insertBefore(e,r,n,i)}function Ap(t,e,r){t.appendChild(e,r)}function Cf(t,e,r,n,i){n!==null?Mo(t,e,r,n,i):Ap(t,e,r)}function Rp(t,e){return t.parentNode(e)}function Jw(t,e){return t.nextSibling(e)}function _p(t,e,r){return eE(t,e,r)}function Xw(t,e,r){return t.type&40?Be(t,r):null}var eE=Xw,bf;function ls(t,e,r,n){let i=Np(t,n,e),o=e[Z],s=n.parent||e[Te],a=_p(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;c<r.length;c++)Cf(o,i,r[c],a,!1);else Cf(o,i,r,a,!1);bf!==void 0&&bf(o,n,e,r,i)}function Nr(t,e){if(e!==null){let r=e.type;if(r&3)return Be(e,t);if(r&4)return Cc(-1,t[e.index]);if(r&8){let n=e.child;if(n!==null)return Nr(t,n);{let i=t[e.index];return Tt(i)?Cc(-1,i):lt(i)}}else{if(r&128)return Nr(t,e.next);if(r&32)return Au(e,t)()||lt(t[e.index]);{let n=Op(t,e);if(n!==null){if(Array.isArray(n))return n[0];let i=an(t[Ae]);return Nr(i,n)}else return Nr(t,e.next)}}}return null}function Op(t,e){if(e!==null){let n=t[Ae][Te],i=e.projection;return n.projection[i]}return null}function Cc(t,e){let r=he+t+1;if(r<e.length){let n=e[r],i=n[N].firstChild;if(i!==null)return Nr(n,i)}return e[sn]}function tE(t,e,r){t.removeChild(null,e,r)}function _u(t,e,r,n,i,o,s){for(;r!=null;){if(r.type===128){r=r.next;continue}let a=n[r.index],c=r.type;if(s&&e===0&&(a&&Vt(lt(a),n),r.flags|=2),(r.flags&32)!==32)if(c&8)_u(t,e,r.child,n,i,o,!1),Rn(e,t,i,a,o);else if(c&32){let u=Au(r,n),l;for(;l=u();)Rn(e,t,i,l,o);Rn(e,t,i,a,o)}else c&16?kp(t,e,n,r,i,o):Rn(e,t,i,a,o);r=s?r.projectionNext:r.next}}function ds(t,e,r,n,i,o){_u(r,n,t.firstChild,e,i,o,!1)}function nE(t,e,r){let n=e[Z],i=Np(t,r,e),o=r.parent||e[Te],s=_p(o,r,e);kp(n,0,e,r,i,s)}function kp(t,e,r,n,i,o){let s=r[Ae],c=s[Te].projection[n.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Rn(e,t,i,l,o)}else{let u=c,l=s[pe];op(n)&&(u.flags|=128),_u(t,e,u,l,i,o,!0)}}function rE(t,e,r,n,i){let o=r[sn],s=lt(r);o!==s&&Rn(e,t,n,o,i);for(let a=he;a<r.length;a++){let c=r[a];ds(c[N],c,t,e,n,o)}}function iE(t,e,r,n,i){if(e)i?t.addClass(r,n):t.removeClass(r,n);else{let o=n.indexOf("-")===-1?void 0:dt.DashCase;i==null?t.removeStyle(r,n,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=dt.Important),t.setStyle(r,n,i,o))}}function oE(t,e,r){t.setAttribute(e,"style",r)}function Pp(t,e,r){r===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",r)}function Fp(t,e,r){let{mergedAttrs:n,classes:i,styles:o}=r;n!==null&&Ka(t,e,n),i!==null&&Pp(t,e,i),o!==null&&oE(t,e,o)}var ge={};function Lx(t=1){Lp(W(),S(),gt()+t,!1)}function Lp(t,e,r,n){if(!n)if((e[x]&3)===3){let o=t.preOrderCheckHooks;o!==null&&oo(e,o,r)}else{let o=t.preOrderHooks;o!==null&&so(e,o,0,r)}cn(r)}function H(t,e=k.Default){let r=S();if(r===null)return g(t,e);let n=ae();return Yh(n,r,me(t),e)}function jp(){let t="invalid";throw new Error(t)}function $p(t,e,r,n,i,o){let s=O(null);try{let a=null;i&$t.SignalBased&&(a=e[n][Se]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&$t.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(e,o)),t.setInput!==null?t.setInput(e,a,o,r,n):Ih(e,a,n,o)}finally{O(s)}}function sE(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;n<r.length;n++){let i=r[n];if(i<0)cn(~i);else{let o=i,s=r[++n],a=r[++n];RD(s,o);let c=e[o];a(2,c)}}}finally{cn(-1)}}function fs(t,e,r,n,i,o,s,a,c,u,l){let d=e.blueprint.slice();return d[pt]=i,d[x]=n|4|128|8|64,(u!==null||t&&t[x]&2048)&&(d[x]|=2048),xh(d),d[pe]=d[Qn]=t,d[fe]=r,d[ut]=s||t&&t[ut],d[Z]=a||t&&t[Z],d[$n]=c||t&&t[$n]||null,d[Te]=o,d[Yo]=fw(),d[jn]=l,d[Eh]=u,d[Ae]=e.type==2?t[Ae]:d,d}function Jn(t,e,r,n,i){let o=t.data[e];if(o===null)o=aE(t,e,r,n,i),AD()&&(o.flags|=32);else if(o.type&64){o.type=r,o.value=n,o.attrs=i;let s=TD();o.injectorIndex=s===null?-1:s.injectorIndex}return gn(o,!0),o}function aE(t,e,r,n,i){let o=kh(),s=mu(),a=s?o:o&&o.parent,c=t.data[e]=hE(t,a,r,e,n,i);return t.firstChild===null&&(t.firstChild=c),o!==null&&(s?o.child==null&&c.parent!==null&&(o.child=c):o.next===null&&(o.next=c,c.prev=o)),c}function Bp(t,e,r,n){if(r===0)return-1;let i=e.length;for(let o=0;o<r;o++)e.push(n),t.blueprint.push(n),t.data.push(null);return i}function Vp(t,e,r,n,i){let o=gt(),s=n&2;try{cn(-1),s&&e.length>oe&&Lp(t,e,oe,!1),ot(s?2:0,i),r(n,i)}finally{cn(o),ot(s?3:1,i)}}function Ou(t,e,r){if(fu(e)){let n=O(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let c=r[s];a.contentQueries(1,c,s)}}}finally{O(n)}}}function ku(t,e,r){_h()&&(DE(t,e,r,Be(r,e)),(r.flags&64)===64&&zp(t,e,r))}function Pu(t,e,r=Be){let n=e.localNames;if(n!==null){let i=e.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?r(e,t):t[s];t[i++]=a}}}function Up(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Fu(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Fu(t,e,r,n,i,o,s,a,c,u,l){let d=oe+n,f=d+i,h=cE(d,f),v=typeof u=="function"?u():u;return h[N]={type:t,blueprint:h,template:r,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:v,incompleteFirstPass:!1,ssrId:l}}function cE(t,e){let r=[];for(let n=0;n<e;n++)r.push(n<t?null:ge);return r}function uE(t,e,r,n){let o=n.get(yw,fp)||r===ct.ShadowDom,s=t.selectRootElement(e,o);return lE(s),s}function lE(t){dE(t)}var dE=()=>null;function fE(t,e,r,n){let i=Wp(e);i.push(r),t.firstCreatePass&&Zp(t).push(n,i.length-1)}function hE(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return Oh()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Sf(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=$t.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?Mf(n,r,u,a,c):Mf(n,r,u,a)}return n}function Mf(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function pE(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l<i;l++){let d=o[l],f=r?r.get(d):null,h=f?f.inputs:null,v=f?f.outputs:null;c=Sf(0,d.inputs,l,c,h),u=Sf(1,d.outputs,l,u,v);let M=c!==null&&s!==null&&!uu(e)?AE(c,l,s):null;a.push(M)}c!==null&&(c.hasOwnProperty("class")&&(e.flags|=8),c.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=c,e.outputs=u}function gE(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function Wr(t,e,r,n,i,o,s,a){let c=Be(e,r),u=e.inputs,l;!a&&u!=null&&(l=u[n])?(ju(t,r,l,n,i),Ko(e)&&mE(r,e.index)):e.type&3?(n=gE(n),i=s!=null?s(i,e.value||"",n):i,o.setProperty(c,n,i)):e.type&12}function mE(t,e){let r=Ht(e,t);r[x]&16||(r[x]|=64)}function Lu(t,e,r,n){if(_h()){let i=n===null?null:{"":-1},o=EE(t,r),s,a;o===null?s=a=null:[s,a]=o,s!==null&&Hp(t,e,r,s,i,a),i&&IE(r,n,i)}r.mergedAttrs=Or(r.mergedAttrs,r.attrs)}function Hp(t,e,r,n,i,o){for(let u=0;u<n.length;u++)ac(Eo(r,e),t,n[u].type);bE(r,t.data.length,n.length);for(let u=0;u<n.length;u++){let l=n[u];l.providersResolver&&l.providersResolver(l)}let s=!1,a=!1,c=Bp(t,e,n.length,null);for(let u=0;u<n.length;u++){let l=n[u];r.mergedAttrs=Or(r.mergedAttrs,l.hostAttrs),SE(t,r,e,c,l),CE(c,l,i),l.contentQueries!==null&&(r.flags|=4),(l.hostBindings!==null||l.hostAttrs!==null||l.hostVars!==0)&&(r.flags|=64);let d=l.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(r.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(r.index),a=!0),c++}pE(t,r,o)}function vE(t,e,r,n,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;yE(s)!=a&&s.push(a),s.push(r,n,o)}}function yE(t){let e=t.length;for(;e>0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function DE(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Ko(r)&&ME(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Eo(r,e),Vt(n,e);let s=r.initialInputs;for(let a=i;a<o;a++){let c=t.data[a],u=ln(e,t,a,r);if(Vt(u,e),s!==null&&NE(e,a-i,u,c,r,s),bt(c)){let l=Ht(r.index,e);l[fe]=ln(e,t,a,r)}}}function zp(t,e,r){let n=r.directiveStart,i=r.directiveEnd,o=r.index,s=_D();try{cn(o);for(let a=n;a<i;a++){let c=t.data[a],u=e[a];ic(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&wE(c,u)}}finally{cn(-1),ic(s)}}function wE(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function EE(t,e){let r=t.directiveRegistry,n=null,i=null;if(r)for(let o=0;o<r.length;o++){let s=r[o];if(ch(e,s.selectors,!1))if(n||(n=[]),bt(s))if(s.findHostDirectiveDefs!==null){let a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),n.unshift(...a,s);let c=a.length;bc(t,e,c)}else n.unshift(s),bc(t,e,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,n,i),n.push(s)}return n===null?null:[n,i]}function bc(t,e,r){e.componentOffset=r,(t.components??=[]).push(e.index)}function IE(t,e,r){if(e){let n=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=r[e[i+1]];if(o==null)throw new D(-301,!1);n.push(e[i],o)}}}function CE(t,e,r){if(r){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)r[e.exportAs[n]]=t;bt(e)&&(r[""]=t)}}function bE(t,e,r){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+r,t.providerIndexes=e}function SE(t,e,r,n,i){t.data[n]=i;let o=i.factory||(i.factory=rn(i.type,!0)),s=new un(o,bt(i),H);t.blueprint[n]=s,r[n]=s,vE(t,e,n,Bp(t,r,i.hostVars,ge),i)}function ME(t,e,r){let n=Be(e,t),i=Up(r),o=t[ut].rendererFactory,s=16;r.signals?s=4096:r.onPush&&(s=64);let a=hs(t,fs(t,i,null,s,n,e,null,o.createRenderer(n,r),null,null,null));t[e.index]=a}function TE(t,e,r,n,i,o){let s=Be(t,e);xE(e[Z],s,o,t.value,r,n,i)}function xE(t,e,r,n,i,o,s){if(o==null)t.removeAttribute(e,i,r);else{let a=s==null?at(o):s(o,n||"",i);t.setAttribute(e,i,a,r)}}function NE(t,e,r,n,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;){let c=s[a++],u=s[a++],l=s[a++],d=s[a++];$p(n,r,c,u,l,d)}}function AE(t,e,r){let n=null,i=0;for(;i<r.length;){let o=r[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(o,s[a+1],s[a+2],r[i+1]);break}}i+=2}return n}function qp(t,e,r,n){return[t,!0,0,e,null,n,null,r,null,null]}function Gp(t,e){let r=t.contentQueries;if(r!==null){let n=O(null);try{for(let i=0;i<r.length;i+=2){let o=r[i],s=r[i+1];if(s!==-1){let a=t.data[s];ns(o),a.contentQueries(2,e[s],s)}}}finally{O(n)}}}function hs(t,e){return t[Pr]?t[of][We]=e:t[Pr]=e,t[of]=e,e}function Sc(t,e,r){ns(0);let n=O(null);try{e(t,r)}finally{O(n)}}function Wp(t){return t[go]??=[]}function Zp(t){return t.cleanup??=[]}function Qp(t,e,r){return(t===null||bt(t))&&(r=vD(r[e.index])),r[Z]}function Yp(t,e){let r=t[$n],n=r?r.get(Ze,null):null;n&&n.handleError(e)}function ju(t,e,r,n,i){for(let o=0;o<r.length;){let s=r[o++],a=r[o++],c=r[o++],u=e[s],l=t.data[s];$p(l,u,n,a,c,i)}}function $u(t,e,r){let n=Th(e,t);Hw(t[Z],n,r)}function RE(t,e){let r=Ht(e,t),n=r[N];_E(n,r);let i=r[pt];i!==null&&r[jn]===null&&(r[jn]=Tu(i,r[$n])),Bu(n,r,r[fe])}function _E(t,e){for(let r=e.length;r<t.blueprint.length;r++)e.push(t.blueprint[r])}function Bu(t,e,r){wu(e);try{let n=t.viewQuery;n!==null&&Sc(1,n,r);let i=t.template;i!==null&&Vp(t,e,i,1,r),t.firstCreatePass&&(t.firstCreatePass=!1),e[Ct]?.finishViewCreation(t),t.staticContentQueries&&Gp(t,e),t.staticViewQueries&&Sc(2,t.viewQuery,r);let o=t.components;o!==null&&OE(e,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[x]&=-5,Eu()}}function OE(t,e){for(let r=0;r<e.length;r++)RE(t,e[r])}function Zr(t,e,r,n){let i=O(null);try{let o=e.tView,a=t[x]&4096?4096:16,c=fs(t,o,r,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),u=t[e.index];c[on]=u;let l=t[Ct];return l!==null&&(c[Ct]=l.createEmbeddedView(o)),Bu(o,c,r),c}finally{O(i)}}function Kp(t,e){let r=he+e;if(r<t.length)return t[r]}function Vn(t,e){return!e||e.firstChild===null||op(t)}function Qr(t,e,r,n=!0){let i=e[N];if(Zw(i,e,t,r),n){let s=Cc(r,t),a=e[Z],c=Rp(a,t[sn]);c!==null&&Gw(i,t[Te],a,e,c,s)}let o=e[jn];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Jp(t,e){let r=Fr(t,e);return r!==void 0&&us(r[N],r),r}function To(t,e,r,n,i=!1){for(;r!==null;){if(r.type===128){r=i?r.projectionNext:r.next;continue}let o=e[r.index];o!==null&&n.push(lt(o)),Tt(o)&&kE(o,n);let s=r.type;if(s&8)To(t,e,r.child,n);else if(s&32){let a=Au(r,e),c;for(;c=a();)n.push(c)}else if(s&16){let a=Op(e,r);if(Array.isArray(a))n.push(...a);else{let c=an(e[Ae]);To(c[N],c,a,n,!0)}}r=i?r.projectionNext:r.next}return n}function kE(t,e){for(let r=he;r<t.length;r++){let n=t[r],i=n[N].firstChild;i!==null&&To(n[N],n,i,e)}t[sn]!==t[pt]&&e.push(t[sn])}var Xp=[];function PE(t){return t[je]??FE(t)}function FE(t){let e=Xp.pop()??Object.create(jE);return e.lView=t,e}function LE(t){t.lView[je]!==t&&(t.lView=null,Xp.push(t))}var jE=T(p({},xn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{es(t.lView)},consumerOnSignalRead(){this.lView[je]=this}});function $E(t){let e=t[je]??Object.create(BE);return e.lView=t,e}var BE=T(p({},xn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=an(t.lView);for(;e&&!eg(e[N]);)e=an(e);e&&Nh(e)},consumerOnSignalRead(){this.lView[je]=this}});function eg(t){return t.type!==2}var VE=100;function tg(t,e=!0,r=0){let n=t[ut],i=n.rendererFactory,o=!1;o||i.begin?.();try{UE(t,r)}catch(s){throw e&&Yp(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function UE(t,e){let r=Ph();try{af(!0),Mc(t,e);let n=0;for(;Xo(t);){if(n===VE)throw new D(103,!1);n++,Mc(t,1)}}finally{af(r)}}function HE(t,e,r,n){let i=e[x];if((i&256)===256)return;let o=!1,s=!1;!o&&e[ut].inlineEffectRunner?.flush(),wu(e);let a=!0,c=null,u=null;o||(eg(t)?(u=PE(e),c=Tr(u)):Fd()===null?(a=!1,u=$E(e),c=Tr(u)):e[je]&&(Gi(e[je]),e[je]=null));try{xh(e),ND(t.bindingStartIndex),r!==null&&Vp(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let h=t.preOrderCheckHooks;h!==null&&oo(e,h,null)}else{let h=t.preOrderHooks;h!==null&&so(e,h,0,null),Fa(e,0)}if(s||zE(e),ng(e,0),t.contentQueries!==null&&Gp(t,e),!o)if(l){let h=t.contentCheckHooks;h!==null&&oo(e,h)}else{let h=t.contentHooks;h!==null&&so(e,h,1),Fa(e,1)}sE(t,e);let d=t.components;d!==null&&ig(e,d,0);let f=t.viewQuery;if(f!==null&&Sc(2,f,n),!o)if(l){let h=t.viewCheckHooks;h!==null&&oo(e,h)}else{let h=t.viewHooks;h!==null&&so(e,h,2),Fa(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[io]){for(let h of e[io])h();e[io]=null}o||(e[x]&=-73)}catch(l){throw o||es(e),l}finally{u!==null&&(zi(u,c),a&&LE(u)),Eu()}}function ng(t,e){for(let r=ap(t);r!==null;r=cp(r))for(let n=he;n<r.length;n++){let i=r[n];rg(i,e)}}function zE(t){for(let e=ap(t);e!==null;e=cp(e)){if(!(e[x]&vo.HasTransplantedViews))continue;let r=e[Bn];for(let n=0;n<r.length;n++){let i=r[n];Nh(i)}}}function qE(t,e,r){let n=Ht(e,t);rg(n,r)}function rg(t,e){gu(t)&&Mc(t,e)}function Mc(t,e){let n=t[N],i=t[x],o=t[je],s=!!(e===0&&i&16);if(s||=!!(i&64&&e===0),s||=!!(i&1024),s||=!!(o?.dirty&&qi(o)),s||=!1,o&&(o.dirty=!1),t[x]&=-9217,s)HE(n,t,n.template,t[fe]);else if(i&8192){ng(t,1);let a=n.components;a!==null&&ig(t,a,1)}}function ig(t,e,r){for(let n=0;n<e.length;n++)qE(t,e[n],r)}function Vu(t,e){let r=Ph()?64:1088;for(t[ut].changeDetectionScheduler?.notify(e);t;){t[x]|=r;let n=an(t);if(tc(t)&&!n)return t;t=n}return null}var dn=class{get rootNodes(){let e=this._lView,r=e[N];return To(r,e,r.firstChild,[])}constructor(e,r,n=!0){this._lView=e,this._cdRefInjectingView=r,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[fe]}set context(e){this._lView[fe]=e}get destroyed(){return(this._lView[x]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[pe];if(Tt(e)){let r=e[mo],n=r?r.indexOf(this):-1;n>-1&&(Fr(e,n),fo(r,n))}this._attachedToViewContainer=!1}us(this._lView[N],this._lView)}onDestroy(e){Ah(this._lView,e)}markForCheck(){Vu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[x]&=-129}reattach(){rc(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,tg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=tc(this._lView),r=this._lView[on];r!==null&&!e&&Ru(r,this._lView),Tp(this._lView[N],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=e;let r=tc(this._lView),n=this._lView[on];n!==null&&!r&&xp(n,this._lView),rc(this._lView)}},Mt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=ZE;let t=e;return t})(),GE=Mt,WE=class extends GE{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Zr(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new dn(i)}};function ZE(){return ps(ae(),S())}function ps(t,e){return t.type&4?new WE(e,t,Kn(t,e)):null}var $x=new RegExp(`^(\\d+)*(${mw}|${gw})*(.*)`);var QE=()=>null;function Un(t,e){return QE(t,e)}var Hn=class{},Uu=new E("",{providedIn:"root",factory:()=>!1});var og=new E(""),sg=new E(""),Tc=class{},xo=class{};function YE(t){let e=Error(`No component factory found for ${ye(t)}.`);return e[KE]=t,e}var KE="ngComponent";var xc=class{resolveComponentFactory(e){throw YE(e)}},cl=class cl{};cl.NULL=new xc;var zn=cl,qn=class{},Yr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>JE();let t=e;return t})();function JE(){let t=S(),e=ae(),r=Ht(e.index,t);return(jt(r)?r:t)[Z]}var XE=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();function No(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=Wa(i,a);else if(o==2){let c=a,u=e[++s];n=Wa(n,c+": "+u+";")}}r?t.styles=n:t.stylesWithoutHost=n,r?t.classes=i:t.classesWithoutHost=i}var Ao=class extends zn{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let r=It(e);return new fn(r,this.ngModule)}};function Tf(t,e){let r=[];for(let n in t){if(!t.hasOwnProperty(n))continue;let i=t[n];if(i===void 0)continue;let o=Array.isArray(i),s=o?i[0]:i,a=o?i[1]:$t.None;e?r.push({propName:s,templateName:n,isSignal:(a&$t.SignalBased)!==0}):r.push({propName:s,templateName:n})}return r}function eI(t){let e=t.toLowerCase();return e==="svg"?Mh:e==="math"?mD:null}var fn=class extends xo{get inputs(){let e=this.componentDef,r=e.inputTransforms,n=Tf(e.inputs,!0);if(r!==null)for(let i of n)r.hasOwnProperty(i.propName)&&(i.transform=r[i.propName]);return n}get outputs(){return Tf(this.componentDef.outputs,!1)}constructor(e,r){super(),this.componentDef=e,this.ngModule=r,this.componentType=e.type,this.selector=Qy(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!r}create(e,r,n,i){let o=O(null);try{i=i||this.ngModule;let s=i instanceof De?i:i?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new oc(e,s):e,c=a.get(qn,null);if(c===null)throw new D(407,!1);let u=a.get(XE,null),l=a.get(Hn,null),d={rendererFactory:c,sanitizer:u,inlineEffectRunner:null,changeDetectionScheduler:l},f=c.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",v=n?uE(f,n,this.componentDef.encapsulation,a):Mp(f,h,eI(h)),M=512;this.componentDef.signals?M|=4096:this.componentDef.onPush||(M|=16);let I=null;v!==null&&(I=Tu(v,a,!0));let C=Fu(0,null,null,1,0,null,null,null,null,null,null),L=fs(null,C,null,M,null,null,d,f,a,null,I);wu(L);let J,B,Fe=null;try{let X=this.componentDef,Le,Cn=null;X.findHostDirectiveDefs?(Le=[],Cn=new Map,X.findHostDirectiveDefs(X,Le,Cn),Le.push(X)):Le=[X];let oy=tI(L,v);Fe=nI(oy,v,X,Le,L,d,f),B=hu(C,oe),v&&oI(f,X,v,n),r!==void 0&&sI(B,this.ngContentSelectors,r),J=iI(Fe,X,Le,Cn,L,[aI]),Bu(C,L,null)}catch(X){throw Fe!==null&&hc(Fe),hc(L),X}finally{Eu()}return new Nc(this.componentType,J,Kn(B,L),L,B)}finally{O(o)}}},Nc=class extends Tc{constructor(e,r,n,i,o){super(),this.location=n,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=r,this.hostView=this.changeDetectorRef=new dn(i,void 0,!1),this.componentType=e}setInput(e,r){let n=this._tNode.inputs,i;if(n!==null&&(i=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),r))return;let o=this._rootLView;ju(o[N],o,i,e,r),this.previousInputValues.set(e,r);let s=Ht(this._tNode.index,o);Vu(s,1)}}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function tI(t,e){let r=t[N],n=oe;return t[n]=e,Jn(r,n,2,"#host",null)}function nI(t,e,r,n,i,o,s){let a=i[N];rI(n,t,e,s);let c=null;e!==null&&(c=Tu(e,i[$n]));let u=o.rendererFactory.createRenderer(e,r),l=16;r.signals?l=4096:r.onPush&&(l=64);let d=fs(i,Up(r),null,l,i[t.index],t,o,u,null,null,c);return a.firstCreatePass&&bc(a,t,n.length-1),hs(i,d),i[t.index]=d}function rI(t,e,r,n){for(let i of t)e.mergedAttrs=Or(e.mergedAttrs,i.hostAttrs);e.mergedAttrs!==null&&(No(e,e.mergedAttrs,!0),r!==null&&Fp(n,r,e))}function iI(t,e,r,n,i,o){let s=ae(),a=i[N],c=Be(s,i);Hp(a,i,s,r,null,n);for(let l=0;l<r.length;l++){let d=s.directiveStart+l,f=ln(i,a,d,s);Vt(f,i)}zp(a,i,s),c&&Vt(c,i);let u=ln(i,a,s.directiveStart+s.componentOffset,s);if(t[fe]=i[fe]=u,o!==null)for(let l of o)l(u,e);return Ou(a,s,i),u}function oI(t,e,r,n){if(n)Ka(t,r,["ng-version","18.2.13"]);else{let{attrs:i,classes:o}=Yy(e.selectors[0]);i&&Ka(t,r,i),o&&o.length>0&&Pp(t,r,o.join(" "))}}function sI(t,e,r){let n=t.projection=[];for(let i=0;i<e.length;i++){let o=r[i];n.push(o!=null?Array.from(o):null)}}function aI(){let t=ae();os(S()[N],t)}var Je=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=cI;let t=e;return t})();function cI(){let t=ae();return cg(t,S())}var uI=Je,ag=class extends uI{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Kn(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Iu(this._hostTNode,this._hostLView);if(zh(e)){let r=Do(e,this._hostLView),n=yo(e),i=r[N].data[n+8];return new nn(i,r)}else return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=xf(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-he}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Un(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Vn(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!fD(e),a;if(s)a=r;else{let v=r||{};a=v.index,n=v.injector,i=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}let c=s?e:new fn(It(e)),u=n||this.parentInjector;if(!o&&c.ngModule==null){let M=(s?u:this.parentInjector).get(De,null);M&&(o=M)}let l=It(c.componentType??{}),d=Un(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,i,f,o);return this.insertImpl(h.hostView,a,Vn(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(DD(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[pe],u=new ag(c,c[Te],c[pe]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return Qr(s,i,o,n),e.attachToViewContainerRef(),nh(Va(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=xf(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Fr(this._lContainer,r);n&&(fo(Va(this._lContainer),r),us(n[N],n))}detach(e){let r=this._adjustIndex(e,-1),n=Fr(this._lContainer,r);return n&&fo(Va(this._lContainer),r)!=null?new dn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function xf(t){return t[mo]}function Va(t){return t[mo]||(t[mo]=[])}function cg(t,e){let r,n=e[t.index];return Tt(n)?r=n:(r=qp(n,e,null,t),e[t.index]=r,hs(e,r)),dI(r,e,t,n),new ag(r,t,e)}function lI(t,e){let r=t[Z],n=r.createComment(""),i=Be(e,t),o=Rp(r,i);return Mo(r,o,n,Jw(r,i),!1),n}var dI=pI,fI=()=>!1;function hI(t,e,r){return fI(t,e,r)}function pI(t,e,r,n){if(t[sn])return;let i;r.type&8?i=lt(n):i=lI(e,r),t[sn]=i}var Ac=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Rc=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o<n;o++){let s=r.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new t(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let r=0;r<this.queries.length;r++)zu(e,r).matches!==null&&this.queries[r].setDirty()}},Ro=class{constructor(e,r,n=null){this.flags=r,this.read=n,typeof e=="string"?this.predicate=DI(e):this.predicate=e}},_c=class t{constructor(e=[]){this.queries=e}elementStart(e,r){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,r)}elementEnd(e){for(let r=0;r<this.queries.length;r++)this.queries[r].elementEnd(e)}embeddedTView(e){let r=null;for(let n=0;n<this.length;n++){let i=r!==null?r.length:0,o=this.getByIndex(n).embeddedTView(e,i);o&&(o.indexInDeclarationView=n,r!==null?r.push(o):r=[o])}return r!==null?new t(r):null}template(e,r){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,r)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},Oc=class t{constructor(e,r=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=r}elementStart(e,r){this.isApplyingToNode(r)&&this.matchTNode(e,r)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,r){this.elementStart(e,r)}embeddedTView(e,r){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,r),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let r=this._declarationNodeIndex,n=e.parent;for(;n!==null&&n.type&8&&n.index!==r;)n=n.parent;return r===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(e,r){let n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){let o=n[i];this.matchTNodeWithReadOption(e,r,gI(r,o)),this.matchTNodeWithReadOption(e,r,ao(r,e,o,!1,!1))}else n===Mt?r.type&4&&this.matchTNodeWithReadOption(e,r,-1):this.matchTNodeWithReadOption(e,r,ao(r,e,n,!1,!1))}matchTNodeWithReadOption(e,r,n){if(n!==null){let i=this.metadata.read;if(i!==null)if(i===Ye||i===Je||i===Mt&&r.type&4)this.addMatch(r.index,-2);else{let o=ao(r,e,i,!1,!1);o!==null&&this.addMatch(r.index,o)}else this.addMatch(r.index,n)}}addMatch(e,r){this.matches===null?this.matches=[e,r]:this.matches.push(e,r)}};function gI(t,e){let r=t.localNames;if(r!==null){for(let n=0;n<r.length;n+=2)if(r[n]===e)return r[n+1]}return null}function mI(t,e){return t.type&11?Kn(t,e):t.type&4?ps(t,e):null}function vI(t,e,r,n){return r===-1?mI(e,t):r===-2?yI(t,e,n):ln(t,t[N],r,e)}function yI(t,e,r){if(r===Ye)return Kn(e,t);if(r===Mt)return ps(e,t);if(r===Je)return cg(e,t)}function ug(t,e,r,n){let i=e[Ct].queries[n];if(i.matches===null){let o=t.data,s=r.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=o[u];a.push(vI(e,l,s[c+1],r.metadata.read))}}i.matches=a}return i.matches}function kc(t,e,r,n){let i=t.queries.getByIndex(r),o=i.matches;if(o!==null){let s=ug(t,e,i,r);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)n.push(s[a/2]);else{let u=o[a+1],l=e[-c];for(let d=he;d<l.length;d++){let f=l[d];f[on]===f[pe]&&kc(f[N],f,u,n)}if(l[Bn]!==null){let d=l[Bn];for(let f=0;f<d.length;f++){let h=d[f];kc(h[N],h,u,n)}}}}}return n}function Hu(t,e){return t[Ct].queries[e].queryList}function lg(t,e,r){let n=new fc((r&4)===4);return fE(t,e,n,n.destroy),(e[Ct]??=new Rc).queries.push(new Ac(n))-1}function dg(t,e,r){let n=W();return n.firstCreatePass&&(hg(n,new Ro(t,e,r),-1),(e&2)===2&&(n.staticViewQueries=!0)),lg(n,S(),e)}function fg(t,e,r,n){let i=W();if(i.firstCreatePass){let o=ae();hg(i,new Ro(e,r,n),o.index),wI(i,t),(r&2)===2&&(i.staticContentQueries=!0)}return lg(i,S(),r)}function DI(t){return t.split(",").map(e=>e.trim())}function hg(t,e,r){t.queries===null&&(t.queries=new _c),t.queries.track(new Oc(e,r))}function wI(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function zu(t,e){return t.queries.getByIndex(e)}function pg(t,e){let r=t[N],n=zu(r,e);return n.crossesNgTemplate?kc(r,t,e,[]):ug(r,t,n,e)}var Nf=new Set;function vt(t){Nf.has(t)||(Nf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function EI(t){return typeof t=="function"&&t[Se]!==void 0}function gs(t,e){vt("NgSignals");let r=Wd(t),n=r[Se];return e?.equal&&(n.equal=e.equal),r.set=i=>xr(n,i),r.update=i=>Zd(n,i),r.asReadonly=gg.bind(r),r}function gg(){let t=this[Se];if(t.readonlyFn===void 0){let e=()=>this();e[Se]=t,t.readonlyFn=e}return t.readonlyFn}function mg(t){return EI(t)&&typeof t.set=="function"}function qu(t,e){let r,n=_a(()=>{r._dirtyCounter();let i=SI(r,t);if(e&&i===void 0)throw new D(-951,!1);return i});return r=n[Se],r._dirtyCounter=gs(0),r._flatValue=void 0,n}function II(){return qu(!0,!1)}function CI(){return qu(!0,!0)}function bI(){return qu(!1,!1)}function vg(t,e){let r=t[Se];r._lView=S(),r._queryIndex=e,r._queryList=Hu(r._lView,e),r._queryList.onDirty(()=>r._dirtyCounter.update(n=>n+1))}function SI(t,e){let r=t._lView,n=t._queryIndex;if(r===void 0||n===void 0||r[x]&4)return e?void 0:ve;let i=Hu(r,n),o=pg(r,n);return i.reset(o,ip),e?i.first:i._changesDetected||t._flatValue===void 0?t._flatValue=i.toArray():t._flatValue}function Af(t,e){return II()}function MI(t,e){return CI()}var Vx=(Af.required=MI,Af);function Ux(t,e){return bI()}function yg(t){let e=Object.create(Gf),r=new So;e.value=t;function n(){return Mr(e),Rf(e.value),e.value}return n[Se]=e,n.asReadonly=gg.bind(n),n.set=i=>{e.equal(e.value,i)||(xr(e,i),r.emit(i))},n.update=i=>{Rf(e.value),n.set(i(e.value))},n.subscribe=r.subscribe.bind(r),n.destroyRef=r.destroyRef,n}function Rf(t){if(t===Ho)throw new D(952,!1)}function _f(t){return yg(t)}function TI(){return yg(Ho)}var Hx=(_f.required=TI,_f);function xI(t){let e=[],r=new Map;function n(i){let o=r.get(i);if(!o){let s=t(i);r.set(i,o=s.then(_I))}return o}return _o.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(u=>{i.template=u}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let u=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[u+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(u=>{a.push(u),i.styleUrl=void 0}));let c=Promise.all(s).then(()=>OI(o));e.push(c)}),AI(),Promise.all(e).then(()=>{})}var _o=new Map,NI=new Set;function AI(){let t=_o;return _o=new Map,t}function RI(){return _o.size===0}function _I(t){return typeof t=="string"?t:t.text()}function OI(t){NI.delete(t)}function kI(t){return Object.getPrototypeOf(t.prototype).constructor}function PI(t){let e=kI(t.type),r=!0,n=[t];for(;e;){let i;if(bt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new D(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=Xi(t.inputs),s.inputTransforms=Xi(t.inputTransforms),s.declaredInputs=Xi(t.declaredInputs),s.outputs=Xi(t.outputs);let a=i.hostBindings;a&&BI(t,a);let c=i.viewQuery,u=i.contentQueries;if(c&&jI(t,c),u&&$I(t,u),FI(t,i),py(t.outputs,i.outputs),bt(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===PI&&(r=!1)}}e=Object.getPrototypeOf(e)}LI(n)}function FI(t,e){for(let r in e.inputs){if(!e.inputs.hasOwnProperty(r)||t.inputs.hasOwnProperty(r))continue;let n=e.inputs[r];if(n!==void 0&&(t.inputs[r]=n,t.declaredInputs[r]=e.declaredInputs[r],e.inputTransforms!==null)){let i=Array.isArray(n)?n[0]:n;if(!e.inputTransforms.hasOwnProperty(i))continue;t.inputTransforms??={},t.inputTransforms[i]=e.inputTransforms[i]}}}function LI(t){let e=0,r=null;for(let n=t.length-1;n>=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Or(i.hostAttrs,r=Or(r,i.hostAttrs))}}function Xi(t){return t===Pn?{}:t===ve?[]:t}function jI(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function $I(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function BI(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function Dg(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var Ut=class{},Lr=class{};var Oo=class extends Ut{constructor(e,r,n,i=!0){super(),this.ngModuleType=e,this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ao(this);let o=hh(e);this._bootstrapComponents=bp(o.bootstrap),this._r3Injector=ep(e,r,[{provide:Ut,useValue:this},{provide:zn,useValue:this.componentFactoryResolver},...n],ye(e),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},ko=class extends Lr{constructor(e){super(),this.moduleType=e}create(e){return new Oo(this.moduleType,e,[])}};function VI(t,e,r){return new Oo(t,e,r,!1)}var Pc=class extends Ut{constructor(e){super(),this.componentFactoryResolver=new Ao(this),this.instance=null;let r=new kr([...e.providers,{provide:Ut,useValue:this},{provide:zn,useValue:this.componentFactoryResolver}],e.parent||Qo(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function ms(t,e,r=null){return new Pc({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function wg(t){return Gu(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function UI(t,e){if(Array.isArray(t))for(let r=0;r<t.length;r++)e(t[r]);else{let r=t[Symbol.iterator](),n;for(;!(n=r.next()).done;)e(n.value)}}function Gu(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Kr(t,e,r){return t[e]=r}function Eg(t,e){return t[e]}function we(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function jr(t,e,r,n){let i=we(t,e,r);return we(t,e+1,n)||i}function Ig(t,e,r,n,i){let o=jr(t,e,r,n);return we(t,e+2,i)||o}function HI(t,e,r,n,i,o){let s=jr(t,e,r,n);return jr(t,e+2,i,o)||s}function zI(t){return(t.flags&32)===32}function qI(t,e,r,n,i,o,s,a,c){let u=e.consts,l=Jn(e,t,4,s||null,a||null);Lu(e,r,l,Bt(u,c)),os(e,l);let d=l.tView=Fu(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function Po(t,e,r,n,i,o,s,a,c,u){let l=r+oe,d=e.firstCreatePass?qI(l,e,t,n,i,o,s,a,c):e.data[l];gn(d,!1);let f=WI(e,t,d,r);rs()&&ls(e,t,f,d),Vt(f,t);let h=qp(f,t,f,d);return t[l]=h,hs(t,h),hI(h,d,t),Jo(d)&&ku(e,t,d),c!=null&&Pu(t,d,u),d}function GI(t,e,r,n,i,o,s,a){let c=S(),u=W(),l=Bt(u.consts,o);return Po(c,u,t,e,r,n,i,l,s,a),GI}var WI=ZI;function ZI(t,e,r,n){return is(!0),e[Z].createComment("")}var _n=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(_n||{}),Cg=(()=>{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})(),tn=class tn{constructor(){this.ngZone=m(j),this.scheduler=m(Hn),this.errorHandler=m(Ze,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of tn.PHASES)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[e]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>r.hooks[e](r.pipelinedValue))}catch(n){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};tn.PHASES=[_n.EarlyRead,_n.Write,_n.MixedReadWrite,_n.Read],tn.\u0275prov=y({token:tn,providedIn:"root",factory:()=>new tn});var Fc=tn,Lc=class{constructor(e,r,n,i){this.impl=e,this.hooks=r,this.once=n,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function QI(t,e){!e?.injector&&pn(QI);let r=e?.injector??m(se);return Sp(r)?(vt("NgAfterRender"),bg(t,r,e,!1)):Sg}function Wu(t,e){!e?.injector&&pn(Wu);let r=e?.injector??m(se);return Sp(r)?(vt("NgAfterNextRender"),bg(t,r,e,!0)):Sg}function YI(t,e){if(t instanceof Function){let r=[void 0,void 0,void 0,void 0];return r[e]=t,r}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function bg(t,e,r,n){let i=e.get(Cg);i.impl??=e.get(Fc);let o=r?.phase??_n.MixedReadWrite,s=r?.manualCleanup!==!0?e.get(Ve):null,a=new Lc(i.impl,YI(t,o),n,s);return i.impl.register(a),a}var Sg={destroy(){}};function Mg(t,e,r,n){let i=S(),o=zt();if(we(i,o,e)){let s=W(),a=Yn();TE(a,i,t,e,r,n)}return Mg}function vs(t,e,r,n){return we(t,zt(),r)?e+at(r)+n:ge}function KI(t,e,r,n,i,o){let s=Fh(),a=jr(t,s,r,i);return ts(2),a?e+at(r)+n+at(i)+o:ge}function JI(t,e,r,n,i,o,s,a){let c=Fh(),u=Ig(t,c,r,i,s);return ts(3),u?e+at(r)+n+at(i)+o+at(s)+a:ge}function eo(t,e){return t<<17|e<<2}function hn(t){return t>>17&32767}function XI(t){return(t&2)==2}function eC(t,e){return t&131071|e<<17}function jc(t){return t|2}function Gn(t){return(t&131068)>>2}function Ua(t,e){return t&-131069|e<<2}function tC(t){return(t&1)===1}function $c(t){return t|1}function nC(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=hn(s),c=Gn(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Hr(d,l)>0)&&(u=!0)}else l=r;if(i)if(c!==0){let f=hn(t[a+1]);t[n+1]=eo(f,a),f!==0&&(t[f+1]=Ua(t[f+1],n)),t[a+1]=eC(t[a+1],n)}else t[n+1]=eo(a,0),a!==0&&(t[a+1]=Ua(t[a+1],n)),a=n;else t[n+1]=eo(c,0),a===0?a=n:t[c+1]=Ua(t[c+1],n),c=n;u&&(t[n+1]=jc(t[n+1])),Of(t,l,n,!0),Of(t,l,n,!1),rC(e,l,t,n,o),s=eo(a,c),o?e.classBindings=s:e.styleBindings=s}function rC(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Hr(o,e)>=0&&(r[n+1]=$c(r[n+1]))}function Of(t,e,r,n){let i=t[r+1],o=e===null,s=n?hn(i):Gn(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],u=t[s+1];iC(c,e)&&(a=!0,t[s+1]=n?$c(u):jc(u)),s=n?hn(u):Gn(u)}a&&(t[r+1]=n?jc(i):$c(i))}function iC(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Hr(t,e)>=0:!1}var ne={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Tg(t){return t.substring(ne.key,ne.keyEnd)}function oC(t){return t.substring(ne.value,ne.valueEnd)}function sC(t){return Ag(t),xg(t,Wn(t,0,ne.textEnd))}function xg(t,e){let r=ne.textEnd;return r===e?-1:(e=ne.keyEnd=cC(t,ne.key=e,r),Wn(t,e,r))}function aC(t){return Ag(t),Ng(t,Wn(t,0,ne.textEnd))}function Ng(t,e){let r=ne.textEnd,n=ne.key=Wn(t,e,r);return r===n?-1:(n=ne.keyEnd=uC(t,n,r),n=kf(t,n,r,58),n=ne.value=Wn(t,n,r),n=ne.valueEnd=lC(t,n,r),kf(t,n,r,59))}function Ag(t){ne.key=0,ne.keyEnd=0,ne.value=0,ne.valueEnd=0,ne.textEnd=t.length}function Wn(t,e,r){for(;e<r&&t.charCodeAt(e)<=32;)e++;return e}function cC(t,e,r){for(;e<r&&t.charCodeAt(e)>32;)e++;return e}function uC(t,e,r){let n;for(;e<r&&((n=t.charCodeAt(e))===45||n===95||(n&-33)>=65&&(n&-33)<=90||n>=48&&n<=57);)e++;return e}function kf(t,e,r,n){return e=Wn(t,e,r),e<r&&e++,e}function lC(t,e,r){let n=-1,i=-1,o=-1,s=e,a=s;for(;s<r;){let c=t.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=Pf(t,c,s,r):e===s-4&&o===85&&i===82&&n===76&&c===40?a=s=Pf(t,41,s,r):c>32&&(a=s),o=i,i=n,n=c&-33}return a}function Pf(t,e,r,n){let i=-1,o=r;for(;o<n;){let s=t.charCodeAt(o++);if(s==e&&i!==92)return o;s==92&&i===92?i=0:i=s}throw new Error}function dC(t,e,r){let n=S(),i=zt();if(we(n,i,e)){let o=W(),s=Yn();Wr(o,s,n,t,e,n[Z],r,!1)}return dC}function Bc(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";ju(t,r,o[s],s,n)}function ys(t,e,r){return Zu(t,e,r,!1),ys}function fC(t,e){return Zu(t,e,null,!0),fC}function zx(t){Qu(Pg,hC,t,!1)}function hC(t,e){for(let r=aC(e);r>=0;r=Ng(e,r))Pg(t,Tg(e),oC(e))}function Rg(t){Qu(DC,_g,t,!0)}function _g(t,e){for(let r=sC(e);r>=0;r=xg(e,r))Ur(t,Tg(e),!0)}function Zu(t,e,r,n){let i=S(),o=W(),s=ts(2);if(o.firstUpdatePass&&kg(o,t,s,n),e!==ge&&we(i,s,e)){let a=o.data[gt()];Fg(o,a,i,i[Z],t,i[s+1]=EC(e,r),n,s)}}function Qu(t,e,r,n){let i=W(),o=ts(2);i.firstUpdatePass&&kg(i,null,o,n);let s=S();if(r!==ge&&we(s,o,r)){let a=i.data[gt()];if(Lg(a,n)&&!Og(i,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=Wa(c,r||"")),Bc(i,a,s,r,n)}else wC(i,a,s,s[Z],s[o+1],s[o+1]=yC(t,e,r),n,o)}}function Og(t,e){return e>=t.expandoStartIndex}function kg(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[gt()],s=Og(t,r);Lg(o,n)&&e===null&&!s&&(e=!1),e=pC(i,o,e,n),nC(i,o,e,r,s,n)}}function pC(t,e,r,n){let i=yu(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=Ha(null,t,e,r,n),r=$r(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=Ha(i,t,e,r,n),o===null){let c=gC(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Ha(null,t,e,c[1],n),c=$r(c,e.attrs,n),mC(t,e,n,c))}else o=vC(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function gC(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Gn(n)!==0)return t[hn(n)]}function mC(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[hn(i)]=n}function vC(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;n=$r(n,s,r)}return $r(n,e.attrs,r)}function Ha(t,e,r,n,i){let o=null,s=r.directiveEnd,a=r.directiveStylingLast;for(a===-1?a=r.directiveStart:a++;a<s&&(o=e[a],n=$r(n,o.hostAttrs,i),o!==t);)a++;return t!==null&&(r.directiveStylingLast=a),n}function $r(t,e,r){let n=r?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Ur(t,s,r?!0:e[++o]))}return t===void 0?null:t}function yC(t,e,r){if(r==null||r==="")return ve;let n=[],i=Re(r);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(n,i[o],!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&t(n,o,i[o]);else typeof i=="string"&&e(n,i);return n}function Pg(t,e,r){Ur(t,e,Re(r))}function DC(t,e,r){let n=String(e);n!==""&&!n.includes(" ")&&Ur(t,n,r)}function wC(t,e,r,n,i,o,s,a){i===ge&&(i=ve);let c=0,u=0,l=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;l!==null||d!==null;){let f=c<i.length?i[c+1]:void 0,h=u<o.length?o[u+1]:void 0,v=null,M;l===d?(c+=2,u+=2,f!==h&&(v=d,M=h)):d===null||l!==null&&l<d?(c+=2,v=l):(u+=2,v=d,M=h),v!==null&&Fg(t,e,r,n,v,M,s,a),l=c<i.length?i[c]:null,d=u<o.length?o[u]:null}}function Fg(t,e,r,n,i,o,s,a){if(!(e.type&3))return;let c=t.data,u=c[a+1],l=tC(u)?Ff(c,e,r,i,Gn(u),s):void 0;if(!Fo(l)){Fo(o)||XI(u)&&(o=Ff(c,null,r,i,a,s));let d=Th(gt(),r);iE(n,s,d,i,o)}}function Ff(t,e,r,n,i,o){let s=e===null,a;for(;i>0;){let c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[i+1];f===ge&&(f=d?ve:void 0);let h=d?ka(f,n):l===n?f:void 0;if(u&&!Fo(h)&&(h=ka(c,n)),Fo(h)&&(a=h,s))return a;let v=t[i+1];i=s?hn(v):Gn(v)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=ka(c,n))}return a}function Fo(t){return t!==void 0}function EC(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ye(Re(t)))),t}function Lg(t,e){return(t.flags&(e?8:16))!==0}function qx(t,e,r){let n=S(),i=vs(n,t,e,r);Qu(Ur,_g,i,!0)}var Vc=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),i=Math.max(e,r),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(e,r){this.attach(r,this.detach(e))}};function za(t,e,r,n,i){return t===r&&Object.is(e,n)?1:Object.is(i(t,e),i(r,n))?-1:0}function IC(t,e,r){let n,i,o=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;o<=s&&o<=c;){let u=t.at(o),l=e[o],d=za(o,u,o,l,r);if(d!==0){d<0&&t.updateValue(o,l),o++;continue}let f=t.at(s),h=e[c],v=za(s,f,c,h,r);if(v!==0){v<0&&t.updateValue(s,h),s--,c--;continue}let M=r(o,u),I=r(s,f),C=r(o,l);if(Object.is(C,I)){let L=r(c,h);Object.is(L,M)?(t.swap(o,s),t.updateValue(s,h),c--,s--):t.move(s,o),t.updateValue(o,l),o++;continue}if(n??=new Lo,i??=jf(t,o,s,r),Uc(t,n,o,C))t.updateValue(o,l),o++,s++;else if(i.has(C))n.set(M,t.detach(o)),s--;else{let L=t.create(o,e[o]);t.attach(o,L),o++,s++}}for(;o<=c;)Lf(t,n,r,o,e[o]),o++}else if(e!=null){let c=e[Symbol.iterator](),u=c.next();for(;!u.done&&o<=s;){let l=t.at(o),d=u.value,f=za(o,l,o,d,r);if(f!==0)f<0&&t.updateValue(o,d),o++,u=c.next();else{n??=new Lo,i??=jf(t,o,s,r);let h=r(o,d);if(Uc(t,n,o,h))t.updateValue(o,d),o++,s++,u=c.next();else if(!i.has(h))t.attach(o,t.create(o,d)),o++,s++,u=c.next();else{let v=r(o,l);n.set(v,t.detach(o)),s--}}}for(;!u.done;)Lf(t,n,r,t.length,u.value),u=c.next()}for(;o<=s;)t.destroy(t.detach(s--));n?.forEach(c=>{t.destroy(c)})}function Uc(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function Lf(t,e,r,n,i){if(Uc(t,e,n,r(n,i)))t.updateValue(n,i);else{let o=t.create(n,i);t.attach(n,o)}}function jf(t,e,r,n){let i=new Set;for(let o=e;o<=r;o++)i.add(n(o,t.at(o)));return i}var Lo=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),e(n,r)}}};function Gx(t,e){vt("NgControlFlow");let r=S(),n=zt(),i=r[n]!==ge?r[n]:-1,o=i!==-1?jo(r,oe+i):void 0,s=0;if(we(r,n,t)){let a=O(null);try{if(o!==void 0&&Jp(o,s),t!==-1){let c=oe+t,u=jo(r,c),l=Gc(r[N],c),d=Un(u,l.tView.ssrId),f=Zr(r,l,e,{dehydratedView:d});Qr(u,f,s,Vn(l,d))}}finally{O(a)}}else if(o!==void 0){let a=Kp(o,s);a!==void 0&&(a[fe]=e)}}var Hc=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-he}};function Wx(t){return t}function Zx(t,e){return e}var zc=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function Qx(t,e,r,n,i,o,s,a,c,u,l,d,f){vt("NgControlFlow");let h=S(),v=W(),M=c!==void 0,I=S(),C=a?s.bind(I[Ae][fe]):s,L=new zc(M,C);I[oe+t]=L,Po(h,v,t+1,e,r,n,i,Bt(v.consts,o)),M&&Po(h,v,t+2,c,u,l,d,Bt(v.consts,f))}var qc=class extends Vc{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-he}at(e){return this.getLView(e)[fe].$implicit}attach(e,r){let n=r[jn];this.needsIndexUpdate||=e!==this.length,Qr(this.lContainer,r,e,Vn(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,CC(this.lContainer,e)}create(e,r){let n=Un(this.lContainer,this.templateTNode.tView.ssrId),i=Zr(this.hostLView,this.templateTNode,new Hc(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),i}destroy(e){us(e[N],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[fe].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[fe].$index=e}getLView(e){return bC(this.lContainer,e)}};function Yx(t){let e=O(null),r=gt();try{let n=S(),i=n[N],o=n[r],s=r+1,a=jo(n,s);if(o.liveCollection===void 0){let u=Gc(i,s);o.liveCollection=new qc(a,n,u)}else o.liveCollection.reset();let c=o.liveCollection;if(IC(c,t,o.trackByFn),c.updateIndexes(),o.hasEmptyBlock){let u=zt(),l=c.length===0;if(we(n,u,l)){let d=r+2,f=jo(n,d);if(l){let h=Gc(i,d),v=Un(f,h.tView.ssrId),M=Zr(n,h,void 0,{dehydratedView:v});Qr(f,M,0,Vn(h,v))}else Jp(f,0)}}}finally{O(e)}}function jo(t,e){return t[e]}function CC(t,e){return Fr(t,e)}function bC(t,e){return Kp(t,e)}function Gc(t,e){return hu(t,e)}function SC(t,e,r,n,i,o){let s=e.consts,a=Bt(s,i),c=Jn(e,t,2,n,a);return Lu(e,r,c,Bt(s,o)),c.attrs!==null&&No(c,c.attrs,!1),c.mergedAttrs!==null&&No(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function jg(t,e,r,n){let i=S(),o=W(),s=oe+t,a=i[Z],c=o.firstCreatePass?SC(s,o,i,e,r,n):o.data[s],u=MC(o,i,c,a,e,t);i[s]=u;let l=Jo(c);return gn(c,!0),Fp(a,u,c),!zI(c)&&rs()&&ls(o,i,u,c),ID()===0&&Vt(u,i),CD(),l&&(ku(o,i,c),Ou(o,c,i)),n!==null&&Pu(i,c),jg}function $g(){let t=ae();mu()?vu():(t=t.parent,gn(t,!1));let e=t;SD(e)&&MD(),bD();let r=W();return r.firstCreatePass&&(os(r,t),fu(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&BD(e)&&Bc(r,e,S(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&VD(e)&&Bc(r,e,S(),e.stylesWithoutHost,!1),$g}function Yu(t,e,r,n){return jg(t,e,r,n),$g(),Yu}var MC=(t,e,r,n,i,o)=>(is(!0),Mp(n,i,FD()));function TC(t,e,r,n,i){let o=e.consts,s=Bt(o,n),a=Jn(e,t,8,"ng-container",s);s!==null&&No(a,s,!0);let c=Bt(o,i);return Lu(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function Bg(t,e,r){let n=S(),i=W(),o=t+oe,s=i.firstCreatePass?TC(o,i,n,e,r):i.data[o];gn(s,!0);let a=NC(i,n,s,t);return n[o]=a,rs()&&ls(i,n,a,s),Vt(a,n),Jo(s)&&(ku(i,n,s),Ou(i,s,n)),r!=null&&Pu(n,s),Bg}function Vg(){let t=ae(),e=W();return mu()?vu():(t=t.parent,gn(t,!1)),e.firstCreatePass&&(os(e,t),fu(t)&&e.queries.elementEnd(t)),Vg}function xC(t,e,r){return Bg(t,e,r),Vg(),xC}var NC=(t,e,r,n)=>(is(!0),zw(e[Z],""));function Kx(){return S()}function AC(t,e,r){let n=S(),i=zt();if(we(n,i,e)){let o=W(),s=Yn();Wr(o,s,n,t,e,n[Z],r,!0)}return AC}function RC(t,e,r){let n=S(),i=zt();if(we(n,i,e)){let o=W(),s=Yn(),a=yu(o.data),c=Qp(a,s,n);Wr(o,s,n,t,e,c,r,!0)}return RC}var $o="en-US";var _C=$o;function OC(t){typeof t=="string"&&(_C=t.toLowerCase().replace(/_/g,"-"))}var kC=(t,e,r)=>{};function Ug(t,e,r,n){let i=S(),o=W(),s=ae();return Ku(o,i,i[Z],s,t,e,n),Ug}function PC(t,e){let r=ae(),n=S(),i=W(),o=yu(i.data),s=Qp(o,r,n);return Ku(i,n,s,r,t,e),PC}function FC(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===r&&i[o+1]===n){let a=e[go],c=i[o+2];return a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Ku(t,e,r,n,i,o,s){let a=Jo(n),u=t.firstCreatePass&&Zp(t),l=e[fe],d=Wp(e),f=!0;if(n.type&3||s){let M=Be(n,e),I=s?s(M):M,C=d.length,L=s?B=>s(lt(B[n.index])):n.index,J=null;if(!s&&a&&(J=FC(t,e,i,n.index)),J!==null){let B=J.__ngLastListenerFn__||J;B.__ngNextListenerFn__=o,J.__ngLastListenerFn__=o,f=!1}else{o=Bf(n,e,l,o),kC(M,i,o);let B=r.listen(I,i,o);d.push(o,B),u&&u.push(i,L,C,C+1)}}else o=Bf(n,e,l,o);let h=n.outputs,v;if(f&&h!==null&&(v=h[i])){let M=v.length;if(M)for(let I=0;I<M;I+=2){let C=v[I],L=v[I+1],Fe=e[C][L].subscribe(o),X=d.length;d.push(o,Fe),u&&u.push(i,n.index,X,-(X+1))}}}function $f(t,e,r,n){let i=O(null);try{return ot(6,e,r),r(n)!==!1}catch(o){return Yp(t,o),!1}finally{ot(7,e,r),O(i)}}function Bf(t,e,r,n){return function i(o){if(o===Function)return n;let s=t.componentOffset>-1?Ht(t.index,e):e;Vu(s,5);let a=$f(e,r,n,o),c=i.__ngNextListenerFn__;for(;c;)a=$f(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Jx(t=1){return kD(t)}function LC(t,e){let r=null,n=zy(t);for(let i=0;i<e.length;i++){let o=e[i];if(o==="*"){r=i;continue}if(n===null?ch(t,o,!0):Wy(n,o))return i}return r}function Hg(t){let e=S()[Ae][Te];if(!e.projection){let r=t?t.length:1,n=e.projection=Py(r,null),i=n.slice(),o=e.child;for(;o!==null;){if(o.type!==128){let s=t?LC(o,t):0;s!==null&&(i[s]?i[s].projectionNext=o:n[s]=o,i[s]=o)}o=o.next}}}function zg(t,e=0,r,n,i,o){let s=S(),a=W(),c=n?t+1:null;c!==null&&Po(s,a,c,n,i,o,null,r);let u=Jn(a,oe+t,16,null,r||null);u.projection===null&&(u.projection=e),vu();let d=!s[jn]||Oh();s[Ae][Te].projection[u.projection]===null&&c!==null?jC(s,a,c):d&&(u.flags&32)!==32&&nE(a,s,u)}function jC(t,e,r){let n=oe+r,i=e.data[n],o=t[n],s=Un(o,i.tView.ssrId),a=Zr(t,i,void 0,{dehydratedView:s});Qr(o,a,0,Vn(i,s))}function $C(t,e,r,n,i){let o=S(),s=vs(o,e,r,n);if(s!==ge){let a=W(),c=Yn();Wr(a,c,o,t,s,o[Z],i,!1)}return $C}function BC(t,e,r,n){fg(t,e,r,n)}function Xx(t,e,r){dg(t,e,r)}function VC(t){let e=S(),r=W(),n=Du();ns(n+1);let i=zu(r,n);if(t.dirty&&yD(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=pg(e,n);t.reset(o,ip),t.notifyOnChanges()}return!0}return!1}function UC(){return Hu(S(),Du())}function eN(t,e,r,n,i){vg(e,fg(t,r,n,i))}function tN(t,e,r,n){vg(t,dg(e,r,n))}function nN(t=1){ns(Du()+t)}function HC(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function rN(t){let e=xD();return pu(e,oe+t)}function zC(t,e,r,n,i){let o=S(),s=vs(o,e,r,n);return Zu(t,s,i,!1),zC}function iN(t,e=""){let r=S(),n=W(),i=t+oe,o=n.firstCreatePass?Jn(n,i,1,e,null):n.data[i],s=qC(n,r,o,e,t);r[i]=s,rs()&&ls(n,r,s,o),gn(o,!1)}var qC=(t,e,r,n,i)=>(is(!0),Uw(e[Z],n));function GC(t){return qg("",t,""),GC}function qg(t,e,r){let n=S(),i=vs(n,t,e,r);return i!==ge&&$u(n,gt(),i),qg}function WC(t,e,r,n,i){let o=S(),s=KI(o,t,e,r,n,i);return s!==ge&&$u(o,gt(),s),WC}function ZC(t,e,r,n,i,o,s){let a=S(),c=JI(a,t,e,r,n,i,o,s);return c!==ge&&$u(a,gt(),c),ZC}function QC(t,e,r){mg(e)&&(e=e());let n=S(),i=zt();if(we(n,i,e)){let o=W(),s=Yn();Wr(o,s,n,t,e,n[Z],r,!1)}return QC}function oN(t,e){let r=mg(t);return r&&t.set(e),r}function YC(t,e){let r=S(),n=W(),i=ae();return Ku(n,r,r[Z],i,t,e),YC}function KC(t,e,r){let n=W();if(n.firstCreatePass){let i=bt(t);Wc(r,n.data,n.blueprint,i,!0),Wc(e,n.data,n.blueprint,i,!1)}}function Wc(t,e,r,n,i){if(t=me(t),Array.isArray(t))for(let o=0;o<t.length;o++)Wc(t[o],e,r,n,i);else{let o=W(),s=S(),a=ae(),c=Ln(t)?t:me(t.provide),u=Dh(t),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(Ln(t)||!t.multi){let h=new un(u,i,H),v=Ga(c,e,i?l:l+f,d);v===-1?(ac(Eo(a,s),o,c),qa(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[v]=h,s[v]=h)}else{let h=Ga(c,e,l+f,d),v=Ga(c,e,l,l+f),M=h>=0&&r[h],I=v>=0&&r[v];if(i&&!I||!i&&!M){ac(Eo(a,s),o,c);let C=eb(i?XC:JC,r.length,i,n,u);!i&&I&&(r[v].providerFactory=C),qa(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(C),s.push(C)}else{let C=Gg(r[i?v:h],u,!i&&n);qa(o,t,h>-1?h:v,C)}!i&&n&&I&&r[v].componentProviders++}}}function qa(t,e,r,n){let i=Ln(e),o=iD(e);if(i||o){let c=(o?me(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function Gg(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Ga(t,e,r,n){for(let i=r;i<n;i++)if(e[i]===t)return i;return-1}function JC(t,e,r,n){return Zc(this.multi,[])}function XC(t,e,r,n){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=ln(r,r[N],this.providerFactory.index,n);o=a.slice(0,s),Zc(i,o);for(let c=s;c<a.length;c++)o.push(a[c])}else o=[],Zc(i,o);return o}function Zc(t,e){for(let r=0;r<t.length;r++){let n=t[r];e.push(n())}return e}function eb(t,e,r,n,i){let o=new un(t,r,H);return o.multi=[],o.index=e,o.componentProviders=0,Gg(o,i,n&&!r),o}function sN(t,e=[]){return r=>{r.providersResolver=(n,i)=>KC(n,i?i(t):t,e)}}var tb=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=mh(!1,n.type),o=i.length>0?ms([i],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()}}};e.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(g(De))});let t=e;return t})();function Wg(t){vt("NgStandalone"),t.getStandaloneInjector=e=>e.get(tb).getOrCreateStandaloneInjector(t)}function aN(t,e,r){let n=t.\u0275cmp;n.directiveDefs=po(e,!1),n.pipeDefs=po(r,!0)}function cN(t,e,r){let n=mn()+t,i=S();return i[n]===ge?Kr(i,n,r?e.call(r):e()):Eg(i,n)}function uN(t,e,r,n){return Zg(S(),mn(),t,e,r,n)}function lN(t,e,r,n,i){return Qg(S(),mn(),t,e,r,n,i)}function dN(t,e,r,n,i,o){return nb(S(),mn(),t,e,r,n,i,o)}function fN(t,e,r,n,i,o,s,a){let c=mn()+t,u=S(),l=HI(u,c,r,n,i,o);return we(u,c+4,s)||l?Kr(u,c+5,a?e.call(a,r,n,i,o,s):e(r,n,i,o,s)):Eg(u,c+5)}function Ju(t,e){let r=t[e];return r===ge?void 0:r}function Zg(t,e,r,n,i,o){let s=e+r;return we(t,s,i)?Kr(t,s+1,o?n.call(o,i):n(i)):Ju(t,s+1)}function Qg(t,e,r,n,i,o,s){let a=e+r;return jr(t,a,i,o)?Kr(t,a+2,s?n.call(s,i,o):n(i,o)):Ju(t,a+2)}function nb(t,e,r,n,i,o,s,a){let c=e+r;return Ig(t,c,i,o,s)?Kr(t,c+3,a?n.call(a,i,o,s):n(i,o,s)):Ju(t,c+3)}function hN(t,e){let r=W(),n,i=t+oe;r.firstCreatePass?(n=rb(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=rn(n.type,!0)),s,a=Me(H);try{let c=wo(!1),u=o();return wo(c),HC(r,S(),i,u),u}finally{Me(a)}}function rb(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function pN(t,e,r){let n=t+oe,i=S(),o=pu(i,n);return Yg(i,n)?Zg(i,mn(),e,o.transform,r,o):o.transform(r)}function gN(t,e,r,n){let i=t+oe,o=S(),s=pu(o,i);return Yg(o,i)?Qg(o,mn(),e,s.transform,r,n,s):s.transform(r,n)}function Yg(t,e){return t[N].data[e].pure}function mN(t,e){return ps(t,e)}var to=null;function ib(t){to!==null&&(t.defaultEncapsulation!==to.defaultEncapsulation||t.preserveWhitespaces!==to.preserveWhitespaces)||(to=t)}var Ds=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Xu=new E(""),Jr=new E(""),ws=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,el||(ob(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{j.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(g(j),g(Es),g(Jr))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Es=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return el?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function ob(t){el=t}var el;function Xn(t){return!!t&&typeof t.then=="function"}function tl(t){return!!t&&typeof t.subscribe=="function"}var er=new E(""),Kg=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=m(er,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Xn(s))n.push(s);else if(tl(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Is=new E("");function sb(){Gd(()=>{throw new D(600,!1)})}function ab(t){return t.isBoundToModule}var cb=10;function ub(t,e,r){try{let n=r();return Xn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function Jg(t,e){return Array.isArray(e)?e.reduce(Jg,t):p(p({},t),e)}var Ue=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=m(aw),this.afterRenderManager=m(Cg),this.zonelessEnabled=m(Uu),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new V,this.afterTick=new V,this.componentTypes=[],this.components=[],this.isStable=m(mt).hasPendingTasks.pipe(b(n=>!n)),this._injector=m(De)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(i=>{n=this.isStable.subscribe({next:o=>{o&&i()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof xo;if(!this._injector.get(Kg).done){let h=!o&&fh(n),v=!1;throw new D(405,v)}let a;o?a=n:a=this._injector.get(zn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=ab(a)?void 0:this._injector.get(Ut),u=i||a.selector,l=a.create(se.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(Xu,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),co(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new D(101,!1);let n=O(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,O(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(qn,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;this.dirtyFlags!==0&&i++<cb;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let i=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(i);for(let{_lView:o,notifyErrorHandler:s}of this._views)lb(o,s,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Xo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;co(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Is,[]);[...this._bootstrapListeners,...i].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),()=>co(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function co(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function lb(t,e,r,n){if(!r&&!Xo(t))return;tg(t,e,r&&!n?0:1)}var Qc=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Cs=(()=>{let e=class e{compileModuleSync(n){return new ko(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=hh(n),s=bp(o.declarations).reduce((a,c)=>{let u=It(c);return u&&a.push(new fn(u)),a},[]);return new Qc(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),db=new E("");function fb(t,e,r){let n=new ko(r);return Promise.resolve(n)}function Vf(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var hb=(()=>{let e=class e{constructor(){this.zone=m(j),this.changeDetectionScheduler=m(Hn),this.applicationRef=m(Ue)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pb({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:r}){return t??=()=>new j(T(p({},Xg()),{scheduleInRootZone:r})),[{provide:j,useFactory:t},{provide:Fn,multi:!0,useFactory:()=>{let n=m(hb,{optional:!0});return()=>n.initialize()}},{provide:Fn,multi:!0,useFactory:()=>{let n=m(gb);return()=>{n.initialize()}}},e===!0?{provide:og,useValue:!0}:[],{provide:sg,useValue:r??tp}]}function Xg(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var gb=(()=>{let e=class e{constructor(){this.subscription=new bn,this.initialized=!1,this.zone=m(j),this.pendingTasks=m(mt)}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(()=>{j.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{j.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var mb=(()=>{let e=class e{constructor(){this.appRef=m(Ue),this.taskService=m(mt),this.ngZone=m(j),this.zonelessEnabled=m(Uu),this.disableScheduling=m(og,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new bn,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Co):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(sg,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 bo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;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 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?ff:np;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Co+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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(i){throw this.taskService.remove(n),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ff(()=>{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)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function vb(){return typeof $localize<"u"&&$localize.locale||$o}var nl=new E("",{providedIn:"root",factory:()=>m(nl,k.Optional|k.SkipSelf)||vb()});var Bo=new E("");function no(t){return!t.moduleRef}function yb(t){let e=no(t)?t.r3Injector:t.moduleRef.injector,r=e.get(j);return r.run(()=>{no(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(Ze,null),i;if(r.runOutsideAngular(()=>{i=r.onError.subscribe({next:o=>{n.handleError(o)}})}),no(t)){let o=()=>e.destroy(),s=t.platformInjector.get(Bo);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Bo);s.add(o),t.moduleRef.onDestroy(()=>{co(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return ub(n,r,()=>{let o=e.get(Kg);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get(nl,$o);if(OC(s||$o),no(t)){let a=e.get(Ue);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return Db(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function Db(t,e){let r=t.injector.get(Ue);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>r.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(r);else throw new D(-403,!1);e.push(t)}var em=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=i?.scheduleInRootZone,s=()=>sw(i?.ngZone,T(p({},Xg({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=i?.ignoreChangesOutsideZone,c=[pb({ngZoneFactory:s,ignoreChangesOutsideZone:a}),{provide:Hn,useExisting:mb}],u=VI(n.moduleType,this.injector,c);return yb({moduleRef:u,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,i=[]){let o=Jg({},i);return fb(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(Bo,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(g(se))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Rr=null,tm=new E("");function wb(t){if(Rr&&!Rr.get(tm,!1))throw new D(400,!1);sb(),Rr=t;let e=t.get(em);return Cb(t),e}function rl(t,e,r=[]){let n=`Platform: ${e}`,i=new E(n);return(o=[])=>{let s=nm();if(!s||s.injector.get(tm,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):wb(Eb(a,n))}return Ib(i)}}function Eb(t=[],e){return se.create({name:e,providers:[{provide:Zo,useValue:"platform"},{provide:Bo,useValue:new Set([()=>Rr=null])},...t]})}function Ib(t){let e=nm();if(!e)throw new D(401,!1);return e}function nm(){return Rr?.get(em)??null}function Cb(t){t.get(Su,null)?.forEach(r=>r())}function il(){return!1}var At=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=bb;let t=e;return t})();function bb(t){return Sb(ae(),S(),(t&16)===16)}function Sb(t,e,r){if(Ko(t)&&!r){let n=Ht(t.index,e);return new dn(n,n)}else if(t.type&175){let n=e[Ae];return new dn(n,e)}return null}var Yc=class{constructor(){}supports(e){return wg(e)}create(e){return new Kc(e)}},Mb=(t,e)=>e,Kc=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Mb}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex<Uf(n,i,o)?r:n,a=Uf(s,i,o),c=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(r=r._next,s.previousIndex==null)i++;else{o||(o=[]);let u=a-i,l=c-i;if(u!=l){for(let f=0;f<u;f++){let h=f<o.length?o[f]:o[f]=0,v=h+f;l<=v&&v<u&&(o[f]=h+1)}let d=s.previousIndex;o[d]=l-u}}a!==c&&e(s,a,c)}}forEachPreviousItem(e){let r;for(r=this._previousItHead;r!==null;r=r._nextPrevious)e(r)}forEachAddedItem(e){let r;for(r=this._additionsHead;r!==null;r=r._nextAdded)e(r)}forEachMovedItem(e){let r;for(r=this._movesHead;r!==null;r=r._nextMoved)e(r)}forEachRemovedItem(e){let r;for(r=this._removalsHead;r!==null;r=r._nextRemoved)e(r)}forEachIdentityChange(e){let r;for(r=this._identityChangesHead;r!==null;r=r._nextIdentityChange)e(r)}diff(e){if(e==null&&(e=[]),!wg(e))throw new D(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r=this._itHead,n=!1,i,o,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,o,s,a),n=!0):(n&&(r=this._verifyReinsertion(r,o,s,a)),Object.is(r.item,o)||this._addIdentityChange(r,o)),r=r._next}else i=0,UI(e,a=>{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new Jc(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Vo),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Vo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Jc=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Xc=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Vo=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Xc,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Uf(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n<r.length&&(i=r[n]),n+e+i}var eu=class{constructor(){}supports(e){return e instanceof Map||Gu(e)}create(){return new tu}},tu=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let r;for(r=this._mapHead;r!==null;r=r._next)e(r)}forEachPreviousItem(e){let r;for(r=this._previousMapHead;r!==null;r=r._nextPrevious)e(r)}forEachChangedItem(e){let r;for(r=this._changesHead;r!==null;r=r._nextChanged)e(r)}forEachAddedItem(e){let r;for(r=this._additionsHead;r!==null;r=r._nextAdded)e(r)}forEachRemovedItem(e){let r;for(r=this._removalsHead;r!==null;r=r._nextRemoved)e(r)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||Gu(e)))throw new D(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r=this._mapHead;if(this._appendAfter=null,this._forEach(e,(n,i)=>{if(r&&r.key===i)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let o=this._getOrCreateRecordForKey(i,n);r=this._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let i=this._records.get(e);this._maybeAddToChanges(i,r);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let n=new nu(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(n=>r(e[n],n))}},nu=class{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Hf(){return new ol([new Yc])}var ol=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Hf()),deps:[[e,new Go,new Vr]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new D(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:Hf});let t=e;return t})();function zf(){return new sl([new eu])}var sl=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||zf()),deps:[[e,new Go,new Vr]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i)return i;throw new D(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:zf});let t=e;return t})();var rm=rl(null,"core",[]),im=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(g(Ue))},e.\u0275mod=ht({type:e}),e.\u0275inj=ft({});let t=e;return t})();function om(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Tb(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function sm(t,e){vt("NgSignals");let r=_a(t);return e?.equal&&(r[Se].equal=e.equal),r}function tr(t){let e=O(null);try{return t()}finally{O(e)}}var xb=new E("",{providedIn:"root",factory:()=>m(Nb)}),Nb=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new ru});let t=e;return t})(),ru=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=m(mt),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(e){let r=e.creationZone;this.queues.has(r)||this.queues.set(r,new Set);let n=this.queues.get(r);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,r]of this.queues)e===null?this.flushQueue(r):e.run(()=>this.flushQueue(r))}flushQueue(e){for(let r of e)e.delete(r),this.queuedEffectCount--,r.run()}},iu=class{constructor(e,r,n,i,o,s){this.scheduler=e,this.effectFn=r,this.creationZone=n,this.injector=o,this.watcher=Qd(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(r){this.injector.get(Ze,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function al(t,e){vt("NgSignals"),!e?.injector&&pn(al);let r=e?.injector??m(se),n=e?.manualCleanup!==!0?r.get(Ve):null,i=new iu(r.get(xb),t,typeof Zone>"u"?null:Zone.current,n,r,e?.allowSignalWrites??!1),o=r.get(At,null,{optional:!0});return!o||!(o._lView[x]&8)?i.watcher.notify():(o._lView[io]??=[]).push(i.watcher.notify),i}function vN(t,e){let r=It(t),n=e.elementInjector||Qo();return new fn(r).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}function am(t){let e=It(t);if(!e)return null;let r=new fn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var pm=null;function vn(){return pm}function gm(t){pm??=t}var bs=class{};var le=new E(""),ml=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(Rb),providedIn:"platform"});let t=e;return t})(),mm=new E(""),Rb=(()=>{let e=class e extends ml{constructor(){super(),this._doc=m(le),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vn().getBaseHref(this._doc)}onPopState(n){let i=vn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=vn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function vl(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function cm(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Rt(t){return t&&t[0]!=="?"?"?"+t:t}var yn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(yl),providedIn:"root"});let t=e;return t})(),vm=new E(""),yl=(()=>{let e=class e extends yn{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??m(le).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return vl(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Rt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Rt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Rt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(g(ml),g(vm,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ym=(()=>{let e=class e extends yn{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=vl(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Rt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Rt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(g(ml),g(vm,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),rr=(()=>{let e=class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=kb(cm(um(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Rt(i))}normalize(n){return e.stripTrailingSlash(Ob(this._basePath,um(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rt(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Rt,e.joinWithSlash=vl,e.stripTrailingSlash=cm,e.\u0275fac=function(i){return new(i||e)(g(yn))},e.\u0275prov=y({token:e,factory:()=>_b(),providedIn:"root"});let t=e;return t})();function _b(){return new rr(g(yn))}function Ob(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function um(t){return t.replace(/\/index.html$/,"")}function kb(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function Ms(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var ul=/\s+/,lm=[],$N=(()=>{let e=class e{constructor(n,i){this._ngEl=n,this._renderer=i,this.initialClasses=lm,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(ul):lm}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ul):n}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let i of n)this._updateState(i,!0);else if(n!=null)for(let i of Object.keys(n))this._updateState(i,!!n[i]);this._applyStateDiff()}_updateState(n,i){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(n,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let i=n[0],o=n[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(n,i){n=n.trim(),n.length>0&&n.split(ul).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(i){return new(i||e)(H(Ye),H(Yr))},e.\u0275dir=Qe({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var ll=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},BN=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new ll(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),dm(c,o)}});for(let o=0,s=i.length;o<s;o++){let c=i.get(o).context;c.index=o,c.count=s,c.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let s=i.get(o.currentIndex);dm(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(H(Je),H(Mt),H(ol))},e.\u0275dir=Qe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function dm(t,e){t.context.$implicit=e.item}var VN=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new dl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){fm("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){fm("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(H(Je),H(Mt))},e.\u0275dir=Qe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),dl=class{constructor(){this.$implicit=null,this.ngIf=null}};function fm(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ye(e)}'.`)}var Ss=class{constructor(e,r){this._viewContainerRef=e,this._templateRef=r,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},Dm=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let i=n===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let i of this._defaultViews)i.enforceState(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Qe({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),UN=(()=>{let e=class e{constructor(n,i,o){this.ngSwitch=o,o._addCase(),this._view=new Ss(n,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(i){return new(i||e)(H(Je),H(Mt),H(Dm,9))},e.\u0275dir=Qe({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})(),HN=(()=>{let e=class e{constructor(n,i,o){o._addDefault(new Ss(n,i))}};e.\u0275fac=function(i){return new(i||e)(H(Je),H(Mt),H(Dm,9))},e.\u0275dir=Qe({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0});let t=e;return t})();var zN=(()=>{let e=class e{constructor(n,i,o){this._ngEl=n,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,i){let[o,s]=n.split("."),a=o.indexOf("-")===-1?void 0:dt.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${i}${s}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(n){n.forEachRemovedItem(i=>this._setStyle(i.key,null)),n.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),n.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}};e.\u0275fac=function(i){return new(i||e)(H(Ye),H(sl),H(Yr))},e.\u0275dir=Qe({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),qN=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,i,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,o):!1,get:(n,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}};e.\u0275fac=function(i){return new(i||e)(H(Je))},e.\u0275dir=Qe({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[zr]});let t=e;return t})();function Pb(t,e){return new D(2100,!1)}var fl=class{createSubscription(e,r){return tr(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){tr(()=>e.unsubscribe())}},hl=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},Fb=new hl,Lb=new fl,GN=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Xn(n))return Fb;if(tl(n))return Lb;throw Pb(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(H(At,16))},e.\u0275pipe=uh({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var wm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ht({type:e}),e.\u0275inj=ft({});let t=e;return t})(),Dl="browser",jb="server";function ir(t){return t===Dl}function Ts(t){return t===jb}var Em=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>ir(m(Ee))?new pl(m(le),window):new gl});let t=e;return t})(),pl=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=$b(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function $b(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var gl=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},nr=class{};var ei=class{},Ns=class{},_t=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var El=class{encodeKey(e){return Im(e)}encodeValue(e){return Im(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Vb(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var Ub=/%(\d[a-f0-9])/gi,Hb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Im(t){return encodeURIComponent(t).replace(Ub,(e,r)=>Hb[r]??e)}function xs(t){return`${t}`}var yt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new El,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Vb(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(xs):[xs(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(xs(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(xs(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Il=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function zb(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Cm(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function bm(t){return typeof Blob<"u"&&t instanceof Blob}function Sm(t){return typeof FormData<"u"&&t instanceof FormData}function qb(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Xr=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(zb(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new _t,this.context??=new Il,!this.params)this.params=new yt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":a<r.length-1?"&":"";this.urlWithParams=r+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Cm(this.body)||bm(this.body)||Sm(this.body)||qb(this.body)?this.body:this.body instanceof yt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Sm(this.body)?null:bm(this.body)?this.body.type||null:Cm(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof yt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let r=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,o=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,c=e.reportProgress??this.reportProgress,u=e.headers||this.headers,l=e.params||this.params,d=e.context??this.context;return e.setHeaders!==void 0&&(u=Object.keys(e.setHeaders).reduce((f,h)=>f.set(h,e.setHeaders[h]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},xe=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(xe||{}),ti=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new _t,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},As=class t extends ti{constructor(e={}){super(e),this.type=xe.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ni=class t extends ti{constructor(e={}){super(e),this.type=xe.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},qt=class extends ti{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Am=200,Gb=204;function wl(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var ri=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof Xr)s=n;else{let u;o.headers instanceof _t?u=o.headers:u=new _t(o.headers);let l;o.params&&(o.params instanceof yt?l=o.params:l=new yt({fromObject:o.params})),s=new Xr(n,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=w(s).pipe(Et(u=>this.handler.handle(u)));if(n instanceof Xr||o.observe==="events")return a;let c=a.pipe(F(u=>u instanceof ni));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(b(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(b(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(b(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(b(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new yt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,wl(o,i))}post(n,i,o={}){return this.request("POST",n,wl(o,i))}put(n,i,o={}){return this.request("PUT",n,wl(o,i))}};e.\u0275fac=function(i){return new(i||e)(g(ei))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Wb=/^\)\]\}',?\n/,Zb="X-Request-URL";function Mm(t){if(t.url)return t.url;let e=Zb.toLocaleLowerCase();return t.headers.get(e)}var Qb=(()=>{let e=class e{constructor(){this.fetchImpl=m(Cl,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=m(j)}handle(n){return new Er(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(bl,s=>i.error(new qt({error:s}))),()=>o.abort()})}doRequest(n,i,o){return de(this,null,function*(){let s=this.createRequestInit(n),a;try{let v=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,p({signal:i},s)));Yb(v),o.next({type:xe.Sent}),a=yield v}catch(v){o.error(new qt({error:v,status:v.status??0,statusText:v.statusText,url:n.urlWithParams,headers:v.headers}));return}let c=new _t(a.headers),u=a.statusText,l=Mm(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&o.next(new As({headers:c,status:d,statusText:u,url:l})),a.body){let v=a.headers.get("content-length"),M=[],I=a.body.getReader(),C=0,L,J,B=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>de(this,null,function*(){for(;;){let{done:X,value:Le}=yield I.read();if(X)break;if(M.push(Le),C+=Le.length,n.reportProgress){J=n.responseType==="text"?(J??"")+(L??=new TextDecoder).decode(Le,{stream:!0}):void 0;let Cn=()=>o.next({type:xe.DownloadProgress,total:v?+v:void 0,loaded:C,partialText:J});B?B.run(Cn):Cn()}}}));let Fe=this.concatChunks(M,C);try{let X=a.headers.get("Content-Type")??"";f=this.parseBody(n,Fe,X)}catch(X){o.error(new qt({error:X,headers:new _t(a.headers),status:a.status,statusText:a.statusText,url:Mm(a)??n.urlWithParams}));return}}d===0&&(d=f?Am:0),d>=200&&d<300?(o.next(new ni({body:f,headers:c,status:d,statusText:u,url:l})),o.complete()):o.error(new qt({error:f,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(Wb,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),n.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Cl=class{};function bl(){}function Yb(t){t.then(bl,bl)}function Rm(t,e){return e(t)}function Kb(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function Jb(t,e,r){return(n,i)=>$e(r,()=>e(n,o=>t(o,i)))}var Xb=new E(""),Sl=new E(""),eS=new E(""),_m=new E("",{providedIn:"root",factory:()=>!0});function tS(){let t=null;return(e,r)=>{t===null&&(t=(m(Xb,{optional:!0})??[]).reduceRight(Kb,Rm));let n=m(mt);if(m(_m)){let o=n.add();return t(e,r).pipe(Pt(()=>n.remove(o)))}else return t(e,r)}}var Tm=(()=>{let e=class e extends ei{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=m(mt),this.contributeToStability=m(_m)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Sl),...this.injector.get(eS,[])]));this.chain=i.reduceRight((o,s)=>Jb(o,s,this.injector),Rm)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Pt(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(g(Ns),g(De))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();var nS=/^\)\]\}',?\n/;function rS(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var xm=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?ue(i.\u0275loadImpl()):w(null)).pipe(ee(()=>new Er(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((I,C)=>a.setRequestHeader(I,C.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let I=n.detectContentTypeHeader();I!==null&&a.setRequestHeader("Content-Type",I)}if(n.responseType){let I=n.responseType.toLowerCase();a.responseType=I!=="json"?I:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let I=a.statusText||"OK",C=new _t(a.getAllResponseHeaders()),L=rS(a)||n.url;return u=new As({headers:C,status:a.status,statusText:I,url:L}),u},d=()=>{let{headers:I,status:C,statusText:L,url:J}=l(),B=null;C!==Gb&&(B=typeof a.response>"u"?a.responseText:a.response),C===0&&(C=B?Am:0);let Fe=C>=200&&C<300;if(n.responseType==="json"&&typeof B=="string"){let X=B;B=B.replace(nS,"");try{B=B!==""?JSON.parse(B):null}catch(Le){B=X,Fe&&(Fe=!1,B={error:Le,text:B})}}Fe?(s.next(new ni({body:B,headers:I,status:C,statusText:L,url:J||void 0})),s.complete()):s.error(new qt({error:B,headers:I,status:C,statusText:L,url:J||void 0}))},f=I=>{let{url:C}=l(),L=new qt({error:I,status:a.status||0,statusText:a.statusText||"Unknown Error",url:C||void 0});s.error(L)},h=!1,v=I=>{h||(s.next(l()),h=!0);let C={type:xe.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(C.total=I.total),n.responseType==="text"&&a.responseText&&(C.partialText=a.responseText),s.next(C)},M=I=>{let C={type:xe.UploadProgress,loaded:I.loaded};I.lengthComputable&&(C.total=I.total),s.next(C)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",v),c!==null&&a.upload&&a.upload.addEventListener("progress",M)),a.send(c),s.next({type:xe.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",v),c!==null&&a.upload&&a.upload.removeEventListener("progress",M)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(g(nr))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Om=new E(""),iS="XSRF-TOKEN",oS=new E("",{providedIn:"root",factory:()=>iS}),sS="X-XSRF-TOKEN",aS=new E("",{providedIn:"root",factory:()=>sS}),Rs=class{},cS=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ms(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(g(le),g(Ee),g(oS))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function uS(t,e){let r=t.url.toLowerCase();if(!m(Om)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=m(Rs).getToken(),i=m(aS);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var km=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(km||{});function lS(t,e){return{\u0275kind:t,\u0275providers:e}}function sA(...t){let e=[ri,xm,Tm,{provide:ei,useExisting:Tm},{provide:Ns,useFactory:()=>m(Qb,{optional:!0})??m(xm)},{provide:Sl,useValue:uS,multi:!0},{provide:Om,useValue:!0},{provide:Rs,useClass:cS}];for(let r of t)e.push(...r.\u0275providers);return Zn(e)}var Nm=new E("");function aA(){return lS(km.LegacyInterceptors,[{provide:Nm,useFactory:tS},{provide:Sl,useExisting:Nm,multi:!0}])}var xl=class extends bs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Nl=class t extends xl{static makeCurrent(){gm(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.remove()}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=dS();return r==null?null:fS(r)}resetBaseElement(){ii=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ms(document.cookie,e)}},ii=null;function dS(){return ii=ii||document.querySelector("base"),ii?ii.getAttribute("href"):null}function fS(t){return new URL(t,document.baseURI).pathname}var Al=class{addToWindow(e){Ne.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new D(5103,!1);return o},Ne.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ne.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=Ne.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};Ne.frameworkStabilizers||(Ne.frameworkStabilizers=[]),Ne.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?vn().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},hS=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Rl=new E(""),$m=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new D(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(g(Rl),g(j))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),_s=class{constructor(e){this._doc=e}},Ml="ng-app-id",Bm=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ts(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Ml}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Ml),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ml,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(g(le),g(ss),g(Mu,8),g(Ee))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Tl={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"},Ol=/%COMP%/g,Vm="%COMP%",pS=`_nghost-${Vm}`,gS=`_ngcontent-${Vm}`,mS=!0,vS=new E("",{providedIn:"root",factory:()=>mS});function yS(t){return gS.replace(Ol,t)}function DS(t){return pS.replace(Ol,t)}function Um(t,e){return e.map(r=>r.replace(Ol,t))}var Fm=(()=>{let e=class e{constructor(n,i,o,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Ts(c),this.defaultRenderer=new oi(n,a,u,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ct.ShadowDom&&(i=T(p({},i),{encapsulation:ct.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof Os?o.applyToHost(n):o instanceof si&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case ct.Emulated:s=new Os(u,l,i,this.appId,d,a,c,f);break;case ct.ShadowDom:return new _l(u,l,n,i,a,c,this.nonce,f);default:s=new si(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(g($m),g(Bm),g(ss),g(vS),g(le),g(Ee),g(j),g(Mu))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),oi=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Tl[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Lm(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Lm(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){r.remove()}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new D(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Tl[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Tl[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(dt.DashCase|dt.Important)?e.style.setProperty(r,n,i&dt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&dt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=vn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Lm(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _l=class extends oi{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Um(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(null,r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},si=class extends oi{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?Um(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Os=class extends si{constructor(e,r,n,i,o,s,a,c){let u=i+"-"+n.id;super(e,r,n,o,s,a,c,u),this.contentAttr=yS(u),this.hostAttr=DS(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},wS=(()=>{let e=class e extends _s{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(g(le))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),jm=["alt","control","meta","shift"],ES={"\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"},IS={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},CS=(()=>{let e=class e extends _s{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),jm.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,i){let o=ES[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),jm.forEach(a=>{if(a!==o){let c=IS[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(g(le))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function bS(){Nl.makeCurrent()}function SS(){return new Ze}function MS(){return lp(document),document}var TS=[{provide:Ee,useValue:Dl},{provide:Su,useValue:bS,multi:!0},{provide:le,useFactory:MS,deps:[]}],EA=rl(rm,"browser",TS),xS=new E(""),NS=[{provide:Jr,useClass:Al,deps:[]},{provide:Xu,useClass:ws,deps:[j,Es,Jr]},{provide:ws,useClass:ws,deps:[j,Es,Jr]}],AS=[{provide:Zo,useValue:"root"},{provide:Ze,useFactory:SS,deps:[]},{provide:Rl,useClass:wS,multi:!0,deps:[le,j,Ee]},{provide:Rl,useClass:CS,multi:!0,deps:[le]},Fm,Bm,$m,{provide:qn,useExisting:Fm},{provide:nr,useClass:hS,deps:[]},[]],IA=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ss,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(g(xS,12))},e.\u0275mod=ht({type:e}),e.\u0275inj=ft({providers:[...AS,...NS],imports:[wm,im]});let t=e;return t})();var ks=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(g(le))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var RS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=g(_S),o},providedIn:"root"});let t=e;return t})(),_S=(()=>{let e=class e extends RS{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case Ke.NONE:return i;case Ke.HTML:return xt(i,"HTML")?Re(i):xu(this._doc,String(i)).toString();case Ke.STYLE:return xt(i,"Style")?Re(i):i;case Ke.SCRIPT:if(xt(i,"Script"))return Re(i);throw new D(5200,!1);case Ke.URL:return xt(i,"URL")?Re(i):cs(String(i));case Ke.RESOURCE_URL:if(xt(i,"ResourceURL"))return Re(i);throw new D(5201,!1);default:throw new D(5202,!1)}}bypassSecurityTrustHtml(n){return pp(n)}bypassSecurityTrustStyle(n){return gp(n)}bypassSecurityTrustScript(n){return mp(n)}bypassSecurityTrustUrl(n){return vp(n)}bypassSecurityTrustResourceUrl(n){return yp(n)}};e.\u0275fac=function(i){return new(i||e)(g(le))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var _="primary",wi=Symbol("RouteTitle"),jl=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function lr(t){return new jl(t)}function OS(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function kS(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!Dt(t[r],e[r]))return!1;return!0}function Dt(t,e){let r=t?$l(t):void 0,n=e?$l(e):void 0;if(!r||!n||r.length!=n.length)return!1;let i;for(let o=0;o<r.length;o++)if(i=r[o],!ev(t[i],e[i]))return!1;return!0}function $l(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ev(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let r=[...t].sort(),n=[...e].sort();return r.every((i,o)=>n[o]===i)}else return t===e}function tv(t){return t.length>0?t[t.length-1]:null}function Zt(t){return Od(t)?t:Xn(t)?ue(Promise.resolve(t)):w(t)}var PS={exact:rv,subset:iv},nv={exact:FS,subset:LS,ignored:()=>!0};function zm(t,e,r){return PS[r.paths](t.root,e.root,r.matrixParams)&&nv[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function FS(t,e){return Dt(t,e)}function rv(t,e,r){if(!wn(t.segments,e.segments)||!Ls(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!rv(t.children[n],e.children[n],r))return!1;return!0}function LS(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>ev(t[r],e[r]))}function iv(t,e,r){return ov(t,e,e.segments,r)}function ov(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!wn(i,r)||e.hasChildren()||!Ls(i,r,n))}else if(t.segments.length===r.length){if(!wn(t.segments,r)||!Ls(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!iv(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!wn(t.segments,i)||!Ls(t.segments,i,n)||!t.children[_]?!1:ov(t.children[_],e,o,n)}}function Ls(t,e,r){return e.every((n,i)=>nv[r](t[i].parameters,n.parameters))}var Ot=class{constructor(e=new $([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=lr(this.queryParams),this._queryParamMap}toString(){return BS.serialize(this)}},$=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return js(this)}},Dn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=lr(this.parameters),this._parameterMap}toString(){return av(this)}};function jS(t,e){return wn(t,e)&&t.every((r,n)=>Dt(r.parameters,e[n].parameters))}function wn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function $S(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===_&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==_&&(r=r.concat(e(i,n)))}),r}var Ei=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>new dr,providedIn:"root"});let t=e;return t})(),dr=class{parse(e){let r=new Vl(e);return new Ot(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${ai(e.root,!0)}`,n=HS(e.queryParams),i=typeof e.fragment=="string"?`#${VS(e.fragment)}`:"";return`${r}${n}${i}`}},BS=new dr;function js(t){return t.segments.map(e=>av(e)).join("/")}function ai(t,e){if(!t.hasChildren())return js(t);if(e){let r=t.children[_]?ai(t.children[_],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==_&&n.push(`${i}:${ai(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=$S(t,(n,i)=>i===_?[ai(t.children[_],!1)]:[`${i}:${ai(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[_]!=null?`${js(t)}/${r[0]}`:`${js(t)}/(${r.join("//")})`}}function sv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ps(t){return sv(t).replace(/%3B/gi,";")}function VS(t){return encodeURI(t)}function Bl(t){return sv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $s(t){return decodeURIComponent(t)}function qm(t){return $s(t.replace(/\+/g,"%20"))}function av(t){return`${Bl(t.path)}${US(t.parameters)}`}function US(t){return Object.entries(t).map(([e,r])=>`;${Bl(e)}=${Bl(r)}`).join("")}function HS(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Ps(r)}=${Ps(i)}`).join("&"):`${Ps(r)}=${Ps(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var zS=/^[^\/()?;#]+/;function kl(t){let e=t.match(zS);return e?e[0]:""}var qS=/^[^\/()?;=#]+/;function GS(t){let e=t.match(qS);return e?e[0]:""}var WS=/^[^=?&#]+/;function ZS(t){let e=t.match(WS);return e?e[0]:""}var QS=/^[^&#]+/;function YS(t){let e=t.match(QS);return e?e[0]:""}var Vl=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $([],{}):new $([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[_]=new $(e,r)),n}parseSegment(){let e=kl(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(e),new Dn($s(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=GS(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=kl(this.remaining);i&&(n=i,this.capture(n))}e[$s(r)]=$s(n)}parseQueryParam(e){let r=ZS(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=YS(this.remaining);s&&(n=s,this.capture(n))}let i=qm(r),o=qm(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=kl(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new D(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=_);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[_]:new $([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new D(4011,!1)}};function cv(t){return t.segments.length>0?new $([],{[_]:t}):t}function uv(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=uv(i);if(n===_&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new $(t.segments,e);return KS(r)}function KS(t){if(t.numberOfChildren===1&&t.children[_]){let e=t.children[_];return new $(t.segments.concat(e.segments),e.children)}return t}function hi(t){return t instanceof Ot}function JS(t,e,r=null,n=null){let i=lv(t);return dv(i,e,r,n)}function lv(t){let e;function r(o){let s={};for(let c of o.children){let u=r(c);s[c.outlet]=u}let a=new $(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=cv(n);return e??i}function dv(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Pl(i,i,i,r,n);let o=XS(e);if(o.toRoot())return Pl(i,i,new $([],{}),r,n);let s=eM(o,i,t),a=s.processChildren?li(s.segmentGroup,s.index,o.commands):hv(s.segmentGroup,s.index,o.commands);return Pl(i,s.segmentGroup,a,r,n)}function Bs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function pi(t){return typeof t=="object"&&t!=null&&t.outlets}function Pl(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=fv(t,e,r);let a=cv(uv(s));return new Ot(a,o,i)}function fv(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=fv(o,e,r)}),new $(t.segments,n)}var Vs=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Bs(n[0]))throw new D(4003,!1);let i=n.find(pi);if(i&&i!==tv(n))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function XS(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Vs(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Vs(r,e,n)}var ar=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function eM(t,e,r){if(t.isAbsolute)return new ar(e,!0,0);if(!r)return new ar(e,!1,NaN);if(r.parent===null)return new ar(r,!0,0);let n=Bs(t.commands[0])?0:1,i=r.segments.length-1+n;return tM(r,i,t.numberOfDoubleDots)}function tM(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new D(4005,!1);i=n.segments.length}return new ar(n,!1,i-o)}function nM(t){return pi(t[0])?t[0].outlets:{[_]:t}}function hv(t,e,r){if(t??=new $([],{}),t.segments.length===0&&t.hasChildren())return li(t,e,r);let n=rM(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new $(t.segments.slice(0,n.pathIndex),{});return o.children[_]=new $(t.segments.slice(n.pathIndex),t.children),li(o,0,i)}else return n.match&&i.length===0?new $(t.segments,{}):n.match&&!t.hasChildren()?Ul(t,e,r):n.match?li(t,0,i):Ul(t,e,r)}function li(t,e,r){if(r.length===0)return new $(t.segments,{});{let n=nM(r),i={};if(Object.keys(n).some(o=>o!==_)&&t.children[_]&&t.numberOfChildren===1&&t.children[_].segments.length===0){let o=li(t.children[_],e,r);return new $(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=hv(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new $(t.segments,i)}}function rM(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=r.length)return o;let s=t.segments[i],a=r[n];if(pi(a))break;let c=`${a}`,u=n<r.length-1?r[n+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Wm(c,u,s))return o;n+=2}else{if(!Wm(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Ul(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i<r.length;){let o=r[i];if(pi(o)){let c=iM(o.outlets);return new $(n,c)}if(i===0&&Bs(r[0])){let c=t.segments[e];n.push(new Dn(c.path,Gm(r[0]))),i++;continue}let s=pi(o)?o.outlets[_]:`${o}`,a=i<r.length-1?r[i+1]:null;s&&a&&Bs(a)?(n.push(new Dn(s,Gm(a))),i+=2):(n.push(new Dn(s,{})),i++)}return new $(n,{})}function iM(t){let e={};return Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Ul(new $([],{}),0,n))}),e}function Gm(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Wm(t,e,r){return t==r.path&&Dt(e,r.parameters)}var di="imperative",ce=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(ce||{}),He=class{constructor(e,r){this.id=e,this.url=r}},Gt=class extends He{constructor(e,r,n="imperative",i=null){super(e,r),this.type=ce.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},tt=class extends He{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=ce.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Oe=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Oe||{}),Us=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Us||{}),et=class extends He{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=ce.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Wt=class extends He{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=ce.NavigationSkipped}},En=class extends He{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=ce.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hs=class extends He{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=ce.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hl=class extends He{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=ce.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zl=class extends He{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=ce.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ql=class extends He{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=ce.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gl=class extends He{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=ce.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wl=class{constructor(e){this.route=e,this.type=ce.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Zl=class{constructor(e){this.route=e,this.type=ce.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ql=class{constructor(e){this.snapshot=e,this.type=ce.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yl=class{constructor(e){this.snapshot=e,this.type=ce.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kl=class{constructor(e){this.snapshot=e,this.type=ce.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jl=class{constructor(e){this.snapshot=e,this.type=ce.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zs=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=ce.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},gi=class{},fr=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function oM(t,e){return t.providers&&!t._injector&&(t._injector=ms(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Xe(t){return t.outlet||_}function sM(t,e){let r=t.filter(n=>Xe(n)===e);return r.push(...t.filter(n=>Xe(n)!==e)),r}function Ii(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Xl=class{get injector(){return Ii(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new Ci(this.rootInjector),this.attachRef=null}},Ci=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Xl(this.rootInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(g(De))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=ed(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=ed(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=td(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return td(e,this._root).map(r=>r.value)}};function ed(t,e){if(t===e.value)return e;for(let r of e.children){let n=ed(t,r);if(n)return n}return null}function td(t,e){if(t===e.value)return[e];for(let r of e.children){let n=td(t,r);if(n.length)return n.unshift(e),n}return[]}var _e=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function sr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Gs=class extends qs{constructor(e,r){super(e),this.snapshot=r,ld(this,e)}toString(){return this.snapshot.toString()}};function pv(t){let e=aM(t),r=new R([new Dn("",{})]),n=new R({}),i=new R({}),o=new R({}),s=new R(""),a=new hr(r,n,o,s,i,_,t,e.root);return a.snapshot=e.root,new Gs(new _e(a,[]),e)}function aM(t){let e={},r={},n={},i="",o=new cr([],e,n,i,r,_,t,null,{});return new Zs("",new _e(o,[]))}var hr=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(b(u=>u[wi]))??w(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(b(e=>lr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(e=>lr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ws(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:p(p({},e.params),t.params),data:p(p({},e.data),t.data),resolve:p(p(p(p({},t.data),e.data),i?.data),t._resolvedData)}:n={params:p({},t.params),data:p({},t.data),resolve:p(p({},t.data),t._resolvedData??{})},i&&mv(i)&&(n.resolve[wi]=i.title),n}var cr=class{get title(){return this.data?.[wi]}constructor(e,r,n,i,o,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=lr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=lr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Zs=class extends qs{constructor(e,r){super(r),this.url=e,ld(this,r)}toString(){return gv(this._root)}};function ld(t,e){e.value._routerState=t,e.children.forEach(r=>ld(t,r))}function gv(t){let e=t.children.length>0?` { ${t.children.map(gv).join(", ")} } `:"";return`${t.value}${e}`}function Fl(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Dt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Dt(e.params,r.params)||t.paramsSubject.next(r.params),kS(e.url,r.url)||t.urlSubject.next(r.url),Dt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nd(t,e){let r=Dt(t.params,e.params)&&jS(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||nd(t.parent,e.parent))}function mv(t){return typeof t.title=="string"||t.title===null}var cM=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=_,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=m(Ci),this.location=m(Je),this.changeDetector=m(At),this.inputBinder=m(Xs,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,i){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new rd(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Qe({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[zr]});let t=e;return t})(),rd=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===hr?this.route:e===Ci?this.childContexts:this.parent.get(e,r)}},Xs=new E(""),Zm=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=Fi([i.queryParams,i.params,i.data]).pipe(ee(([s,a,c],u)=>(c=p(p(p({},s),a),c),u===0?w(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=am(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function uM(t,e,r){let n=mi(t,e._root,r?r._root:void 0);return new Gs(n,e)}function mi(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=lM(t,e,r);return new _e(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>mi(t,a)),s}}let n=dM(e.value),i=e.children.map(o=>mi(t,o));return new _e(n,i)}}function lM(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return mi(t,n,i);return mi(t,n)})}function dM(t){return new hr(new R(t.url),new R(t.params),new R(t.queryParams),new R(t.fragment),new R(t.data),t.outlet,t.component,t)}var vi=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},vv="ngNavigationCancelingError";function Qs(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=hi(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=yv(!1,Oe.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function yv(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[vv]=!0,r.cancellationCode=e,r}function fM(t){return Dv(t)&&hi(t.url)}function Dv(t){return!!t&&t[vv]}var hM=(t,e,r,n)=>b(i=>(new id(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),id=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Fl(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=sr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=sr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=sr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=sr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Jl(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Yl(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(Fl(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Fl(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Ys=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ur=class{constructor(e,r){this.component=e,this.route=r}};function pM(t,e,r){let n=t._root,i=e?e._root:null;return ci(n,i,r,[n.value])}function gM(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function gr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Yf(t)?t:e.get(t):n}function ci(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=sr(e);return t.children.forEach(s=>{mM(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>fi(a,r.getContext(s),i)),i}function mM(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=vM(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Ys(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ci(t,e,a?a.children:null,n,i):ci(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ur(a.outlet.component,s))}else s&&fi(e,a,i),i.canActivateChecks.push(new Ys(n)),o.component?ci(t,null,a?a.children:null,n,i):ci(t,null,r,n,i);return i}function vM(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!wn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wn(t.url,e.url)||!Dt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nd(t,e)||!Dt(t.queryParams,e.queryParams);case"paramsChange":default:return!nd(t,e)}}function fi(t,e,r){let n=sr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?fi(s,e.children.getContext(o),r):fi(s,null,r):fi(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ur(e.outlet.component,i)):r.canDeactivateChecks.push(new ur(null,i)):r.canDeactivateChecks.push(new ur(null,i))}function bi(t){return typeof t=="function"}function yM(t){return typeof t=="boolean"}function DM(t){return t&&bi(t.canLoad)}function wM(t){return t&&bi(t.canActivate)}function EM(t){return t&&bi(t.canActivateChild)}function IM(t){return t&&bi(t.canDeactivate)}function CM(t){return t&&bi(t.canMatch)}function wv(t){return t instanceof kd||t?.name==="EmptyError"}var Fs=Symbol("INITIAL_VALUE");function pr(){return ee(t=>Fi(t.map(e=>e.pipe(Q(1),xa(Fs)))).pipe(b(e=>{for(let r of e)if(r!==!0){if(r===Fs)return Fs;if(r===!1||bM(r))return r}return!0}),F(e=>e!==Fs),Q(1)))}function bM(t){return hi(t)||t instanceof vi}function SM(t,e){return Ce(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?w(T(p({},r),{guardsResult:!0})):MM(s,n,i,t).pipe(Ce(a=>a&&yM(a)?TM(n,o,t,e):w(a)),b(a=>T(p({},r),{guardsResult:a})))})}function MM(t,e,r,n){return ue(t).pipe(Ce(i=>_M(i.component,i.route,r,e,n)),be(i=>i!==!0,!0))}function TM(t,e,r,n){return ue(e).pipe(Et(i=>ji(NM(i.route.parent,n),xM(i.route,n),RM(t,i.path,r),AM(t,i.route,r))),be(i=>i!==!0,!0))}function xM(t,e){return t!==null&&e&&e(new Kl(t)),w(!0)}function NM(t,e){return t!==null&&e&&e(new Ql(t)),w(!0)}function AM(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return w(!0);let i=n.map(o=>Sn(()=>{let s=Ii(e)??r,a=gr(o,s),c=wM(a)?a.canActivate(e,t):$e(s,()=>a(e,t));return Zt(c).pipe(be())}));return w(i).pipe(pr())}function RM(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>gM(s)).filter(s=>s!==null).map(s=>Sn(()=>{let a=s.guards.map(c=>{let u=Ii(s.node)??r,l=gr(c,u),d=EM(l)?l.canActivateChild(n,t):$e(u,()=>l(n,t));return Zt(d).pipe(be())});return w(a).pipe(pr())}));return w(o).pipe(pr())}function _M(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return w(!0);let s=o.map(a=>{let c=Ii(e)??i,u=gr(a,c),l=IM(u)?u.canDeactivate(t,e,r,n):$e(c,()=>u(t,e,r,n));return Zt(l).pipe(be())});return w(s).pipe(pr())}function OM(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return w(!0);let o=i.map(s=>{let a=gr(s,t),c=DM(a)?a.canLoad(e,r):$e(t,()=>a(e,r));return Zt(c)});return w(o).pipe(pr(),Ev(n))}function Ev(t){return wt(P(e=>{if(typeof e!="boolean")throw Qs(t,e)}),b(e=>e===!0))}function kM(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return w(!0);let o=i.map(s=>{let a=gr(s,t),c=CM(a)?a.canMatch(e,r):$e(t,()=>a(e,r));return Zt(c)});return w(o).pipe(pr(),Ev(n))}var yi=class{constructor(e){this.segmentGroup=e||null}},Di=class extends Error{constructor(e){super(),this.urlTree=e}};function or(t){return it(new yi(t))}function PM(t){return it(new D(4e3,!1))}function FM(t){return it(yv(!1,Oe.GuardRejected))}var od=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return w(n);if(i.numberOfChildren>1||!i.children[_])return PM(`${e.redirectTo}`);i=i.children[_]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,params:h,data:v,title:M}=i,I=$e(o,()=>a({params:h,data:v,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,title:M}));if(I instanceof Ot)throw new Di(I);r=I}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new Di(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Ot(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new $(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new D(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},sd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function LM(t,e,r,n,i){let o=Iv(t,e,r);return o.matched?(n=oM(e,n),kM(n,e,r,i).pipe(b(s=>s===!0?o:p({},sd)))):w(o)}function Iv(t,e,r){if(e.path==="**")return jM(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?p({},sd):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||OS)(r,t,e);if(!i)return p({},sd);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?p(p({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function jM(t){return{matched:!0,parameters:t.length>0?tv(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Qm(t,e,r,n){return r.length>0&&VM(t,r,n)?{segmentGroup:new $(e,BM(n,new $(r,t.children))),slicedSegments:[]}:r.length===0&&UM(t,r,n)?{segmentGroup:new $(t.segments,$M(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new $(t.segments,t.children),slicedSegments:r}}function $M(t,e,r,n){let i={};for(let o of r)if(ea(t,e,o)&&!n[Xe(o)]){let s=new $([],{});i[Xe(o)]=s}return p(p({},n),i)}function BM(t,e){let r={};r[_]=e;for(let n of t)if(n.path===""&&Xe(n)!==_){let i=new $([],{});r[Xe(n)]=i}return r}function VM(t,e,r){return r.some(n=>ea(t,e,n)&&Xe(n)!==_)}function UM(t,e,r){return r.some(n=>ea(t,e,n))}function ea(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function HM(t,e,r){return e.length===0&&!t.children[r]}var ad=class{};function zM(t,e,r,n,i,o,s="emptyOnly"){return new cd(t,e,r,n,i,s,o).recognize()}var qM=31,cd=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new od(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new D(4002,`'${e.segmentGroup}'`)}recognize(){let e=Qm(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(b(({children:r,rootSnapshot:n})=>{let i=new _e(n,r),o=new Zs("",i),s=JS(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new cr([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),_,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,_,r).pipe(b(n=>({children:n,rootSnapshot:r})),re(n=>{if(n instanceof Di)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof yi?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(b(s=>s instanceof _e?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return ue(o).pipe(Et(s=>{let a=n.children[s],c=sM(r,s);return this.processSegmentGroup(e,c,a,s,i)}),Ma((s,a)=>(s.push(...a),s)),$i(null),Ca(),Ce(s=>{if(s===null)return or(n);let a=Cv(s);return GM(a),w(a)}))}processSegment(e,r,n,i,o,s,a){return ue(r).pipe(Et(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(re(u=>{if(u instanceof yi)return w(null);throw u}))),be(c=>!!c),re(c=>{if(wv(c))return HM(n,i,o)?w(new ad):or(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return Xe(n)!==s&&(s===_||!ea(i,o,n))?or(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):or(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Iv(r,i,o);if(!c)return or(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>qM&&(this.allowRedirects=!1));let h=new cr(o,u,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Ym(i),Xe(i),i.component??i._loadedComponent??null,i,Km(i)),v=Ws(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(v.params),h.data=Object.freeze(v.data);let M=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(i,M).pipe(Ce(I=>this.processSegment(e,n,r,I.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=LM(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(ee(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(ee(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,v=new cr(f,d,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Ym(n),Xe(n),n.component??n._loadedComponent??null,n,Km(n)),M=Ws(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(M.params),v.data=Object.freeze(M.data);let{segmentGroup:I,slicedSegments:C}=Qm(r,f,h,u);if(C.length===0&&I.hasChildren())return this.processChildren(l,u,I,v).pipe(b(J=>new _e(v,J)));if(u.length===0&&C.length===0)return w(new _e(v,[]));let L=Xe(n)===o;return this.processSegment(l,u,I,C,L?_:o,!0,v).pipe(b(J=>new _e(v,J instanceof _e?[J]:[])))}))):or(r)))}getChildConfig(e,r,n){return r.children?w({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?w({routes:r._loadedRoutes,injector:r._loadedInjector}):OM(e,r,n,this.urlSerializer).pipe(Ce(i=>i?this.configLoader.loadChildren(e,r).pipe(P(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):FM(r))):w({routes:[],injector:e})}};function GM(t){t.sort((e,r)=>e.value.outlet===_?-1:r.value.outlet===_?1:e.value.outlet.localeCompare(r.value.outlet))}function WM(t){let e=t.value.routeConfig;return e&&e.path===""}function Cv(t){let e=[],r=new Set;for(let n of t){if(!WM(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Cv(n.children);e.push(new _e(n.value,i))}return e.filter(n=>!r.has(n))}function Ym(t){return t.data||{}}function Km(t){return t.resolve||{}}function ZM(t,e,r,n,i,o){return Ce(s=>zM(t,e,r,n,s.extractedUrl,i,o).pipe(b(({state:a,tree:c})=>T(p({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function QM(t,e){return Ce(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return w(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of bv(c))s.add(u);let a=0;return ue(s).pipe(Et(c=>o.has(c)?YM(c,n,t,e):(c.data=Ws(c,c.parent,t).resolve,w(void 0))),P(()=>a++),Vi(1),Ce(c=>a===s.size?w(r):rt))})}function bv(t){let e=t.children.map(r=>bv(r)).flat();return[t,...e]}function YM(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!mv(i)&&(o[wi]=i.title),KM(o,t,e,n).pipe(b(s=>(t._resolvedData=s,t.data=Ws(t,t.parent,r).resolve,null)))}function KM(t,e,r,n){let i=$l(t);if(i.length===0)return w({});let o={};return ue(i).pipe(Ce(s=>JM(t[s],e,r,n).pipe(be(),P(a=>{if(a instanceof vi)throw Qs(new dr,a);o[s]=a}))),Vi(1),Ia(o),re(s=>wv(s)?rt:it(s)))}function JM(t,e,r,n){let i=Ii(e)??n,o=gr(t,i),s=o.resolve?o.resolve(e,r):$e(i,()=>o(e,r));return Zt(s)}function Ll(t){return ee(e=>{let r=t(e);return r?ue(r).pipe(b(()=>e)):w(e)})}var Sv=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===_);return i}getResolvedTitleForRoute(n){return n.data[wi]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(XM),providedIn:"root"});let t=e;return t})(),XM=(()=>{let e=class e extends Sv{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(g(ks))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Si=new E("",{providedIn:"root",factory:()=>({})}),e0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Wo({type:e,selectors:[["ng-component"]],standalone:!0,features:[Wg],decls:1,vars:0,template:function(i,o){i&1&&Yu(0,"router-outlet")},dependencies:[cM],encapsulation:2});let t=e;return t})();function dd(t){let e=t.children&&t.children.map(dd),r=e?T(p({},t),{children:e}):p({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==_&&(r.component=e0),r}var Ks=new E(""),fd=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(Cs)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return w(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Zt(n.loadComponent()).pipe(b(Mv),P(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Pt(()=>{this.componentLoaders.delete(n)})),o=new ya(i,()=>new V).pipe(Pi());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return w({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=t0(i,this.compiler,n,this.onLoadEndListener).pipe(Pt(()=>{this.childrenLoaders.delete(i)})),a=new ya(s,()=>new V).pipe(Pi());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function t0(t,e,r,n){return Zt(t.loadChildren()).pipe(b(Mv),Ce(i=>i instanceof Lr||Array.isArray(i)?w(i):ue(e.compileModuleAsync(i))),b(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(Ks,[],{optional:!0,self:!0}).flat()),{routes:s.map(dd),injector:o}}))}function n0(t){return t&&typeof t=="object"&&"default"in t}function Mv(t){return n0(t)?t.default:t}var hd=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(r0),providedIn:"root"});let t=e;return t})(),r0=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Tv=new E(""),xv=new E("");function i0(t,e,r){let n=t.get(xv),i=t.get(le);return t.get(j).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),o0(t))),{onViewTransitionCreated:c}=n;return c&&$e(t,()=>c({transition:a,from:e,to:r})),s})}function o0(t){return new Promise(e=>{Wu({read:()=>setTimeout(e)},{injector:t})})}var s0=new E(""),pd=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new V,this.transitionAbortSubject=new V,this.configLoader=m(fd),this.environmentInjector=m(De),this.urlSerializer=m(Ei),this.rootContexts=m(Ci),this.location=m(rr),this.inputBindingEnabled=m(Xs,{optional:!0})!==null,this.titleStrategy=m(Sv),this.options=m(Si,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(hd),this.createViewTransition=m(Tv,{optional:!0}),this.navigationErrorHandler=m(s0,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>w(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Wl(o)),i=o=>this.events.next(new Zl(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(T(p(p({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new R({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:di,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(F(s=>s.id!==0),b(s=>T(p({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ee(s=>{let a=!1,c=!1;return w(s).pipe(ee(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Oe.SupersededByNewNavigation),rt;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?T(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new Wt(u.id,this.urlSerializer.serialize(u.rawUrl),f,Us.IgnoredSameUrlNavigation)),u.resolve(!1),rt}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return w(u).pipe(ee(f=>{let h=this.transitions?.getValue();return this.events.next(new Gt(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?rt:Promise.resolve(f)}),ZM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),P(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=T(p({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Hs(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:v,restoredState:M,extras:I}=u,C=new Gt(f,this.urlSerializer.serialize(h),v,M);this.events.next(C);let L=pv(this.rootComponentType).snapshot;return this.currentTransition=s=T(p({},u),{targetSnapshot:L,urlAfterRedirects:h,extras:T(p({},I),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,w(s)}else{let f="";return this.events.next(new Wt(u.id,this.urlSerializer.serialize(u.extractedUrl),f,Us.IgnoredByUrlHandlingStrategy)),u.resolve(!1),rt}}),P(u=>{let l=new Hl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),b(u=>(this.currentTransition=s=T(p({},u),{guards:pM(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),SM(this.environmentInjector,u=>this.events.next(u)),P(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Qs(this.urlSerializer,u.guardsResult);let l=new zl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),F(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Oe.GuardRejected),!1)),Ll(u=>{if(u.guards.canActivateChecks.length)return w(u).pipe(P(l=>{let d=new ql(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ee(l=>{let d=!1;return w(l).pipe(QM(this.paramsInheritanceStrategy,this.environmentInjector),P({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Oe.NoDataFromResolver)}}))}),P(l=>{let d=new Gl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Ll(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(P(h=>{d.component=h}),b(()=>{})));for(let h of d.children)f.push(...l(h));return f};return Fi(l(u.targetSnapshot.root)).pipe($i(null),Q(1))}),Ll(()=>this.afterPreactivation()),ee(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?ue(d).pipe(b(()=>s)):w(s)}),b(u=>{let l=uM(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=T(p({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),P(()=>{this.events.next(new gi)}),hM(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Q(1),P({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new tt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Cr(this.transitionAbortSubject.pipe(P(u=>{throw u}))),Pt(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Oe.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),re(u=>{if(c=!0,Dv(u))this.events.next(new et(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),fM(u)?this.events.next(new fr(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new En(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=$e(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof vi){let{message:f,cancellationCode:h}=Qs(this.urlSerializer,d);this.events.next(new et(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new fr(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(u);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return rt}))}))}cancelNavigationTransition(n,i,o){let s=new et(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function a0(t){return t!==di}var c0=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(u0),providedIn:"root"});let t=e;return t})(),ud=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},u0=(()=>{let e=class e extends ud{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=qr(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Nv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>m(l0),providedIn:"root"});let t=e;return t})(),l0=(()=>{let e=class e extends Nv{constructor(){super(...arguments),this.location=m(rr),this.urlSerializer=m(Ei),this.options=m(Si,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(hd),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ot,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=pv(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Gt)this.stateMemento=this.createStateMemento();else if(n instanceof Wt)this.rawUrlTree=i.initialUrl;else if(n instanceof Hs){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else n instanceof gi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):n instanceof et&&(n.code===Oe.GuardRejected||n.code===Oe.NoDataFromResolver)?this.restoreHistory(i):n instanceof En?this.restoreHistory(i,!0):n instanceof tt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=n instanceof Ot?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=p(p({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=p(p({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=qr(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ui=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ui||{});function Av(t,e){t.events.pipe(F(r=>r instanceof tt||r instanceof et||r instanceof En||r instanceof Wt),b(r=>r instanceof tt||r instanceof Wt?ui.COMPLETE:(r instanceof et?r.code===Oe.Redirect||r.code===Oe.SupersededByNewNavigation:!1)?ui.REDIRECTING:ui.FAILED),F(r=>r!==ui.REDIRECTING),Q(1)).subscribe(()=>{e()})}function d0(t){throw t}var f0={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},h0={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ke=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=m(Ds),this.stateManager=m(Nv),this.options=m(Si,{optional:!0})||{},this.pendingTasks=m(mt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(pd),this.urlSerializer=m(Ei),this.location=m(rr),this.urlHandlingStrategy=m(hd),this._events=new V,this.errorHandler=this.options.errorHandler||d0,this.navigated=!1,this.routeReuseStrategy=m(c0),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(Ks,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(Xs,{optional:!0}),this.eventsSubscription=new bn,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof et&&i.code!==Oe.Redirect&&i.code!==Oe.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof tt)this.navigated=!0;else if(i instanceof fr){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u=p({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||a0(o.source)},a);this.scheduleNavigation(c,di,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}g0(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),di,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=p({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(dd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=p(p({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=lv(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return dv(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=hi(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,di,null,i)}navigate(n,i={skipLocationChange:!1}){return p0(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=p({},f0):i===!1?o=p({},h0):o=i,hi(n))return zm(this.currentUrlTree,n,o);let s=this.parseUrl(n);return zm(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return Av(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function p0(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new D(4008,!1)}function g0(t){return!(t instanceof gi)&&!(t instanceof fr)}var Js=class{};var m0=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(F(n=>n instanceof tt),Et(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=ms(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return ue(o).pipe(Li())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=w(null);let s=o.pipe(Ce(a=>a===null?w(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return ue([s,a]).pipe(Li())}else return s})}};e.\u0275fac=function(i){return new(i||e)(g(ke),g(Cs),g(De),g(Js),g(fd))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Rv=new E(""),v0=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Gt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof tt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Wt&&n.code===Us.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof zs&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new zs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){jp()},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function y0(t){return t.routerState.root}function Mi(t,e){return{\u0275kind:t,\u0275providers:e}}function D0(){let t=m(se);return e=>{let r=t.get(Ue);if(e!==r.components[0])return;let n=t.get(ke),i=t.get(_v);t.get(gd)===1&&n.initialNavigation(),t.get(Ov,null,k.Optional)?.setUpPreloading(),t.get(Rv,null,k.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var _v=new E("",{factory:()=>new V}),gd=new E("",{providedIn:"root",factory:()=>1});function w0(){return Mi(2,[{provide:gd,useValue:0},{provide:er,multi:!0,deps:[se],useFactory:e=>{let r=e.get(mm,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(ke),o=e.get(_v);Av(i,()=>{n(!0)}),e.get(pd).afterPreactivation=()=>(n(!0),o.closed?w(void 0):o),i.initialNavigation()}))}}])}function E0(){return Mi(3,[{provide:er,multi:!0,useFactory:()=>{let e=m(ke);return()=>{e.setUpLocationChangeListener()}}},{provide:gd,useValue:2}])}var Ov=new E("");function I0(t){return Mi(0,[{provide:Ov,useExisting:m0},{provide:Js,useExisting:t}])}function C0(){return Mi(8,[Zm,{provide:Xs,useExisting:Zm}])}function b0(t){let e=[{provide:Tv,useValue:i0},{provide:xv,useValue:p({skipNextTransition:!!t?.skipInitialTransition},t)}];return Mi(9,e)}var Jm=new E("ROUTER_FORROOT_GUARD"),S0=[rr,{provide:Ei,useClass:dr},ke,Ci,{provide:hr,useFactory:y0,deps:[ke]},fd,[]],VA=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[S0,[],{provide:Ks,multi:!0,useValue:n},{provide:Jm,useFactory:N0,deps:[[ke,new Vr,new Go]]},{provide:Si,useValue:i||{}},i?.useHash?T0():x0(),M0(),i?.preloadingStrategy?I0(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?A0(i):[],i?.bindToComponentInputs?C0().\u0275providers:[],i?.enableViewTransitions?b0().\u0275providers:[],R0()]}}static forChild(n){return{ngModule:e,providers:[{provide:Ks,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(g(Jm,8))},e.\u0275mod=ht({type:e}),e.\u0275inj=ft({});let t=e;return t})();function M0(){return{provide:Rv,useFactory:()=>{let t=m(Em),e=m(j),r=m(Si),n=m(pd),i=m(Ei);return r.scrollOffset&&t.setOffset(r.scrollOffset),new v0(i,n,t,e,r)}}}function T0(){return{provide:yn,useClass:ym}}function x0(){return{provide:yn,useClass:yl}}function N0(t){return"guarded"}function A0(t){return[t.initialNavigation==="disabled"?E0().\u0275providers:[],t.initialNavigation==="enabledBlocking"?w0().\u0275providers:[]]}var Xm=new E("");function R0(){return[{provide:Xm,useFactory:D0},{provide:Is,multi:!0,useExisting:Xm}]}var vd={production:!0};var xi="Service workers are disabled or not supported by this browser";function _0(t){return Sn(()=>it(new Error(t)))}var mr=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=_0(xi);else{let n=Da(e,"controllerchange").pipe(b(()=>e.controller)),i=Sn(()=>w(e.controller)),o=ji(i,n);this.worker=o.pipe(F(l=>!!l)),this.registration=this.worker.pipe(ee(()=>e.getRegistration()));let u=Da(e,"message").pipe(b(l=>l.data)).pipe(F(l=>l&&l.type)).pipe(ba());u.connect(),this.events=u}}postMessage(e,r){return this.worker.pipe(Q(1),P(n=>{n.postMessage(p({action:e},r))})).toPromise().then(()=>{})}postMessageWithOperation(e,r,n){let i=this.waitForOperationCompleted(n),o=this.postMessage(e,r);return Promise.all([o,i]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let r;return typeof e=="string"?r=n=>n.type===e:r=n=>e.includes(n.type),this.events.pipe(F(r))}nextEventOfType(e){return this.eventsOfType(e).pipe(Q(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(F(r=>r.nonce===e),Q(1),b(r=>{if(r.result!==void 0)return r.result;throw new Error(r.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},Fv=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,this.pushManager=null,this.subscriptionChanges=new V,!n.isEnabled){this.messages=Mn,this.notificationClicks=Mn,this.subscription=Mn;return}this.messages=this.sw.eventsOfType("PUSH").pipe(b(o=>o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(b(o=>o.data)),this.pushManager=this.sw.registration.pipe(b(o=>o.pushManager));let i=this.pushManager.pipe(ee(o=>o.getSubscription()));this.subscription=Ea(i,this.subscriptionChanges)}requestSubscription(n){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(xi));let i={userVisibleOnly:!0},o=this.decodeBase64(n.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(o.length));for(let a=0;a<o.length;a++)s[a]=o.charCodeAt(a);return i.applicationServerKey=s,this.pushManager.pipe(ee(a=>a.subscribe(i)),Q(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(xi));let n=i=>{if(i===null)throw new Error("Not subscribed to push notifications.");return i.unsubscribe().then(o=>{if(!o)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(Q(1),ee(n)).toPromise()}decodeBase64(n){return atob(n)}};e.\u0275fac=function(i){return new(i||e)(g(mr))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),ta=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(n){if(this.sw=n,!n.isEnabled){this.versionUpdates=Mn,this.unrecoverable=Mn;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(xi));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:n},n)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(xi));let n=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:n},n)}};e.\u0275fac=function(i){return new(i||e)(g(mr))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();var kv=new E("");function O0(t,e,r,n){return()=>{if(!(ir(n)&&"serviceWorker"in navigator&&r.enabled!==!1))return;let i=t.get(j),o=t.get(Ue);i.runOutsideAngular(()=>{let a=navigator.serviceWorker,c=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",c),o.onDestroy(()=>{a.removeEventListener("controllerchange",c)})});let s;if(typeof r.registrationStrategy=="function")s=r.registrationStrategy();else{let[a,...c]=(r.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=w(null);break;case"registerWithDelay":s=Pv(+c[0]||0);break;case"registerWhenStable":let u=ue(t.get(Ue).whenStable());s=c[0]?Ea(u,Pv(+c[0])):u;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${r.registrationStrategy}`)}}i.runOutsideAngular(()=>s.pipe(Q(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:r.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function Pv(t){return w(null).pipe(Jt(t))}function k0(t,e){return new mr(ir(e)&&t.enabled!==!1?navigator.serviceWorker:void 0)}var Ti=class{};function P0(t,e={}){return Zn([Fv,ta,{provide:kv,useValue:t},{provide:Ti,useValue:e},{provide:mr,useFactory:k0,deps:[Ti,Ee]},{provide:er,useFactory:O0,deps:[se,kv,Ti,Ee],multi:!0}])}var YA=(()=>{let e=class e{static register(n,i={}){return{ngModule:e,providers:[P0(n,i)]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ht({type:e}),e.\u0275inj=ft({providers:[Fv,ta]});let t=e;return t})();var In=new E("WindowToken");var Ni=class{get nativeWindow(){throw new Error("Not implemented.")}},L0=(()=>{let e=class e extends Ni{get nativeWindow(){return window}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=qr(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function j0(t,e){let r={};return ir(e)&&(r=t.nativeWindow),r}var $0={provide:Ni,useClass:L0},B0={provide:In,useFactory:j0,deps:[Ni,Ee]},tR=[$0,B0];var V0=function(t){return t.TaskBar="toolbar",t.List="list",t.Url="url",t.InfoList="infolist",t.Report="report",t.License="isplicense",t.Update="ispupdate",t.Changelog="changelog",t.SoftwareInfo="software",t.UserLimits="userlimits",t}(V0||{});var U0=function(t){return t.Msg="msg",t.Data="data",t.Indicate="indicator",t.Link="link",t.Prop="prop",t.Toggle="toggle",t}(U0||{});var na=function(t){return t.Ok="ok",t.Cancel="cancel",t.Back="back",t.Next="next",t.Blank="blank",t.SetValues="setvalues",t.Func="func",t.Reset="reset",t.Tab="tab",t.Submit="submit",t}(na||{});var Ai=function(t){return t.Blank="blank",t.Top="top",t.Url="url",t.Form="form",t.List="list",t.Reboot="reboot",t}(Ai||{});var vr=["input","select","textdata","datetime","img","htmldata","frame","slider","tree","textarea","list","listfilter","link","ticket","captcha","desc"];var yd=function(t){return t.Radio="radio",t.RadioImg="radioimg",t.Multiple="multiple",t.Autocomplete="autocomplete",t}(yd||{});var z=class t{static getError(e){let r,n=e?.error?.msg;return Array.isArray(n)?r=n[0]?.$:n?.detail?.$?r=n.detail.$:r=n?.$,r}static getBaseFieldNamesSet(e){let r=new Set,n=e?.metadata?.form,i=(o,s)=>{let a=o?.filter(c=>c.$base);a?.length&&(s&&r.add(s),a.forEach(c=>{vr.forEach(u=>{c[u]?.forEach(d=>{r.add(d.$name),(c.$multiple||c.$multiple_group)&&new Array(9).fill("").forEach((f,h)=>r.add(`${d.$name}${h+1}`))})})}))};return n?.field&&i(n.field),n?.page?.forEach(o=>{i(o.field,o.$name)}),r}static hasBaseMode(e){return t.getBaseFieldNamesSet(e).size>0}static getPasswordStrengthMessages(e){return["short","weak","good","strong"].reduce((r,n,i)=>T(p({},r),{[`${i}`]:t.getMessage(`msg_pwcheck_${n}`,e)}),{})}static getMessage(e,r){return this.getMessageSet(r)[e]||""}static getMessageSet(e){let r={},n=e?.messages;return Array.isArray(n)?n.forEach(i=>{r=p(p({},r),i.msg)}):r=n?.msg||{},r}static elid(e){return e?Array.isArray(e.elid)?e.elid[0].$:e.elid?.$||"":""}static plid(e){return e?Array.isArray(e.plid)?e.plid[0].$:e.plid?.$||"":""}static getStringValue(e,r){if(!r?.[e])return"";let n=r[e];if(Array.isArray(n)){let i=new Set(n.map(o=>o.$).filter(o=>o!==void 0));return Array.from(i).join(",")}else return n.$||""}static getValue(e,r){let n=r[e];return Array.isArray(n)?n=n.map(i=>i?.$).filter(i=>!!i):n=n?n.$||"":null,n}static getSelectValue(e,r){if(e==="lang")return r?.[e]?.[0]?.$||"";let n=r?.[e];return Array.isArray(n)?n.map(i=>i.$):n?.$||""}static getElement(e,r){let n=r?.[e];return!n&&Array.isArray(r)&&(n=r[0]?.[e],Array.isArray(n)&&(n=n[0])),n}static getElementValue(e,r){return this.getElement(e,r)?.$||""}static getElementOrigValue(e,r){let n=this.getElement(e,r);return n?.$orig||n?.$||""}static getElemList(e){let r=e?.elem;return Array.isArray(r)?r:r?[r]:[]}static getToolGrp(e){return e?.metadata?.toolbar?.toolgrp||[]}static getElidColumn(e){return e?.metadata?.$key}static getKeyname(e){return e?.metadata?.$keyname}static getToolbar(e){return e?.doc?.metadata?.toolbar}static getContextMenu(e){return e?.doc?.metadata?.contextmenu}static isFilterActive(e){return!!e.p_filter}static getApplyedFilterMsg(e){return e.p_filter?.$||""}static getNotificationBanners(e){return e?.banner?.filter(r=>r.$pinned===void 0)||[]}static getNormalBanners(e){return e?.banner?.filter(r=>r.$pinned==="yes")||[]}static getFields(e){return[...e.metadata?.form?.page?.filter(r=>r.field)?.map(r=>r.field).flat()||[],...e.metadata?.form?.field||[]]}static getControls(e){return t.getFields(e).map(r=>{let n=[];return vr.forEach(i=>n.push(...r[i]||[])),n}).flat()}static getDescendantNames(e,r){let n=[],i=[],o=e.metadata?.form?.page?.find(s=>s.$name===r);if(o&&o.field)i=o.field?.filter(s=>s?.$name),n.push(...i.map(s=>s.$name));else{let s=t.getFields(e).find(a=>a.$name===r);s&&(i=[s])}for(let s of i)for(let a of vr.filter(c=>s[c]))s[a].forEach(u=>n.push(u.$name));return n}static getIfElseDetectors(e){let r={};return t.getControls(e).forEach(n=>{r[n.$name]=(i,o="hide")=>{if(!n.if)return[];let s=n.if.filter(c=>c.$value===i||c.$empty==="yes"&&i===""||c.$empty==="no"&&i!=="");s.length===0&&s.push(...n.else||[]);let a=`$${o}`;return s.filter(c=>o==="hide"?c[a]&&!c.$shadow:c[a]).reduce((c,u)=>{let l=u[o==="shadow"?"$hide":a];return c.push(l,...t.getDescendantNames(e,l)),c},[])}}),r}static mergeSetValues(e,r){let n=T(p(p({},e),r),{metadata:e.metadata});if(e.list){let i=r.list?.map(o=>o.$name)||[];n.list=[...e.list.filter(o=>!i.includes(o.$name)),...r.list||[]]}if(e.slist){let i=r.slist?.map(o=>o.$name)||[];n.slist=[...e.slist.filter(o=>!i.includes(o.$name)),...r.slist||[]]}return r.$func==="error"&&(n.$func=e.$func),e.error&&(n.error=r.error),e?.metadata?.form?.buttons&&r?.metadata?.form?.buttons&&(n.metadata.form.buttons=e.metadata.form.buttons),n}static getSetValues(e){let r={};return t.getControls(e).filter(n=>n.$setvalues).forEach(n=>{r[n.$name]=n.$setvalues}),e.metadata?.form?.buttons?.button?.forEach(n=>{n.$type===na.SetValues&&(r[n.$name]="yes")}),e.list?.forEach(n=>{n.elem?.forEach(i=>{Object.values(i).forEach(o=>{[o.button].flat().forEach(s=>{s?.$type===na.SetValues&&(r[s.$name]=s.$blocking?"blocking":"yes")})})})}),r}static getSetValuesMinLength(e){return t.getControls(e).filter(r=>r.$setvalues&&r.$svminlength).reduce((r,n)=>{let i=+n.$svminlength;return i&&(r[n.$name]=i),r},{})}static getValidation(e,r){let n={},i=t.getControls(e);return i.forEach(o=>{let s=[],a=i.find(c=>c.$checkpasswd===o.$name);if(a&&s.push({type:"pass-match",passwordField:a.$name,text:t.getMessage("msg_pwcheck_donotmatch",e)}),(o.$required||i.find(c=>c.$required&&c.$checkpasswd===o.$name))&&s.push({type:"required",text:t.getMessage(`${o.$name}_required`,e)||(r?t.getMessage("msg_empty",r):""),file:o.$type==="file"}),o.$zoom&&!o.$duplicate&&s.push({type:"duplicates",text:r?t.getMessage("msg_duplicate",r):""}),o.$check){let c={func:`check.${o.$check}`,name:o.$name,funcname:e.$func};o.$convert&&(c.tconvert=o.$convert),o.$checkargs&&(c.args=o.$checkargs),s.push({type:"backend",text:"",params:c})}s.length&&(n[o.$name]=s)}),n}static getDependOptionConditionMap(e){return t.getFields(e).reduce((n,i)=>(i.select&&i.select.forEach(o=>{o.$depend&&(n[o.$name]={},e.slist.find(s=>s.$name===o.$name)?.val.forEach(s=>{s.$depend&&(n[o.$name][s.$key]={name:o.$depend,value:s.$depend})}))}),n),{})}static getNotpropControlNames(e){return t.getControls(e).filter(n=>n.$notprop).map(n=>n.$name)}static getNewDynamicFormDocHelpers(e,r){return{ifElseDetectors:t.getIfElseDetectors(e),setValues:t.getSetValues(e),setValuesMinLength:t.getSetValuesMinLength(e),baseFields:t.getBaseFieldNamesSet(e),buttons:e.metadata?.form?.buttons?.button||[],openPages:e.metadata?.form?.page?.filter(n=>n.$collapsed!=="yes").map(n=>n.$name)||[],validation:t.getValidation(e,r),controlNames:t.getControls(e).filter(n=>n.$name).map(n=>n.$name),dependOptionConditions:t.getDependOptionConditionMap(e),notpropControlNames:t.getNotpropControlNames(e)}}static getControlModel(e,r,n){let i=n[e.$name];if(Array.isArray(i)){let o=i.map(s=>s.$);if(r==="select"){let s=n.slist?.find(a=>a.$name===e.$name)?.val?.map(a=>a.$key);return Array.isArray(s)&&(o=o.filter(a=>s.includes(a))),e.$type==="multiple"?o.join(","):o[0]}return}return i?.$||""}static getFieldModel(e,r,n=!0){let i={};return vr.forEach(o=>{e[o]?.forEach(s=>{s.$name&&(r[s.$name]||n)&&(i[s.$name]=t.getControlModel(s,o,r)),o==="list"&&r.list&&s.col.filter(a=>a.$type==="control").forEach(a=>{r.list.find(u=>u.$name===s.$name)?.elem?.forEach(u=>{let l=u[a.$name];l&&vr.forEach(d=>{let f=l[d];f&&(i[f.$name]=t.getControlModel(f,d,r))})})})})}),i}static getFormModel(e,r=!0){let n={};return e.metadata?.form?.page?.filter(i=>i.field)?.forEach(i=>{i.field.forEach(o=>{n=p(p({},n),t.getFieldModel(o,e,r))})}),e.metadata?.form?.field?.forEach(i=>{n=p(p({},n),t.getFieldModel(i,e,r))}),n}static getFileStorageLimits(e){return{free:parseFloat(t.getValue("free",e))||0,limit:parseFloat(t.getValue("limit",e))||0}}static hasFormTabs(e){return!!e?.metadata?.form?.tabbuttons?.button?.length}static hasMetadata(e){if(["navboard","dashboard"].includes(e.$func))return!0;let r=e?.metadata?.$type;return["list","form","report","helpboard"].includes(r)}static getDrawers(e){return t.getControls(e).filter(r=>r.if?.some(n=>n.$drawer)).map(r=>({select:r.$name,defaultValue:t.getSelectValue(r.$name,e),drawerValue:r.if.find(n=>n.$drawer).$value,fields:r.if.filter(n=>n.$drawer).map(n=>n.$drawer),entityField:t.getMessage(`${r.$name}_drawer_template`,e).split("__")[1],title:t.getMessage(`${r.$name}_drawer_title`,e),ok:t.getMessage(`${r.$name}_drawer_btn_ok`,e),cancel:this.getMessage("msg_cancel",e)}))}static getListHash(e){return`${e.$func}-${t.plid(e)}-${e.p_num?.$}`}static resetFilter(e){let r={};return t.getControls(e).filter(n=>e[n.$name]?.$!==void 0).forEach(n=>{if(["on","off"].includes(e[n.$name].$)){r[n.$name]={$:"off"};return}let i=e.slist?.find(o=>o.$name===n.$name);if(i){n.$type===yd.Multiple?r[n.$name]={$:""}:r[n.$name]={$:i.val?.[0]?.$key||""};return}r[n.$name]=""}),p(p({},e),r)}static compareLists(e,r){return t.getListHash(e)===t.getListHash(r)}static getMixedValues(e){let r={};return t.getControls(e).filter(n=>n.$mixed==="yes").forEach(n=>{let i=e[n.$name];i&&(Array.isArray(i)?r[n.$name]=i.map(o=>o.$||"").join(","):r[n.$name]=i.$||"")}),r}};var ra=class{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};var Lv=503,Qt=(()=>{let e=class e{constructor(n){this.httpClient=n,this.outputFormatParam={out:"xjson"},this.forJsonOutputHeaders={"ISP-Client":"Web-interface"},this.docFeaturesSubject=new V,this.docNotifySubject=new V,this.docFeatures$=this.docFeaturesSubject.asObservable(),this.docNotify$=this.docNotifySubject.asObservable(),vd.production?this.mgrHost=pageInfo.baseUrl:this.mgrHost=vd.mgrHost}convertToFormData(n){let i=new FormData;return Object.keys(n).forEach(o=>{let s=n[o]||"";if(typeof s[0]=="object")if(s.length>1)for(let a of s)i.append(`${o}[]`,a);else i.append(o,s[0]);else Array.isArray(s)&&typeof s[0]=="string"?s.forEach(a=>i.append(`${o}[]`,a)):typeof s=="object"&&!Array.isArray(s)&&typeof s.name=="string"?i.append(o,s,s.name):i.append(o,s)}),i}handleErrorEvent(n){if(n.status===Lv){let i=n.error;return this.get503Event(i)}return it(n)}get503Event(n){let i=`/${n}`;return this.httpClient.get(i,{headers:this.forJsonOutputHeaders,observe:"events"}).pipe(re(o=>this.handleErrorEvent(o)),Xt())}handleError(n){if(n.status===Lv){let i=n.error;return this.get503(i)}return it(n)}get503(n){let i=`/${n}`;return this.httpClient.get(i,{headers:this.forJsonOutputHeaders}).pipe(re(o=>this.handleError(o)),Xt())}getDocument(){return wt(b(n=>n.doc?n.doc:n))}updateDocNotify(){return wt(P(n=>this.docNotifySubject.next(n.$notify)))}updateDocFeatures(){return wt(P(n=>{n.$func!=="progress.get"&&this.docFeaturesSubject.next(n.$features)}))}convertParamsToHttpParams(n){let i=new yt({encoder:new ra});return Object.keys(n).forEach(o=>{i=i.set(o,n[o])}),i}get(n,i){return delete n.sok,this.httpClient.get(this.mgrHost,{params:this.convertParamsToHttpParams(p(p({},this.outputFormatParam),n)),headers:p(p({},this.forJsonOutputHeaders),i)}).pipe(re(o=>this.handleError(o)),this.getDocument(),this.updateDocFeatures(),this.updateDocNotify(),Xt())}post(n,i,o){return this.httpClient.post(i||this.mgrHost,this.convertParamsToHttpParams(p(p({},this.outputFormatParam),n)),{headers:p(p({},this.forJsonOutputHeaders),o)}).pipe(re(s=>this.handleError(s)),this.getDocument(),this.updateDocFeatures(),this.updateDocNotify(),Xt())}uploadFile(n,i){return this.httpClient.post(i||this.mgrHost,this.convertToFormData(p(p({},n),this.outputFormatParam)),{reportProgress:!0,observe:"events",headers:T(p({},this.forJsonOutputHeaders),{"ngsw-bypass":""})}).pipe(F(o=>[xe.UploadProgress,xe.Response].includes(o.type)),re(o=>this.handleErrorEvent(o)),Xt())}};e.\u0275fac=function(i){return new(i||e)(g(ri))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var oa=(()=>{let e=class e{constructor(n){this.httpBaseService=n}desktop(n){return this.httpBaseService.get(T(p({},n),{func:"desktop"}))}logon(){return this.httpBaseService.get({func:"logon"})}auth(n){return this.httpBaseService.post(p({func:"auth"},n))}getDashboard(n,i,o){return this.httpBaseService.get(p({func:n,dashboard:i},o))}colwidth(n){return this.httpBaseService.post(p({func:"colwidth"},n))}setValues(n){return this.httpBaseService.post(T(p({func:n.func},n.model),{elid:n.elid,plid:n.plid,sv_field:n.field}))}setValuesWithFiles(n){return this.httpBaseService.uploadFile(T(p({func:n.func},n.model),{elid:n.elid,plid:n.plid,sv_field:n.field}))}setDrawer(n,i){return this.httpBaseService.post(T(p({},i),{sd_field:n}))}dismiss(n){return this.httpBaseService.post(p({func:"dismiss"},n))}progress(n){return this.httpBaseService.get({func:"progress.get",elid:n})}dashboardStateSave(n,i,o){return this.httpBaseService.post({func:"dashboard.save",block:n,display:i,position:o})}dashboardBlockOrderSave(n){return this.httpBaseService.post({func:"dashboard.save",blockOrder:n})}keepalive(){return this.httpBaseService.get({func:"keepalive"})}tip(n){return this.httpBaseService.post({func:"tip",elid:n})}globalSearch(n){if(!n?.trim().length)return w(null);let i={func:"globalindex",elid:n,out:"json",sfrom:"ajax"};return this.httpBaseService.get(i)}getActiveHint(n,i){let o={func:i,hint_field:n.name,elid:n.elid};return n.value&&(o.value=n.value),this.httpBaseService.get(o).pipe(b(s=>s.hint?.$||""))}favoritePaths(n,i){let o={func:"file.favorites",path:n};return i===void 0?this.httpBaseService.get(o):(o.sok=i?"ok":"delete",this.httpBaseService.post(o))}};e.\u0275fac=function(i){return new(i||e)(g(Qt))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nt(t){let e=t.split("&"),r={};return e.forEach(n=>{let i=n.split("=");r[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}),r}var sa=(()=>{let e=class e{constructor(){this.messageSubject=new V,this.message$=this.messageSubject.asObservable()}emit(n,i){return new Promise(o=>{this.messageSubject.next({type:n,payload:i,response:o})})}on$(n){return this.message$.pipe(F(i=>i.type===n))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function q(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function K(t){return function e(r){return arguments.length===0||q(r)?e:t.apply(this,arguments)}}function Pe(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var Bv=Object.prototype.toString,H0=function(){return Bv.call(arguments)==="[object Arguments]"?function(e){return Bv.call(e)==="[object Arguments]"}:function(e){return Pe("callee",e)}}(),aa=H0;var ca=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function yr(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ri(t){return Object.prototype.toString.call(t)==="[object String]"}function Dd(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var z0=K(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():ca(e)?[]:Ri(e)?"":yr(e)?{}:aa(e)?function(){return arguments}():Dd(e)?e.constructor.from(""):void 0}),Vv=z0;function ze(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return q(r)?e:K(function(i){return t(r,i)});default:return q(r)&&q(n)?e:q(r)?K(function(i){return t(i,n)}):q(n)?K(function(i){return t(r,i)}):t(r,n)}}}function ua(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function la(t,e,r){for(var n=0,i=r.length;n<i;){if(t(e,r[n]))return!0;n+=1}return!1}function wd(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function q0(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var da=typeof Object.is=="function"?Object.is:q0;var G0=!{toString:null}.propertyIsEnumerable("toString"),Uv=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Hv=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),W0=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},Z0=typeof Object.keys=="function"&&!Hv?K(function(e){return Object(e)!==e?[]:Object.keys(e)}):K(function(e){if(Object(e)!==e)return[];var r,n,i=[],o=Hv&&aa(e);for(r in e)Pe(r,e)&&(!o||r!=="length")&&(i[i.length]=r);if(G0)for(n=Uv.length-1;n>=0;)r=Uv[n],Pe(r,e)&&!W0(i,r)&&(i[i.length]=r),n-=1;return i}),Ed=Z0;var Q0=K(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}),_i=Q0;function zv(t,e,r,n){var i=ua(t),o=ua(e);function s(a,c){return Oi(a,c,r.slice(),n.slice())}return!la(function(a,c){return!la(s,c,a)},o,i)}function Oi(t,e,r,n){if(da(t,e))return!0;var i=_i(t);if(i!==_i(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(i){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&wd(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&da(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!da(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var o=r.length-1;o>=0;){if(r[o]===t)return n[o]===e;o-=1}switch(i){case"Map":return t.size!==e.size?!1:zv(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:zv(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=Ed(t);if(s.length!==Ed(e).length)return!1;var a=r.concat([t]),c=n.concat([e]);for(o=s.length-1;o>=0;){var u=s[o];if(!(Pe(u,e)&&Oi(e[u],t[u],a,c)))return!1;o-=1}return!0}var Y0=ze(function(e,r){return Oi(e,r,[],[])}),Id=Y0;var K0=K(function(e){return e!=null&&Id(e,Vv(e))}),J0=K0;function kt(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return q(r)?e:ze(function(o,s){return t(r,o,s)});case 2:return q(r)&&q(n)?e:q(r)?ze(function(o,s){return t(o,n,s)}):q(n)?ze(function(o,s){return t(r,o,s)}):K(function(o){return t(r,n,o)});default:return q(r)&&q(n)&&q(i)?e:q(r)&&q(n)?ze(function(o,s){return t(o,s,i)}):q(r)&&q(i)?ze(function(o,s){return t(o,n,s)}):q(n)&&q(i)?ze(function(o,s){return t(r,o,s)}):q(r)?K(function(o){return t(o,n,i)}):q(n)?K(function(o){return t(r,o,i)}):q(i)?K(function(o){return t(r,n,o)}):t(r,n,i)}}}function Cd(t,e){var r=t<0?e.length+t:t;return Ri(e)?e.charAt(r):e[r]}function bd(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function fa(t,e,r){if(r||(r=new eT),X0(t))return t;var n=function(o){var s=r.get(t);if(s)return s;r.set(t,o);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(o[a]=e?fa(t[a],!0,r):t[a]);return o};switch(_i(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return bd(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function X0(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var eT=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){var n=this.hash(e),i=this.map[n];i||(this.map[n]=i=[]),i.push([e,r]),this.length+=1},t.prototype.hash=function(e){var r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(var r in this.map)for(var s=this.map[r],n=0;n<s.length;n+=1){var i=s[n];if(i[0]===e)return i[1]}return}var o=this.hash(e),s=this.map[o];if(s)for(var n=0;n<s.length;n+=1){var i=s[n];if(i[0]===e)return i[1]}},t}();var tT=K(function(e){return e!=null&&typeof e.clone=="function"?e.clone():fa(e,!0)}),nT=tT;function Sd(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return ca(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var rT=kt(Sd("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),qv=rT;var iT=K(function(t){return Cd(-1,t)}),oT=iT;var sT=qv(0,-1),aT=sT;var cT=kt(function(e,r,n){var i={},o;r=r||{},n=n||{};for(o in r)Pe(o,r)&&(i[o]=Pe(o,n)?e(o,r[o],n[o]):r[o]);for(o in n)Pe(o,n)&&!Pe(o,i)&&(i[o]=n[o]);return i}),Gv=cT;var uT=kt(function t(e,r,n){return Gv(function(i,o,s){return yr(o)&&yr(s)?t(e,o,s):e(i,o,s)},r,n)}),Wv=uT;var lT=ze(function(e,r){return Wv(function(n,i,o){return o},e,r)}),Md=lT;var dT=kt(function(t,e,r){var n=r.length,i=r.slice(),o=t<0?n+t:t,s=e<0?n+e:e,a=i.splice(o,1);return o<0||o>=r.length||s<0||s>=r.length?r:[].concat(i.slice(0,s)).concat(a).concat(i.slice(s,r.length))}),Td=dT;var Dr=(()=>{let e=class e{constructor(){this.cachedBanners=[],this.banners=new Map,this.bannersCount$=new R(0)}setAnchorComponent(n){this.anchor=n,this.cachedBanners.length>0&&(this.cachedBanners.forEach(i=>this.openBanner(i)),this.cachedBanners.length=0)}openBanner(n){if(!this.anchor){this.cachedBanners.push(n);return}let i=n.id||Date.now().toString();return this.banners.has(n.id)||(n.state="open"),this.banners.set(i,T(p({id:i,isClosable:!0},n),{button:p({closeOnClick:!0},n.button)})),this.anchor.markForCheck(),this.bannersCount$.next(this.banners.size),i}closeBanner(n,i){let o=this.banners.get(n);o&&(o.state="close",o.onClose&&o.onClose(i),this.anchor.markForCheck(),this.bannersCount$.next(this.banners.size))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ki(t){let e={};return Object.keys(t).sort().forEach(r=>{e[r]=t[r]}),JSON.stringify(e)}var wr=(()=>{let e=class e{constructor(n,i){this.narrowBannerService=n,this.api5Service=i,this.API_REQUEST_TIMEOUT=30*1e3,this.isNetworkErrorShown=!1,this.canCheckDesktop=!0,this.serverErrorMessage="Server or Network error",this.networkStatusRefresh$=new V}checkBackendAvailability(){this.canCheckDesktop&&(this.canCheckDesktop=!1,setTimeout(()=>{this.canCheckDesktop=!0},this.API_REQUEST_TIMEOUT),this.api5Service.desktop().subscribe({next:()=>{this.narrowBannerService.closeBanner("network-error"),this.isNetworkErrorShown=!1,this.networkStatusRefresh$.next()},error:()=>{this.narrowBannerService.openBanner({id:"network-error",status:"danger",text:this.serverErrorMessage,isClosable:!1}),this.isNetworkErrorShown=!0}}))}init(n){this.serverErrorMessage=n}show(){this.isNetworkErrorShown||this.checkBackendAvailability()}hide(){if(!this.isNetworkErrorShown){this.networkStatusRefresh$.next();return}this.checkBackendAvailability()}};e.\u0275fac=function(i){return new(i||e)(g(Dr),g(oa))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Ad=3,ha=(()=>{let e=class e{constructor(n,i){this.httpClient=n,this.networkErrorService=i,this.lastEventId=0,this.lastErrors=[],this.notificationsSubject=new R([]),this.notifications$=this.notificationsSubject.asObservable(),this.unreadNotifications$=this.notifications$.pipe(b(o=>o.filter(s=>!s.read)))}start(){this.getNotifications$().subscribe(()=>this.getUpdates())}getNotifications$(){return this.httpClient.get("/notify",{params:{func:"notify"},headers:{"ngsw-bypass":""}}).pipe(re(n=>(this.saveNewError(n),this.gotIdenticalErrors()?this.networkErrorService.networkStatusRefresh$.pipe(Q(1),Ir(this.getNotifications$())):wa(5e3).pipe(Ir(this.getNotifications$())))),ee(n=>(this.lastErrors=[],!n.server_uid||!n.last_id?wa(5e3).pipe(Ir(this.getNotifications$())):w(n))),P(n=>this.resetNotifications(n)))}resetNotifications(n){if(this.serverUId=n.server_uid,this.lastEventId=n.last_id,n.list?.length){let i=n.list;n.deleted?.length&&(i=i.filter(o=>!n.deleted.includes(o.id))),n.mark_read?.length&&n.mark_read.forEach(o=>{let s=i.find(a=>a.id===o);s&&(s.read=!0)}),i.sort((o,s)=>s.id-o.id),this.notificationsSubject.next(i)}}getUpdates(){let n=o=>{if(this.lastErrors=[],this.networkErrorService.hide(),o.server_uid!==this.serverUId){this.resetNotifications(o),this.getUpdates();return}let s=this.notificationsSubject.value,a=!1;if(this.lastEventId=o.last_id,o.list&&(o.list.sort((c,u)=>u.id-c.id),s=[...o.list,...s],a=!0),o.mark_read){let c=s.filter(u=>o.mark_read.includes(u.id));c.length&&(s=s.map(u=>c.includes(u)?T(p({},u),{read:!0}):u),a=!0)}if(o.deleted){let c=s.filter(u=>o.deleted.includes(u.id));c.length&&(s=s.filter(u=>!c.includes(u)),a=!0)}a&&this.notificationsSubject.next(s),this.getUpdates()},i=o=>{this.saveNewError(o),(o.status===0||o.status>=500)&&this.networkErrorService.show(),this.saveNewError(o),this.gotIdenticalErrors()?this.networkErrorService.networkStatusRefresh$.pipe(Q(1)).subscribe(()=>this.getUpdates()):setTimeout(()=>this.getUpdates(),5e3)};this.httpClient.get("/notify",{params:{func:"notify",last_id:`${this.lastEventId}`,server_uid:this.serverUId},headers:{"ngsw-bypass":""}}).subscribe({next:n,error:i})}cleanNotifications$(){return this.httpClient.post("/notify?func=clean",{last_message_id:this.notificationsSubject.value[0]?.id||0},{headers:{"ngsw-bypass":""}}).pipe(b(n=>n.result==="ok"),P(n=>{n&&this.notificationsSubject.next([])}))}readNotifications$(n){return n.length===0?w(!0):this.httpClient.post("/notify?func=notify.markread",{id:n},{headers:{"ngsw-bypass":""}}).pipe(b(i=>i.result==="ok"),P(i=>{if(!i)return;let o=this.notificationsSubject.value.map(s=>T(p({},s),{read:s.read||n.includes(s.id)}));this.notificationsSubject.next(o)}))}gotIdenticalErrors(){return this.lastErrors.length===Ad&&!this.lastErrors.find(n=>ki(this.lastErrors[0].error)!==ki(n.error))}saveNewError(n){this.lastErrors.length>=Ad&&this.lastErrors.splice(0,this.lastErrors.length-Ad+1),this.lastErrors.push(n)}};e.\u0275fac=function(i){return new(i||e)(g(ri),g(wr))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Qv=(()=>{let e=class e{constructor(n,i){this.narrowBannerService=n,this.messageBusService=i}init(n){if(n.banner)for(let i of n.banner){let o={status:i.$status,text:i.msg.$,id:`${i.$status}_${i.msg.$}`};i.link&&(o.button={closeOnClick:!!i.link,label:z.getMessage(i.link.$name,n),onClick:()=>{this.handleDesktopBannerLink(i)}}),this.narrowBannerService.openBanner(o)}}handleDesktopBannerLink(n){let i=!!n.link.$drawer,o={params:nt(i?n.link.$parent:n.link.$),type:null,isNew:!1,drawer:null};if(i){let s=nt(n.link.$);o.drawer={type:"form",size:n.link.$drawer,func:s.func}}this.messageBusService.emit("need-to-handle-action",o)}};e.\u0275fac=function(i){return new(i||e)(g(Dr),g(sa))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Yt=(()=>{let e=class e{constructor(n){this.window=n,this.userName="anonymous",this.ready$=new R(void 0)}getKeyUserBind(n){return`${n}__${this.userName}`}init(n){this.userName=n||"anonymous",this.ready$.next()}get(n){return this.window.localStorage.getItem(this.getKeyUserBind(n))}getParsed(n){return JSON.parse(this.get(n))||void 0}set(n,i){this.window.localStorage.setItem(this.getKeyUserBind(n),i)}setParsed(n,i){this.set(n,JSON.stringify(i))}patch(n,i){let o=this.getParsed(n);o||this.setParsed(n,i);let s=Md(o,i);this.setParsed(n,s)}remove(n){this.window.localStorage.removeItem(this.getKeyUserBind(n))}};e.\u0275fac=function(i){return new(i||e)(g(In))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hT=5,pT=1e3,Kt=(()=>{let e=class e{get narrowBannersOpened(){return this.narrowBannerService.banners.size>0}get binary(){return this.desktopSubject.value.$binary}get host(){return this.desktopSubject.value.$host}get desktop(){return this.desktopSubject.value}get user(){return this.desktopSubject.value.user}get isBusiness(){return Object.keys(this.desktopSubject.value?.mainmenu?.modernmenu||{}).length===0}constructor(n,i,o,s,a,c,u,l,d,f){this.window=n,this.api5Service=i,this.titleService=o,this.updates=s,this.httpBaseService=a,this.narrowBannerService=c,this.notifyService2=u,this.networkErrorService=l,this.desktopBannersService=d,this.localStorageService=f,this.formSummaryTemplate$=new R(null),this.desktopSubject=new R(null),this.docFeatures$=this.httpBaseService.docFeatures$,this.isDesktopRenderedSubject=new R(!1),this.isDesktopRendered$=this.isDesktopRenderedSubject.asObservable(),this.isLoading$=new R(!0),this.desktop$=this.desktopSubject.pipe(F(h=>h!==null)),this.subscribeToUpdateSwShowBanner(),this.notifyService2.start()}updateFormSummaryTemplate(n){setTimeout(()=>{this.formSummaryTemplate$.next(n)})}setTitle(){let i=this.desktopSubject.value?.messages?.msg?.title;i&&this.titleService.setTitle(i)}subscribeToDocFeatures(){this.docFeatures$.pipe(F(n=>!!n),Bi(),Ta(1)).subscribe(()=>{setTimeout(()=>{document.location.reload()},500)})}subscribeToDesktopBanners(){this.desktop$.pipe(F(n=>!!n),Bi()).subscribe(n=>{this.desktopBannersService.init(n)})}subscribeToUpdateSwShowBanner(){this.updates.versionUpdates.pipe(F(n=>n.type==="VERSION_READY"),P(()=>{let n=this.desktopSubject.value;this.narrowBannerService.openBanner({status:"danger",text:z.getMessage("msg_available_update",n),button:{label:z.getMessage("msg_update",n),onClick:()=>{this.updates.activateUpdate().then(()=>{this.window.location.reload()})}}})})).subscribe()}init(){this.subscribeToDesktopBanners(),this.subscribeToDocFeatures(),this.getDesktop()}getDesktop(){this.desktopSubject.next(null),this.api5Service.desktop({guides:!0}).pipe(Sa(n=>n.pipe(Jt(pT),Q(hT)))).subscribe({next:n=>{this.setPageInfo(n),this.desktopSubject.next(n),this.localStorageService.init(n?.user?.$name),this.isLoading$.next(!1),this.setTitle(),this.networkErrorService.init(z.getMessage("msg_server_error",n))},error:()=>{this.window.location.reload()}})}isAuthorized$(){return il()?this.desktop$.pipe(Q(1),b(n=>n.$func!=="logon")):w(!0)}setPageInfo(n){!il()||n.$func!=="desktop"||(pageInfo={isBranding:n.$localdir==="default/"?0:1,theme:n.$theme,binary:n.$binary,baseUrl:`${n.$host}${n.$binary}`,commonPath:"/manimg/common/",level:n.mainmenu?.$level,product:n.product?.$,version:n.version?.core?.$,version_ispmanager:n.version?.ispmgr?.$,userName:n.user?.$name,startpage:n.mainmenu?.$startpage,startform:n.mainmenu?.$startform,startformdrawer:n.mainmenu?.$startformdrawer,starttab:n.mainmenu?.$starttab})}getUserName(){return this.desktopSubject.value?.user?.$name}getDesktopMessage(n){return z.getMessage(n,this.desktopSubject.value)}flagAsRendered(){if(this.isDesktopRenderedSubject.value){console.error("The rendered flag can only be set once");return}this.isDesktopRenderedSubject.next(!0)}updateMenuItemFavorite(n,i){let o=(this.isBusiness?this.desktop.mainmenu:this.desktop.mainmenu.modernmenu)?.node.map(s=>s.node).flat().find(s=>Object.entries(i).every(([a,c])=>s[a]===c));o&&(o.$favorite=n?"yes":void 0,this.desktopSubject.next(p({},this.desktopSubject.value)))}markItemAsVisited(n){let i=this.desktop.mainmenu?.modernmenu?.node?.map(o=>o.node)?.flat()?.find(o=>o.$new&&o.$name===n.$name);i&&this.httpBaseService.post({func:"menuvisited",elid:i.$name}).subscribe(()=>{i.$new=void 0,this.desktopSubject.next(p({},this.desktopSubject.value))})}};e.\u0275fac=function(i){return new(i||e)(g(In),g(oa),g(ks),g(ta),g(Qt),g(Dr),g(ha),g(wr),g(Qv),g(Yt))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Rd(t){t||(pn(Rd),t=m(Ve));let e=new Er(r=>t.onDestroy(r.next.bind(r)));return r=>r.pipe(Cr(e))}function gT(t,e){!e?.injector&&pn(gT);let r=e?.injector??m(se),n=new _d(1),i=al(()=>{let o;try{o=t()}catch(s){tr(()=>n.error(s));return}tr(()=>n.next(o))},{injector:r,manualCleanup:!0});return r.get(Ve).onDestroy(()=>{i.destroy(),n.complete()}),n.asObservable()}function mT(t,e){let r=!e?.manualCleanup;r&&!e?.injector&&pn(mT);let n=r?e?.injector?.get(Ve)??m(Ve):null,i=vT(e?.equal),o;e?.requireSync?o=gs({kind:0},{equal:i}):o=gs({kind:1,value:e?.initialValue},{equal:i});let s=t.subscribe({next:a=>o.set({kind:1,value:a}),error:a=>{if(e?.rejectErrors)throw a;o.set({kind:2,error:a})}});if(e?.requireSync&&o().kind===0)throw new D(601,!1);return n?.onDestroy(s.unsubscribe.bind(s)),sm(()=>{let a=o();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new D(601,!1)}},{equal:e?.equal})}function vT(t=Object.is){return(e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var qe=function(t){return t.MainMenuState="isp_main_menu_state",t.MainMenuFilter="isp_main_menu_filter",t.MetricTabUID="isp_metric_tab_uid",t.MetricCache="isp_metric_cache",t.MetricUserUID="isp_metric_user_uid",t.Tablist="isp_tab-list",t.TablistLanguage="isp_tab-list-language",t.CodeEditorSettings="isp_code_editor_settings",t.UsefulLinks="isp_useful_links",t.ClosedNotificationIds="isp_closed_notification_ids",t.ColorScheme="isp_color_scheme",t.BackgroundAnimationState="isp_background_animation_state",t}(qe||{});var yT=["*"],ma=700,uF=(()=>{let e=class e{get visibleCardsNumber(){return this.host.nativeElement.querySelectorAll(".isp-stack-card_in-stack:not(.isp-stack-card_overflown)")?.length}constructor(n,i){this.host=n,this.cdr=i,this.cssClass="isp-stack",this.hostHeight="0px",this.transitionDuration=ma,this.transitionGap=ma+100,this.spedUpTransitionDuration=100,this.transitionDurationCss=`${this.transitionDuration}ms`,this.spedUptransitionDurationCss=`${this.spedUpTransitionDuration}ms`,this.transition=new ie(null),this.animationQueue=Promise.resolve(),this.childrenObserver=new MutationObserver(o=>de(this,null,function*(){let s=o.filter(a=>a.addedNodes[0]?.nodeType===1).map(a=>a.addedNodes[0]);if(s.length){if(yield new Promise(a=>setTimeout(a,200)),!this.host.nativeElement.querySelector(".isp-stack-card_in-stack")&&this.host.nativeElement.children.length===s.length){this.animateAddingAtOnce(s);return}for(let a of s)this.animateAdding(a),yield new Promise(c=>setTimeout(c,this.transitionGap))}}))}ngAfterViewInit(){this.childrenObserver.observe(this.host.nativeElement,{childList:!0})}ngOnDestroy(){this.childrenObserver.disconnect()}animateRemoving(n){return de(this,null,function*(){if(n===void 0)return this.addToAnimationQueue(()=>de(this,null,function*(){return this.animateRemoveAll()}));for(let i=1;i<=n;i++){if(!this.firstInStack)return;if(i===n)return this.animatePop();yield this.addToAnimationQueue(()=>de(this,null,function*(){this.animatePop(),yield new Promise(o=>setTimeout(o,this.transitionGap))}))}})}addToAnimationQueue(n){return de(this,null,function*(){return this.animationQueue=de(this,null,function*(){yield this.animationQueue,yield n()}),this.animationQueue})}animateAdding(n){return de(this,null,function*(){let i=n.getBoundingClientRect().height;this.transition.emit({phase:"start",toHeight:i}),n.classList.add("isp-stack-card_in-stack"),this.disconnectResizeObserver(),yield this.addToAnimationQueue(()=>de(this,null,function*(){i<parseFloat(this.hostHeight)?(this.formStack(n),this.cdr.markForCheck(),yield new Promise(o=>setTimeout(o,this.transitionDuration)),this.connectResizeObserver(n),this.transition.emit({phase:"stop"})):(yield new Promise(o=>setTimeout(o,this.transitionDuration)),this.transition.emit({phase:"stop"}),this.connectResizeObserver(n),this.formStack(n,!0),this.cdr.markForCheck()),this.firstInStack=n}))})}animateAddingAtOnce(n){return de(this,null,function*(){let i=[null,"isp-stack-card_second","isp-stack-card_third"],o=n[n.length-1]?.getBoundingClientRect().height;o&&this.transition.emit({phase:"start",toHeight:o}),n.forEach((s,a)=>{let c=n.length-a-1;c?s.classList.add(i[c]||"isp-stack-card_overflown"):(this.disconnectResizeObserver(),this.firstInStack=s,this.connectResizeObserver(s)),s.classList.add("isp-stack-card_in-stack")}),this.cdr.markForCheck(),yield this.addToAnimationQueue(()=>new Promise(s=>setTimeout(s,this.transitionDuration))),this.transition.emit({phase:"stop"})})}animatePop(){return de(this,null,function*(){let n=this.firstInStack;if(this.disconnectResizeObserver(),!n)return;n.classList.remove("isp-stack-card_in-stack");let i=n.previousElementSibling;if(i){this.firstInStack=i,this.connectResizeObserver(i),this.hostHeight=`${i.getBoundingClientRect().height}px`,i.classList.remove("isp-stack-card_second");let s=i.previousElementSibling;if(s){s.classList.remove("isp-stack-card_third"),s.classList.add("isp-stack-card_second");let a=s.previousElementSibling;a&&(a.classList.remove("isp-stack-card_overflown"),a.classList.add("isp-stack-card_third"))}}else this.firstInStack=null,this.hostHeight="0px";let o=i?.getBoundingClientRect().height||0;this.transition.emit({phase:"start",toHeight:o}),this.cdr.markForCheck(),yield new Promise(s=>setTimeout(s,this.transitionDuration)),this.transition.emit({phase:"stop",toHeight:o})})}animateRemoveAll(){return de(this,null,function*(){let n=this.host.nativeElement.children;if(n.length!==0){for(let i of n)i.classList.remove("isp-stack-card_in-stack"),i.classList.contains("isp-stack-card_overflown")||i.classList.add("isp-stack-card_departing");this.transition.emit({phase:"start"}),yield new Promise(i=>setTimeout(i,this.transitionDuration)),this.transition.emit({phase:"start",toHeight:0})}})}formStack(n,i){let o=n.previousElementSibling;if(o){o.classList.add("isp-stack-card_second"),i&&(o.classList.add("isp-stack-card_sped-up"),this.slowDownAfterSpeedUp(o));let s=o.previousElementSibling;if(s){s.classList.add("isp-stack-card_third"),s.classList.remove("isp-stack-card_second"),i&&(s.classList.add("isp-stack-card_sped-up"),this.slowDownAfterSpeedUp(s));let a=s.previousElementSibling;a&&a.classList.add("isp-stack-card_overflown")}}}addClassAfterAnimation(n,i){setTimeout(()=>n.classList.add(i),this.transitionDuration)}disconnectResizeObserver(){this.firstCardResizeObserver&&this.firstCardResizeObserver.disconnect()}connectResizeObserver(n){this.firstCardResizeObserver=new ResizeObserver(()=>{let i=n.getBoundingClientRect().height;this.transition.emit({phase:"stop",toHeight:i}),this.hostHeight=`${i}px`,this.cdr.markForCheck()}),this.firstCardResizeObserver.observe(n)}slowDownAfterSpeedUp(n){setTimeout(()=>n.classList.remove("isp-stack-card_sped-up"),this.spedUpTransitionDuration)}};e.\u0275fac=function(i){return new(i||e)(H(Ye),H(At))},e.\u0275cmp=Wo({type:e,selectors:[["isp-stack"]],hostVars:10,hostBindings:function(i,o){i&2&&(Rg(o.cssClass),ys("--isp-stack-height",o.hostHeight)("--isp-stack-transition-duration",o.transitionDurationCss)("--isp-stack-sped-up-transition-duration",o.spedUptransitionDurationCss)("--isp-stack-visible-cards-num",o.visibleCardsNumber))},outputs:{transition:"transition"},ngContentSelectors:yT,decls:1,vars:0,template:function(i,o){i&1&&(Hg(),zg(0))},styles:[`.isp-stack{position:relative;height:var(--isp-stack-height)}.isp-stack>*{position:absolute;bottom:var(--isp-stack-bottom-offset, 0);left:100%;width:100%;opacity:0;transform:scaleX(1) translateY(0);transition:left var(--isp-stack-transition-duration) cubic-bezier(.7,-.4,.4,1.4),opacity var(--isp-stack-transition-duration),transform var(--isp-stack-transition-duration),clip-path var(--isp-stack-transition-duration)}.isp-stack-card_in-stack{left:0;clip-path:inset(-1000px -1000px -5px -1000px);opacity:1;transform:scaleX(1) translateY(0);transition:left var(--isp-stack-transition-duration) cubic-bezier(.7,-.4,.4,1.4),opacity var(--isp-stack-transition-duration),transform var(--isp-stack-transition-duration),clip-path var(--isp-stack-transition-duration)}.isp-stack-card_second{clip-path:inset(-1000px -1000px calc(100% - var(--isp-stack-height) + 5px) -1000px);transform:scaleX(.97) translateY(calc(100% - var(--isp-stack-height) - 5px))}.isp-stack-card_third{clip-path:inset(-1000px -1000px calc(100% - var(--isp-stack-height) + 5px) -1000px);transform:scaleX(.94) translateY(calc(100% - var(--isp-stack-height) - 10px))}.isp-stack-card_second.isp-stack-card_sped-up,.isp-stack-card_third.isp-stack-card_sped-up{transition:transform var(--isp-stack-sped-up-transition-duration) ease-in}.isp-stack-card_overflown{opacity:0}.isp-stack-card_departing{transition:left var(--isp-stack-transition-duration) cubic-bezier(.7,-.4,.4,1.4),opacity var(--isp-stack-transition-duration) ease-in}
`],encapsulation:2,changeDetection:0});let t=e;return t})();var Yv=(()=>{let e=class e{constructor(n,i,o,s,a){this.appService=n,this.notifyService2=i,this.messageBusService=o,this.localStorageService=s,this.destroyRef=a,this.notifications$=new R([]),this.notificationEvents$=new V,this.stackQueue=[],this.isNotificationCenterOpen=!1,this.appService.desktop$.pipe(Q(1)).subscribe(c=>{this.messages=z.getMessageSet(c),this.subscribeToUnread()}),this.subscribeToNotificationCenterToggle()}notificationEvent(n,i,o){i==="close"&&this.close(n,!0),this.notificationEvents$.next({type:i,id:n.id,data:o,notification:n})}msgAsHTML(n){return`<div>${n.replace(/\\n/g,"<br/>")}</div>`}showTemporaryNotification$(n,i){let o=i||Math.random().toString(),s=T(p({},n),{id:o,isTemporary:!0});return this.enqueue(s),this.notificationEvents$.pipe(F(a=>a.notification===s),Tn(a=>a.type!=="close",!0))}showError$(n,i="",o=null){let a={id:Date.now().toString(),title:i||this.messages.msg_error,message:this.msgAsHTML(n),status:"danger",link:o?{text:o}:void 0,isTemporary:!0};return this.showTemporaryNotification$(a)}closeById(n,i=!1){let o=this.notifications$.value.find(s=>s.id===n);o&&this.close(o,i)}close(n,i=!1){if(n)n.isTemporary?this.notificationEvents$.next({type:"close",id:n.id,data:n.data,notification:n}):i?this.messageBusService.emit("need-to-read-notifications-in-notification-center",[+n.id]):this.setClosedIds([...this.getClosedIds(),n.id]),this.notifications$.next(this.notifications$.value.filter(o=>o.id!==n.id));else{let o=this.notifications$.value.filter(s=>!s.isTemporary).map(s=>s.id);i?this.messageBusService.emit("need-to-read-notifications-in-notification-center",o.map(s=>+s)):this.setClosedIds([...this.getClosedIds(),...o]),this.notifications$.next([])}setTimeout(()=>this.releaseQueue(),ma+100)}closeAll(){this.notifications$.value.forEach(n=>this.notificationEvents$.next({type:"close",id:n.id,data:n.data,notification:n})),this.close(void 0,!0)}hideAll(){this.notifications$.value.forEach(n=>this.notificationEvents$.next({type:"close",id:n.id,data:n.data,notification:n})),this.close()}openNC(){this.messageBusService.emit("need-notification-center-open")}releaseQueue(){let n=this.stackQueue.length;for(let i=0;i<n;i++)this.enqueue(this.stackQueue.pop())}subscribeToUnread(){this.notifyService2.unreadNotifications$.subscribe(n=>{if(this.isNotificationCenterOpen){this.setClosedIds(n.map(s=>String(s.id)));return}let i=this.notifications$.value.map(s=>s.id),o=this.getClosedIds();n.filter(s=>!i.includes(String(s.id))&&!this.stackQueue.find(a=>a.id===String(s.id))&&!o.includes(String(s.id))).forEach(s=>{let a=T(p({},s),{id:String(s.id),status:s.level,isTemporary:!1,message:this.msgAsHTML(s.msg),link:s.link?{text:this.messages[`notify_link_${s.link.name}`]}:void 0});this.enqueue(a),this.handleServerNotificationLinks(s)})})}subscribeToNotificationCenterToggle(){this.messageBusService.on$("notification-center-toggle").pipe(Rd(this.destroyRef)).subscribe(n=>{this.isNotificationCenterOpen=n.payload,this.isNotificationCenterOpen&&this.close()})}enqueue(n){let i=this.notifications$.value;if(i.find(o=>o.isTemporary)){this.stackQueue.unshift(n);return}this.notifications$.next([...i,n])}getClosedIds(){return this.localStorageService.getParsed(qe.ClosedNotificationIds)||[]}setClosedIds(n){this.localStorageService.setParsed(qe.ClosedNotificationIds,n)}handleServerNotificationLinks(n){let{id:i,link:o}=n;this.notificationEvents$.pipe(F(s=>s.id===String(i)),Tn(s=>s.type!=="close",!0),F(s=>s.type==="link-click")).subscribe(()=>{this.messageBusService.emit("need-to-handle-action",{params:nt(o.value),type:o.type,isNew:!0})})}};e.\u0275fac=function(i){return new(i||e)(g(Kt),g(ha),g(sa),g(Yt),g(Ve))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Kv=(()=>{let e=class e{constructor(){this.progressValueSubject=new R(0),this.progressValue$=this.progressValueSubject.asObservable(),this.isBusy=!1}hideProgressBar(){clearTimeout(this.timeoutId),this.isBusy=!1,this.progressValueSubject.next(0)}showProgressBar(n=1e3){this.isBusy&&clearTimeout(this.timeoutId),this.isBusy=!0,this.progressValueSubject.next(0),this.setFakeValue(n,0)}setFakeValue(n,i){let o=this.progressValueSubject.value;if(o<i&&this.progressValueSubject.next(i),o>=99)return;if(n<=100){this.isBusy=!1,this.progressValueSubject.next(99);return}let s=Math.round(Math.random()*n/2),a=Math.round(Math.random()*(99-o)/2)+o;this.timeoutId=setTimeout(()=>{this.setFakeValue(n-s,a)},s)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var va=(()=>{let e=class e{constructor(n,i){this.appService=n,this.router=i,this.currentSkeletonSubject=new R(null),this.currentSkeleton$=this.currentSkeletonSubject.asObservable(),this.isDesktopRendered=!1,this.isNavigationComplete=!1,this.isWaitingUntilEvent=!1,this.router.events.subscribe(o=>{o instanceof Gt&&(this.isNavigationComplete=!1),(o instanceof tt||o instanceof et||o instanceof En)&&(this.isNavigationComplete=!0,this.hideIfWaiting())}),this.appService.isDesktopRendered$.pipe(be(Boolean),Jt(2e3)).subscribe(()=>{this.isDesktopRendered=!0,this.hideIfWaiting()})}hideIfWaiting(){this.isWaitingUntilEvent&&(this.isWaitingUntilEvent=!1,this.hide())}hide(){if(!this.isDesktopRendered||!this.isNavigationComplete){this.isWaitingUntilEvent=!0;return}this.currentSkeletonSubject.value&&this.currentSkeletonSubject.next(null)}show(n){this.currentSkeletonSubject.next(n)}};e.\u0275fac=function(i){return new(i||e)(g(Kt),g(ke))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Xv=(()=>{let e=class e{constructor(n,i,o,s,a,c,u){this.httpBaseService=n,this.progressBarService=i,this.window=o,this.notificationService=s,this.networkErrorService=a,this.appService=c,this.skeletonService=u,this.longRequestMap=["dns.blacklist","authlog","perlext","pythonext"]}onRequestStart(n,i){if(i?.showProgressbar!==!1){let o=i?.timeForProgressbarMaxValue||1e3,s=this.longRequestMap.includes(n.func)?2*o:o;this.progressBarService.showProgressBar(s)}}onRequestOver(n){n?.hideProgressbar!==!1&&this.progressBarService.hideProgressBar()}showErrorNotification(n){this.notificationService.showError$(n)}hasLogonFunc(n){if(n?.$func==="logon"){let i="",o=this.appService.getDesktopMessage("msg_auth_error"),s=this.appService.getDesktopMessage("msg_login");return this.notificationService.showError$(i,o,s).pipe(F(a=>a.type==="link-click")).subscribe(()=>{this.window.location.reload()}),!0}return!1}checkLogonFuncOp(){return wt(F(n=>!this.hasLogonFunc(n)))}handleBackendError(n){return wt(P(()=>{this.networkErrorService.hide()}),re(()=>(this.networkErrorService.show(),this.progressBarService.hideProgressBar(),rt)),F(i=>{let o=z.getError(i);return o?(!n?.skipErrorNotification&&!(n?.dontShowMissingFuncError&&i.error?.$object==="function"&&i.error?.$type==="missed")&&this.showErrorNotification(o),this.progressBarService.hideProgressBar(),this.skeletonService.hide(),!!(i.metadata?.form||n?.emitOnError)):!0}))}getAction(n,i){return this.onRequestStart(n,i),this.httpBaseService.get(n).pipe(P(()=>this.onRequestOver(i)),this.handleBackendError(i),this.checkLogonFuncOp())}uploadAction(n,i){return this.onRequestStart(n,i),this.httpBaseService.uploadFile(n,i?.action).pipe(P(o=>{o.type===xe.Response&&this.onRequestOver(i)}),b(o=>{if(o.type===xe.Response){let s=z.getError(o.body?.doc);return s?.length&&!i?.skipErrorNotification&&this.showErrorNotification(s),o.clone({body:o.body?.doc||o.body})}return o}),re(()=>(this.networkErrorService.show(),this.onRequestOver(i),w(null))))}postAction(n,i){return this.onRequestStart(n,i),this.httpBaseService.post(n,i?.action).pipe(P(o=>{!o?.metadata&&o?.error&&!i.skipErrorNotification&&this.notificationService.showError$(z.getError(o),this.appService.getDesktopMessage("msg_error"))}),P(()=>this.onRequestOver(i)),this.handleBackendError(i),this.checkLogonFuncOp())}};e.\u0275fac=function(i){return new(i||e)(g(Qt),g(Kv),g(In),g(Yv),g(wr),g(Kt),g(va))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ey=(()=>{let e=class e{constructor(){this.drawerMeta$=new R(null),this.isOpen$=new V,this.drawerEvent$=new V}openDrawer$(n){return this.drawerMeta$.next(p({overlay:!0,size:"small"},n)),this.isOpen$.next(!0),this.drawerEvent$.asObservable().pipe(Tn(i=>i!=="closeEnd",!0))}close(n){if(n){let i=this.drawerMeta$.value;if(Object.keys(n).some(o=>n[o]!==i?.[o]))return}this.drawerEvent$.next("closeStart"),this.isOpen$.next(!1)}destroy(){this.drawerEvent$.next("closeEnd"),this.isOpen$.next(!1),this.drawerMeta$.next(null)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ty(t){let e=t.tparams,r={};return e&&Object.keys(e).forEach(n=>{["func","out"].includes(n)||(r[n]=e[n].$!==void 0?e[n].$:"")}),t.p_num?.$&&(r.p_num=t.p_num.$),r?.p_cnt&&delete r.p_cnt,r?.p_col&&delete r.p_col,r}var Ie=(()=>{let e=class e{get route(){return this.type}get params(){return p({func:this.func},this.q)}get pHash(){return ki(this.params)}get isPin(){return(this.doc?.$pin==="yes"||this.savedPinStatus)&&!this.isChild}set doc(n){this.docSubject.next(n)}get doc(){return this.docSubject.value}get plid(){return z.plid(this.doc)}get elid(){return z.elid(this.doc)}constructor({title:n,func:i,isActive:o,isChild:s,type:a,initialFunc:c,isStartForm:u,id:l}){this.docSubject=new R(null),this.wasUpdated=!1,this.doc$=this.docSubject.asObservable(),this.listCache=new Map,this.state={progressIdSubject:new R(null),progressModalStateSubject:new R(null),progressModalUploadStateSubject:new R(null),reportSubmitModel:null,reportList:void 0,reportParams:{},listSearch:"",listScroll:0,formTabsMap:{}},this.parentState={state:null,func:null,q:null},this.title=n,this.func=i,this.isActive=o,this.isChild=s,this.type=a,this.initialFunc=c||i,this.isStartForm=u,this.id=typeof l=="number"?l:e.index,e.index=Math.max(this.id,e.index)+1}static createFromDoc(n,i,o){let s=z.getMessage("title",n),a=["navboard","dashboard"].includes(n.$func)?n.$func:n.metadata?.$type,c=n.$func,u=new e({title:s,type:a,func:c,isActive:!0,isChild:!1,initialFunc:o,id:i});return u.doc=n,u.q=ty(n),u}static createFromUrl(n,i){let o=n.split("/");if(o.length>2||n==="/")return null;let a=o[1].split("?")[0];if(!a)return null;let c=new e({title:"",isActive:!1,isChild:!1,type:a,func:i.func});return c.q=i,c}static deserialize(n){let i=new e({title:n.title,isActive:n.isActive,isChild:n.isChild,type:n.type,func:n.func});return i.q=n.q,i.icon=n.icon,i.savedPinStatus=n.savedPinStatus,i}serialize(){return{func:this.func,isActive:this.isActive,isChild:this.isChild,title:this.title,type:this.type,q:this.q,icon:this.icon,savedPinStatus:this.savedPinStatus}}update(n,i){let o=z.getMessage("title",n),s=n.$func,a=["navboard","dashboard"].includes(n.$func)?n.$func:n.metadata?.$type;this.title=o,this.type=a,this.func=s,this.doc=n,this.q=ty(n),this.listCache=new Map,i&&(this.state.listSearch="")}setUploadFileProgressModal(n,i){this.state.progressModalUploadStateSubject.next(n?{comment:i,percent:n,percentDisplay:!0}:null)}};e.index=0;let t=e;return t})();function ny(t){let e=t?.ok,r=e?.$type;switch(r){case Ai.Top:return location.hash="",location.reload(),!1;case Ai.Blank:return window.open(e.$,"_blank"),!!e.$next_step;case Ai.Url:return location.href=e.$,!0;default:return!!r}}var G=class t{static getIcon(e,r){let i=(Object.keys(r.mainmenu?.modernmenu||{}).length===0?r.mainmenu:r.mainmenu?.modernmenu)?.node||[];for(let o of i)for(let s of o.node)if(s.$action===e)return s.$icon||o.$icon}static createNotFound(e){return new Ie({title:e,isActive:!1,isChild:!1,type:"notfound",func:"notfound"})}static getMenuGroupNameByList(e,r){if(r.length===0)return"";let n=r.find(o=>o.node.some(s=>s.$name===e));return((n?.$type==="noname"?e:n?.$name)||"").replace(/\./g,"-")}static getTabPosition(e,r){let n=r.findIndex(o=>!!o.find(s=>s.id===e));return{index:r[n]?r[n].findIndex(o=>o.id===e):void 0,gIndex:n}}static getActiveGroup(e){return e.find(r=>r.some(n=>n.isActive))}static getActiveTab(e){return t.getActiveGroup(e).find(r=>r.isActive)}static getActiveTabPosition(e){let r=t.getActiveTab(e);return t.getTabPosition(r.id,e)}static getInactiveTabs(e){return e.map(r=>{let n=r[0];return t.isStartTab(n)||n.isPin||r.some(i=>i.isActive)?null:n}).filter(Boolean)}static getNotPinnedTabs(e){return e.map(r=>{let n=r[0];return t.isStartTab(n)||n.isPin?null:n}).filter(Boolean)}static isStartTab(e){return e.func===pageInfo.startpage}static sortByPin(e){return[e[0],...e.slice(1).sort((r,n)=>r[0].isPin&&!n[0].isPin?-1:!r[0].isPin&&n[0].isPin?1:0)]}static findByFunc(e,r){return r.map(n=>n.find(i=>i.func===e)).find(Boolean)}static findMainTabByFunc(e,r){return r.map(n=>n[0]).find(n=>n.func===e)}static getParent(e,r){let n=r.find(o=>o.some(s=>s.id===e)),i=n?.findIndex(o=>o.id===e);return i?n[i-1]:null}};var ry=["dashboard","form","list","report","navboard","helpboard","notfound"];var iy=(()=>{let e=class e{constructor(n,i){this.localStorageService=n,this.router=i}getRestoredTabGroups(n,i){let o=this.getStartPageGroup(n),s=this.getPinnedTabGroups(n),a=this.getSavedTabGroups(i),c=[...o,...s,...a];return this.setUrlTab(c,n),this.setActiveTab(c),c}getStartTab(){if(!pageInfo.starttab)return null;let n=nt(`func=${pageInfo.starttab}`);return new Ie({title:"",isActive:!0,isChild:!1,type:null,func:n?.func,q:n})}getStartFormDrawerParams(){return pageInfo.startformdrawer?nt(`func=${pageInfo.startformdrawer}`):null}getStartPageGroup(n){let i=[],o=this.getStartPage();if(o)o.icon=G.getIcon(o.func,n),i.push([o]);else{let s=this.getDashboardTab(n);i.push([s])}return i}getStartPage(){if(!pageInfo.startpage)return null;let n=nt(`func=${pageInfo.startpage}`);return this.createTabFromParams({params:n,type:["dashboard","navboard"].includes(n.func)?n.func:"list",isActive:!1})}getDashboardTab(n){let i=new Ie({title:z.getMessage("dashboard",n),type:"dashboard",func:"dashboard",isActive:!1,isChild:!1});return i.savedPinStatus=!0,i.icon=G.getIcon("dashboard",n),i}getPinnedTabGroups(n){let i=this.getSerializedTabGroups().filter(s=>s[0].savedPinStatus),o=z.getMessageSet(n);return this.getPinnedMenuItems(n).map(s=>{let a=i.find(u=>u[0].func===s.$action);if(a)return a.map(u=>{let l=Ie.deserialize(u);return l.icon=G.getIcon(s.$action,n),l});let c=new Ie({title:o[`menu_${s.$action}`]||o[`modernmenu_${s.$action}`],isActive:!1,isChild:!1,type:s.$type,func:s.$action});return c.icon=G.getIcon(s.$action,n),c.savedPinStatus=!0,[c]})}getPinnedMenuItems(n){return((Object.keys(n?.mainmenu?.modernmenu||{}).length===0?n?.mainmenu:n?.mainmenu?.modernmenu)?.node||[]).reduce((s,a)=>s.concat(a.node.filter(c=>c.$pin)),[])}getSavedTabGroups(n){let o=this.getSerializedTabGroups().filter(a=>a.every(c=>!c.savedPinStatus)).map(a=>a.map(c=>Ie.deserialize(c))),s=n||this.getStartForm();if(s){let a=o.findIndex(c=>c.some(u=>u.func===s.func));if(o.forEach(c=>c.forEach(u=>u.isActive=!1)),a>-1){let c=o[a].findIndex(u=>u.func===s.func);s.isChild=o[a][c].isChild,o[a][c]=s}else o.push([s])}return o}getStartForm(){if(!pageInfo.startform)return null;let n=nt(`func=${pageInfo.startform}`);return this.createTabFromParams({params:n,type:"form",isActive:!0,isStartForm:!0})}createTabFromParams({params:n,type:i,isActive:o,isStartForm:s}){let a=new Ie({title:"",isActive:o,isChild:!1,type:i,func:n?.func,isStartForm:s});return a.q=n,a}getSerializedTabGroups(){let n=this.localStorageService.getParsed(qe.Tablist);return n||[]}setUrlTab(n,i){let o=this.router.url,s=Ie.createFromUrl(o,this.router.parseUrl(o)?.queryParams);if(!s||!s.type)return;let a=this.getStartTabFunc();if(a||n.forEach(l=>l.forEach(d=>d.isActive=!1)),!ry.includes(s.type)){let l=G.createNotFound(z.getMessage("msg_error_404",i));l.isActive=!a,n.push([l]);return}let u=n.find(l=>l.some(d=>d.func===s.func));if(u){let l=u.find(d=>d.func===s.func);if(l.func===a)return;l.isActive=!a;return}s.isActive=!a,n.push([s])}setActiveTab(n){let i=n.flat().filter(s=>s.isActive);if(i.find(s=>s.isStartForm)){i.length>1&&i.filter(s=>!s.isStartForm).forEach(s=>s.isActive=!1);return}i.length!==1&&(n[0][0].isActive=!0)}getStartTabFunc(){let n=pageInfo.starttab||pageInfo.startform;return n?nt(`func=${n}`).func:null}};e.\u0275fac=function(i){return new(i||e)(g(Yt),g(ke))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var n1=(()=>{let e=class e{get groupList(){return this.groupListSubject.value}set groupList(n){this.groupListSubject.next(n)}get flatTabList(){return this.groupList.flat()}get activeTab(){return this.activeTabSubject.value}set activeTab(n){this.activeTabSubject.next(n)}get activeGroup(){return G.getActiveGroup(this.groupList)}constructor(n,i,o,s,a,c,u,l){this.appService=n,this.localStorageService=i,this.tabRestoreService=o,this.router=s,this.preloadedActionService=a,this.skeletonService=c,this.httpBaseService=u,this.drawerManagerService=l,this.groupListSubject=new R([]),this.groupList$=this.groupListSubject.asObservable(),this.activeTabSubject=new R(null),this.activeTab$=this.activeTabSubject.asObservable(),this.tabEventsSubject=new V,this.tabEvents$=this.tabEventsSubject.asObservable()}init(){this.appService.desktop$.pipe(Q(1)).subscribe(n=>{this.translateTabList();let i=this.tabRestoreService.getStartTab(),o=this.tabRestoreService.getStartFormDrawerParams();i&&this.loadDoc(i),o&&this.openDrawer(o);let s=this.tabRestoreService.getRestoredTabGroups(n,i);this.initTabGroupList(s)})}initTabGroupList(n){this.groupList=n,this.initActivation()}initActivation(){let n=G.getActiveTab(this.groupList);this.loadDoc(n).pipe(be()).subscribe(()=>this.navigateTo(n))}loadDoc(n){return n.doc||n.type==="notfound"?w(n):(n.loadingSubject||(this.skeletonService.show({type:n.type,func:n.func}),n.loadingSubject=new V,this.preloadedActionService.getAction(n.params,{emitOnError:!0,dontShowMissingFuncError:!0}).pipe(b(i=>{if(ny(i))return this.close(n),null;let o=i.error?.$object,s=i.error?.$type;return o==="function"&&s==="missed"||o==="elid"&&s==="value"?(this.close(n),G.createNotFound(this.appService.getDesktopMessage("msg_error_404"))):(n?.update(i),this.emitTabEvent({type:"update",tab:n}),n)}),P(()=>this.skeletonService.hide())).subscribe(n.loadingSubject)),n.loadingSubject)}isStartPage(n){return n.func===this.appService.desktop?.mainmenu.$startpage}activateNotFound(){let n=this.flatTabList.find(i=>i.type==="notfound");n||(n=G.createNotFound(this.appService.getDesktopMessage("msg_error_404")),this.groupList.push([n])),this.setActive(n,!1)}navigateTo(n,i=!1){if(n.func==="error"){this.close(n),this.navigateTo(G.createNotFound(this.appService.getDesktopMessage("msg_error_404")));return}this.activeTab=n;let o=T(p({},n.q),{func:n.func,tab_id:`${n.id}`}),s=G.getParent(n.id,this.groupList);s&&(o.tab_parent_id=`${s.id}`),this.router.navigate([n.type],{queryParams:o,replaceUrl:i})}translateTabList(){let n=this.appService.desktop,i=n.$lang,o=this.localStorageService.get(qe.TablistLanguage);if(o===i||(this.localStorageService.set(qe.TablistLanguage,i),!o))return;let s=n.mainmenu?.modernmenu?.node?.map(d=>d.node)?.flat()||[],a=d=>{let f=s.find(h=>h.$action===d)?.$name;return z.getMessage(`modernmenu_${f}`,n)},c=this.localStorageService.getParsed(qe.Tablist),u=c.flat(),l="...";u.forEach(d=>{d.title=a(d.func)||d.q?.elid||l}),this.localStorageService.setParsed(qe.Tablist,c),setTimeout(()=>{let d=u.filter(v=>v.title===l);if(d.length===0)return;let f=[];d.forEach(v=>{f.find(M=>M.func===v.func)||f.push(v)});let h=this.flatTabList;f.forEach(v=>{this.httpBaseService.get(p({func:v.func},v.q)).subscribe(M=>{let I=z.getMessage("title",M);!I&&M.error&&(I=this.appService.getDesktopMessage("msg_error_404")),h.filter(C=>C.func===v.func&&C.title===l).forEach(C=>C.title=I||C.title),this.nextGroupList()})})},1e3)}getTabById(n){return this.flatTabList.find(i=>i.id===Number(n))}create(n,i=!1,o,s=!0,a=!1,c){let u=this.groupList.findIndex(d=>!!d.find(f=>f.isActive));this.unSetActiveAllTabs();let l;return i||u<=0||this.groupList[u][0].isPin?(l=Ie.createFromDoc(n,o,c),this.groupList.push([l])):(l=Ie.createFromDoc(n,this.activeTab.id,c),this.removeTabList(u),this.groupList.splice(u,0,[l]),this.emitTabEvent({type:"update",tab:l})),l.icon=G.getIcon(l.func,this.appService.desktop),this.nextGroupList(),s?this.navigateTo(l,a):this.activeTab=l,l}createChild(n,i,o,s=!0,a=!1){let c=Ie.createFromDoc(n,o);c.icon=G.getIcon(c.func,this.appService.desktop),c.isChild=!0;let{index:u,gIndex:l}=G.getTabPosition(i,this.groupList);return this.groupList[l].length>1&&this.removeTabList(l,u+1),this.unSetActiveAllTabs(),this.groupList[l].push(c),this.nextGroupList(),s?this.navigateTo(c,a):this.activeTab=c,c}update(n,i,o=!0){if(i){let s=this.getTabById(n.id);s&&(s.update(i),this.emitTabEvent({type:"update",tab:n}),this.nextGroupList(),o&&this.navigateTo(s))}else this.preloadedActionService.getAction(n.params).subscribe(s=>{let a=this.getTabById(n.id);a&&(a.update(s),this.emitTabEvent({type:"update",tab:n}),this.nextGroupList(),o&&this.navigateTo(a))})}removeTabList(n,i=null){i===null?this.groupList.splice(n,1):this.groupList[n].splice(i)}detectTabForActivate(n,i){let o,s=n,a;i===void 0||n===void 0?a=this.groupList[0][0]:(i===0?([...this.groupList].reverse().some((c,u)=>{let l=this.groupList.length-u-1;return l<n&&c!==void 0&&c.length?(s=l,!0):!1}),o=this.groupList[s].length-1):o=i-1,a=this.groupList[s][o]),this.setActive(a)}setActive(n,i=!0,o=!1){this.unSetActiveAllTabs(),this.groupList.forEach(s=>{let a=s.find(c=>c.id===n.id);a&&(a.isActive=!0,this.loadDoc(a))}),this.nextGroupList(),i?this.navigateTo(n,o):this.activeTab=n}unSetActiveAllTabs(){this.groupList.forEach(n=>n.forEach(i=>i.isActive=!1))}nextGroupList(){this.groupListSubject.next(G.sortByPin(this.groupList)),this.syncTabListToLocalstorage()}syncTabListToLocalstorage(){let n=this.groupList.slice(1).map(i=>i.map(o=>o.serialize()));this.localStorageService.setParsed(qe.Tablist,n)}rearrangeTabs({currentIndex:n,previousIndex:i}){let o=n||1;if(o===i)return;let s=G.sortByPin(Td(i,o,this.groupList));this.groupList=s,this.groupListSubject.next(s),this.syncTabListToLocalstorage()}close(n,i=n.wasUpdated){let{index:o,gIndex:s}=G.getTabPosition(n.id,this.groupList),{index:a,gIndex:c}=G.getActiveTabPosition(this.groupList);if(n.isChild){if(this.removeTabList(s,o),i){let l=this.groupList?.[s]?.[o-1];l&&this.update(l)}}else this.removeTabList(s);this.emitTabEvent({type:"close",tab:n});let u=c===s&&o<a;n.isActive||u?this.detectTabForActivate(s,o):this.nextGroupList()}closeGroup(n){let{gIndex:i}=G.getTabPosition(n.id,this.groupList),o=this.groupList[i][0];this.close(o)}closeEveryTab(){G.getNotPinnedTabs(this.groupList).forEach(n=>this.close(n))}closeEveryInactiveTab(){G.getInactiveTabs(this.groupList).forEach(n=>this.close(n))}updateDocFavorites(n,i){this.groupList.flat().filter(o=>o.doc&&o.func===n).forEach(o=>{o.doc=T(p({},o.doc),{$favorite:i?"yes":void 0})})}resetSameTab(n){if(!n?.isSame)return;let i=this.getTabById(n.id);i.func=n.parentState.func,i.q=p({},n.parentState.q),i.state=p({},n.parentState.state),i.parentState={func:null,q:null,state:null},i.doc=null,i.isSame=!1,this.updateFromServer(i).subscribe(o=>{this.update(i,o),this.navigateTo(i)})}updateFromServer(n,i){return this.preloadedActionService.getAction(n.params,i).pipe(P(o=>{let s=this.getTabById(n.id);s&&(s.doc=o,this.nextGroupList(),n.wasUpdated=!0)}))}setActiveOrOpenByFunc(n){let i=G.findByFunc(n,this.groupList),o=this.activeTab;if(i)this.setActive(i);else{let s=new Ie({func:n});this.groupList.push([s]),this.setActive(s)}this.close(o)}findMainTabByFunc(n){return G.findMainTabByFunc(n,this.groupList)}openSame(n,i){let o=this.getTabById(n.id);this.saveSameTabState(o),o?.update(i,!0),this.emitTabEvent({type:"update",tab:n}),this.nextGroupList(),this.navigateTo(o)}saveSameTabState(n){n.isSame=!0,n.parentState={func:n.func,state:p({},n.state),q:p({},n.q)}}openDrawer(n){setTimeout(()=>this.drawerManagerService.openDrawer$({type:"form",size:"medium",func:n.func,formParams:n}))}emitTabEvent(n){this.tabEventsSubject.next(n)}};e.\u0275fac=function(i){return new(i||e)(g(Kt),g(Yt),g(iy),g(ke),g(Xv),g(va),g(Qt),g(ey))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();export{D as a,Zf as b,y as c,ft as d,E as e,g as f,m as g,Sx as h,Vr as i,Go as j,Wo as k,ht as l,Qe as m,uh as n,De as o,zr as p,Mx as q,Tx as r,xx as s,Nx as t,qr as u,Xh as v,se as w,Ve as x,ie as y,j as z,Ax as A,Rx as B,Ye as C,fc as D,Ee as E,_x as F,Mu as G,Ox as H,kx as I,Px as J,Fx as K,Lx as L,H as M,jp as N,Mt as O,zn as P,qn as Q,Yr as R,Je as S,gs as T,Vx as U,Ux as V,Hx as W,PI as X,Dg as Y,GI as Z,QI as _,Wu as $,Mg as aa,dC as ba,ys as ca,fC as da,zx as ea,Rg as fa,qx as ga,Gx as ha,Wx as ia,Zx as ja,Qx as ka,Yx as la,jg as ma,$g as na,Yu as oa,Bg as pa,Vg as qa,xC as ra,Kx as sa,AC as ta,RC as ua,Ug as va,PC as wa,Jx as xa,Hg as ya,zg as za,$C as Aa,BC as Ba,Xx as Ca,VC as Da,UC as Ea,eN as Fa,tN as Ga,nN as Ha,rN as Ia,zC as Ja,iN as Ka,GC as La,qg as Ma,WC as Na,ZC as Oa,QC as Pa,oN as Qa,YC as Ra,sN as Sa,Wg as Ta,aN as Ua,cN as Va,uN as Wa,lN as Xa,dN as Ya,fN as Za,hN as _a,pN as $a,gN as ab,mN as bb,Xn as cb,Ue as db,nl as eb,il as fb,At as gb,ol as hb,om as ib,Tb as jb,sm as kb,tr as lb,al as mb,vN as nb,vn as ob,le as pb,yn as qb,ym as rb,rr as sb,$N as tb,BN as ub,VN as vb,Dm as wb,UN as xb,HN as yb,zN as zb,qN as Ab,GN as Bb,wm as Cb,ir as Db,xe as Eb,ri as Fb,sA as Gb,aA as Hb,Rl as Ib,_s as Jb,Fm as Kb,EA as Lb,IA as Mb,RS as Nb,YA as Ob,Gt as Pb,cM as Qb,ke as Rb,VA as Sb,In as Tb,tR as Ub,V0 as Vb,U0 as Wb,vr as Xb,na as Yb,Ai as Zb,yd as _b,z as $b,vd as ac,Qt as bc,oa as cc,Dr as dc,ha as ec,nt as fc,sa as gc,Id as hc,nT as ic,oT as jc,aT as kc,J0 as lc,Md as mc,Yt as nc,Kt as oc,qe as pc,Rd as qc,gT as rc,mT as sc,Ie as tc,ry as uc,Kv as vc,ma as wc,uF as xc,Yv as yc,va as zc,Xv as Ac,ey as Bc,n1 as Cc};